使用nRF24L01进行树莓派和arduino通讯.
参考https://shumeipai.nxez.com/2017/03/20/communication-between-arduino-and-raspberry-pi.html nRF2401代码下载git clone https://github.com/nRF24/RF24.git arduino端代码没什么问题. 树莓派端: 1. Raspberry Pi Model B Rev 2 版本需要修改代码: RF24 radio(22, 0); 替换为: RF24 radio(RPI_V2_GPIO_P1_15, RPI_V2_GPIO_P1_24, BCM2835_SPI_SPEED_8MHZ); sudo ./gettingstarted sudo: unable to resolve host rpi-b: Name or service not known RF24/examples/GettingStarted/ ================ SPI Configuration ================ CSN Pin = CE0 (PI Hardware Driven) CE Pin = Custom GPIO22 Clock Speed = 8 Mhz ================ NRF Configuration =============