LiveTypeScriptStable
NFC Attendance
An attendance system built at a KMUTT IoT hackathon. Students check in by tapping an NFC card on a reader box instead of scanning a QR code.
Result
2nd place (1st runner-up) at the KMUTT SIT IoT Hackathon 2026. A check-in takes under a second from tap to confirmation on the box.
Built with
The problem
Checking in meant every student scanning a QR code on their phone, which is slow with a full room. A tap on a reader is faster and needs no phone at the door.
What I built
Team of three. I wrote all of the ESP32 firmware for the reader box, and most of the backend and frontend: about 70% and 60% of the commits, including the check-in logic, card registration, and the register-card page.
How it works
- Students sign up on the web app, register for events, and link their NFC card on the reader box or with their phone's NFC.
- The box reads the card with a PN532 reader and sends its ID to the Express API over HTTPS.
- A known card is marked present and logged. A second tap at the same event is not counted twice.
- The firmware is a 5-state state machine with a touch screen and 4 buzzer tones, so students know the result without looking.
Key decisions
- 01
The box talks HTTPS to the API
Each scan is one request to the backend, so the box doesn't need a database of its own.
- 02
Register at the door
A card the system has never seen is not rejected. The box shows a QR code that opens registration, so a new student is set up on their first tap.
The hard part
Managing all the wires for the TFT touch screen. And the box XD Gluing it all together took the whole night.
