Idea to improve RF noise from SPI lines #362
Replies: 5 comments 2 replies
-
The link you provided doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I added: Much more quiet now. |
Beta Was this translation helpful? Give feedback.
-
The I²C bus interference can be also lowered with:
With this settings the interference level is decreased or is even below noise level. See the example, this is PE5PVB board without antenna connected and without display, running my sketch: https://www.youtube.com/watch?v=GVjCEUiXoLE |
Beta Was this translation helpful? Give feedback.
-
Just an update: this test above was at 400 kHz bus speed. On regular 100 kHz there is audible interference every 100 kHz without antenna connected, which sounds like a weak empty carrier. With the GPIO_DRIVE_CAP_0 set, the interference on the FM band is gone. |
Beta Was this translation helpful? Give feedback.
-
I added the lines, and it works. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
However, the main reason for the idea is the noticeable emission of signals coming from the SPI bus, good choice is to use resistors close to pins outputs, but the best solution is to change speed of rising and falling edges internally in MCU.
ESP32 also has this feature and I found in documentation how to use that:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/gpio.html#_CPPv425gpio_set_drive_capability10gpio_num_t16gpio_drive_cap_t
Maybe there is someone here who can help me find it in the code, because it can reduce spurs up to 10db without loss of data.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions