Date: "02 - July - 2015"

1 articles found.

NRF24L01 Arduino Interfacing

nRF24L01 radio wiring example with Arduino Uno, nRF24L01 radio module, Arduino Uno SPI, RF24 packet communication

Hello friends! Today we will connect two nRF24L01 radio modules to two Arduino boards and send a small command from one board to the other. We will start with the radio interface and wiring, install the RF24 library, and then use one complete sketch with a selectable transmitter or receiver role. The useful part of this project is not simply making a number appear in Serial Monitor. We also want to understand which settings must match, what an acknowledgment proves and how to distinguish an SPI connection problem from a wireless communication problem. Those distinctions make the same hardware much easier to use in a sensor node or remote-control experiment. The examples below target two Uno R3 boards and ordinary nRF24L01+ modules. The original wiring illustrations, demonstration video and library archive remain available. The revised code uses the maintained RF24 interface and explicit packet bytes, so it does not depend on both processors storing an unsigned long in the same format. The nRF24L01 family provides a small 2.4 GHz packet radio controlled through SPI. It is a transceiver, meaning it can both transmit and receive. However, one radio operates in one direction at a time; it does not transmit and receive simultaneously. Automatic acknowledgment works by switching direction during the packet exchange. The nRF24L01+ supports air rates of 250 kbit/s, 1 Mbit/s and 2 Mbit/s. The earlier non-plus device does not support the 250 kbit/s mode. Packet payloads can contain up ...