Skip to content

Manual tolls = traffic jams! This IoT system uses RFID tags & online verification for faster payments, reducing congestion & frustration.

Notifications You must be signed in to change notification settings

AadityaPanda/ITSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

IoT Toll System Supervisor

This project uses ESP32 and Arduino Uno to automate toll collection by detecting and validating vehicles with RFID tags. RFID readers identify registered vehicles, control a servo motor-operated gate, and record data in Google Sheets for real-time monitoring.

Table of Contents

Overview

This IoT-based toll collection system is designed to simplify toll management by automating vehicle recognition and payment deduction. With RFID technology, the system identifies registered vehicles, opens the toll gate, deducts the toll amount, and logs transaction data in Google Sheets via ESP32.

Features

  • Automated Vehicle Detection: RFID reader authenticates vehicle RFID tags.
  • Automated Gate Control: Servo motor controls gate opening and closing.
  • Data Logging: ESP32 logs all transactions in Google Sheets.
  • Security Checks: Ensures that only authorized RFID tags are allowed.
  • Customizable Buzzer Alerts: Alerts for valid and invalid entries.

Components Required

  • ESP32
  • Arduino Uno
  • RFID Module (MFRC522)
  • Servo Motor
  • Buzzer
  • Liquid Crystal Display (LCD) with I2C
  • Wires and Breadboard
  • Power Supply

Wiring and Hardware Setup

  1. ESP32 to Arduino Uno Communication: Connect ESP32's RX/TX pins to Arduino's TX/RX.
  2. RFID Module to Arduino Uno: Use SPI interface pins for communication.
  3. Servo Motor and Buzzer: Connect to Arduino Uno's digital pins.
  4. LCD Screen: Connect LCD to Arduino Uno through I2C.

Note: Refer to the wiring diagram below for exact pin connections.

Circuit Diagram

How It Works

  1. Card Detection: When a vehicle’s RFID card is scanned, the system checks if it matches any registered card.
  2. Authentication: If the card matches, the system displays the vehicle ID on the LCD, opens the gate, and sends data to ESP32.
  3. Data Logging: ESP32 logs the transaction in Google Sheets, including date, time, and vehicle UID.
  4. Transaction Logging: Each transaction is recorded in a Google Sheet, maintaining a record of all toll activity.

Flowchart

Installation and Setup

1. Code and Upload

  1. Upload Arduino Uno Code to the Arduino Uno:
    • Make sure to install Wire.h, LiquidCrystal_I2C.h, Servo.h, MFRC522.h, SPI.h, and SoftwareSerial.h libraries.
  2. Upload ESP32 Code to the ESP32:
    • Ensure WiFi.h, HTTPClient.h, and TimeLib.h libraries are installed.

2. Configure Google Sheets for Data Logging

  1. Create a Google Sheet and deploy a Google Apps Script as a web app. Set permissions to allow anyone to log data.
  2. Replace the serverName URL in ESP32 code with your Google Apps Script web app URL.

3. Testing

  1. Connect all components and power on the system.
  2. Test by scanning an authorized RFID tag; observe the gate operation, LCD message, and data logging in Google Sheets.

Code Overview

Arduino Uno Code

This code handles:

  • RFID Scanning: Reads and validates RFID cards.
  • Gate Control: Operates the gate servo motor for authorized vehicles.
  • LCD Display: Displays vehicle information and status messages.
  • Buzzer Alerts: Provides audible feedback based on vehicle status.

ESP32 Code

This code handles:

  • WiFi Connection: Connects to WiFi for Google Sheets communication.
  • RFID UID Validation: Receives UID from Arduino, validates length.
  • Data Logging: Sends JSON data to Google Sheets API for record-keeping.

Photos and Videos

Project Setup

Hardware Setup

Mobile App Setup

Mobile App

Demo Video

Demo.Video.mp4

Future Enhancements

  • Multiple Payment Options: Integrate with online payment gateways.
  • Vehicle Data Analytics: Provide insights on toll collection data.

About

Manual tolls = traffic jams! This IoT system uses RFID tags & online verification for faster payments, reducing congestion & frustration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages