I’m using my PI as the central hub running OpenHAB, a MQTT broker and other services for home automation. On the Pi I am using a NRF24L01+pa+lna SMA Antenna Wireless Transceiver, this provide more range (1000m) from my main unit. All the nodes in the network will be running on Arduino chips and using a Mesh network so the house should have good coverage. First, wiring in the NRF24L01 to the Pi.Using Female-to-Female dupont cables use the following table to connect the units, the NRF24L01 is ~3-3.6V.
Raspberry PI 1 - B+
BCM 8 /CE0 (24)
BCM 22 (15)
BCM 10 / MOSI (19)
BCM 11 / SCLK (23)
BCM 9 / MISO (21)
I recommend checking the connections twice. A good Pi Layout can be found here: Raspberry Pi GPIO Layout Worksheet Now we have the wiring in place time to get the pi working. This assume you have followed guides on this site or other site and you are running rasberian. As I am using the awesome work by TMRh20 we are installing the bits in his github repo. Connect to the pi using SSH and run the following commands.
chmod +x install.sh
for D in *; do echo “Building and Installing $D”; cd “$D”; sudo make install; cd ..; done
After you run the installer.sh file it will prompt you to install components. Go ahead and select yes for all of them. If you ever need to do a update of the libraries in the future you will need to delete all the folders under rf24libs. Now the pi is ready to go with the RF unit and needed libraries.