nrf24l01 pico-to-pico officaltest gets me succes=0 failures=16 #12383
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
The SPI pins for rp2 in "nrf24l01test.py" are defined as follows:
However, machine.SPI(0) is mapped to different pins in the firmware.
You can try changing the SPI pins in "nrf24l01test.py" to
and rewire your setup accordingly. I think this will give you the result you are looking for. |
Beta Was this translation helpful? Give feedback.
-
@shariltumin Three observations.
@Hopesforgypsy |
Beta Was this translation helpful? Give feedback.
-
For those who may read this thread later. I have a device set up as a mobile transmitter, powered by a USB power bank. I have this in the 'main.py' file.
The other device is a listener and is connected to REPL so I can see what is coming. The 'mini_test.py' test script:
I hope someone finds it useful. |
Beta Was this translation helpful? Give feedback.
The problem isn't with the SPI connections it's with the power supply. Since your original query I've been experimenting with these modules and, like you was get very poor communications between the boards. Reading the NRF24L01 datasheet there is a section on the importance of a clean power supply. This includes making sure the power lines aren't interfered with by digital line such as the SPI wires. Adding a capacitor between ground and 3.3v as close to the chip as possible was also suggested.
If you have the soldering skills soldering a 10uf capacitor across the ground and 3.3v pins of the module works wonders. I did find making sure that power and SPI connections were kept apart helped…