PN5180 NFC reader (13.56 MHz, ISO 15693) with ESP32
Supply 3.3-5 V
Bus SPI
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| 5V | Not wired to the ESP32 | — | RF supply: connect to VIN (5 V). The reader needs both 5 V and 3.3 V |
| 3.3V | Power | 3V3 | Logic supply: connect to 3V3 |
| RST | Input (the ESP32 drives it) | D25 | Reset, active LOW |
| NSS | SPI chip select | D5 | SPI chip select |
| MOSI | SPI MOSI | D23 | |
| MISO | SPI MISO | D19 | |
| SCK | SPI clock | D18 | |
| BUSY | Output (the part drives it) | D26 | HIGH while the chip is busy. Wait for LOW before each SPI command |
| GND | Ground | GND | |
| GPIO | Not wired to the ESP32 | — | Not needed |
| IRQ | Interrupt | D35 | Interrupt, optional |
| AUX | Not wired to the ESP32 | — | Test output, not needed |
| REQ | Not wired to the ESP32 | — | Firmware download only. Leave unconnected |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- NXP PN5180 datasheet, SPI host interface with BUSY line; logic supply 3.3 V, RF supply up to 5 V
- Common PN5180 breakout, Header +5V, +3.3V, RST, NSS, MOSI, MISO, SCK, BUSY, GND, GPIO, IRQ, AUX, REQ. Check the silkscreen
Try it in 3D in BoardPilot
Related parts
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.