🎯 Build Your Own RFID Attendance System Using Arduino + ESP32 + Google Sheets
📅 By Dinesh | Tech DIY Projects | May 2025
🚀 Introduction
Have you ever wanted to build a smart attendance system that logs student or staff attendance directly into Google Sheets in real time?
In this tutorial, I’ll show you how I created a WiFi-connected RFID attendance system using:
-
✅ Arduino UNO (for RFID + DFPlayer)
-
✅ ESP32 (for WiFi + Google Sheet logging)
-
✅ Google Apps Script (to act as a cloud database)
Let’s dive in!
🧠 Project Concept
Here’s how the system works:
-
User scans an RFID card.
-
Arduino detects the card, plays a welcome sound using DFPlayer, and sends the name to ESP32.
-
ESP32 receives the name via serial and logs it to a Google Sheet using a webhook.
-
Done! The name and timestamp are saved in the cloud.
🧰 Components Used
Component | Quantity |
---|---|
Arduino UNO | 1 |
ESP32 (DevKit v1) | 1 |
MFRC522 RFID Reader | 1 |
RFID Tags/Cards | 2+ |
DFPlayer Mini + Speaker | 1 |
I2C LCD 16x2 Display | 1 |
Jumper Wires | - |
Voltage Regulator (if needed for 3.3V logic level) | 1 |
Breadboard | 1 |
🔌 Connections
RFID & DFPlayer to Arduino UNO:
-
RFID SDA → D10
-
RFID RST → D9
-
DFPlayer TX → D4
-
DFPlayer RX → D5
-
LCD I2C → A4 (SDA), A5 (SCL)
Arduino to ESP32:
-
Arduino TX (D1) → ESP32 RX (GPIO 16)
-
IMPORTANT: Use voltage divider or level shifter to avoid 5V-to-3.3V damage to ESP32.
📟 Arduino Code
The Arduino reads the card, displays info, and plays sound:
📡 ESP32 Code (Receives & Sends to Google Sheet)
🎉 Final Result
✅ RFID card scanned
✅ Welcome message on LCD
✅ Sound plays via DFPlayer
✅ Name logged in Google Sheet
No need for SD cards or Excel files — everything is real-time in the cloud 🌐.
❤️ Let’s Connect
Have doubts or want to build your own version?
📧 Contact me on: dtrendchannel@gmail.com
No comments:
Post a Comment