Repository navigation
Hardware and Wiring
| Part | Notes |
|---|---|
| ESP32-S3 development board | Tested with a QFN56 v0.2 board, 8 MB octal PSRAM, 16 MB flash, 40 MHz crystal |
| PN532 NFC/RFID module V3 | Must be switched to SPI mode |
| 16x2 LCD with PCA8574 I2C backpack | Usually at 0x27 or 0x3F
|
| Passive buzzer | Connected to GPIO 6 |
| USB data cable | Some USB cables are charge-only |
| Breadboard and jumper wires | |
| 2.4 GHz Wi-Fi network | Needed for NTP; admin badges still work without it |
The firmware is built with the ESP32 Arduino core 3.x. It also needs
Adafruit PN532, LiquidCrystal I2C and ArduinoJson 7.x. Installation steps
for all three systems are on Installation.
| SW1 | SW2 | Mode |
|---|---|---|
| OFF | ON | SPI (use this) |
| OFF | OFF | HSU (UART) |
| ON | OFF | I2C |
| ON | ON | Reserved |
Set SW1 = OFF and SW2 = ON. Some clones print the switch table in a
different order; follow the silkscreen on your board if it differs. If the
reader does not respond, check the switches and the SPI wiring before changing
the firmware. The boot log prints [boot] rfid_.begin() OK even when the PN532
check failed, so do not use that line as proof that the reader initialized.

The diagram still carries the old "Active Buzzer" label. The firmware expects a passive buzzer; the connection is the same.
| ESP32-S3 | PN532 | Signal |
|---|---|---|
| GPIO 12 | SCK | SPI clock |
| GPIO 13 | MISO | Master in |
| GPIO 11 | MOSI | Master out |
| GPIO 10 | SS / NSS | Chip select |
| 3V3 | VCC | Power; do not use 5 V |
| GND | GND | Ground |
| ESP32-S3 | LCD backpack | Signal |
|---|---|---|
| GPIO 8 | SDA | I2C data |
| GPIO 9 | SCL | I2C clock |
| 5V | VCC | Power; the backpack needs 5 V |
| GND | GND | Ground |
| ESP32-S3 | Buzzer | Signal |
|---|---|---|
| GPIO 6 | Signal / + | PWM tone |
| GND | - | Ground |
The buzzer must be passive. The granted tone is an ascending C-major arpeggio (C5, E5, G5, C6); denied is a descending A-minor sequence (A4, F4, D4, A3). Each note lasts 375 ms.
Power the LCD backpack from 5 V, either from a separate supply or the board's VBUS pin, and connect all grounds together.
GateCore · gatecore-firmware 1.2.0 · gatecore-cli 2.0.1 · ESP32-S3 + PN532
README · Changelog · Issues · MIT License