Saturday, October 26, 2024

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages

IoT based Entry and Exit Monitoring System 

The IoT based Entry and Exit Monitoring System is an RFID-based solution for tracking individuals entering and exiting a monitored area. Each person scans their unique RFID tag upon entry or exit, and the system records the action.

This information is displayed in real-time on a web server, indicating whether the individual is inside or has left the area, with color-coded markers (green for entry and red for exit). Additionally, the web page shows the total number of people currently inside the area.

IoT based Entry and Exit Monitoring System
Fig 2. IoT based Entry and Exit Monitoring System

Key Learnings

  • RFID Technology: Utilizing RFID tags and readers for automatic identification and data capture.
  • IoT Web Server: Setting up a web server on ESP32 to display live data, making the system accessible remotely.
  • Real-time Monitoring: Capturing and displaying real-time entry and exit actions of individuals.
  • Data Handling: Storing and managing multiple RFID tags and their statuses.

Bill of Material

ComponentsDescriptionQuantity 
IndusBoard 3cm sized dev board 1
Battery 3.3V1
Round Display SSD1306/ GC9A011
L89 GPS GPS Module 1

Use Case and Application

This system can be employed in various environments such as:

- Advertisement -
  • Workplaces: Track employees entering and exiting offices.
  • Events: Monitor the attendance of participants.
  • Educational Institutions: Automate attendance monitoring of students.

The RFID-based IoT system is simple and efficient, providing a real-time overview of who is inside the monitored area, making it suitable for security and monitoring purposes.

Working Explanation

  1. When an RFID tag is scanned, the system checks if it is a new entry or a repeat scan.
  2. If it is a new entry, the system logs the time, marks it as “entered” with a green dot, and increases the counter of people inside.
  3. If the same RFID tag is scanned again, it is marked as “exited” with a red dot, and the counter is decreased.
  4. This data is displayed in real-time on a webpage, showing the current number of people inside and their entry/exit statuses.

Disclaimer

This project is designed for educational purposes. For real-world deployment, please ensure proper security measures are taken, especially with sensitive data such as RFID tags linked to personal information. Use a test setup with limited funds or dummy data for verification before full implementation.

- Advertisement -

Code for IoT Entry and Exit Monitoring System

Code for IoT based Entry and Exit Monitoring System
Fig 2. Code snippet of RFID based entry exit system

Explanation

  1. Libraries and Definitions: Includes necessary libraries for SPI, RFID communication, and web server functionalities. Defines pin assignments and user data.
  2. Setup Function: Initializes serial communication, SPI, MFRC522, and Wi-Fi. Sets up web server routes for the root URL and attendance page.
  3. Loop Function: Continuously checks for new RFID cards. Reads the UID, compares it to stored UIDs, and updates attendance records. If an RFID card matches, it updates the punch-in or punch-out time and sends an update message to the server.
  4. Web Server Handlers:
    • handleRoot(): Serves a simple HTML page with a link to view attendance.
    • handleAttendance(): Serves an HTML page with a table displaying the attendance records. CSS styles are used to format the table for better readability.
  5. getTime(): Provides the current date and time in the format “YYYY-MM-DD HH:MM

IoT based Entry and Exit Monitoring System – Circuit Connection

Now connect the RFID to SPI pins of the INDUSBoard Coin as per circuit diagram.

IoT based Entry and Exit Monitoring System Circuit Diagram
Fig 3. Circuit for RFID based entry and exit monitoring system

Testing

  1. Upload the Code: Use the Arduino IDE to upload the code to your IndusBoard Coin
  2. Connect to Wi-Fi: Ensure the ESP32 is connected to the Wi-Fi network.
  3. Access Web Server: Open a web browser and navigate to the IP address of the ESP32. You should see a page with a link to view attendance records.
  4. Scan RFID Cards: Test scanning the RFID cards and verify that the attendance records are updated correctly on the web page.
  5. Real-Time Updates: Refresh the attendance page to see real-time updates as you scan different RFID cards.

This project provides a practical introduction to IoT, web development, and RFID technology, allowing you to build a real-time attendance system with a modern web interface.

Testing Entry and Exit Monitoring System
Fig 4. Testing Entry and Exit Monitoring System
Ashwini Sinha
Ashwini Sinha
A tech journalist at EFY, with hands-on expertise in electronics DIY. He has an extraordinary passion for AI, IoT, and electronics. Holder of two design records and two times winner of US-China Makers Award.

SHARE YOUR THOUGHTS & COMMENTS

EFY Prime

Unique DIY Projects

Electronics News

Truly Innovative Electronics

Latest DIY Videos

Electronics Components

Electronics Jobs

Calculators For Electronics

×