@ OP. There are a large number of posts regarding the nRF24XX and nRF24LXX devices. My recommendation is to read them all. Search this website as well as Google nRF24L00''s for whatever you find. it's a bit of reading but in almost every post or article I've found more and useful data.
Maniacbug's library is well done and easy to use, I recommend it highly.
I just received a couple of nRF24L01 modules, and hooked them up. I used the following
library, and the GettingStarted example sketch from the library, and they worked the
first time great, which kind of amazing considering how many other devices and libraries
need serious debugging to get to work. Yay!
First off, you need to power at 3.3V ONLY. 5V will kill the modules. However,
according to the datasheet, the I/O pins are 5V tolerant. The UNO and Mega boards
cannot provide much current at 3.3V, but these modules only require around 13 mA,
so that should be ok [I think].
Then, connect the SPI pins to the usual places, and the module CS pin to Arduino D10,
and CE pin to D9. The IRQ pin on the module isn't needed, at least for the GS sketch.
I simply jumpered all the module pins to the Arduino board pins without any shields.
Note - these callouts may need changing for the Mega board. I'm using a UNO-compatible
board.
Actually, there are several bugs in the maniacbug GettingStarted sketch. The initial
signon responds with some garbage, and the modules don't go into receive mode properly
at startup, but you just have to press 'T' on one side and 'R' on the other side to get them
to talk, and they go.
I just did a little range test, and it's fairly pathetic with these things. Going from one room
to another is only good for about 25 feet [8 m] through a standard wood frame wall. I guess
that's about what to expect for 2.4 Ghz and 0 dbm [1 mW] output.
shiu748:
A greater range would be achieved if you use 1Mbps or 256kbps air data rate.
Ok, the library defaults to 1 Mbps data rate, so I patched it 250 Kbps, and the
range increased from about 25 feet [8 m] up to roughly 40 feet [12 m]. Now
going through the wall of the house to the outside.
Which library are you using. I would recommend using the NRF24 library. Changing the air data rate is easy, just go through the examples given in the library.
shiu748:
Which library are you using. I would recommend using the NRF24 library. Changing the air data rate is easy, just go through the examples given in the library.
All in all, I was "very very" happy to find that maniacbug's library and examples worked
without any MAJOR debugging efforts. In contrast, I spent several weeks mucking with the
stupid JeeNode library and s.w. before it would ever work, and then I only got lucky in the
end - ie, found a sketch in the Arduino Cookbook that worked right the first time.
OTOH, after just 1 day of testing, I'm already very disappointed with the nRF24L01 modules.
Power is too weak, and range is too small. They are basically ok for "in the same room".
After playing with Xbees for 7 or 8 years, it's very hard to beat them for ease of use and long
usable range. Nothing else comes even close, even if they are a more expensive. Maybe you
get what you pay for. The only real problem with XBees is that most of the shields are poorly
designed.
oric_dan:
OTOH, after just 1 day of testing, I'm already very disappointed with the nRF24L01 modules.
Power is too weak, and range is too small. They are basically ok for "in the same room".
OK Oric, I just want to be sure of what you are doing. Here you are clearly alluding to the nRF24L01 module.
Is that what were alluding to in reply #7 with the 12m range? My module is labelled nRF24L01+. The terms nRF24L01and nRF24L01+ seem to be used interchangeably.
The library package I have is RF24 from maniacbug.
oric_dan:
OTOH, after just 1 day of testing, I'm already very disappointed with the nRF24L01 modules.
Power is too weak, and range is too small. They are basically ok for "in the same room".
OK Oric, I just want to be sure of what you are doing. Here you are clearly alluding to the nRF24L01 module.
Is that what were alluding to in reply #7 with the 12m range? My module is labelled nRF24L01+. The terms nRF24L01and nRF24L01+ seem to be used interchangeably.
The library package I have is RF24 from maniacbug.
i also try to put ce -> 9 and 8 and csn -> 10 and 7, and nothing.. no communcation. i belive its the library its not working for the mega 2560 pin 50, 51,52. but iam a new at ardruino and iam not sure.
can someone help me? anyone with mega2560 that put it to work?