1.2 KiB
1.2 KiB
Ping-Pong Example
Send data from primary to secondary.
In the secondary, sent back received data.
Configuration
nRF24L01 Address Register Setting
Primary | Secondary | ||||||
---|---|---|---|---|---|---|---|
TX_ADDR "FGHIJ" |
RX_ADDR_P0 "FGHIJ" |
RX_ADDR_P1 "ABCDE" |
TX_ADDR "ABCDE" |
RX_ADDR_P0 "ABCDE" |
RX_ADDR_P1 "FGHIJ" |
||
(Send Data) | -> | -> | -> | -> | -> | (Get Data) | Data to Secondary |
(Get Ack) | <- | <- | <- | <- | (Send Ack) | Ack to Primary | |
(Get Data) | <- | (Send Data) | Data to Primary | ||||
(Send Ack) | -> | -> | (Get Ack) | Ack to Secondary |
Setting Register
The underlined address match on the sending and receiving sides.
Primary Register
Secondary Register
Communicat with Arduino Environment
Run this sketch.
ArduinoCode/Ping-Pong