36 lines
1.2 KiB
Markdown
36 lines
1.2 KiB
Markdown
|
# 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<br>"FGHIJ"|RX_ADDR_P0<br>"FGHIJ"|RX_ADDR_P1<br>"ABCDE"||TX_ADDR<br>"ABCDE"|RX_ADDR_P0<br>"ABCDE"|RX_ADDR_P1<br>"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
|
||
|
|