NRF24L01 issues and won't work for whatever reason

So, I am currently trying to get an NRF24l01 transmitter to commuinicate with another Arduino, its 2 Elegoo Ardunio Uno R3 which I am Using, and it had been working before and now I swithced to a Perfboard and it stopped working, so I took it apart and put it back together and it still won't work. I am Using the first example from this Guide and have checked the setup multiple times, it worked before but ever since I tried the Perfboard it stopped working and I have no idea why, it's setup exactly the way it was before yet it won't communicate with the other. Any Help or ideas would be Appreciated. I do have a Decoupling Capacitor set up at 46µF capacitor which I have checked multiple times. I am currently really stuck and am wondering if I somehow fried the Arduinos or something similar?

Thank you for anything!

Linking to a tutorial and saying "this is what I did" doesn't cut it, I'm afraid. That just tells us what they did; and what they did works. So if your's isn't working... you must have done something different.

So: as it says in How to get the best out of this forum, show us your code. In full. And show us a schematic of how you have things wired up. If I had a nickel for every time I was sure I had things wired up correctly, only to discover an error that was immediately obvious as soon as I drew out what I'd actually wired up... I'd have a great many nickels. And yes, a hand drawn schematic is just fine (and much preferred to a Fritzing diagram by many).

And once you've done that and you're waiting for a reply, here's some things you can check. Begin by checking the return values from radio.begin() and radio.write(). Also, check whether radio.failureDetected becomes true at any point. The library can detect a lot of problems and tell you about them; but it can't do that if you're not listening to it.

Post an annotated schematic showing exactly how you have wired it, be sure to show all power, ground and power sources. Also links to technical information on each of the hardware items would help us help you.





I made 100% sure that they are both set up in the same way (first time doing this so sorry if its bad).
Here are the links for the hardware
Arduino
NRF24l01

I wasn't sure how to use the radio.begin() and radio.write() nor radio.failureDetected, but I did try to use at part 30 for troubleshooting and was getting issues with the communication between the NRF24l01 and the Arduino if that's any help.

This is my first time doing this kind of thing so sorry if it's bad and thanks again for the help!

That is not what I asked for but it shows what I wanted to know you are powering the radio with the UNO, that is prone to failure. Power it with a separate supply. The transmitter causes problems with the regulator and momentary overloads it with its peak current.

1 Like

I plugged the transmitter into a separate power source, however the receiver doesn't detect input


It doesn't print anything at all 90% of the time, while sometimes it gives me weird symbols(�) alongside other various symbols and letters in long strings.

In post #30 of Robin2's simple rf24 tutorial there is a diagnostic program that can check the wiring between the radio module and its attached Arduino.

I ran it and got back the 0x00 mixed with 0xff so it wasn't communicating but I wasn't sure how to fix it as there wasn't much added on

Step 1: Fix your wiring.
According to the pictures you have posted, you wired the nRF24l01 module to the Arduino incorrectly. The diagram shows that you have the SCK (clock signal) and MOSI switched. See the table below for proper wiring.
image
These three wires cannot deviate from this configuration because you are using the microcontroller's Serial Peripheral Interface (SPI) to communicate between the two devices. If you are unfamiliar with this method, click here for a quick overview of SPI. You do not need to have a perfect understanding of it right now, but familiarity will help you going forward with these modules.

Step 2: Run the Diagnostic Program
Rerun the diagnostic program and copy the results from the serial monitor. Paste them as shown below by clicking on image in your reply.
image
Here is what it should look like.

Results:

//paste the output here

Step 3: Specify your power source
You said...

What power source is it: a battery, benchtop power supply, etc.? The more specific you are the faster we can get you up and running. Solving these problems via a forum is magnitudes harder than if we can sit in the same room and work together. In that vein, document everything and include it. Too much is better than too little.

Lastly, learning to use these modules can require a significant amount of trial and error. So, don't be discouraged if you have to fail many times before you succeed.

Is the ground of your alternate power source connected to the ground of the Arduino?

1 Like

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