JS
Back to all projects

SNSAS — Smart IoT Terminal

A standalone RFID attendance terminal built around an ESP32-S3. Employs offline-first MicroPython firmware with local flash caching and seamless cloud synchronization.

ESP32-S3MicroPythonRFIDCloud
Controller01

ESP32-S3 with 8MB Flash

01
Card Reader02

MFRC522 13.56MHz RFID

02
User Interface03

0.96″ I2C OLED & Audio Buzzer

03
Firmware04

Offline-First MicroPython

04

HOW IT WAS ACTUALLY BUILT.

[01] The challengeStep 1 of 5
Pop-art ESP32 circuit board with glowing LED
[01] · The challenge

Overpriced biometric hardware with slow roll-call

Commercial biometric attendance terminals often cost hundreds of dollars, require vendor lock-in cloud subscriptions, and freeze when Wi-Fi drops. The goal was to build a fast, sub-$20 standalone terminal that works offline.

[02] · Hardware design

Compact modular reader station

Prototyped the terminal integrating an ESP32-S3 microcontroller, MFRC522 contactless card reader, SSD1306 OLED screen, RTC time synchronization, and distinct audio tones for valid versus duplicate scans.

[03] · Offline flash cache

Sub-10ms instantaneous card verification

Structured local flash storage to cache student ID hashes directly on the microcontroller. When a student taps, verification occurs locally in under 10ms with no network round-trip delay.

[04] · Fault-tolerant sync

Queueing scans during campus network outages

Built a background queue worker that stores scan records in flash memory during Wi-Fi disconnects and automatically flushes records to the cloud in chronological order upon reconnection.

[05] · Cloud integration

Automated classroom reporting and audit

Connected the terminal to Supabase PostgreSQL using atomic RPC functions to prevent double-taps, alongside Google Apps Script webhooks for instant attendance sheet synchronization.

THE NUMBERS BEHIND THE BUILD.

METRIC #01VERIFIED
0123456789 ms

Verification speed

01
METRIC #02VERIFIED
0123456789012345678901234567890123456789 scans

Offline queue capacity

02
METRIC #03VERIFIED
01234567890123456789 %

Cost reduction

03

DEEP DIVE INTO THE STACK.

Architecture specifics across firmware, hardware design, and models.

High-frequency SPI bus communication to MFRC522 transceiver module, dedicated I2C channel for OLED rendering, and hardware PWM buzzer feedback.

Non-blocking event loop managing card polling interrupts, screen animations, network health monitoring, and atomic flash writes.

RESTful JSON payloads submitted with HMAC authentication headers to PostgreSQL stored procedures that ensure idempotency.