Connecting The RF24 Modules
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.
Connect to Arduino
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) |
---|---|
GND | GND |
VCC | 3.3V |
CE | D7 |
CSN | D8 |
SCK | D13 |
MOSI | D11 |
MISO | D12 |
IRQ | - |
Connect to Raspberry Pi
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+) |
---|---|
GND | GND |
VCC | 3.3V (17) |
CE | GPIO22 (15) |
CSN | GPIO8 (24) |
SCK | SCKL (23) |
MOSI | MOSI (19) |
MISO | MISO (21) |
IRQ | - |
The Result
When you're done, your setup will look similar to this:
I think one of the wires is in the wrong Arduino pin in this picture...
No comments:
Post a Comment