Monday, January 4, 2016

Tutorial - How to set up simple home automation system - Part VIII

Connecting The RF24 Modules

"A highly integrated, ultra low power 2Mbps RF transceiver for the 2.4GHz band"


On this page

The nRF24L01+ Pins

The nRF24L01+ has 8 pins, and we'll use 7 of them (we don't need IRQ). You can find the right orientation by looking for the ground pin which is marked in its own little square.
RF24 Pin Layout

Connect to Arduino

Male to Female Dupont Wire
With Male-to-Female Dupont wires, you'll connect 7 wires using the mapping in the table below. The Arduino has multiple GND pins - it doesn't matter which you use.
nRF24L01+Arduino (Uno, Nano)
GNDGND
VCC3.3V
CED7
CSND8
SCKD13
MOSID11
MISOD12
IRQ-

Connect to Raspberry Pi

Female to Female Dupont Wire
With Female-to-Female Dupont wires, you'll connect 7 wires using the mapping in the table below. Your Pi might come with a pin layout sheet. If not, here's a very good one that works for both the B and B+ and includes a PDF you can print for easy reference.
nRF24L01+Raspberry Pi (B/B+)
GNDGND
VCC3.3V (17)
CEGPIO22 (15)
CSNGPIO8 (24)
SCKSCKL (23)
MOSIMOSI (19)
MISOMISO (21)
IRQ-

The Result

When you're done, your setup will look similar to this:
Setup with Pi and Uno
I think one of the wires is in the wrong Arduino pin in this picture...


No comments:

Post a Comment