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
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.
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)?
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...
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?
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