Help with using NRF24L01 Transmitter & Receiver

Hi. I need a little help and advice regarding a new project I would like to make. Several years ago I made an outdoor weather station using an Arduino UNO R3. I would now like to read this outdoor data from the comfort of my warm Living Room.

Research has led me to use NRF24L01 units, I have tried for over a week, and I still cannot get them to send and receive. (The WS is no more than 10 meters from my Room)

Currently the Outdoor WS has a LCD Display, so I no longer need it if I am going to read it in my Living Room. Firstly what I am trying to do is it Doable?? Then I can start again.

Regards

Ray

What you are trying to do is perfectly feasible

From experience here the problem with using the NRF24 modules is often one of a lack of stable power to them, both voltage and current

How are your modules powered ?

Please post your transmitter and received sketches, using code tags when you do

Did you try the example programs? It is best to start with code you know works and then modify it for your application.

Yes.

It appears your code is working but your hardware is not. As @UKHeliBob has indicated it is probably a power supply problem. Please post annotated schematics of both the transmitting and receiving schematics. Here is something I published a while back that may explain the request.

Power Stability Issues with RF24 Radio Modules

As described in the RF24 Common Issues Guide, radio modules, especially the PA+LNA versions, are highly dependent on a stable power source. The 3.3V output from an Arduino is often not stable enough for these modules in many applications. While they may appear to work with an inadequate power supply, you may experience lost packets or reduced reception compared to modules powered from a more stable source. The Nano/UNO 5V rail can also be a problem, as it may not supply enough current during transmit.

Symptoms of Power Issues:

Radio module performance may improve when touched, indicating power stability problems.

These issues are often caused by the absence of a local capacitor, a common cost-saving omission by some manufacturers.

Temporary Patch:

Add capacitors close to the VCC and GND pins of the radio module. A 10 uF capacitor is usually sufficient, but the exact value can depend on your circuit layout.

Use low ESR capacitors. Capacitors with low Equivalent Series Resistance (ESR) provide better power stability and improved performance.

Be sure the transmitter and receiver are at least one meter apart. More distance is better during testing.

Reference:

During TX (3.3V supply), worst case current depends on which module you have:

  1. Plain nRF24L01+ module (no PA/LNA, small PCB antenna)

TX current at 0 dBm (max power): typically about 11 to 12 mA.
Lower power levels are less, roughly 7 to 9 mA depending on setting.

Rule of thumb: budget at least 15 mA for the radio itself.

  1. nRF24L01+ PA+LNA long-range module (with external power amplifier, often SMA antenna)

TX current at max PA level: typically about 115 to 130 mA.
Current peaks can be higher. A safe design budget is 150 to 200 mA available at 3.3V.

Power notes:

Place local decoupling capacitors at the module: 0.1 uF ceramic plus 10 to 47 uF electrolytic or tantalum directly at VCC and GND.

For PA+LNA modules, do not rely on a weak 3.3V pin. Use a proper 3.3V regulator with adequate current capacity.

Using appropriate capacitors can greatly improve the reliability of your RF24 module by ensuring a stable power supply, minimizing packet loss, and improving overall performance. A separate regulated power supply for the radios is often the best long-term solution.

https://wolles-elektronikkiste.de/en/nrf24l01-2-4-ghz-radio-modules

Many Thanks for your help so far, a lot to take in.

Yes, I have tried several codes.

Hi, Thanks for getting back to me.

I have powered my module for the 3.3 volt pin on the UNO board.

The sketches, do you mean the test sketches?

Please tell us how the RF24 modules are powered. Is it directly from the Arduino, from a daughter board that they are plugged into or from an external power supply ? If the latter then do the power supply and Arduino have a common GND connection ?

Hi. The RF modules are mounted on a adaptor board, and then connected to the UNO 3.3v Pin.

The "adapter board" almost certainly has a 3.3V regulator on it which will convert a 5V input to the 3.3V needed by the RF module.

If that is the case then the adapter board needs a 5V input

Please post a link to where you got rge adapter boards or a very clear photo of the top and bottom of the board

If it is a power issue, then you would do well to invest in a couple of good, stable power supplies, or make some yourself, or get some modules from a supplier like Adafruit.

Separate the radio power needs from the Arduino and that may or may not solve the problem. If it solves it, then job done, otherwise it's more complex.

As suggested, use tried and tested examples, maybe again from Adafruit and the likes.

That is a very bad place to power it from. You need a separate power supply which can be used for other V3 devices just be sure to connect the grounds.

Here is something that may help:
Gil's Crispy Critter Rules #19 for Processor Hardware:
Rule #1: An Arduino is NOT a Power Supply!
Rule #2: Never connect anything inductive (motors, speakers) directly to an Arduino!
Rule #3: Avoid connecting or disconnecting wires while the power is on.
Rule #4: Do not apply power to any pin unless you are certain of what you're doing.
Rule #5: Do not exceed the maximum voltage or current ratings.
Rule #6: Many Arduinos cannot power transmitters directly.
Rule #7: Before powering your project, take a break and double-check the wiring.
Rule #8: Bad soldering makes for project failure.
Rule #9: Do not reverse power connections.

   LaryD’s Corollaries:
   Coro #1: When starting out, add a 220Ω resistor in series with both input and output pins to protect against shorts.
    Coro #2: Invest in a Digital Multi-Meter (DMM) to measure voltages, currents, and resistance.
   
   Note: Violating these rules can turn your Arduinos into crispy critters. For optimal performance, keep your wires under 25 cm (10 inches).
   
   Additional Tips:
   
   The L293 motor driver, though common, is inefficient as it can lose around 3V as heat when driving both legs of a motor. Consider using a motor driver with MOSFET outputs to reduce heat loss and conserve battery power.
   
   Not all motor drivers work with each motor, they have to be compatible.
   
   The nRF24 radios do not work very well when powered with an Arduino even if the 5V adapter is used.
    
   For more on powering Arduino boards, explore this guide: Powering Alternatives for Arduino Boards.
   
    Connecting power backwards generally destroys parts in nanoseconds IE faster then fuses.

No you don't
However as @UKHeliBob has pointed out you need to connect the adaptor board to 5V.

Sorry, I cannot remember where I got them from, The Antenna RX & TX I got from Amazon, that's probably where I got the Modules from.

The input voltage for my Arduino Uno is a wall mounted 240 ac to 9 vdc Transformer. Can I use something like an LM37 to reduce the Voltage to 5vdc?

No need for a regulator.
Just use the Arduino Uno 5V output

Does your adaptor look like this?

If yes then just connect to Uno 5V output.

Yes, That's the ones I have.

Your Amazon purchase history would be a good place to start looking

What was it that prompted you to get the adapter boards which, by the way, are a good idea ?

Try using the Uno 5V pin as the voltage source for the adapter.

Quick Question, I have most if not all of my weather station components connected to a 5 vdc & 0vdc Bus Bars, fed by the 5 volt & ground pins on the Uno, can this have an effect on the Module?