Hello,
I'm trying to establish wireless communication between an Arduino Uno and Mega, both of which are connected to an nRF24L01+PA+LNA module. I've tried to send a "Hello World" message from my Uno to my Mega, but for some reason my Mega couldn't receive it.
Here are the connections I've made:
Arduino Uno - nRF24L01+PA+LNA
9 - CE
10 - CSN
11 - MOSI
12 - MISO
13 - SCK
Arduino Mega - nRF24L01+PA+LNA
49 - CE
50 - MISO
51 - MOSI
52 - SCK
53 - CSN
The transceiver modules are plugged into nRF24L01 adapters (which have an onboard regulator and capacitors from what I've read). These are powered using the 5V pins from the Arduinos, and I'm not using any capacitors besides the ones on the adapters.
In case anyone needs it, here's a picture of my setup:
Here is the code for the transmitter (Uno):
#include <SPI.h>
#include <nRF24L01.h>
#include <printf.h>
#include <RF24.h>
#include <RF24_config.h>
RF24 radio(9, 10);
const byte address[6] = "00001";
void setup() {
// put your setup code here, to run once:
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MIN);
radio.stopListening();
}
void loop() {
// put your main code here, to run repeatedly:
const char text[] = "Hello World";
radio.write(&text, sizeof(text));
delay(1000);
}
And here is my receiver code (Mega):
#include <SPI.h>
#include <nRF24L01.h>
#include <printf.h>
#include <RF24.h>
#include <RF24_config.h>
RF24 radio(49, 53);
const byte address[6] = "00001";
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(53, OUTPUT);
digitalWrite(53, LOW);
radio.begin();
radio.openReadingPipe(0, address);
radio.setPALevel(RF24_PA_MIN);
radio.startListening();
}
void loop() {
// put your main code here, to run repeatedly:
if (radio.available()) {
char text[32] = "";
radio.read(&text, sizeof(text));
Serial.println(text);
}
else {
Serial.println("Waiting...");
}
}
If anyone has any ideas on how to fix this issue, feel free to let me know. Any help will be greatly appreciated. Thanks! ![]()

