RFID attendance with live register
Roll call takes ten minutes of every lab hour and proxies are common. RFID cards with a live register let faculty see attendance at once and export it.
- Parts
- ₹2,565
- Build
- 10 weeks
- Board
- ESP32
- Objectives
- 6
Block diagram
- RC522 RFID readerReads student cards
- CameraCaptures a photo when the event happens+
- ESP32Checks the card and logs time
- LCD and buzzerConfirm each scan
- Web registerShows and exports attendance
- Data loggerStores timestamped readings for analysis+
Objectives
- To read and identify RFID cards within one second.
- To record date and time of each scan (NTP time) without duplicates in one period.
- To show a live register on a web page and export it as CSV.
- To measure read range and failed reads over 200 scans.
- To capture and store an image automatically when an event is detected.
- To log timestamped data and analyse it to support the conclusions with evidence.
Parts and specifications
- ESP32 DevKit V1Dual-core 240 MHz, 520 KB SRAM, Wi-Fi + Bluetooth, 3.3 V logic, 12-bit ADC (use ADC1 pins when Wi-Fi is on)₹450Buy
- RC522 RFID reader with card and tag13.56 MHz MIFARE, reads up to about 5 cm, SPI up to 10 Mbit/s, 3.3 V only₹180Buy
- 16×2 LCD with I²C backpackHD44780, PCF8574 at 0x27 or 0x3F, 5 V, contrast trimmer on the back₹220Buy
- Wires and box₹150
- ESP32-CAM with OV2640ESP32 + 4 MB PSRAM + 2 MP OV2640 camera, microSD slot, needs 5 V 500 mA for stable Wi-Fi₹550Buy
- DS3231 RTC moduleTemperature-compensated, ±2 ppm (about 1 minute a year), I²C 0x68, CR2032 backup₹150Buy
Total about ₹2,565 at typical online prices. Tap a part for its pinout and datasheet notes.
Design calculations
One read plus storage takes about 100 ms, so one reader handles about 60 students in under 2 minutes, even with queueing.
Each record (UID 4 bytes + time 4 bytes + student index 2 bytes) is 10 bytes; 60 students × 6 periods × 100 days = 360 KB, which fits in ESP32 flash with LittleFS.
Ignore the same UID within one period (for example 50 minutes) so a second tap does not double count.
Pin map
| Signal | Pin or connection |
|---|---|
| RC522 SDA(SS) / SCK / MOSI / MISO | GPIO 5 / 18 / 23 / 19 |
| RC522 RST | GPIO 22 |
| RC522 VCC | 3.3 V only |
| LCD SDA / SCL | GPIO 21 / 15 (second I²C or move RST) |
| Buzzer | GPIO 27 |
Firmware outline
- Connect to Wi-Fi and set the clock from NTP (Asia/Kolkata, UTC+5:30).
- Load the student list (UID → name, roll number) from a CSV in flash.
- Poll the RC522; on a new card read the UID.
- If unknown, beep twice and show 'Not registered'.
- If known and not already marked this period, save UID and time, beep once, show the name.
- Serve /register (today's table) and /export.csv over a small web server.
Test plan
| Test | Expected result |
|---|---|
| Registered card | Name shown and beep within 1 s |
| Same card twice in one period | Counted once |
| Unknown card | Rejected with two beeps |
| 200 scans | Failed reads counted, range measured in cm |
| Export | CSV opens in a spreadsheet with correct times |
These rows start your results table when you plan the project.
Viva practice
Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 6.
Make it yours
One or two upgrades for a mini project, two to four for a major one.
Build these first
Datasheets and sources to cite
- NXP MFRC522 datasheet
- ISO/IEC 14443 Type A
- Espressif ESP32 datasheet
About this project
How much does the rfid attendance with live register project cost?
About ₹1,255 for the parts in the base list: ESP32 DevKit V1, RC522 RFID reader with card and tag, MIFARE Classic 1K cards × 10, 16×2 LCD with I²C backpack, Active buzzer 5 V, Breadboard 830 points, Wires and box.
How long does it take?
About 6 weeks for the base project, built on an ESP32. Each upgrade adds time.
Which branches is it suitable for?
Electronics and Communication, Computer Science / IT (IoT, AI), Diploma (any electronics branch), as a mini or major project.
Which pins and design calculations does it use?
RC522 SDA(SS) / SCK / MOSI / MISO on GPIO 5 / 18 / 23 / 19; RC522 RST on GPIO 22; RC522 VCC on 3.3 V only. Worked calculations on this page: scan rate, storage, duplicate window.
How do I test it?
Registered card: Name shown and beep within 1 s. Same card twice in one period: Counted once. Unknown card: Rejected with two beeps. 200 scans: Failed reads counted, range measured in cm. Export: CSV opens in a spreadsheet with correct times.
What are the objectives?
To read and identify RFID cards within one second. To record date and time of each scan (NTP time) without duplicates in one period. To show a live register on a web page and export it as CSV. To measure read range and failed reads over 200 scans.
