NRF24L01 wont work with my mega

I'm building a robot and would like it to be controlled by RF, so i ordered these chips and started trying to get them to work. i soldered 3 and when i connect any of them to my nano, they work fine, or at least i think they do. They manage to send and attempt to receive but this is where i run into the problem.

The other one will be wired up to my mega, but the mega just seems to fail to communicate. Ive tried the NRFLite.h, and the RF24 libraries, and obviously the code works fine because well my nano works. Whenever i try anything with my mega it says "Cannot communicate with radio".

ive tried different CE and CSN pins, and from what i understand the SPI library handles SCK, Mosi, and MISO on its own but ive tried different configurations with it including the one from the tutorial im following and just nothing works.

ive confirmed its not the transceiver because well, 3 of them work with my nano and 3 of them dont work with my mega, at least to the point where my nano recognizes its there.

Am i missing something? Is my mega just broken? I do not have any other arduinos.

If you read and, closely, follow Robin2's simple rf24 tutorial you should be able to get them working. That tutorial sure helped me. The code in the examples has been proven to work many many times. If it does not work for you, there is likely a hardware problem.

The TMRh24 version of the RF24 library is available for installation via the IDE program manager. How to install an Arduino library.

Run the CheckConnection.ino (look in reply #30 in the tutorial) to verify the physical wiring between the radio module and its processor (Arduino).

You are aware that pins 11, 12 and 13 on the Mega are not the SPI interface?

yep had them wired to 50-53

p̶o̶w̶e̶r̶ s̶u̶p̶p̶l̶y̶ n̶o̶i̶s̶e̶ w̶a̶s̶ t̶h̶e̶ i̶s̶s̶u̶e̶, c̶a̶p̶ f̶i̶x̶e̶d̶ i̶t̶

it was a power supply issue but not actually noise, the 3.3v on my mega was only giving 11.5v. i used an led and plugged it into 5v and the voltage drop brought it down to 3.4v, and then it worked perfectly!

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