NRF24L01 PA + LNA Connected but not reciving data.

Hi, it's my first time posting here please consider it.
I'm using a Arduino UNO as a Coordinator NODE, it has to retrive data fromo other nodes, and a Arduino NANO as child NODE transmiting data. The problem i which you help me solve is that, according to the code i'm runnig, which is presented below, the nodes are connected, but the info that the Arduino NANO is sending can't be retrive by the Arduino UNO.
ARDUINO UNO

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


//NODO HIJO
// SE DEDICA A ENVIAR LA DATA

RF24 radio(7,8);
const byte address[6]="00001";
char text[32]="";

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  radio.begin();
  radio.openReadingPipe(1,address);
  radio.setPALevel(RF24_PA_MAX);
  radio.setDataRate(RF24_250KBPS);
  radio.startListening();

}

void loop() {
  // put your main code here, to run repeatedly:
 
 if (radio.available()){
  radio.read(&text, sizeof(text));
  Serial.println("Conecatado");
  Serial.println(text);
  delay(1000);
 }
   
}

This code returns "Conectado" and a empty line, the empty line should be "Hola conex" which is the char sended by the Arduino NANO
Arduino NANO

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



RF24 radio(7,8);

const byte address[6]="00001";


void setup() {
  // put your setup code here, to run once:
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MAX); //MIN LOW HIGH MAX
radio.setDataRate(RF24_250KBPS);// 250KBPS 1MBPS 2MBPS
radio.stopListening();
 

}

void loop() {
    const char text[]="Hola Conex";
    radio.write(&text, sizeof(text));
    delay(2000);
  
}

I use external supply in both of the nodes, i'm sure that it is not a power problem.
I hope that i been as clear as possible, have a great day all.

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