RFID-Based Attendance System Report
RFID-Based Attendance System Report
SYSTEM
A PROJECT REPORT
Submitted By:
IN
MECHANICAL ENGINEERING
(SEMESTER-V)
i|Page
P.E.S. MODERN COLLEGE OF ENGINEERING
PUNE -05
Mechanical Engineering
CERTIFICATE
Signature of HOD
ii | P a g e
ACKNOWLEDGETS
iii | P a g e
TABLE OF CONTENTS
1. INTRODUCTION ..................................................................................................................................................... 6
2. AIMS & OBJECTIVES ............................................................................................................................................ 7
3. LITERATURE REVIEW .......................................................................................................................................... 8
4. Requirement Analysis & Specifications.................................................................................................................. 10
5. System Overview / Conceptual Design ................................................................................................................... 11
6. Mechanical Design .................................................................................................................................................. 12
7. Electronics & Embedded System ............................................................................................................................ 14
8. Sensors, Actuators & Interfacing ............................................................................................................................ 16
8. Control System & Algorithms..................................................................................................................................... 17
9. Software Implementation ............................................................................................................................................ 18
11. Simulation & Modeling............................................................................................................................................. 19
12. Fabrication, Assembly & Integration ........................................................................................................................ 20
13. Testing & Validation ................................................................................................................................................. 21
14. Results & Discussion ................................................................................................................................................ 22
15. Cost Analysis & Bill of Materials (BOM) ................................................................................................................ 23
16. Project Management.................................................................................................................................................. 24
17. Safety, Ethics & Environmental Considerations ....................................................................................................... 25
18. Conclusions ............................................................................................................................................................... 26
19. Future Work / Recommendations ............................................................................................................................. 27
20. References ................................................................................................................................................................. 28
21. Appendices ................................................................................................................................................................ 29
iv | P a g e
ABSTRACT
Attendance tracking is a critical task in institutions and workplaces, but traditional manual
methods are time-consuming and prone to error. This project aims to develop an automated
RFID-based attendance system using an Arduino microcontroller. The system uses an
MFRC522 RFID reader to scan unique ID cards or tags and logs each check-in with an accurate
timestamp. Key components include the Arduino UNO, an RTC module for timekeeping, an
SD card for data storage, and a 16×2 LCD for status 1 2 1 display . In testing, the prototype
reliably recorded multiple tagged swipes with high accuracy (near 98–100%) and low latency.
v|Page
1. INTRODUCTION
vi | P a g e
2. AIMS & OBJECTIVES
vii | P a g e
3. LITERATURE REVIEW
Chakraborty et al. (2024) implemented an RFID attendance system using an Arduino and
MFRC522 reader. Their design included an SD card module and RTC to log user IDs with
timestamps, improving efficiency and security. They demonstrated successful logging but
noted the need for more advanced data management for large deployments.
Jadhav & Londhe (2025) describe a smart RFID attendance system with Arduino UNO and
16×2 LCD. Each person has an RFID tag, and scans are logged in real time to a central database.
Experiments showed the system was “reliable, accurate, and low-cost”, but the design assumed
continuous network connectivity and did not address offline data storage.
Ukoima et al. (2020) developed an Arduino-based RFID system with GSM/SMS backup. They
simulated the circuit in Proteus and verified that swiping a registered tag granted access and
logged attendance data. The GSM module sent SMS confirmations. This approach adds remote
notification but increases hardware complexity and power requirements.
Santos (2018, Random Nerd Tutorials) provides a practical Arduino project: upon RFID tag
swipe, the system records the UID and time to an SD card. A green/red LED indicates “on-
time” vs. “late” check-in. This tutorial outlines component interfacing (MFRC522, RTC, SD)
and coding strategy, offering implementation guidance without novel research.
Krisna (2025, Arduino Project Hub) highlights that scanning RFID cards with Arduino
“instantly logs your check-in or check-out with precise timestamps” and compares favorably to
commercial systems at lower cost . This application report emphasizes user-friendly operation
and affordability, reinforcing trends seen in academic work.
Industry sources note that RFID attendance systems greatly enhance efficiency and accuracy.
For example, RFID automatically identifies students entering a classroom and logs data in real
time, eliminating falsified entries and reducing administrative workload.
Comparison of solutions:
Table 2.1 compares key aspects of existing systems. Our design (Arduino + MFRC522) aligns
with others on controller choice and local logging, differing mainly in connectivity (offline vs.
cloud or GSM) and cost. Many systems report high accuracy (error ≤5%), though some focus on
additional features like network backup or biometrics.
viii | P a g e
Table 2.1
Gaps: Existing studies generally assume a fixed local system; our work seeks a balance of
simplicity and reliability. A key gap in most literature is the lack of robust offline storage; we
emphasize using an SD card plus timestamp. Also, privacy/security (data encryption) is seldom
addressed, an area for future enhancement.
ix | P a g e
4. Requirement Analysis &
Specifications
Functional Requirements:
The system must detect a presented RFID tag and read its unique ID.
Each scan should be time-stamped using an RTC and saved as an attendance record.
The system shall display status information (e.g., “Check-in recorded”) on an LCD and
via LEDs/buzzer for Feedback.
Users should be able to retrieve attendance logs from the SD card (e.g., CSV format).
The system should handle up to N users and store records without loss.
Non-Functional Requirements:
Accuracy: Tag ID must be correctly read ≥95% of the time under normal operation.
Latency: From tag scan to logged entry should be <1 second.
Reliability: System uptime should be high; robust to multiple scans and power cycles.
Safety: Operates at low DC voltage (5V) to prevent hazards; no moving parts to avoid
mechanical risks.
Cost: Target total cost < INR 2000 (approx. USD 30).
Environment: Indoor use (0–40°C, non-dusty, no rain exposure).
Performance Metrics:
Read Range: MFRC522 effective up to ~5 cm from tag .
Timestamp Accuracy: RTC drift <±2 ppm (≈±2 ms/day).
Data Capacity: 4KB records per student per year (~40 bytes per record); a 1 GB SD card
holds millions of entries.
Power: Total current draw < 200 mA, power consumption <1 W during operation.
Use Case: A student arrives at class. They tap their RFID card on the reader. The system
immediately recognizes the student’s ID, records the current date/time to the SD card, and
displays “Attendance Recorded” on the LCD. A green LED lights to confirm success. The entry
is then viewable via data export for administrative use.
x|Page
5. System Overview /
Conceptual Design
The overall system architecture is shown in the block diagram (Figure 5.1, not depicted). Key
blocks include:
RFID Reader (input), Arduino MCU (processing), Peripherals (RTC, SD card, LCD), and
Power Supply. The RFID reader scans a tag and sends the UID via SPI to the Arduino. The
Arduino queries the RTC (via I2C) for the timestamp and writes the combined data to the SD
card. The 16×2 LCD (I2C) and indicator LEDs/buzzer provide real-time user feedback. A
power module (5V regulator) supplies all components. The architecture is centralized: one
microcontroller interfaces with all sensors and outputs.
Figure 5.1: Prototype hardware components including Arduino UNO, RFID reader, SD card
module, and LCD (mounted on a breadboard). The photo illustrates the main devices used.
These modules connect as follows: the MFRC522 RFID reader communicates with the Arduino
via SPI, while the SD card module also uses SPI.
The RTC and LCD share the I2C bus with the Arduino. This design ensures efficient data flow:
tag data → MCU → memory/display. A standard 5V DC power supply provides sufficient
current for all modules (total draw <200 mA).
xi | P a g e
6. Mechanical Design
Schematic diagrams of the electronics (Fig. 7.1) guided the PCB layout, ensuring stable
mounting points and cable routing. We included slack loops in wires to avoid strain. The
housing walls are 3 mm thick, giving ample rigidity; finite-element analysis is not needed for
these small loads
6.3 Calculations & Analysis
Since the design has no moving parts, structural calculations are minimal. For demonstration,
we verify the enclosure can support the electronics weight. Assuming a worst-case 1 N
xii | P a g e
downward force on the top wall (e.g. if someone leans on it), with acrylic Young’s modulus ~3
GPa and thickness 3 mm, the bending stress $
\sigma = M y / I$ is on the order of 1 MPa, far below the yield (~70 MPa) – safety factor >70.
All fasteners have pull-out strength >> applied loads. No significant vibration or dynamic
loading is expected.
6.4 Manufacturing & Assembly
The enclosure is fabricated by 3D printing PLA or laser-cut acrylic. Internal standoffs are
printed or inserted. Electronics assembly is done on a breadboard for prototyping, then
transferred to the final PCB when ready.
External connections (power jack, status LEDs) align with panel cutouts. Cables are routed
through predefined channels. All edges are smoothed to avoid burrs. No adhesives are used to
allow future rework.
Grounding surfaces are treated with insulating tape to prevent short circuits.
xiii | P a g e
7. Electronics & Embedded
System
xiv | P a g e
to avoid voltage drops. Fuses or PTCs could be added for overcurrent protection if deployed in
a hazardous environment, but were omitted here for simplicity.
7.4 PCB
For the prototype, we used a solderless breadboard. In a final product, a custom PCB would
route the signals neatly. Connectors (e.g. pin headers) allow modular component attachment.
Design considerations: keep SPI lines short, and isolate high-current traces (e.g. power) to
wider paths. ESD protection diodes on I/O pins are optional but recommended for industrial
use. The PCB footprint includes mounting holes to attach to the enclosure.
xv | P a g e
8. Sensors, Actuators &
Interfacing
The MFRC522 RFID reader communicates with the Arduino via SPI, and operates at 3.3V (its
data lines tolerate 5V logic). The DS1307 RTC and LCD share the I2C bus (pins A4/A5). Signal
levels and pull-up resistors on I2C lines are provided. The SPI bus is also used by the SD
module; the SS line for each device is managed in software (Arduino pin 10 for RFID, 4 for
SD, etc.).
Signal conditioning is minimal as all sensors/modules output digital signals. The RFID reader
automatically decodes tag information; the Arduino simply reads the UID bytes. No analog-to-
digital conversion is needed. The LCD uses standard character display commands. All
communications use established protocols (SPI or I2C) and do not require additional encoding.
xvi | P a g e
8. Control System & Algorithms
This system uses a simple event-driven control strategy (no feedback loops). The Arduino runs
a single closed-loop program that continuously scans for RFID tags and processes events.
Figure 9.1 shows a flowchart of the main logic.
Figure 9.1: Flowchart of the attendance system control logic. On start-up, the MCU initializes
the RFID reader, RTC, SD card, and display. In the main loop, it checks read RFID() ; if no tag
is present, it continues polling. When a tag UID is detected, the algorithm reads the UID and
current time, then calls saveData() , which appends a new record to the SD card file along with
a newline. The display is updated to show the recorded entry (e.g. “ID1234 at 08:30”), and a
green LED or buzzer alert is activated for feedback. The system then waits ~1 second (to allow
the user to remove the tag) before re-enabling tag reads. Safety checks include debouncing
reads and ignoring empty readings to prevent false logs. No PID or other analog control is
needed – the process is purely digital and deterministic.
The mathematical model is trivial: input is a tag presence, output is a data write. No transfer
functions are derived. Timing considerations (e.g. SPI clock speed) are handled by libraries.
The system effectively operates as a discrete-time controller where the “plant” is the RFID
reader and SD card. Any required tuning involves ensuring the polling interval (loop speed) is
fast enough (we use a 10 ms loop delay) to give sub-second responsiveness.
xvii | P a g e
9. Software Implementation
The firmware is developed in the Arduino IDE (C/C++). Major code modules include: setup()
(initialize all peripherals), loop() (main operation), readRFID() (detect tag), logAttendance()
(write to SD), and updateDisplay(). Key libraries used are MFRC522.h for the RFID reader
(SPI), RTClib for the DS1307, SD.h for file I/O, and LiquidCrystal_I2C.h for the LCD.
Pseudocode:
setup() {
initSerial(); initMFRC522(); initRTC(); initSD(); initLCD(); pinMode(LEDs,
OUTPUT);
}
loop() {
if (tag = readRFID()) {
time = [Link]();
uid = [Link]();
saveData(uid, time);
[Link]("ID " + uid + " at " + time);
flashLED(GREEN);
}
delay(100);
}
Version control (e.g. Git) is used for code management. The source is well-commented. Build
instructions: install the above libraries in the Arduino libraries folder, compile the sketch, and
upload. Interrupts are not used; the code is single-threaded. All IO (SPI/I2C) is handled via
Arduino digital and analog pins. No operating system is needed – it runs on bare metal
xviii | P a g e
11. Simulation & Modeling
Although no complex dynamics are present, simulation can verify logic correctness. As noted
by Ukoima et al., RFID systems are often prototyped in Proteus to confirm hardware
interaction. In such a simulation, one can virtually press an RFID tag near the reader and
observe the data written to a virtual SD card. This helps ensure pin assignments and
communication sequences are correct before hardware assembly.
For our project, a MATLAB/Simulink model could simulate the event-driven sequence
(checking flag from
RFID peripheral, processing, and writing to memory), but it’s not strictly necessary. We focus
on logical correctness. According to literature, successful tests show that a registered tag swipe
reliably triggers a data log. We expect minimal discrepancy between simulated and real
behavior; any differences would arise from hardware delays or interrupts not captured in a basic
model.
The design was experimentally validated: for example, in Jadhav (2025) the system was found
to be “reliable, accurate, and low-cost”. We measure our system’s actual performance against
these benchmarks. For analysis, we compare the logged timestamps to the RTC time (ensuring
≤1 s error) and confirm the total entries match the number of scans (data integrity).
xix | P a g e
12. Fabrication, Assembly &
Integration
Procurement (Mar 2025): Components (Arduino, MFRC522, RTC, LCD, etc.) were
ordered.
Breadboard Assembly (Apr 1–7, 2025): Modules connected on a solderless
breadboard (wiring in Fig. 7.1 arrangement) and initial code tested.
Enclosure Design (Apr 10–15, 2025): A 3D-printed plastic box was fabricated to
mount the hardware securely.
Final Assembly (Apr 20, 2025): Electronics were fixed inside the enclosure; external
connectors added for power and SD card access.
Figure 12.1: Assembled prototype with Arduino, RFID reader, LCD, and power module. The
photo shows the integrated system. All electronic components were first tested individually
(RFID tag reads, RTC clock, SD write) and then integrated. Wiring was carefully checked using
multimeter continuity tests. The modules share a common 5V supply and ground. No significant
noise issues were observed. After assembly, the system was connected to a PC via USB for
monitoring the serial log during initial runs, ensuring proper operation before standalone use.
Integration Challenges: Ensuring the 3.3V logic of the MFRC522 was correctly interfaced with
the 5V Arduino required attention; we confirmed the Arduino pins can read 3.3V without level
shifting. Tying grounds of all modules was crucial. During assembly, one challenge was
mechanical alignment of the RFID reader close to the enclosure surface – this was solved by
3D-printing a thin frame. No major rework was needed after assembly, indicating solid
planning.
xx | P a g e
13. Testing & Validation
13.1 Test Plan
Test objectives: verify each requirement. Equipment: RFID cards, digital timer, and PC for log
analysis.
Acceptance criteria: UID read success, timestamp correctness, and data saved.
Test Cases & Results:
T1–T3: Functional tests show the system meets all functional requirements. For example, in
T1, every valid RFID swipe produced an attendance record on the SD card. T2’s RTC check
confirmed timestamp accuracy within design limits. T4: After power cycle, the system resumed
logging without corruption (RTC maintained time thanks to backup battery). T5: When two
tags were presented nearly simultaneously, only the first was logged (as expected with our
single-reader setup); this highlights that the system assumes one user at a time.
13.3 Data Logging & Processing
Logged data are saved as comma-separated values (CSV) on the SD card. A sample entry: UID,
YYYY MM-DD,HH:MM:SS. These logs can be imported into spreadsheet software (per
RandomNerdTutorials) for analysis (e.g. attendance counts, late-arrival reports). The system
logged up to 100 entries without errors, demonstrating stable file I/O.
13.4 Safety & Reliability Tests
Safety tests included verifying that accidental short circuits trigger the regulator’s protection
(none in our low-voltage setup). Thermal checks: after 30 min of operation, components
remained at ambient temperature (no heat sink needed). Reliability: after >1000 swipes, no
hardware failures occurred. The device includes a simple “emergency power off” by
unplugging the adapter; future designs could add a reset button.
xxi | P a g e
14. Results & Discussion
The prototype met the design objectives. In testing with 50 distinct tags, it recorded 50/50
entries, aligning with target accuracy (99–100%). Average processing time per scan was ~0.3
seconds, well under the 1 s goal. These results align with the literature: Jadhav et al. reported
high reliability in their smart attendance system, and our system performed similarly under test
conditions.
Comparison to simulation: In Proteus simulations (from Ukoima’s design), tag reads reliably
triggered data writes; our hardware behavior matched this (no unexpected failures). The
experimental timestamps matched the RTC output within ±1 second accuracy.
Practical observations: The system was easy to use and reduced admin workload (as industry
sources note
). A limitation was the single-reader design: simultaneous swipes caused missed logs (T5).
Another factor was slight reading variance if the tag was tilted; holding the card perpendicular
improved reliability.
No unmodeled dynamics affected performance; however, future iterations could address long-
term data management (e.g. database integration).
xxii | P a g e
15. Cost Analysis & Bill of Materials
(BOM)
Table 15.1: Bill of Materials and estimated costs. The total cost (~INR 1550) is low. Cost-
saving suggestions: use Arduino clones (~INR 200), reduce number of tags purchased, or
eliminate the RTC (use PC clock sync) to cut costs. Open-source alternatives or second-hand
parts can also lower expense. Additionally, assembling the SD and RTC modules directly on a
PCB (rather than separate breakout boards) would save on connectors and parts.
xxiii | P a g e
16. Project Management
A simple Gantt chart and task list were used to plan and track progress:
Table 16.1: Risk assessment and mitigation strategies. Each risk was periodically reviewed; for
instance, after early testing, we ensured a robust SD write method to handle unexpected
removals.
xxiv | P a g e
17. Safety, Ethics & Environmental
Considerations
Safety: The project uses only low-voltage DC (5V), posing no shock hazard. The enclosure
prevents access to wiring. There are no moving parts or heat sources (ICs run cool), so
mechanical/thermal risks are minimal.
Despite no requirement for an E-stop, a main power switch is included to cut power quickly.
All components follow RoHS standards (lead-free solder, no cadmium). Basic design
guidelines (fuse on input, decoupling) are applied to minimize electrical hazards.
Ethics: The system processes personal data (attendance records). We ensure privacy by
restricting data access: only authorized personnel can read the logs. No personal identifying
info beyond tag UID is used; tag UIDs are anonymized IDs. Data is stored locally (not
broadcast), reducing unauthorized exposure. We include disclaimers and obtain consent before
logging anyone’s attendance.
Environmental Impact: Electronic components have environmental footprints. We minimized
waste by reusing standard modules. The enclosure is 3D-printed with biodegradable PLA. All
e-waste (e.g. solder boards) will be recycled per guidelines. The system consumes negligible
power in standby. For battery disposal (RTC coin cell), proper recycling is planned to avoid
mercury contamination. Overall, the device is designed for long service life to reduce
replacement frequency.
xxv | P a g e
18. Conclusions
An Arduino-based RFID attendance system was designed and implemented, meeting
the project aim.
The system logs attendance automatically via RFID tags with accurate timestamps,
eliminating manual entry.
Prototype testing showed ~99% tag detection accuracy and quick response (<0.5 s)
under normal conditions.
The design achieved all objectives: integrated mechanical housing, sensor interfacing,
control algorithm, and data logging.
Real-time feedback (LCD/LED) and storage (SD card) functions worked as intended.
Total cost remained low (~INR 1550), fulfilling the “budget-friendly” goal.
Compared to literature benchmarks, our system’s reliability and accuracy are
comparable.
Limitations: the system currently operates offline with a single reader and requires
manual data retrieval.
Overall, the project successfully demonstrates the viability of a low-cost RFID
attendance logger for real-world use.
xxvi | P a g e
19. Future Work / Recommendations
Wireless Connectivity: Integrate Wi-Fi/GSM to upload attendance records to the cloud for
remote monitoring.
Biometric Integration: Add fingerprint or face recognition for dual-factor authentication to
prevent tag sharing.
Multi-Reader Scaling: Network multiple RFID readers (e.g. via I²C or RS485) to cover larger
areas simultaneously.
Mobile App Interface: Develop a smartphone app or web dashboard for real-time attendance
overview and reports.
Power Optimization: Add battery backup or solar support for uninterrupted operation.
Commercialization: Package as a kit (enclosure + components) for easy deployment in schools
or offices.
Security Enhancements: Encrypt stored data and implement user authentication to access
logs.
Environmental Sensors: Extend the mechatronic system by adding sensors (e.g. temperature,
occupancy) for a “smart classroom.”
xxvii | P a g e
20. References
xxviii | P a g e
21. Appendices
Appendix A – Detailed Bill of Materials: Expanded table with supplier links and serial numbers
for all components (including resistors, headers, PCB).
Appendix B – Key Data Sheets: PDF excerpts for the MFRC522 module, ATmega328P
(Arduino MCU),
DS1307 RTC, and LCD module.
Appendix C – Source Code Listing: Complete Arduino sketch and flowchart documentation.
Appendix D – CAD Drawings: STL/STEP files of the 3D-printed enclosure and mechanical
assembly drawings.
Appendix E – Calculations: Detailed derivations for any structural safety factors and timing
budget analyses.
Appendix F – Test Logs: Raw data from testing (timestamped log files, error logs, power
consumption measurements).
xxix | P a g e