NanoRF24: Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:IMG_1247_small.png | right | 300px]]
[[File:IMG_1247_small.png | right | 300px]]
[http://lechacalshop.com/gb/rf/34-nanorf24-arduino-nano-and-rf24-adaptor-board.html Link to the shop]
=Overview=
=Overview=



Latest revision as of 12:49, 1 June 2021

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