连线 5v 3.3皆可 gnd
Optimized high speed nRF24L01+ driver class documentation: Optimized High Speed Driver for nRF24L01(+) 2.4GHz Wireless Transceiver
同时下载同一个程序
案例默认引脚ce ces ,7,8
可以 修改为 9,10
安装库
第一个示例
两个模块,分别输入 0 与 1 按T 然后进行对话
radio hardware is not responding!!
RF24/examples/AcknowledgementPayloads
Which radio is this? Enter '0' or '1'. Defaults to '0'
radioNumber = 1
*** PRESS 'T' to begin transmitting to the other node
*** CHANGING TO TRANSMIT ROLE -- PRESS 'R' TO SWITCH BACK
Transmission successful! Time to transmit = 680 us. Sent: Hello 0 Recieved 8 bytes on pipe 0: World 181
显示结果
一个接收,一个发送
RF24/examples/AcknowledgementPayloads
Which radio is this? Enter '0' or '1'. Defaults to '0'
radioNumber = 0
*** PRESS 'T' to begin transmitting to the other node
Received 8 bytes on pipe 1: Hello 11 Sent: World 11
Received 8 bytes on pipe 1: Hello 12 Sent: World 12
Received 8 bytes on pipe 1: Hello 13 Sent: World 13
Received 8 bytes on pipe 1: Hello 14 Sent: World 14
Received 8 bytes on pipe 1: Hello 15 Sent: World 15
Received 8 bytes on pipe 1: Hello 16 Sent: World 16
Received 8 bytes on pipe 1: Hello 17 Sent: World 17
Received 8 bytes on pipe 1: Hello 18 Sent: World 18