NRF24L01+ works on UNO but not on Mega

I am trying to test transmission of data using NRF24L01+ between an UNO R3 as transmitter and MEGA as reciever. The UNO is able to run the setup test code and send data test. I managed to get the MEGA working on the setup test code but then it wouldn't recieve data. When I checked the MEGA with the setup test code again it failed to give the expected output and hasn't since.

I have tested the pins used for the NRF24 on the MEGA with buttons to see if they will repsond to input, and they do. The jumper connections feel a bit loose on the MEGA, but i am unsure if that is the problem as the same pins where it is loose, work with the buttons.

I also swapped the recievers used by the UNO and MEGA, the UNO still worked while the MEGA still didn't work. I also tried powering the reciever off the MEGA and have it connected to the UNO and the UNO still passed the test.

I am unsure as to what to do, I feel I have three options, 1) replace the MEGA for a new one, or 2) desoloder the headers and replace them, or 3) add solder to the jumper wires to make them thicker so the connections aren't loose.

Do I have other options? Neither board is new, and they are at least 4 years old. They have been unused for quite some time, neither board has presented any issues up until now, with the MEGA. And both boards have worked testing other components.

Here is a link to the test code I was using to verify if it was working:

Loose connections can cause a lot of grief when serial communications is involved. Buttons are not as sensitive to that.

Ah ok I see. Then I can assume that my MEGA works just fine, and I just need to secure the connections some how?

What would you suggest the best way is, replace the headers or to add a layer of solder to the jumper wires to thicken them up?

My preference would be to replace the sockets with pins. I generally get boards where the connectors are not 'welded' to the board. I do non know what your coldering skill set is but if decent at it it is doable.

Unfortunately you did not tells us the wiring. You are aware that pins 10/11/12/13 are not the SPI pins on the Mega?

I am aware, I used:
SCK - 52
MISO - 50
MOSI - 51

Like i said it worked once, but then it stopped working. The pins worked fine with buttons,but did feel loose.

Thanks for the suggestion. I added a layer of solder to the jumper wires to thicken them up, the connections are much tighter and i am now able to recieve messages on the MEGA. I think I will take on your suggestion and replace the headers with pins as a more permanent solution.

1 Like

Mark this solved and have fun!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.