Holistic Traffic Management System

by Atom_labs in Circuits > Sensors

297 Views, 0 Favorites, 0 Comments

Holistic Traffic Management System

Holistic traffic management system - Presentation - Google Chrome 11-06-2022 22_17_29.png
2.jpg

The project had multiple (Proximity sensors embedded on the road to determine the density of traffic waiting on a particular signal and accordingly control the traffic lights. Apart from this the red-light sensors also had a RFID receiver which detected a passing emergency vehicle such as an ambulance and appropriately changed the traffic lights . In addition to this grafana was used to represent data in a dynamic  way.



Preparing Your Inventory to Start With the Project


So I’m writing up this instructable of a very minimal hardware based project. All of the components used are easily available on any electronics component store or E-commerce sites. I’ll also add the links for all products along which in case you don't have in handy and so you can customize your bot with your creativity. For parts to make this project refer to hnhcart. They have good quality parts with an amazing price range.

· Microcontroller: if you are a beginner try using an Arduino. At this point, I have developed this using Arduino Uno. You can buy an Arduino uno here.

· Motors: for this project, I am using a basic SG90 servo motor which generally has a rotation range of 0⁰-180⁰. You can buy it here.

· IR Sensors: for this project, I have a used very basic entry level proximity sensors which can be upgraded as the project scales. You can buy it here.

· RFID module kit: to felicitate the functioning of barrier and traffic systems this project uses rfid tag and sensor. You can buy the kit here.

· Jumper wires: Jumper wires are the nerves of any project you need a bunch of these to make connections in different projects. you can buy some from here:- Male to male | Male to Female

· Breadboard/prototyping board: you will need something to connect all the wire. Here breadboard will come in handy. buy link for Breadboard | prototyping board

· LED display: for this project you will need a led display module to display the count timer of the junction signal lights. You can buy it here.ith this project we first need to gather

Setting Up Your Hardware

5.png
4.png


  1. Connect the I.R sensor Gnd pin to Gnd port on the Arduino Board and the Vcc to 5v on the Board.
  2. Similarly, connect the RFID Sensor to the Arduino board and the connect the pins according to the table given below:

Connecting the Lcd and the Servo


  1. Now to Show the timer of the traffic we will be using a lcd screen .It will also be showing if the IR sensor is detecting Traffic or not.
  2. Connect the LCD according to the table given below:
  3. We also need to connect the servo.

Linking

1.png
  1. We will be using Grafana for Data Representation as it represents data in a time series graph so install it.
  2. Now install Prometheus.
  3. Prometheus is basically a free software application used for event monitoring and alerting. It records real-time metrics in a time series database with flexible queries and real-time alerting.
  4. Now link Prometheus with Grafana.
  5. Now you are good to go.

Let Me Explain You How the System Works!

3.png


I am attaching the Data flow diagram for easier understanding of this project-

This entire system is based on a dual check application which initially looks for any emergency vehicle’s presence at any junction followed by checking the intensity of traffic in lanes.

Making the Project Future Ready With Artificial Intelligence

6.png


With the boom of artificial intelligence and machine learning, this project can be upgraded to the next level with the integration of computer vision (OpenCV). OpenCV works on image capturing technology and calculating the contour area for every frame and passing it on further. Based on the area of contours we can further manipulate the duration of green signal for subsequent cycles

You can check the script for OpenCV implementation here-

Downloads

Code for the Arduino


You can download the INO file from here to program your Arduino.

You can Leave a question for any queries about the code.

Now your project is all ready.

Downloads

LINKS