In present times increasing Traffic is adding to the big woes of developing cities. The main roads are packed with vehicular traffic on each and every road or a traffic signal (Intersection Points). One comes across the common problem of traffic jams on almost all Traffic Junctions which is even critical if you go to big cities. A lot of time, energies besides precious fuel is wasted just because of these Traffic Jams on the roads.
To solve this problem Traffic Cameras are used over Traffic Intersection points. Traffic Cameras capture the image of vehicles in traffic and sends to MATLAB then start with matlab. Here in this project Traffic Surveillance System is demonstrated by way of how the traffic could be controlled over traffic intersection points from the Traffic Control Room. This is a very effective system for Traffic Surveillance.
Given below are some snapshots depicting the working of the arduino based traffic surveillance system.
Fig. 1: Image showing working of Arduino and Matlab based Traffic Surveillance System
Fig. 2: Prototype of Arduino and Matlab based Traffic Surveillance System
Fig. 3: Image showing matchstick boxes used as cars in the prototype model
Fig. 4: Image of Matlab Code used in Traffic Surveillance System
Fig. 5: Image of captured photograph of Traffic on Matlab
Fig. 6: Image of filtered picture of traffic on Matlab
Fig. 7: Image of traffic report sent to registered mobile number as SMS
Working of this Traffic Surveillance System is easy and quite simple. First reader need to know how to start with arduino . There are two Arduino UNO boards which are used for controlling all the operations. GPS and GSM technologies are also used in the project. Here GPS is used with arduino for taking coordinates of a Traffic Jam and GSM is used with arduino for sending these coordinates to Traffic Control Room. But besides GPS and GSM there are two more other important things which are used in the Traffic Surveillance Project and that are Cameras and MATLAB.
Fig. 8: Block Diagram of Arduino and Matlab based Traffic Surveillance System
Block Diagram without LCD
MATLAB sends command to cameras for capturing the images of traffic, where MATLAB later identifies or count the total number of vehicles over the Traffic Intersection or over on road. If the total number of vehicles over the road exceeds the limits in a given situation then the MATLAB sends signals to Arduino UNO (A).
Arduino UNO (A) sends interrupt to second Arduino UNO (B). Now the second Arduino UNO (B) takes coordinates of the Traffic Jam and sends these coordinates to the Traffic Control Room using GSM module. Here you can use a LCD for showing the traffic status like Traffic Jam or No Traffic.
Fig. 9: Block Diagram of Arduino and Matlab based Traffic Surveillance System
Block Diagram with LCD
Circuit Diagram & Programming Explanation
Circuitry of this system is also quite simple. You can connect the whole system using jumper wire. Laptop Camera is used as Traffic Camera for monitoring purposes and Match Boxes are used in place of vehicles. MATLAB is also used in Laptop for processing the operation of the project. Arduino is directly connected to the Laptop using USB. Arduino UNO’s (A) pin number 8 is directly connected to 8 number pin of Arduino UNO (B). A GPS and a GSM module are connected with Arduino UNO (B). One can also connect a 16×2 Liquid Crystal Display (LCD) with Arduino UNO (B) for displaying Traffic Status.
Please Refer Circuit Diagram Tab for Without LCD and With LCD
There are three programs for this system, first is Arduino MATLAB program for Image Processing and counting the vehicles. Arduino MATLAB support package file should be installed in your computer (see previous article of GUI interfacing with Arduino). Second program is also Arduino MATLAB support package (see previous article of GUI interfacing with Arduino) for Arduino UNO (A). Third program is for Arduino UNO (B) which takes control on GPS, GSM and LCD.
Fig. 10: Screenshot of Arduino Code used for Initialization of Traffic Surveillance System
Fig. 11: Screenshot of Matlab Code used in Traffic Surveillance System
1. Two Arduino UNO Board
2. GSM Module
3. GPS Module
6. Power Supply
7. Connecting Wires