{"id":24963598,"url":"https://github.com/Saeed-dev2/RFID-Based-Automatic-Toll-Collection-System","last_synced_at":"2025-10-18T08:30:59.251Z","repository":{"id":274676158,"uuid":"923699535","full_name":"Saeed-dev2/---","owner":"Saeed-dev2","description":"The RFID-Based Automatic Toll Collection System uses RFID technology to automatically detect vehicles and process toll payments without manual intervention. It integrates RFID tags, readers, and microcontrollers (Arduino/ESP32) to enhance traffic efficiency and reduce congestion. The system includes seamless payment processing, real-time monitoring","archived":false,"fork":false,"pushed_at":"2025-01-28T17:48:55.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T18:35:36.718Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Saeed-dev2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-28T17:48:11.000Z","updated_at":"2025-01-28T17:50:31.000Z","dependencies_parsed_at":"2025-01-28T18:46:50.648Z","dependency_job_id":null,"html_url":"https://github.com/Saeed-dev2/---","commit_stats":null,"previous_names":["saeed-dev2/---"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeed-dev2%2F---","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeed-dev2%2F---/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeed-dev2%2F---/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeed-dev2%2F---/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saeed-dev2","download_url":"https://codeload.github.com/Saeed-dev2/---/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236925103,"owners_count":19226502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-03T09:57:39.439Z","updated_at":"2025-10-18T08:30:59.241Z","avatar_url":"https://github.com/Saeed-dev2.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RFID-Based Access Control System with Servo Lock\n\n## Overview\nThis project implements an RFID-based access control system using an **MFRC522 RFID reader**, an **OLED display (SSD1306)**, and a **servo motor** for locking and unlocking mechanisms. When an authorized RFID card is scanned, access is granted, and the servo unlocks. If an unauthorized card is scanned, access is denied.\n\n## Features\n- **RFID Authentication**: Reads RFID tags and verifies against a predefined ID.\n- **OLED Display Feedback**: Provides real-time access status and prompts.\n- **Servo Control**: Opens and closes the lock upon authentication.\n- **Efficient Power Usage**: Optimized to minimize energy consumption.\n\n## Components Required\n- **Microcontroller**: Arduino (Uno, Mega, or compatible)\n- **RFID Module**: MFRC522\n- **Display**: Adafruit SSD1306 OLED (128x64)\n- **Servo Motor**: SG90 or similar\n- **Jump Wires**: For connections\n- **Power Supply**: 5V source (e.g., USB or battery pack)\n\n## Circuit Diagram\n| Component          | Pin Connection |\n|-------------------|---------------|\n| MFRC522 SS       | Pin 10        |\n| MFRC522 RST      | Pin 9         |\n| MFRC522 MOSI     | Pin 11        |\n| MFRC522 MISO     | Pin 12        |\n| MFRC522 SCK      | Pin 13        |\n| OLED SDA         | A4 (SDA)      |\n| OLED SCL         | A5 (SCL)      |\n| Servo Signal     | Pin 6         |\n\n## Installation \u0026 Usage\n### **1. Setup the Hardware**\n- Connect all components as per the circuit diagram.\n- Ensure power connections are stable.\n\n### **2. Upload the Code**\n- Install the required Arduino libraries:\n  - `SPI.h`\n  - `MFRC522.h`\n  - `Wire.h`\n  - `Adafruit_GFX.h`\n  - `Adafruit_SSD1306.h`\n  - `Servo.h`\n- Open the provided `main.ino` file in Arduino IDE.\n- Select the correct board and port.\n- Upload the code.\n\n### **3. Operation**\n1. The OLED display will prompt **\"Scan Your Card...\"**.\n2. Place an RFID card near the reader.\n3. If the scanned ID matches the predefined ID:\n   - The display shows **\"ACCESS GRANTED!\"**.\n   - The servo unlocks.\n4. If the ID does not match:\n   - The display shows **\"ACCESS DENIED!\"**.\n   - The servo remains locked.\n5. The system resets and waits for the next scan.\n\n## Customization\n- Modify the **`My_ID`** variable in the code to change the authorized RFID tag.\n- Adjust the servo angles in **`openServo()`** and **`closeServo()`** for different lock mechanisms.\n- Modify the display messages to suit your application.\n\n## Troubleshooting\n| Issue | Solution |\n|-------|----------|\n| No response from RFID reader | Check wiring and ensure proper power supply. |\n| Wrong card detected | Ensure the card's ID is correctly stored in `My_ID`. |\n| Servo not moving | Verify the servo connection and pin assignment. |\n| Display not working | Ensure the OLED is correctly connected to SDA and SCL. |\n\n## Future Enhancements\n- **Multiple RFID Card Support**: Store multiple valid IDs.\n- **Wi-Fi Integration**: Log access attempts to a cloud server.\n- **Buzzer Alert System**: Sound an alarm for unauthorized attempts.\n- **Mobile App Control**: Unlock via Bluetooth or Wi-Fi.\n\n## License\nThis project is open-source and distributed under the **MIT License**.\n\n## Author\n**Muhammad Saeed**  \n[GitHub Profile](https://github.com/Saeed-dev2)  \n\n---\n### **Contributions are Welcome!**\nFeel free to fork this repository, improve the project, and submit a pull request! 🚀\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSaeed-dev2%2FRFID-Based-Automatic-Toll-Collection-System","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSaeed-dev2%2FRFID-Based-Automatic-Toll-Collection-System","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSaeed-dev2%2FRFID-Based-Automatic-Toll-Collection-System/lists"}