29 responses to “Playing with Nrf24L01 modules”

  1. RF24 library revisited

    […] wireless radio modules A while ago I started playing with a couple of nRF24L01 modules. I found 2 Arduino libraries, the Mirf library which is available on the Arduino playground and […]

  2. eric

    I have two Arduino Mega and I am new in this field so let me consult with you following questions

    (1) do i need to edit or revise any one of the *.h files?
    #include #include #include #include

    (2) for transmitter, are you connecting the (CE) to 48, (CSN) to 49, (MISO)to 50, (MOSI) to 51, (SCK) to 52

    thanks

  3. eric

    my LED is not working properly and I am still still scratching my head … Then I saw this link
    http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1245058973
    At the bottom of link, it says something that I have to put below definition somewhere, but i am not very clear what is it refering? can you advise? do i need to edit it?

    #if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__)
    #define SCK_PIN 52
    #define MISO_PIN 50
    #define MOSI_PIN 51
    #define SS_PIN 53
    #endif

  4. eric

    I changed back to use the Maniacbugs RF24 library, and try the “pingpair” program, and both Mega board and Uno board are working without problems. However, when I add anything LED, either the LED_remote code by Maniacbug or this link’s potentiometer LED, then things become very unstable. As you link http://arduino.cc/forum/index.php/topic,82906.0.html point out, I feel the power supplier for nRF24L01+ may need to be carefully concerned. This is the work of my next step …

  5. eric

    Hello Bajdi,

    for the receiver codes, two lines are missing, which are

    Mirf.cePin = 48; //ce pin on Mega 2560
    Mirf.csnPin = 49; //csn pin on Mega 2560

    For my case, if I miss these two lines, the code won’t work..

    Thanks

  6. Nazarko

    hey, I spent a lot of time to get working these modules, but my IDE cannot compile the sketch:

    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp: In member function ‘void Nrf24l::init()’:
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:85: error: ‘OUTPUT’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:85: error: ‘pinMode’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp: In member function ‘void Nrf24l::ceHi()’:
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:285: error: ‘HIGH’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:285: error: ‘digitalWrite’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp: In member function ‘void Nrf24l::ceLow()’:
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:289: error: ‘LOW’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:289: error: ‘digitalWrite’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp: In member function ‘void Nrf24l::csnHi()’:
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:293: error: ‘HIGH’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:293: error: ‘digitalWrite’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp: In member function ‘void Nrf24l::csnLow()’:
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:297: error: ‘LOW’ was not declared in this scope
    …\arduino-1.0.1\libraries\Mirf\Mirf.cpp:297: error: ‘digitalWrite’ was not declared in this scope

    Could you help me somehow?
    Thanks

  7. Arduino and RF(nRF24L01+) | Physical Computing 2010

    […] code used in this post is slightly changed version of the code from http://www.bajdi.com/playing-with-nrf24l01-modules/ Like this:LikeBe the first to like this. This entry was posted in Tutorials and tagged Ardunio, […]

  8. Shiu

    What is the data transmission range for the modules with the internal antenna

  9. andy

    Hi. Is it posible to have several radios?
    exampel, 4 sensors sending data to one resiever?

    -Andy

  10. andy

    Tanks admin 🙂

  11. Erik

    I can’t really see how the code with the potentiometer will work. you have not connected the potentiometer to a analog pin?

    1. Erik

      Wait know I can see. It’s the receiving code you have made, but where is the sending code?

    2. Erik

      Damn I must be so stupid. I just saw the first code is the transmitting code. LOL

  12. Arduino Mega 2560 | Arduino Micro | nRF24L01+ | Hack-Wiki | Hard- und Softwarehacks
  13. Juan

    It works perfectly. Now finally I can do other sketches.

    Thanks a lot.

  14. AMercerV3

    i follow the codes for the transmitter and receiver to send the value of A0 ( which is my LM35 temperature sensor) but all i get is 0 and -1 …

  15. eduardo

    How we connect the nrf24l01 with arduino nano? pin out…. etc?

  16. Reiner

    With this device, I can communicate UNOS 3 ?? Servo 1 and 2 Slaves?

  17. Chambo

    Hi,

    I have successfully been able to get 2 units to talk to each other and once I soldered it all into a mini board it works very well. One thing I don’t fully understand is the Mirf.setRADDR & Mirf.setTADDR. I am trying to send to multiple units from a single server for example an acknowledgement bit.

    Do I have to to set all the setRADDR to different whilst keeping the TADDR the same, I just cant work it out. Any help would be much appreciated.

    Here is a nasty sketch of my network;
    (SERVER) (Node 1)
    (Node 2)
    (Node 3)
    (Node 4)

    How does the server send info to all 4 separate nodes or is there a way to blast the info to all devices at once?

    Thanks
    Chambo

  18. yaniv

    hi im tring to play with two chanels how to do such thing?
    sorry for my bad english..
    yaniv :]

Leave a Reply

*