nrf24l01-pa-lna not working

I have already gone to most websites to understand how the nrf24l01-pa-lna works and I have not been able to figure out what I have done wrong as I have copied pasted the program from a website https://howtomechatronics.com/tutorials/arduino/arduino-wireless-communication-nrf24l01-tutorial/
I also found out that it has issues running on 3.3v and you have to get a base I have done everything and it still does not work

below are my code and images

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.startListening();
}
void loop() {
  if (radio.available()) {
    char text[32] = "";
    radio.read(&text, sizeof(text));
    Serial.println(text);
  }
}

The images

I bought these same cards recently, but haven't done anything with them yet. Will be interested to see how this plays out.

Since you are using SPI, you could try make D10 an output, that's the SS pin and needs to be an output for the Uno to be SPI master.

I have tried 9, 10 as well for ce and csn

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