CN105070069B - A kind of traffic lamp control method for supporting time adjustment and emergency to handle - Google Patents
A kind of traffic lamp control method for supporting time adjustment and emergency to handle Download PDFInfo
- Publication number
- CN105070069B CN105070069B CN201510416763.9A CN201510416763A CN105070069B CN 105070069 B CN105070069 B CN 105070069B CN 201510416763 A CN201510416763 A CN 201510416763A CN 105070069 B CN105070069 B CN 105070069B
- Authority
- CN
- China
- Prior art keywords
- emergency
- state
- pass
- traffic
- east
- 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.)
- Active
Links
Landscapes
- Traffic Control Systems (AREA)
Abstract
The invention discloses a kind of main control unit using single-chip microcomputer as system, possess count down time adjustment, the control method of the traffic lights of emergency processing.The traffic behavior of cross traffic intersection is divided into four kinds of normal pass states and a kind of state of emergency by this method, the programming thought designed using sub-module, the switching of four kinds of normal pass states only is realized with a counter, and supports state of emergency switching and count down time adjustment.Compared with prior art, the inventive method divides normal pass state equity, traffic pressure can be alleviated to a greater extent, reduce the road accident rate of crossroad, taking into account for the current security of vehicle flowrate, flow of the people and flow is realized simultaneously, and realizes state of emergency processing and time adjustment, and control process is simple, perfect in shape and function and practical, with preferable promotional value and application prospect.
Description
Technical field
Monolithic processor controlled support count down time is based on the invention belongs to electronic information technical field, more particularly to one kind
Adjustment, the traffic lamp control method of emergency processing function.
Background technology
With economic sustained and rapid development, the insoluble problem of some conventional methods is occurred in that in communications and transportation.Its
In one of distinct issues the most be that the jam of road is on the rise, and be always maintained at the growth speed of higher proportion
Degree, the economic loss thereby resulted in is also increasing.Present traffic system can not meet the need of economic sustained and rapid development
Ask.With the continuous improvement of people's living standard, people have higher level to the service level and security of communications and transportation
Requirement.Block and had become under the background for the problem of people are customary but to be had to stand in road traffic, with reference to me
The actual conditions of the existing City road traffic system of state, develop the intelligent traffic lamp for being really adapted to our own characteristics
Control system has become current vital task.
In intersection control system, traffic lights automatically control be traffic control important component,
It is a kind of effective means of science traffic correcting.Sensing control can be divided into traditional traffic lights, its control mode, determined
When control, Self Adaptive Control etc..It is that wagon detector is set on crossing inlet road to sense control, traffic lights timing side
Case is calculated by computer or intelligent signal controlling machine, the car flow information that can be detected according to detector and change traffic side at any time
A kind of control mode of case.Timing controlled is that intersection traffic signal controlling machine is run by the timing scheme being previously set,
Therefore also referred to as fixed cycle is controlled.Self Adaptive Control is exactly as a uncertain system, by continuously measuring certain using traffic system
State, such as vehicle flowrate, queue length, delay time at stop, stop frequency, object is grasped so as to gradually understand, then them with wishing
The dynamic characteristic of prestige is compared, and using difference with change system adjustable parameter or produce a controlling mechanism.But this
The method of kind has following inferior position:Construction, maintenance cost are larger;The labor intensity of road management personnel is larger;Control mode is excessively solid
It is fixed, underaction;Without emergency state control function.Therefore, traditional traffic light control system is unfavorable for traffic road junction correlation-like
The solution of condition.
The content of the invention
Goal of the invention:In view of the shortcomings of the prior art, the present invention is intended to provide a kind of be based on monolithic processor controlled traffic lights
Control method, to alleviate traffic pressure to a greater extent, reduces the road accident rate of crossroad, and can flexibly carry out
Count down time is adjusted and emergency processing.
Technical scheme:For achieving the above object, the present invention is adopted the following technical scheme that:
A kind of traffic lamp control method for supporting time adjustment and emergency to handle, by the traffic feelings of cross traffic intersection
Condition is divided into four kinds of normal pass states and a kind of state of emergency, and methods described comprises the following steps:
(1)Normal pass is controlled:Four kinds of normal pass states preset corresponding timing respectively, pass through the one of single-chip microcomputer
Individual counter realizes countdown, and currently current state countdown switches to next current state after terminating, and circulates execution;
The related traffic lights time synchronisation of institute under one current state;
(2)Emergency state control:Single-chip microcomputer is received into after the signal of the state of emergency, counter timing pause TP, control
Crossing traffic lamp becomes red light, receives after the signal for eliminating the state of emergency, recovers during counter counts, control crossing traffic lamp is extensive
State before being again the state of emergency;
(3)Time adjustment control:Single-chip microcomputer is received after the signal of adjustment time, counter is closed, after storage adjustment
Time, receive after the signal that time adjustment terminates, start counter, return to normal pass state.
Further, four kinds of normal pass states are respectively:
S1:Car in south does not allow vehicle pass-through;Allow vehicle to keep straight on from west to east, turned right by north west, by
North orientation east is turned left, and is turned right by north east;Pedestrian is allowed to pass through south crossing;
S2:Car in east does not allow vehicle pass-through;Allow vehicle northwards to be turned left by west, turned right by west south,
Turned right, kept straight on from south to north by north west;Pedestrian is allowed to pass through east crossing;
S3:Car in the north does not allow vehicle pass-through;Allow vehicle to be turned right by west south, keep straight on from east to west, by
South orientation west is turned left, and is turned right by south east;Pedestrian is allowed to pass through north crossing;
S4:Car in west does not allow vehicle pass-through;Allow vehicle to be kept straight on by north orientation south, turned right by north east, by
East orientation south is turned left, and is turned right by south east;Pedestrian is allowed to pass through west crossing.
Further, in normal pass rate-determining steps, when countdown was by 3 seconds before current state switching every time, institute is controlled
There is green light to become amber light to remind pedestrian and vehicle to note;These amber lights are changed into red light after 3 seconds, while traffic system enters lower one kind
Current state, and performed with this reciprocation cycle.
Further, in normal pass rate-determining steps, before the switching of current state, it is current to put digital-to-analogue block by one
Current state produces the timing preset number of next current state, and the preset number is regard as meter in the current state of switching
The input of number device.
Further, single-chip microcomputer receives the input signal for entering the state of emergency and adjustment time from keyboard control system.Institute
State keyboard control system and use nonencoded keyboard, including adjustment time switching key, increase time button, reduce time button and
Four Independent keys of state of emergency switching key.
Beneficial effect:Compared with prior art, it is provided by the present invention a kind of based on monolithic processor controlled support countdown
Time adjustment, the control method of the traffic light systems of emergency processing function, whole traffic grade scheme are main by four
Normal pass state is constituted, the Programming Methodology designed using sub-module, realizes the conversion between the current state of four kinds of differences.
The current state of cross traffic intersection is divided into four kinds of reciprocity current states by the traffic plan used, makes vehicle flowrate, the stream of people
Amount homogenization can alleviate traffic pressure to a greater extent by crossroad, reduce the road accident rate of crossroad, simultaneously
That realizes the current security of vehicle flowrate, flow of the people and flow takes into account equilibrium.The present invention can combine each intersection vehicle flux
Size monitoring situation is realized to be adjusted to time of every kind of current state, and can enter the state of emergency by pressing for button,
Procedure logical control system is simple, and easy to operate, perfect in shape and function is practical, is an ideal rational scheme.
Brief description of the drawings
Fig. 1 is the schematic diagram of four kinds of normal pass states in the inventive method;
Fig. 2 is the software program overall flow figure for realizing the inventive method.
Embodiment
With reference to specific embodiment, the present invention is furture elucidated, it should be understood that these embodiments are merely to illustrate the present invention
Rather than limitation the scope of the present invention, after the present invention has been read, various equivalences of the those skilled in the art to the present invention
The modification of form falls within the application appended claims limited range.
It is a kind of based on monolithic processor controlled support count down time adjustment, emergency processing disclosed in the embodiment of the present invention
The traffic light systems of function, the multiple control mode of traffic lights is realized by single-chip microcomputer embedded software program, whole system
System is subject to the control hinge that reset circuit, crystal oscillating circuit are constituted system by control core of AT89C51 single-chip microcomputers, and system mode shows
Show system using 7 sections of LED charactrons countdown display reality, red, yellow, and green LED is used as signal lamp.System removes base
, can be compared with also with functions such as count down time adjustment, emergency processing outside this traffic lights and traffic parameter store function
The various situations that good processing crossroad occurs.
As shown in figure 1, the traffic conditions of cross traffic intersection are divided into four kinds normally by the traffic lamp control method of the present invention
Passage situation.Signal lamp includes signalling light for vehicle and walker signal lamp in Fig. 1, dark(Red light)Representative does not allow to pass through, light color
(Green light)Representative allows to pass through.When the left side green light on opposite represents that now the crossing vehicle can turn left, and similarly turn right, when
When traffic lights in the middle of the crossing of opposite is green, representing the vehicle at the crossing can keep straight on.Wherein 13,14,15, No. 16 traffic lights point
Not Biao Shi north, east, south, the walker signal lamp at West Road mouthful, represent that the crossing allows pedestrian to pass through when corresponding lamp is green light.Point
Not Yong S1, S2, S3, S4 represents four kinds of normal pass states, and every kind of state is defined as follows:
S1:Car in south does not allow vehicle pass-through;Allow vehicle to keep straight on from west to east, turned right by north west, by
North orientation east is turned left, and is turned right by north east;Pedestrian is allowed to pass through south crossing;
S2:Car in east does not allow vehicle pass-through;Allow vehicle northwards to be turned left by west, turned right by west south,
Turned right, kept straight on from south to north by north west;Pedestrian is allowed to pass through east crossing;
S3:Car in the north does not allow vehicle pass-through;Allow vehicle to be turned right by west south, keep straight on from east to west, by
South orientation west is turned left, and is turned right by south east;Pedestrian is allowed to pass through north crossing;
S4:Car in west does not allow vehicle pass-through;Allow vehicle to be kept straight on by north orientation south, turned right by north east, by
East orientation south is turned left, and is turned right by south east;Pedestrian is allowed to pass through west crossing.
A kind of traffic lamp control method for supporting time adjustment and emergency to handle disclosed in the embodiment of the present invention, mainly
The step of controlling is adjusted including normal pass control, emergency state control and time, it is main wherein in normal pass rate-determining steps
Including:(1)Four kinds of current state timing corresponding times of four traffic intersections, each count down time to the current shape of just switching
State 1 time, and circulate four kinds of normal pass states of execution;(2), will be green when countdown was by 3 seconds when current state will switch every time
Lamp becomes amber light to remind vehicle and pedestrian.Step(2)In each state continue respective settings time, when numeral method falls
When timing was by 3 seconds, green light is changed into amber light to remind pedestrian and vehicle to note;These amber lights are changed into red light after 3 seconds, while traffic system
System enters a kind of lower current state, and is performed with this reciprocation cycle.
Realize that the time-delay method in countdown function generally there are two kinds:A kind of is to utilize the timing carried inside hardware device
Device, which overflows, to interrupt to realize the timing of 1 second, and another method is the method being delayed using software programming.The system design can be distinguished
Time delay is realized using both approaches.The method that 1 second is for example realized by software programming:
Assuming that it is 20 milliseconds that we set software counter T0, the T0 timing that an initial value is 50 in main program.This
Sample CPU when T0 timing is to 20 milliseconds will receive the spilling interrupt requests from it, into T0 interrupt service subroutine.
In interrupt service subroutine, CPU first makes software count value subtract 1, and whether then judge it is zero.Meant that 1 second when it is 0
Have timed out, output time can be refreshed and show program.
Mainly include in emergency state control step:(3) when emergency vehicle by when, main control singlechip receives traffic pipe
The signal for the entrance state of emergency that reason personnel are sent by button, during by counter counts, control crossing traffic lamp becomes red light, allows
Other vehicles and pedestrian's pause traveling;(4) when emergency vehicle by after, main control singlechip receive traffic administration personnel by by
The signal for the elimination state of emergency that key is sent, traffic control system can recover the current state of original traffic automatically.
Mainly include in the step of time adjustment control:(5) when needing adjustment time, main control singlechip receives adjustment
After the signal of time, counter, the time after storage adjustment are closed;(6)After time adjustment is finished, when main control singlechip is received
Between adjust after the signal of end, start counter, return to normal pass state.
The signal that the signal of state of emergency switching and time adjustment switch can be that site traffic administrative staff pass through keyboard
The letter that other traffics monitoring that is that button is sent or being received by network communication module or management system are sent
Number.
The traffic light control system of the embodiment of the present invention uses keyboard control system, and it includes four simply independently
Button, adjustment time switching key K2, increase time button K3, reduction time button K4 and state of emergency switching key K5.When
When pressing button K2 for the first time, the switch of adjustment traffic time is opened, and now can increase traffic behavior by pressing button K3
Change count down time or traffic behavior is reduced by K4 and change count down time.Traffic behavior conversion time is controlled in 10-
Between 100 seconds.When there is emergency vehicle to need current, can press button K5 makes traffic system enter promptly current state, when
Promptly after current state, K5 systems are pressed again can automatically restore to original normal pass state.Keyboard control system is transported
It is nonencoded keyboard, because the system needs the button used relatively fewer, so have selected simple Independent keys.
As shown in Fig. 2 the entirety realized for software program in the single-chip microcomputer of the traffic lamp control method of the embodiment of the present invention
In flow chart, flow by taking Keyboard Control as an example, mainly include the following steps that:
(1)System enters initialization program, timer 0(The work(of counter is only realized by a timer in system
Energy)Open, system starts countdown, numeral method countdown, traffic lights enter normal pass state;
(2)Stand-alone keypad module carries out keyboard scan, if no button is pressed, charactron and traffic lights are continued to run with
Step(1)In state;
(3)After having state of emergency switching key to press, traffic system enters the state of emergency, and all traffic lights are changed into red
Color, receive eliminate the state of emergency signal before can all maintain this state, the normal operating condition of system rebound afterwards and from
Step(1)In state bring into operation;
(4)In step(2), can be according to institute if adjustment time switching shift knob is pressed during middle progress keyboard scan
The situation adjustment time parameter of button, and Off Timer 0, the time parameter after adjustment can be stored in AT24C02, when
After adjustment time switching push button is depressed again, system can be returned to normal condition, and operating procedure again(1)State.
The theme of this method for designing is sub-module design, entirely traffic grade scheme will be divided into four normally
Current block of state and a state of emergency module, programming is realized using a counter, and a monolithic is selected first
Machine, it is desirable to have a counter inside it, such as be heuristicimal counter.After modularization is realized, by program reset or
Person's program sets to realize the switchings of different normal pass states, due to the counting of each module be it is incomplete same,
Because each module here is that realization is operated together with preset number with rolling counters forward, so needing to consider increase by one
Put digital-to-analogue block.Putting the major function of digital-to-analogue block can be subdivided into:Corresponding current state will be produced to the current state input of difference
Next current state preset number, as four traffic intersections pass through state in figure.Such as preceding analysis, it has been determined that this is
System has four normal pass states, and puts several submodules and have to the preset number of next current state being ready in advance, in shape
The input of next current state counter is used as when state switches.
Claims (5)
1. a kind of traffic lamp control method for supporting time adjustment and emergency to handle, it is characterised in that by cross traffic road
The traffic conditions of mouth are divided into four kinds of normal pass states and a kind of state of emergency, and methods described comprises the following steps:
(1)Normal pass is controlled:Four kinds of normal pass states preset corresponding timing respectively, pass through a meter of single-chip microcomputer
Number device realizes countdown, and currently current state countdown switches to next current state after terminating, and circulates execution;One
The related traffic lights time synchronisation of institute under current state;
(2)Emergency state control:Single-chip microcomputer is received into after the signal of the state of emergency, the counter timing pause TP, control
Crossing traffic lamp becomes red light, receives after the signal for eliminating the state of emergency, recovers during the counter counts, controls crossing traffic
Lamp reverts to the state before the state of emergency;
(3)Time adjustment control:Single-chip microcomputer is received after the signal of adjustment time, the counter is closed, after storage adjustment
Time, receive after the signal that time adjustment terminates, start the counter, return to normal pass state;
Four kinds of normal pass states are respectively:
S1:Car in south does not allow vehicle pass-through;Allow vehicle to keep straight on from west to east, turned right by north west, by north orientation
East is turned left, and is turned right by north east;Pedestrian is allowed to pass through south crossing;
S2:Car in east does not allow vehicle pass-through;Allow vehicle northwards to be turned left by west, turned right by west south, by north
Westwards turn right, keep straight on from south to north;Pedestrian is allowed to pass through east crossing;
S3:Car in the north does not allow vehicle pass-through;Allow vehicle to be turned right by west south, keep straight on from east to west, by south orientation
West is turned left, and is turned right by south east;Pedestrian is allowed to pass through north crossing;
S4:Car in west does not allow vehicle pass-through;Allow vehicle to be kept straight on by north orientation south, turned right by north east, by east orientation
South is turned left, and is turned right by south east;Pedestrian is allowed to pass through west crossing.
2. the traffic lamp control method that support time adjustment according to claim 1 and emergency are handled, its feature exists
In in normal pass rate-determining steps, when countdown was by 3 seconds before current state switching every time, all green lights of control become amber light
Remind pedestrian and vehicle.
3. the traffic lamp control method that support time adjustment according to claim 1 and emergency are handled, its feature exists
In in normal pass rate-determining steps, before the switching of current state, under putting digital-to-analogue block by one for currently current state is produced
The timing preset number of one current state, in the current state of switching using the preset number as counter input.
4. the traffic lamp control method that support time adjustment according to claim 1 and emergency are handled, its feature exists
In single-chip microcomputer receives the input signal for entering the state of emergency and adjustment time from keyboard control system.
5. the traffic lamp control method that support time adjustment according to claim 4 and emergency are handled, its feature exists
In the keyboard control system uses nonencoded keyboard, including adjustment time switching key, increase time button, reduction time
Four Independent keys of button and state of emergency switching key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510416763.9A CN105070069B (en) | 2015-07-15 | 2015-07-15 | A kind of traffic lamp control method for supporting time adjustment and emergency to handle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510416763.9A CN105070069B (en) | 2015-07-15 | 2015-07-15 | A kind of traffic lamp control method for supporting time adjustment and emergency to handle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105070069A CN105070069A (en) | 2015-11-18 |
CN105070069B true CN105070069B (en) | 2017-07-18 |
Family
ID=54499423
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510416763.9A Active CN105070069B (en) | 2015-07-15 | 2015-07-15 | A kind of traffic lamp control method for supporting time adjustment and emergency to handle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105070069B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106560873A (en) * | 2016-11-08 | 2017-04-12 | 淮阴工学院 | Multifunctional traffic light system |
CN106530764A (en) * | 2016-12-29 | 2017-03-22 | 张四清 | Traffic light vehicle flow control system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202110665U (en) * | 2011-06-23 | 2012-01-11 | 长春工业大学 | Intelligence control system of traffic crossing |
CN102446419A (en) * | 2010-10-15 | 2012-05-09 | 白雪宁 | Intelligent traffic light |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4866648B2 (en) * | 2006-04-28 | 2012-02-01 | 株式会社京三製作所 | Traffic signal control method |
-
2015
- 2015-07-15 CN CN201510416763.9A patent/CN105070069B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446419A (en) * | 2010-10-15 | 2012-05-09 | 白雪宁 | Intelligent traffic light |
CN202110665U (en) * | 2011-06-23 | 2012-01-11 | 长春工业大学 | Intelligence control system of traffic crossing |
Non-Patent Citations (2)
Title |
---|
CPLD技术在交通信号灯中的应用;张丽丽;《现代制造技术与装备》;20111231(第4期);第72,86页 * |
基于 AT89S52 的交通灯综合实验设计;郝文延;《电子科技》;20130615;第26卷(第6期);第164-166页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105070069A (en) | 2015-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103559795B (en) | Multi-strategy and multi-object self-adaptation traffic control method | |
CN103942976B (en) | A kind of regulate and control method considering the parking guidance system of down time | |
CN110111592B (en) | Method for dynamically matching optimal signal timing scheme based on traffic signal controller | |
CN110969871B (en) | Intelligent traffic light control system and control method | |
CN103136938A (en) | Pedestrian crossing passage traffic light intelligent control system | |
CN104933872A (en) | Single-intersection traffic signal optimization control method | |
WO2018232896A1 (en) | Intelligent traffic light control method and device | |
CN102881173B (en) | Traffic demand control method and system | |
CN105070069B (en) | A kind of traffic lamp control method for supporting time adjustment and emergency to handle | |
CN102013170A (en) | Vehicle counting-based traffic light control system and control method thereof | |
CN107919022A (en) | A kind of intelligent traffic light signal control method of dynamic duration distribution | |
Dakhole et al. | Design of intelligent traffic control system based on ARM | |
CN108417055A (en) | A kind of trunk roads synergistic signal machine control method based on radar detector | |
CN103198671A (en) | System and method of prompting jam conditions at exits and entrances of park | |
CN109168221A (en) | A kind of energy-saving control system for roam lamp and method | |
CN205582271U (en) | Intelligent transportation lamp system based on dynamic flow monitoring | |
CN106297327A (en) | The traffic lights of intelligence switching by vehicle ratio are treated according to each crossing | |
CN109035816A (en) | A kind of intelligent tide flow lamp based on data prediction | |
CN112863205B (en) | Signal lamp timing method, device, equipment and storage medium based on big data | |
CN102005126B (en) | Multi-intersection traffic signal control machine | |
CN106056906A (en) | Signal intersection left turn waiting zone setting module under arterial coordination control condition and work method thereof | |
CN206271187U (en) | The green ripple predictor of bicycle | |
CN202013665U (en) | Count down display for road traffic signal | |
CN108417056A (en) | A kind of crossroad signal machine control method based on radar detector | |
CN101996482A (en) | Intelligent traffic intersection controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |