Not getting any signal between NRF24I01 Modules

I have 2 NRF24I01 modules (pictures included) hooked up to two Arduino Nanos with which I want to control a drone however I can't seem to receive a signal, I've been reading online that these modules seem to be a pain to work with so I just want to know if it can work like this, to say at least one thing, I don't have any capacitors at my disposal so unfortunately I am unable to fix the likely power supply issues everything you see is everything I got (ignoring a few Resistors lying around).
Pictures :




Transmitter:

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(7, 8); // CE, CSN

const byte address[6] = "00001";

void setup() {
  radio.begin();
  radio.openWritingPipe(address);
  radio.setPALevel(RF24_PA_MIN);
  
  radio.stopListening();
}

void loop() {
  const char text[] = "Hello World";
  radio.write(&text, sizeof(text));
  delay(1000);
}

Receiver:

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(7, 8); // CE, CSN

const byte address[6] = "00001";

void setup() {
  Serial.begin(9600);
  radio.begin();
  radio.openReadingPipe(0, address);
  radio.setPALevel(RF24_PA_MIN);
  radio.setDataRate(RF24_250KBPS);
  radio.startListening();
}

void loop() {
  if (radio.available()) {
    char text[32] = "";
    radio.read(&text, sizeof(text));
    Serial.println(text);
  }
}

I tested the radio.available() condition and it seems to always come out false, either it can't pick up a signal or there is none to begin with.

The Nano 3.3V just cannot supply the current to power the rf24 modules even with the 10uF to 100uF caps on the module power. I use homemade adapters like these. They are powered by 5V and have a 3.3V regulator on the board. Robin2 also has suggested trying with a 2 AA cell battery pack.

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 or power supply problem.

Run the CheckConnection.ino (look in reply #30 in the tutorial) to verify the physical wiring between the radio module and its processor (Arduino). This is especially useful if all you see is “Data received” repeating much more quickly then there is a problem - most likely theArduino is not communicating properly with its nRF24.

You may find the HC-12 radio unit easier to use. I believe that they have similar or better range than the rf24 radios. And they use fewer pins. The disadvantage may be the data rate, but if you can use hardware serial that may not be a problem.

1 Like

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