NanoRF24

From lechacal
Jump to navigation Jump to search

Link to the shop


Overview

The NanoRF24 is an adaptor board to combine together an Arduino Nano with a RF24 module. The RF24 is a 2.4GHz RF module.

  • battery or USB power up
  • Slide switch for on/off (battery)
  • i2c port
  • temperature port (ds18b20)

Library

We recommend the library from tmrh20.
Github
Full Documentation

Enclosure

The NanoRF24 has been designed to fit inside an aluminium enclosure.

Simple Example

The RF24 library contains many excellent examples. We propose here to do your first test with the GettingStarted.ino. In the library folder the example file can be found in RF24/examples/GettingStarted/

2 units are required for this test. One is sending the other is receiving.

With the Arduino IDE upload the GettingStarted.ino sketch to the first NanoRF24.

Then modify the GettingStarted.ino at line 13. Change the =0 into a =1.

bool radioNumber = 1;

Upload that sketch now to the second NanoRF24.

Connect a USB cable from your computer to one of the two NanoRf24. Then start a serial terminal program (hyperterminal, putty etc...). Use parameters 115200,8,N,1.

A successful communication between the two units will shown as below:

*** PRESS 'T' to begin transmitting to the other node
*** CHANGING TO TRANSMIT ROLE -- PRESS 'R' TO SWITCH BACK
Now sending
Sent 17569448, Got response 17569448, Round-trip delay 1960 microseconds
Now sending