Annual: 2018

PR058 »
Intelligent traffic light control system based on image recognition and sensor.
📁Digital Design
👤子鸣 汤
 (Wuhan University Of Technology)
📅Apr 29, 2018
Regional Final


👀 6756   💬 12

PR058 » Intelligent traffic light control system based on image recognition and sensor.

Description

The system mainly USES the camera to collect the image of the intersection, and then detects the traffic and pedestrian situation of the road junction with ultrasonic, infrared and other sensors. The above data is processed by FPGA, and the current traffic light scheme is determined. To achieve the efficiency of vehicles through intersections. It can slow the contradiction between the rapid growth of vehicles and the slow expansion of urban roads, and ensure the safety while reducing the congestion and waiting time for car owners. At the same time, it can achieve the goal of energy conservation and emission reduction, and indirectly contribute to environmental protection.
Because the system is always data processing and control, and not the sequential system, it can give full play to the advantages of FPGA high-speed processing and extremely low delay. Meanwhile, the stability of FPGA also provides an important guarantee for the safe operation of the system.
It is proposed to build an experimental model to test the various functions of the system, and to promote it systematically. Apply for a practical patent.

Demo Video

  • URL: https://m.youku.com/video/id_XMzU3MzM0NDk0OA==.html?x&sharefrom=ipad&source=&ishttps=1

  • Project Proposal

    1. High-level Project Description

    Purpose of the design:

    Car number in the current world constantly under the background of the era of rapid growth, how to improve the efficiency of vehicle traffic in the city road became the various countries in major cities have headaches, widening the existing roads and build the new road is the most effective solution, but the time is very long these solutions and the need to invest a lot of manpower material resources and financial resources, and such a huge project will produce certain effect to the current traffic. Under such a problem, what we are thinking about is how to use current road resources more fully and efficiently. Of course, it's a guarantee of road safety. Intelligent control of traffic lights is a good direction. According to the observation, the traffic light at the intersection of the city is the fixed control plan. The traffic efficiency is very low when there is no one at the intersection. So we plan to design a by image recognition and other sensor integrated intelligent traffic light controller, to choose appropriate for the current intersection traffic light control scheme, to the highest utilization rate of the road.

    Application scope and targeted users:

    This design can be applied to any intersections in order to reach the purpose of improve the overall traffic rate, reduce the financial burden on city road, is all the traffic administrative department of the application of the design, low cost and easy application, a camera can also play the role of real-time monitoring road conditions, and so on...

    Process:

    The information of the intersection is collected by the camera, ultrasonic and infrared sensor and transmitted to the FPGA for processing. The data of the camera will be stored in the SDRAM to be called in the first place. After comprehensive processing and judgment of the above road information, the system will be implemented according to the pre-given traffic light scheme.

    a) Camera:

    Always take the current picture of the road and send its data to SDRAM by the way of SPI.

    b) Ultrasonic sensor:

    By sending an ultrasonic signal and receiving a signal from the reflected signal to obtain the presence of an object on the current path.

    c) Infrared sensor:

    The sending port and the receiving port are separated by the two sides of the road, and the infrared signal is checked to determine whether there is an object in the current road.

    d) SDRAM:

    The image data captured by the temporary camera so that the FPGA can be called at any time during processing.

    e) The data center

    Display current road conditions and traffic light schemes through displays and other devices.

    2. Block Diagram

    3. Intel FPGA Virtues in Your Project

     

    Device:

    Input devices:

    (1) Camera: collect image information.

    (2) Ultrasonic wave: to collect sound waves at intersections.

    (3) Infrared sensor: collect the infrared information of the intersection.

    output devices:

    (1) Traffic light model: show current traffic lights.

    (2) VGA display: display road images.

    Design features

    Model system:Using design as a set of intersection traffic light intelligent control model, by using the model to simulate the different road conditions degree of intelligent detection system and constantly optimized, finally get high efficiency traffic light control scheme.

    Advantages of FPGA:Because the system is always data processing and control, and not the sequential system, it can give full play to the advantages of FPGA high-speed processing and extremely low delay. Meanwhile, the stability of FPGA also provides an important guarantee for the safe operation of the system.

     

     

     

     

     

     

     

    4. Design Introduction

      

    We intend to design an intelligent traffic light controller that recognizes and analyzes other sensor signals through FPGA and analyzes the signals. It is able to select the appropriate traffic light control scheme according to the current intersection conditions and guarantee the safety of intersections while vehicles driving fast, which aims at achieving the highest efficiency of the road and reduce the burden on city roads.

     

     

     

     

     

     

      

    5. Function Description

    Making a set of traffic light models which is capable of real-time demonstration of traffic lights at road intersections and adding a series of signal collection devices such as cameras, infrared sensors, ultrasonic sensors to the model. At the same time, the FPGA control board will process the collected signals and control the traffic intelligently. 

    6. Performance Parameters

     

    The project is planned to be expanded as follows:

     

    1. A set of simulated real-time traffic model, including such as trees and other real things

     

    2. A highly simulated traffic light model

     

    3. Design PCB circuit boards for cameras and other signal collection devices to ensure high read system integration

     

    4. A DE10-nano FPGA development board for image recognition, signal processing, and controlment

     

    5. A smart car which can be self-tracking and can automatically determine whether to proceed according to the intersection of traffic lights

      

    7. Design Architecture

    Hardware part: 
    Controller and adapter: use the 80 extension pins of the DE10-nano to connect and communicate with the four traffic lights, as well as the cameras and the ultrasonic modules on the traffic lights, as shown in the following diagram and to power the traffic lights.
    The FPC interface is used in the transfer board to reduce the volume and ensure the integrity of the high-speed signal. At the same time, the installed LED lights and buzzer can act as a signal indicating device. The CD4511 integrated chip is used as the decoder of digital tube, which reduces the occupation and control difficulty of pin resources.   

    Traffic lights: the red and green light is made directly by PCB, which uses high luminance light emitting diode as the light source of the red and green light. It also reduces the complexity of the design in the case of easy identification. The design of the camera socket and the ultrasonic module socket can provide the connection line between the camera and the ultrasonic to the adapter board, thus reducing the complexity of the connection. The FPC interface is directly connected with the switch board.

    Trolley controller: Using the integrated MCU STM32 as the main controller of the car, the running frequency of the STM32F1 series is up to 72MHz, and all solutions can be completed within the 0.02s of the intelligent vehicle control cycle to ensure the stable operation and accurate identification of the vehicle. The special control board is designed with multiple signal collection module and dual motor drive, which is in line with the design requirements.

    OV2640 camera:The OV2640 is a 1/4-inch CMOS UXGA (1632*1232) image sensor manufactured by OV (OmniVision) company. The sensor's small size and low operating voltage provide all the features of a single UXGA camera and image processor. Through the SCCB bus control, various 8/10-bit image data of various resolutions such as full frame, sub-sampling, scaling, and window taking can be output. The product's UXGA image can be up to 15 frames per second (SVGA up to 30 frames and CIF up to 60 frames). Users can fully control image quality, data format, and transmission methods. All image processing functions including gamma curve, white balance, contrast, color, etc. can be programmed via the SCCB interface. OmmiVision’s image sensor apply unique sensor technology by reducing and eliminating optical or electronic defects such as fixed pattern noise, smearing, floating, etc., to improve image quality, get a clear and stable color image. The internal structure of the resulting image is shown in the following figure: 

    HC-SR04 Ultrasonic Module:Ultrasonic module using standard IIC communication protocol. Ultrasonic pulse echo transit time method is used to realize the detection of roadway objects. The current approaching distance of pedestrians and vehicles can be judged by it.
    The schematic diagram is as follows:

    Comprehensive scenario:  Using the scene diagram built by various model devices:

    Software part:            
    The software part is divided into two parts. The first part is the intelligent traffic light control part written in Verilog language. The second part is the intelligent car control code written in C .           
     1. The control part of the traffic light:

    As shown above, each sub module of the design system is written in Verilog language. Finally, the principle diagram of the hardware electrical connection is created to connect the sub modules to the overall traffic light control system. The sub modules include clock frequency divider, decoder, image recognition module, ultrasonic distance measuring module, timing red and green light control module and intelligent control module.

              
    Intelligent vehicle control part: Using the infrared photoelectric tube and color sensor to collect the information of the road and the traffic light, then the current state and situation are analyzed with the corresponding algorithm, and the speed of the wheel and the steering direction are controlled by the incremental PID control. 
     



    12 Comments

    Tia Jiang
    Hello~ I'm in WUT, too.
    Your project is great and deserve my vote.
    Can you view my project and vote for me too?
    http://www.innovatefpga.com/cgi-bin/innovate/teams.pl?Id=PR130
    🕒 Jan 30, 2018 08:32 PM
    Bielihua
    有前景的一个提案,硬件方面超声波是个亮点,清洁、高效、节约。但是这个提案的模拟要多思考思考,如何在最大限度减少误差的基础上得到更加精确的数据。另外在路况识别的算法方面还需要多动动脑筋。加油。看好你们!
    🕒 Jan 30, 2018 10:53 AM
    111
    Nice project! I've voted for you.
    Can you vote for our project too? The link is:
    http://www.innovatefpga.com/cgi-bin/innovate/teams.pl?Id=PR132
    thank you !
    🕒 Jan 26, 2018 07:04 PM
    PR058🗸
    Thank you! And I had voted you too.
    🕒 Jan 29, 2018 08:06 PM
    Jun Fu
    不错的提案。但交通灯是一个大系统,不是一个路口的问题。
    🕒 Jan 26, 2018 11:44 AM
    PR058🗸
    我们的目的不是通过这个系统解决全部的交通问题,而是实现在道路空闲时期的高效通过率,通过侧面解决道路拥堵问题
    🕒 Jan 29, 2018 07:53 PM
    Donald Bailey
    What are your proposed algorithms? ie how do you plan to use the data from the sensors to improve control of the lights?
    🕒 Jan 26, 2018 05:46 AM
    PR058🗸
    The traffic data of every route is different ,to make a efficient control,the FPGA system will compare the image and another signals with which there are no people and cars in route ,if had judged no people and cars ,the lights will atuomaticly turns to green to let the cars go.if not ,the lights will hold on normal plan.
    🕒 Jan 29, 2018 08:04 PM
    Doreen Liu
    如今的马路太需要你这样的设计了,加油,让我们看到你的成果。
    🕒 Jan 15, 2018 02:28 PM
    PR058🗸
    谢谢您的支持!
    🕒 Jan 29, 2018 08:05 PM
    berkay egerci
    you deserve to win prize
    🕒 Jan 13, 2018 04:17 AM
    PR058🗸
    Thank U!
    🕒 Jan 14, 2018 06:34 PM