Add membership renewals and door unlock

This commit is contained in:
Dorian
2026-05-17 19:17:49 -05:00
parent a28a5756c5
commit e022ac1faa
9 changed files with 410 additions and 79 deletions

View File

@@ -35,14 +35,14 @@ Clean schematic:
![ESP32 to PN532 wiring diagram](../../docs/assets/esp32-pn532-wiring.svg)
Default ESP32 dev board wiring:
Default Seeed Studio XIAO ESP32-S3 wiring:
- PN532 `VCC` -> ESP32 `3V3`
- PN532 `GND` -> ESP32 `GND`
- PN532 `SDA` -> ESP32 `GPIO21`
- PN532 `SCL` -> ESP32 `GPIO22`
- PN532 `IRQ` -> ESP32 `GPIO4`
- PN532 `RSTO/RST` -> ESP32 `GPIO5`
- PN532 `VCC` -> XIAO `3V3`
- PN532 `GND` -> XIAO `GND`
- PN532 `SDA` -> XIAO `D4 / GPIO5 / SDA`
- PN532 `SCL` -> XIAO `D5 / GPIO6 / SCL`
- PN532 `IRQ` -> XIAO `D2 / GPIO3`
- PN532 `RSTO/RST` -> XIAO `D3 / GPIO4`
Set the PN532 board switches to I2C mode.

View File

@@ -2,19 +2,20 @@
// Copy this file to include/l484_door_config.h and fill in local values.
#define WIFI_SSID "your-wifi"
#define WIFI_PASSWORD "your-wifi-password"
#define WIFI_SSID "Sapien"
#define WIFI_PASSWORD "nose2tail"
// Use the on-prem L484 backend reachable from the ESP32 LAN.
#define L484_ACCESS_URL "http://192.168.1.10:2354/api/access/check"
#define L484_CONTROLLER_TOKEN "replace-with-ACCESS_CONTROLLER_TOKEN"
#define L484_DOOR_ID "front-door"
// PN532 I2C pins on a typical ESP32 dev board.
#define PN532_SDA_PIN 21
#define PN532_SCL_PIN 22
#define PN532_IRQ_PIN 4
#define PN532_RESET_PIN 5
// PN532 I2C pins for Seeed Studio XIAO ESP32-S3.
// XIAO D4 = GPIO5/SDA, D5 = GPIO6/SCL.
#define PN532_SDA_PIN 5
#define PN532_SCL_PIN 6
#define PN532_IRQ_PIN 3
#define PN532_RESET_PIN 4
// Card credential modes:
// 1 = submit UID hex. Good for bench testing only.

View File

@@ -1,6 +1,6 @@
[env:esp32dev]
[env:seeed_xiao_esp32s3]
platform = espressif32
board = esp32dev
board = seeed_xiao_esp32s3
framework = arduino
monitor_speed = 115200
lib_deps =