nRF24L01 socket adapter (5 V to 3.3 V) with ESP32
Supply 5 V
Bus SPI
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VCC | Power | VIN | 5 V in: the on-board AMS1117 makes 3.3 V for the radio |
| GND | Ground | GND | |
| CE | Input (the ESP32 drives it) | D25 | Chip enable |
| CSN | SPI chip select | D5 | SPI chip select |
| SCK | SPI clock | D18 | |
| MO | SPI MOSI | D23 | MOSI |
| MI | SPI MISO | D19 | MISO |
| IRQ | Interrupt | D35 | Interrupt, optional |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
This module is sold for 5 V. Its outputs may be 5 V: use a level shifter or a voltage divider on ESP32 inputs.
Starter code (Arduino)
void setup() { pinMode(25, OUTPUT); } // CE
void loop() {
digitalWrite(25, HIGH);
delay(500);
digitalWrite(25, LOW);
delay(500);
}
Sources
- Advanced Monolithic Systems AMS1117 datasheet, 3.3 V fixed output, 1 A
- Nordic nRF24L01+ product specification, Digital inputs are 5 V tolerant; supply 1.9 to 3.6 V
Try it in 3D in BoardPilot
Related parts
CC1101 sub-GHz radio moduleENC28J60 Ethernet moduleLoRa SX1278 (Ai-Thinker Ra-02)Micro SD card module (SPI)nRF24L01+ 2.4 GHz radionRF24L01+ PA/LNA radio with antenna
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.