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.