RF24 not working, broken?

I only want to connect 2 RF24’s using this library.
They respond on isChipConnected(), but i fear i fried them, because i connected them to the +5V pin.
Is there any other way to determine whether they are defect or not?

I use this code:
Transmitter Code

#include <RF24.h>

RF24 radio(9, 10);                              //Define Radio (CE-PIN,CSN-PIN)
const byte rxAddr[6] = { 0, 0, 0, 0, 0, 1 };    //TX adress (Same as on RX)    

void setup() {
    Serial.begin(9600);

    radio.begin();
    Serial.println(radio.isChipConnected());
    radio.setPALevel(RF24_PA_MAX);           // Transmit Power (MAX,HIGH,LOW,MIN)
    radio.setDataRate(RF24_250KBPS);       // Transmit Speeed (250 Kbits)
    radio.setRetries(15, 15);
    radio.openWritingPipe(rxAddr);
    radio.stopListening();                            // Disable Receiver
} 


void loop() {
    const char char_array[13] = "Hello World!";
    radio.write(&char_array, sizeof(char_array));
    delay(1000);
}

Receiver Code

#include <RF24.h>

RF24 radio(9, 10);                              //Define radio (CE-PIN,CSN-PIN)
const byte rxAddr[6] = { 0, 0, 0, 0, 0, 1 };    //RX adress (Same as on TX)

void setup() {
    Serial.begin(9600);                 // Start the serial

    radio.begin();
    Serial.println(radio.isChipConnected());
    radio.setPALevel(RF24_PA_LOW);      // Transmit Power (MAX,HIGH,LOW,MIN)
    radio.setDataRate(RF24_250KBPS);    // Transmit Speeed (250 Kbits)
    radio.openReadingPipe(1, rxAddr);
    radio.startListening();
}

void loop() {
    if (radio.available()) {
        Serial.println("Hello World");
    }
    delay(100);
}

It is better to use the newer TMRh20 version of the library.

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. Try powering them with a pair of AA alkaline cells (3v) with the battery GND connected to the Arduino GND.

...R

I updated my lib to the TMRh20 vesion and copied the "Simple one way transmission" example.
Result: Tx failed. The receiver doesn't get anything.

I also connected the modules to perfectly stabilized 3.3V from a lab power supply.

So i have to buy 2 new antennas because my ones are broken?
(Connected them to 5V previously :cold_sweat: ).
Is there any way i can ensure that they are broken and it's no connection error?

baechlju:
Is there any way i can ensure that they are broken and it's no connection error?

Make sure you first have a working setup.

Then substute one of the suspect modules ...........................

baechlju:
I updated my lib to the TMRh20 vesion and copied the "Simple one way transmission" example.
Result: Tx failed. The receiver doesn't get anything.

Have you tried the connection test program in my Tutorial?

I agree with @srnet in Reply #3.

...R

Thanks for the hint with the "Connection Test" program.

The output of the modules is fine i guess

FIRST WITH THE DEFAULT ADDRESSES after power on
Note that RF24 does NOT reset when Arduino resets - only when power is removed
If the numbers are mostly 0x00 or 0xff it means that the Arduino is not
communicating with the nRF24

STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xe7e7e7e7e7 0xc2c2c2c2c2
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0xe7e7e7e7e7
RX_PW_P0-6 = 0x00 0x00 0x00 0x00 0x00 0x00
EN_AA = 0x3f
EN_RXADDR = 0x03
RF_CH = 0x4c
RF_SETUP = 0x07
CONFIG = 0x0e
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_MAX


AND NOW WITH ADDRESS AAAxR  0x41 41 41 78 52   ON P1
and 250KBPS data rate

STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xe7e7e7e7e7 0x4141417852
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0xe7e7e7e7e7
RX_PW_P0-6 = 0x00 0x20 0x00 0x00 0x00 0x00
EN_AA = 0x3f
EN_RXADDR = 0x03
RF_CH = 0x4c
RF_SETUP = 0x27
CONFIG = 0x0e
DYNPD/FEATURE = 0x00 0x00
Data Rate = 250KBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_MAX

But why is the communication failing then?

baechlju:
But why is the communication failing then?

The connection test does not test the wireless part of the nRF24.

You may indeed have one module (or both) with a faulty wireless.

I presume you have tried my SimpleTx.ino and SimpleRx.ino with ABSOLUTELY NO CHANGES?

…R

baechlju:
But why is the communication failing then?

The RF output\input parts of the devices could be the only bit that is fried.

Hence the comment in #3.

2 new ones will arrive at Wednesday.
I hope i will manage to get them working then.

Thank you very much for your untiring help :slight_smile: .