NRF24 Issues (not working at all)

Hi there, i got a few of theese incredible 2.4GHz wireless modules to make some communication between two Arduinos Mega 2560. For some unknown reason (but i guess it's my fault) I can't manage to make them work. I have both the low and the high power version, and the socket adapter to avoid 3.3V noise. Here their pics in order: NRF24 low power |500x214 NRF24 high power version NRF24 socket + 3.3V regulator |500x500

When using the two RX and TX sketches at the bottom of this page i keep getting No radio available. I also tried the radio.printDetails() function, but there is no output (probably because of something in stdio.h, but don't know). I'm using maniacbug's library with SPI ports 50-51-52-53 plus CE on pin 9. IRQ not connected. Any help? Thank you!

The library you are using is old and is known to have problems. Try the improved version.

I got my nRF24s working with this Tutorial. I agree about using TMRh20's library, but ManiacBug's version worked for me with the Tutorial - it was later that I ran into a problem with it.

...R

Thank you... Made a few more tests in the morning with the GettingStarted example. The module seems to receive tons of packets with random values from unknown sources, i thought wifi but i'm not sure. Another weird thing is this: I attached CE and CSN according to this line: RF24 radio(7,53);, in order CE and CSN pins. Well, theese random values i get only appear when CSN is unplugged, or plugged in a different pin. Otherwise an error occours when using the nrf24.write() function. Now i wonder: can it be another power issue, even if i do use the socket adapter (that should grant very stable 3v3)?

Yaxit: can it be another power issue, even if i do use the socket adapter (that should grant very stable 3v3)?

I would still not omit the capacitor on the power pins of the NRF24L01.

P.S. letting CSN float is a very silly idea. Please read the datasheet.

Yaxit: The module seems to receive tons of packets with random values from unknown sources, i thought wifi but i'm not sure.

If you really do think that you are suffering from interference try changing the channel - just make sure you use the same channel on both devices.

...R

@Robin2: the noise is only caused by 'running' the chip disabled/screwed (random spi-sampling?).

Yaxit: Well, theese random values i get only appear when CSN is unplugged, or plugged in a different pin.

Yes, I never meant to leave CSN unplugged, I only noticed that I got values only when it was unplugged. (It my be explained, as Whandall pointed out, as random sampling)

I have a couple of second-hand 10uF capacitors. About theese parts, as far as I know they are suppose to be connected between the 3v3 and the GND, isn't it? The capacitor's GND with the GND of the chip, i guess... By the way, I have no idea of the difference between the electrolytic capacitors (I dispose of theese ones, like the ones in picture) and the other ones... But I still have the impression that it is not a "trasmission" issue, but a software one.

No succes even when changing channels (tried 4 and 76) or reading/writing pipe...

Finally managed them to work properly. The problem was some incompatibility between the original library and the Mega (I suppose). I used a fork from gcopeland. Thank you

Both ManiacBug’s and TMRh20’s libraries worked on my Uno, Mega, Leonardo, Sparkfun ProMicro and on an 8MHz Atmega 328.

…R

I have the same issue "seems to receive tons of packets with random values from unknown sources" but i can't resolve it with that"Finally managed them to work properly. The problem was some incompatibility between the original library and the Mega (I suppose). I used a fork from gcopeland. Thank you" any ideas what to do?

This is a very old Thread.

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

...R

Tnx! it worked.