So I'm using an nRF24L01P+PA+LNA with an Arduino Nano and the RF24 library. I've checked the wiring multiple times and verified it is correct. However, when I check radio.available() it always returns true even if there's no other transmitter. It will only return false when I unplug the transmitter from the nano. I am only using the 3.3v pin on the nano at the moment because I do not have the 5v breakout adapter yet. Could that be the cause for this or did I miss something else?
Here's the code for the receiver:
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
// define the pins
#define CE_PIN 9
#define CSN_PIN 10
// Create a Radio
RF24 radio(CE_PIN, CSN_PIN);
// The tx/rx address
const byte rxAddr[6] = "00001";
void setup()
{
Serial.begin(9600);
while(!Serial);
Serial.println("NRF24L01P Receiver Starting...");
radio.begin();
radio.setPALevel(RF24_PA_MIN); // RF24_PA_MIN ,RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX
radio.setDataRate( RF24_250KBPS ); // RF24_250KBPS, RF24_1MBPS, RF24_2MBPS
radio.openReadingPipe(0, rxAddr);
radio.startListening();
}
void loop()
{
if (radio.available())
{
Serial.println("Received Message: ");
}
}