CN113570880A - Traffic light intelligent control system based on STM32 - Google Patents

Traffic light intelligent control system based on STM32 Download PDF

Info

Publication number
CN113570880A
CN113570880A CN202110716275.5A CN202110716275A CN113570880A CN 113570880 A CN113570880 A CN 113570880A CN 202110716275 A CN202110716275 A CN 202110716275A CN 113570880 A CN113570880 A CN 113570880A
Authority
CN
China
Prior art keywords
intelligent
traffic
road
module
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110716275.5A
Other languages
Chinese (zh)
Other versions
CN113570880B (en
Inventor
石坚
叶伟光
林言泽
何伟添
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou University
Original Assignee
Guangzhou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou University filed Critical Guangzhou University
Priority to CN202110716275.5A priority Critical patent/CN113570880B/en
Publication of CN113570880A publication Critical patent/CN113570880A/en
Application granted granted Critical
Publication of CN113570880B publication Critical patent/CN113570880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/07Controlling traffic signals
    • G08G1/08Controlling traffic signals according to detected number or speed of vehicles
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/04Detecting movement of traffic to be counted or controlled using optical or ultrasonic detectors
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/07Controlling traffic signals
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/90Additional features
    • G08C2201/93Remote control using other portable devices, e.g. mobile phone, PDA, laptop

Abstract

The invention discloses an STM 32-based traffic light intelligent control system, which comprises a road traffic flow intelligent detection module, a signal light control module, an intelligent control host and an STM32 control core, wherein the road traffic flow intelligent detection module is connected with the signal light control module through a bus; the road traffic flow intelligent detection module realizes real-time detection of traffic flow by using an intelligent camera; the signal lamp control module is used for realizing intelligent control on the signal lamp according to the acquired traffic data based on the data acquired by the intelligent camera; the intelligent control host machine is in information interaction with the STM32 control core and comprises a Zigbee module, a vehicle speed detection module and a Bluetooth module; the vehicle speed detection module is arranged on a road and transmits data to be processed and compared by detecting vehicle speed to obtain the congestion condition of a traffic intersection; the intelligent control host is used as a central brain, and the time duration of the traffic lights at the intersection is comprehensively obtained according to the intersection congestion information detected by each module. The intelligent traffic light control system realizes intelligent control on the traffic light, and can assist in realizing more efficient and comprehensive traffic management.

Description

Traffic light intelligent control system based on STM32
Technical Field
The invention belongs to the technical field of intelligent traffic lights, and particularly relates to an STM 32-based traffic light intelligent control system.
Background
At present, various traffic lights are arranged at intersections of various urban roads, and the traffic lights become effective ways for dredging various large traffic pavements, solving traffic jams and guaranteeing traffic order. However, with the progress of society, the conventional traffic lights are difficult to meet the requirements of modern society, especially when the traffic roads are congested due to high traffic flow, and in this time, the conventional traffic lights show various problems, such as incapability of flexibly changing the on/off and time of the traffic lights according to the congestion conditions of the roads, so that the conventional traffic lights need to improve the function level to meet the requirements of the modern society on the traffic efficiency of the roads.
Disclosure of Invention
The invention mainly aims to overcome the defects of the prior art, provides an STM 32-based traffic light intelligent control system, improves the integration level of the control system, realizes the accurate control of traffic lights and has high value and practicability.
In order to achieve the purpose, the invention adopts the following technical scheme:
the traffic light intelligent control system based on the STM32 comprises a road traffic flow intelligent detection module, a signal light control module, an intelligent control host and an STM32 control core;
the road traffic flow intelligent detection module realizes real-time detection of traffic flow by using an intelligent camera and realizes detection of different traffic participation objects through video;
the signal lamp control module is used for realizing intelligent control of the signal lamp according to the acquired traffic data based on the data acquired by the intelligent camera, ensuring the scientificity and instantaneity of control decision through a related algorithm of traffic flow analysis, dredging in time when the traffic flow is large and keeping the road surface smooth when the traffic flow is small;
the intelligent control host computer is used as a center brain and comprehensively obtains and controls the time of traffic lights at the intersection according to intersection congestion information detected by the road traffic flow intelligent detection module, the vehicle speed detection module and the intelligent camera.
Further, the time duration of comprehensively obtaining the intersection traffic lights is specifically as follows:
calculating the distance between the entrance and the exit of the road to obtain the distance of the vehicle to be driven;
detecting the average running speed of the vehicles through an intelligent camera, dividing the distance by the average running speed to obtain the time of the vehicles, calculating to obtain how many vehicles jam in a road section in a certain period of time according to the running time of the vehicles and the number of the vehicles running into an entrance at the same time at the entrance, setting an upper limit threshold value of vehicle jam, and adjusting the street lamps to green lamps in time to relieve the road jam condition when the upper limit threshold value is equal to or greater than the upper limit threshold value; the specific formula is as follows:
distance between the entrance and the exit of the road is x, average traveling speed of the vehicle is y, average time t of the vehicle from the entrance to the exit:
t=x/y
the number of vehicles driving into the entrance at the same time at the entrance is set as w, and the total number of vehicles z jammed in the section during time t:
z=t*w
and (3) setting the upper limit threshold value of the vehicle congestion in the road section as a, and when z > is equal to a, displaying a green light on the street lamp to relieve the road congestion condition.
Furthermore, the vehicle speed detection module is arranged at the intersection, transmits data to the intelligent control host by detecting vehicle speed, and acquires the number of vehicles entering the road entrance at the same moment through the intelligent camera to obtain the total number of the vehicles remaining in the road section in the time period from the road entrance to the road exit, so as to obtain the congestion condition of the traffic intersection.
Furthermore, the Zigbee module is used for communication, and sends corresponding control signals to the traffic light module, and the traffic light module relieves the pressure of intersection congestion according to the real-time change condition of the intersection.
Furthermore, the Bluetooth module is used for communication, and STM32 control core passes through a bluetooth module of serial ports extension, realizes the communication of bluetooth and cell-phone and controls traffic lights intelligence control system with the help of the cell-phone, realizes the bluetooth communication operation of short range.
Further, the STM32 control core specifically adopts a microprocessor STM32F103ZET 6.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the invention fully utilizes the characteristics of high STM32 processing speed, rich interfaces and the like, improves the integration level of a control system and realizes the accurate control of traffic lights. The control system is designed by adopting a modularization method, and abundant peripheral resources on the STM32 chip are fully utilized, so that the independence of each module can be ensured, and the mutual contact of all parts can be realized.
Drawings
FIG. 1 is a block diagram of the architecture of the system of the present invention;
fig. 2 is a flowchart of the operation of the present embodiment.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.
Examples
As shown in FIG. 1, the traffic light intelligent control system based on STM32 comprises a road traffic flow intelligent detection module, a signal light control module, an intelligent control host and an STM32 control core;
the road traffic flow intelligent detection module realizes real-time detection of traffic flow by using an intelligent camera and realizes detection of different traffic participation objects through video; besides the conventional vehicle detection, the mixed-line detection can be realized, and the detection function is realized mainly by detecting different traffic participation objects through videos. The vehicle detection range mainly focuses on vehicles in a lane, and from the detection program, firstly, the intelligent camera can capture the vehicles in the lane, and analyze vehicle information such as license plates, and related detection data can be uploaded to a control center. The intelligent analysis and the information acquisition of the road traffic flow are realized by applying the intelligent camera, and more efficient and comprehensive traffic management can be realized in an auxiliary manner.
The signal lamp control module is used for realizing intelligent control of the signal lamp according to the acquired traffic data based on the data acquired by the intelligent camera and simultaneously ensuring the scientificity and instantaneity of control decision through a related algorithm of traffic flow analysis; on the basis, the current traffic condition is correctly judged and processed, and finally the actual alternating current flow is combined to scientifically adjust and improve.
The intelligent control host computer is used as a center brain and comprehensively obtains and controls the time of traffic lights at the intersection according to intersection congestion information detected by the road traffic flow intelligent detection module, the vehicle speed detection module and the intelligent camera.
In this embodiment, the speed detection module is arranged at the intersection, transmits data to the intelligent control host by detecting the speed of the vehicle, and acquires the number of vehicles entering the road entrance at the same moment through the intelligent camera, so as to obtain the total number of the remaining vehicles in the road section within the time when the vehicles arrive at the road exit from the road entrance, thereby obtaining the congestion condition of the traffic intersection.
In this embodiment, the Zigbee module is used for communication, and sends a corresponding control signal to the traffic light module, and the traffic light module relieves the pressure of intersection congestion according to the real-time change condition of the intersection.
In this embodiment, the bluetooth module is used for communication, and STM32 control core passes through a bluetooth module of serial ports extension, realizes the communication of bluetooth and cell-phone and controls traffic lights intelligence control system with the help of the cell-phone, realizes the bluetooth communication operation of short range.
In the embodiment, the STM32 control core specifically adopts a microprocessor STM32F103ZET 6.
In this embodiment, the time duration of the intersection traffic lights obtained comprehensively is specifically:
calculating the distance between the entrance and the exit of the road to obtain the distance of the vehicle to be driven;
detecting the average running speed of the vehicles through an intelligent camera, dividing the distance by the average running speed to obtain the time of the vehicles, calculating to obtain how many vehicles jam in a road section in a certain period of time according to the running time of the vehicles and the number of the vehicles running into an entrance at the same time at the entrance, setting an upper limit threshold value of vehicle jam, and adjusting the street lamps to green lamps in time to relieve the road jam condition when the upper limit threshold value is equal to or greater than the upper limit threshold value; the specific formula is as follows:
distance between the entrance and the exit of the road is x, average traveling speed of the vehicle is y, average time t of the vehicle from the entrance to the exit:
t=x/y
the number of vehicles driving into the entrance at the same time at the entrance is set as w, and the total number of vehicles z jammed in the section during time t:
z=t*w
and (3) setting the upper limit threshold value of the vehicle congestion in the road section as a, and when z > is equal to a, displaying a green light on the street lamp to relieve the road congestion condition.
As shown in fig. 2, it is a flow chart of the system of the present embodiment, and the system first performs initialization, and then detects the speed of the road vehicle to determine the traffic jam. If the traffic is congested, the STM32 controls the core to control traffic lights and evacuate road traffic; if the traffic condition is good, the STM32 control core controls the traffic light to keep good road traffic.
It should also be noted that in this specification, terms such as "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. The traffic light intelligent control system based on the STM32 is characterized by comprising a road traffic flow intelligent detection module, a signal light control module, an intelligent control host and an STM32 control core;
the road traffic flow intelligent detection module realizes real-time detection of traffic flow by using an intelligent camera and realizes detection of different traffic participation objects through video;
the signal lamp control module is used for realizing intelligent control of the signal lamp according to the acquired traffic data based on the data acquired by the intelligent camera, ensuring the scientificity and instantaneity of control decision through a related algorithm of traffic flow analysis, dredging in time when the traffic flow is large and keeping the road surface smooth when the traffic flow is small;
the intelligent control host computer is used as a center brain and comprehensively obtains and controls the time of traffic lights at the intersection according to intersection congestion information detected by the road traffic flow intelligent detection module, the vehicle speed detection module and the intelligent camera.
2. The STM 32-based traffic light intelligent control system according to claim 1, wherein the time duration of the intersection traffic light obtained comprehensively is specifically:
calculating the distance between the entrance and the exit of the road to obtain the distance of the vehicle to be driven;
detecting the average running speed of the vehicles through an intelligent camera, dividing the distance by the average running speed to obtain the time of the vehicles, calculating to obtain how many vehicles jam in a road section in a certain period of time according to the running time of the vehicles and the number of the vehicles running into an entrance at the same time at the entrance, setting an upper limit threshold value of vehicle jam, and adjusting the street lamps to green lamps in time to relieve the road jam condition when the upper limit threshold value is equal to or greater than the upper limit threshold value; the specific formula is as follows:
distance between the entrance and the exit of the road is x, average traveling speed of the vehicle is y, average time t of the vehicle from the entrance to the exit:
t=x/y
the number of vehicles driving into the entrance at the same time at the entrance is set as w, and the total number of vehicles z jammed in the section during time t:
z=t*w
and (3) setting the upper limit threshold value of the vehicle congestion in the road section as a, and when z > is equal to a, displaying a green light on the street lamp to relieve the road congestion condition.
3. The STM 32-based traffic light intelligent control system according to claim 1, wherein the vehicle speed detection module is arranged at an intersection, data is transmitted to the intelligent control host by detecting vehicle speed, the intelligent camera collects the number of vehicles entering a road entrance at the same time, the total number of vehicles remaining in the road section during the time when the vehicles arrive at the road exit from the road entrance is obtained, and the congestion condition of the traffic intersection is obtained.
4. The STM 32-based traffic light intelligent control system according to claim 1, wherein the Zigbee module is used for communication, and sends a corresponding control signal to the traffic light module, so that the traffic light module relieves the pressure of crossing congestion according to the real-time change of the crossing.
5. The STM 32-based traffic light intelligent control system of claim 1, wherein the Bluetooth module is used for communication, the STM32 control core extends a Bluetooth module through a serial port to realize communication between Bluetooth and a mobile phone, and the traffic light intelligent control system is controlled by the mobile phone to realize short-range Bluetooth communication operation.
6. An STM 32-based traffic light intelligent control system as claimed in claim 1, wherein the STM32 control core specifically adopts a microprocessor STM32F103ZET 6.
CN202110716275.5A 2021-06-28 2021-06-28 Traffic light intelligent control system based on STM32 Active CN113570880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110716275.5A CN113570880B (en) 2021-06-28 2021-06-28 Traffic light intelligent control system based on STM32

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110716275.5A CN113570880B (en) 2021-06-28 2021-06-28 Traffic light intelligent control system based on STM32

Publications (2)

Publication Number Publication Date
CN113570880A true CN113570880A (en) 2021-10-29
CN113570880B CN113570880B (en) 2022-11-25

Family

ID=78162840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110716275.5A Active CN113570880B (en) 2021-06-28 2021-06-28 Traffic light intelligent control system based on STM32

Country Status (1)

Country Link
CN (1) CN113570880B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115440052A (en) * 2022-11-09 2022-12-06 成都工业职业技术学院 Traffic flow control method and device based on big data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778834A (en) * 2015-01-23 2015-07-15 哈尔滨工业大学 Urban road traffic jam judging method based on vehicle GPS data
CN107016861A (en) * 2017-05-31 2017-08-04 电子科技大学 Traffic lights intelligent control system based on deep learning and intelligent road-lamp
CN108665707A (en) * 2018-05-24 2018-10-16 金陵科技学院 It is a kind of prevent local traffic congestion expressway access shunting and flow cooperative control method
CN109064754A (en) * 2018-10-10 2018-12-21 南京宁昱通交通科技有限公司 A kind of expressway access shunts and flow Collaborative Control technology
JP2020160939A (en) * 2019-03-27 2020-10-01 株式会社Subaru Traffic management system
CN112435473A (en) * 2020-11-14 2021-03-02 公安部交通管理科学研究所 Expressway traffic flow tracing and ramp regulating method combined with historical data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778834A (en) * 2015-01-23 2015-07-15 哈尔滨工业大学 Urban road traffic jam judging method based on vehicle GPS data
CN107016861A (en) * 2017-05-31 2017-08-04 电子科技大学 Traffic lights intelligent control system based on deep learning and intelligent road-lamp
CN108665707A (en) * 2018-05-24 2018-10-16 金陵科技学院 It is a kind of prevent local traffic congestion expressway access shunting and flow cooperative control method
CN109064754A (en) * 2018-10-10 2018-12-21 南京宁昱通交通科技有限公司 A kind of expressway access shunts and flow Collaborative Control technology
JP2020160939A (en) * 2019-03-27 2020-10-01 株式会社Subaru Traffic management system
CN112435473A (en) * 2020-11-14 2021-03-02 公安部交通管理科学研究所 Expressway traffic flow tracing and ramp regulating method combined with historical data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115440052A (en) * 2022-11-09 2022-12-06 成都工业职业技术学院 Traffic flow control method and device based on big data

Also Published As

Publication number Publication date
CN113570880B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN108986492B (en) Expressway ramp vehicle flow merging and guiding method and system based on road side equipment
KR101995813B1 (en) Apparatus for providing traffic information based on image and method thereof
CN105894831B (en) Intelligent traffic control device
CN110276964B (en) Method for intelligently adjusting time of traffic light
CN108806239B (en) Pedestrian crossing control system and method based on upstream and downstream signalized intersection coordination
CN114141021B (en) Smart city traffic signal lamp control system and control method thereof
CN111145533B (en) Pedestrian abnormal traffic behavior pattern recognition management and control system based on urban area
CN113034914B (en) Highway hard shoulder dynamic adjustment system and method
WO2022213542A1 (en) Method and system for clearing information-controlled intersection on basis of lidar and trajectory prediction
CN215117798U (en) Traffic light control system
CN103164968A (en) Intelligence traffic signal lamp controlling system based on traffic flow
CN114419904B (en) Traffic light control system and control method based on vehicle Lu Yun cooperation
CN113570880B (en) Traffic light intelligent control system based on STM32
CN114822055B (en) Intelligent traffic road cooperation system based on machine vision detection
CN107578629B (en) Intelligent signal lamp control method based on urban main and secondary road intersection
CN112017455A (en) Intelligent traffic light coordination control method applied to intelligent traffic
CN112712713A (en) Traffic light automatic switching control system for relieving traffic jam
CN108898856A (en) Intelligent city's traffic optimization method and system
CN110728840A (en) Traffic control method and intelligent navigation system
CN111179615A (en) Traffic sign information indicating system and method
CN108010344B (en) Crossroad green light time adjusting method and system
CN111047871B (en) Man-machine driving hybrid traffic cooperative control system and method based on Internet of vehicles
CN111754790B (en) Ramp entrance traffic control system and method based on radar
CN104361762A (en) Self-adaptive traffic signal lamp
CN109272759B (en) Lane dynamic allocation system based on vehicle-road cooperation and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant