NRF24L01 connection

Hello everyone,

So today I was trying to use an NRF24L01 to send data from an Arduino nano to Arduino mega I have checked my wiring many times and it is correct these are the codes that I used.

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.startListening();
}
void loop() {
bool result = radio.isChipConnected ();
if (radio.available()) {

Serial.println (result);
char text[32] = "";
delay( 500);
radio.read(&text, sizeof(text));
Serial.println(text); //This will print out the received value
}
}

Transmitter:

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

RF24 radio(7, 8); // CE, CSN
int text = 1;
const byte address[6] = "00001";

void setup() {
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MIN);
radio.stopListening();
}
void loop() {
const char text[32] = "Hello World";
radio.write(&text, sizeof(text));
Serial.println("Sending Data");
delay(1000);
}

all help is appreciated

And what was taking place?
Did the sender Serial.print print anything?
In sending You send the entire array, not only the text put into it. Is that good?
Put some Serial.prints in receiver to tell….

Have a look at this Simple nRF24L01+ Tutorial.

Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.

The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work

A common problem with nRF24 modules is insufficient 3.3v current from the Arduino 3.3v pin - especially with a nano. At least for testing try powering the nRF24 with a pair of AA alkaline cells (3v) with the battery GND connected to the Arduino GND.

...R