Traffic signal lamp real-time control system

By using infrared sensors and microcontroller technology in the traffic light control system, the traffic flow is detected in real time and the signal light time is adjusted, which solves the congestion problem during peak hours, improves traffic efficiency, and enhances the flexibility and safety of the system.

CN221884460UInactive Publication Date: 2024-10-22XI'AN PETROLEUM UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420381129.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-02-28
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing traffic light control system cannot effectively adjust during peak traffic flow periods during peak hours, resulting in congestion and lack of intelligence to meet traffic needs.

Method used

A real-time traffic light control system is designed, which includes a main control module, an infrared proximity sensor module, a display module and a key input module. It uses STC89C52 microcontroller and 74HC245 chip to detect traffic flow through infrared sensors, adjust the signal time in real time and display the countdown, achieving Flexible adjustment of traffic flow.

Benefits of technology

It improves traffic efficiency, enhances the ability to respond to emergencies, and achieves flexible adjustment during peak traffic periods. The system has low cost, easy installation, safety and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221884460U_ABST
    Figure CN221884460U_ABST
Patent Text Reader

Abstract

The utility model belongs to the technical field of lighting equipment, and particularly relates to a traffic signal lamp real-time control system. The system is mainly composed of a main control module, an infrared proximity sensor module, a display module, a key input module and a driving module. According to the main principle, an STC89C52 single-chip microcomputer is used as a main controller, traffic flow data detected by an E18-D50NK infrared proximity sensor and peripheral keys are used as input, a main program of the single-chip microcomputer is written through C language, display of a nixie tube and a light emitting diode is used as output, operation of the whole traffic system is controlled, and real-time traffic control is achieved. The main purpose of controlling the road traffic by detecting and counting the traffic flow at the intersection is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of lighting equipment, and in particular relates to a real-time control system for a traffic signal lamp. Background Art

[0002] Traffic signal real-time control system, also known as intelligent traffic lights, was studied relatively early in foreign countries, but relatively late in my country, and the level of traffic management is relatively poor. At present, my country's traditional manually controlled traffic intelligent city lights are usually controlled by timed traffic flow distribution. However, as traffic demand becomes increasingly large, the existing technology is not intelligent enough to meet the needs of peak traffic directions. Therefore, a real-time traffic signal control system is needed to guide traffic in the city and solve the congestion caused by insufficient intelligence of traffic lights in the peak traffic direction during commuting hours. Utility Model Content

[0003] Based on the above situation, the main purpose of the utility model is to provide a real-time control system for traffic lights, which has the function of motor vehicle flow detection and control, and uses an intelligent digital manager to display vehicle running time and LED to indicate vehicle passage, so as to solve the congestion phenomenon during peak hours in the city and improve traffic efficiency.

[0004] To achieve the above purpose, the technical solution of the utility model is as follows:

[0005] The traffic light real-time control system includes a main control module, an infrared proximity sensor module, a display module, a key input module and a drive module.

[0006] The main control module includes an STC89C52 single-chip microcomputer, a power supply circuit, a crystal oscillator circuit and a reset circuit, which are used to enable the entire traffic signal real-time control system to operate normally; the infrared proximity sensor module is electrically connected to the STC89C52 single-chip microcomputer, and is used to detect the size of the vehicle flow in real time; the display module is electrically connected to the STC89C52 single-chip microcomputer, and uses light-emitting diodes as traffic lights and digital tubes as countdown displays of traffic lights at intersections; the key input module uses an independent key connection to set the operating status of the system; the drive module uses a 74HC245 chip, which is electrically connected to the STC89C52 single-chip microcomputer and is used to drive the circuit.

[0007] Preferably, the power supply circuit is connected to an external power supply via a DC power supply interface, and supplies power to the entire system via a self-locking switch.

[0008] Preferably, the crystal oscillator circuit is formed by connecting a quartz crystal to the XTAL1 and XTAL2 pins of the single-chip microcomputer to form a self-excited oscillator and generate a clock pulse signal inside the single-chip microcomputer.

[0009] Preferably, the reset circuit adopts two modes: power-on automatic reset and button reset. The power-on reset is achieved by connecting the RST terminal to the power supply Vcc through a resistor.

[0010] Preferably, the STC89C52 single-chip microcomputer P2 port sends a signal, which is connected to the light-emitting diode after the current is enhanced by a pull-up resistor; the digital tube uses a two-in-one common cathode digital tube, and the common cathode digital tube connects all cathodes together, and then the STC89C52 single-chip microcomputer sends different high and low levels, which are connected to the anode of the digital tube after being driven by the 74HC245 chip.

[0011] Preferably, pin 1 of the 74HC245 chip is connected to Vcc, pin 19 is connected to ground, and the input and output are the same.

[0012] Preferably, the independent buttons include a red light button and a yellow light button to form an emergency stop mode and a night mode, an east-west button to indicate east-west traffic, a north-south button to indicate north-south traffic, and a reset button to reset the system.

[0013] Preferably, the system further comprises a buzzer, which is composed of a buzzer circuit, a current limiting resistor and a transistor.

[0014] The utility model has the following beneficial effects:

[0015] 1. Setting up a key input module enables the traffic lights to manually force the red and green lights to light up, thus achieving avoidance of emergencies and increasing the intersection's ability to respond to emergencies.

[0016] 2. Real-time detection of motor vehicle traffic is achieved through the infrared proximity sensor module, so that the system can more flexibly adjust the traffic flow during peak hours and improve traffic efficiency.

[0017] 3. Use advanced single-chip microcomputer technology to receive and process real-time data on motor vehicle traffic, automatically adjust the time and countdown of traffic lights, and make the control system more reasonable and reliable.

[0018] 4. The control system of the utility model has broad prospects and has the advantages of low cost, easy installation, good practicality, safety and reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a hardware design block diagram of the utility model;

[0020] Figure 2 It is the overall flow chart of the system of the utility model;

[0021] Figure 3The STC89C52 single-chip microcomputer and its minimum system schematic diagram of the utility model;

[0022] Figure 4 This is a functional diagram of the display module of the utility model;

[0023] Figure 5 This is a key control circuit diagram of the utility model. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0025] refer to Figure 1-5 The traffic light real-time control system includes a main control module, an infrared proximity sensor module, a display module, a key input module and a drive module.

[0026] Specifically, the main control module includes an STC89C52 single-chip microcomputer, a power supply circuit, a crystal oscillator circuit and a reset circuit, which are used to enable the entire traffic signal real-time control system to operate normally.

[0027] Exemplarily, the power supply circuit is connected to an external power supply via a DC power supply interface, and supplies power to the entire system via a self-locking switch.

[0028] Furthermore, the crystal oscillator circuit is composed of a quartz crystal connected to the XTAL1 and XTAL2 pins of the single-chip microcomputer to form a self-excited oscillator and generate a clock pulse signal inside the single-chip microcomputer, wherein the capacitors C2 and C3 are used to stabilize the frequency and quickly start the oscillation, and the capacitance value is 5-30pF, and 22pF is selected in this embodiment, and the oscillation frequency range of the crystal oscillator CYS is selected between 1.2-12MHz, and the frequency value of 12MHz is selected in this embodiment.

[0029] Furthermore, the reset circuit adopts two modes: power-on automatic reset and button reset. The power-on reset is achieved by connecting the RST terminal to the power supply Vcc through a resistor.

[0030] In addition to the above three functions, another major content in the microcontroller chip is the parallel I / O port.

[0031] STC89C52 contains 4 I / O ports, each port has similar structural characteristics and working characteristics, and all contain latches, bidirectional output port drivers and input port buffers, but each has its own characteristics. Port P0 can transmit the lower 8 bits of the address in time-sharing, and port P2 can transmit the higher 8 bits of the address. Moreover, the 4 I / O ports of this microcontroller are all 8-bit bidirectional ports.

[0032] Specifically, the infrared proximity sensor module is electrically connected to the STC89C52 single chip microcomputer for real-time detection of the size of vehicle flow.

[0033] Exemplarily, the infrared proximity sensor module uses an E18-D50NK infrared light switch to detect the traffic flow at an intersection. The principle is to use the reflection of light. The receiving end detects whether the inspection object passes by by detecting the amount of infrared light emitted by the sending end and blocked back. The inspection object can be anything that can reflect light.

[0034] When a car passes through the light source area at an intersection, the light source in front of the detector is blocked. At this time, the sensor will input a signal to the microcontroller, which will control the operation of related programs, count the input, and complete the counting of vehicle flow in front of the intersection.

[0035] Specifically, the display module is electrically connected to the STC89C52 single-chip computer, and light-emitting diodes are used as traffic lights and digital tubes are used as countdown displays for traffic lights at intersections. The traffic lights indicate the current traffic status, and the digital tube countdown display can prompt the arrival of the next traffic status, so that it can prepare for passage or stop and wait in advance.

[0036] For example, a light emitting diode is a solid-state semiconductor device that can convert electrical energy into visible light. It can directly convert electricity into light. A signal is sent from the P2 port of the microcontroller, and the current is enhanced by a pull-up resistor and connected to the light emitting diode, thereby realizing the system's control over the light emitting diode.

[0037] For example, the countdown display uses a 0.36-inch two-in-one common cathode digital tube, and the common cathode digital tube connects all the cathodes together, and then the single-chip microcomputer sends different high and low levels, which are connected to the anode of the digital tube after being driven by 74HC245.

[0038] Exemplarily, the key input module uses independent keys to set the operating status of the system. The independent keys include setting a red light key and a yellow light key to form an emergency stop mode and a night mode, setting an east-west key to indicate east-west traffic, and a north-south button to indicate north-south traffic. A reset button is set to reset the system.

[0039] Furthermore, when processing the buttons on the microcontroller, eliminating key jitter is an important process. It is a mechanical jitter. If the key is not compressed within the critical time, it will cause electrical level instability, which is too fast for people but too slow and long for the clock. De-jittering is to avoid the time of the jitter part, not to eliminate it.

[0040] Therefore, software is generally used to eliminate it, that is, when a low level is found, it is directly avoided with 20ms. After the delay is completed, the port is read again. If the result is 1, it means that the low level time is less than 20ms, which can be regarded as an interference signal. When the result is 0, it means that the key is pressed and the relevant program can be automatically read.

[0041] Exemplarily, the driving module uses a 74HC245 chip, wherein pin 1 of the 74HC245 chip is connected to Vcc, and pin 19 is connected to ground, and the input and output are the same, and the chip is used to drive the circuit and light up the digital tube.

[0042] Exemplarily, the buzzer module adopts an active buzzer, which is composed of a buzzer circuit, a current limiting resistor and a transistor, wherein the transistor acts as a switch. The module acts as an alarm in this embodiment. For example, the east-west green light and the north-south red light. If an object passes in front of the north-south sensor, the buzzer will sound an alarm to warn pedestrians or vehicles.

[0043] Specifically, this embodiment uses the STC89C52 single-chip microcomputer as the main control module, the traffic flow data detected by the E18-D50NK infrared proximity sensor and the peripheral buttons as input, and controls the operation of the entire traffic system by using the C language to write the single-chip microcomputer main program and the display of the digital tube and the light-emitting diode as output.

[0044] Exemplarily, the conversion time of the traffic light is changed by sensing the vehicles passing through the intersection, and the conversion is expressed as follows: for example, the current travel time is 20 seconds, and the number of passing vehicles is greater than or equal to 10, then the next travel time will be increased by 5 seconds, becoming 25 seconds; for example, the current travel time is 25 seconds, and the number of passing vehicles is greater than or equal to 12.5, then the next travel time will be increased by 5 seconds, becoming 30 seconds; for example, the current travel time is 20 seconds, and the number of passing vehicles is less than 10, then the next travel time will be reduced by 5 seconds, becoming 15 seconds; for example, the current travel time is 25 seconds, and the number of passing vehicles is less than 12.5, then the next travel time will be reduced by 5 seconds, becoming 20 seconds; but the reduction cannot be infinite, and the minimum travel time is 15 seconds.

[0045] The above is only a specific implementation of a part of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can make equivalent substitutions or changes according to the technical solution and improved ideas of the utility model within the technical scope disclosed in this application, which should be included in the protection scope of the utility model.

Claims

1. Traffic light real-time control system, characterized in that: It includes a main control module, an infrared proximity sensor module, a display module, a key input module and a drive module; The main control module includes an STC89C52 single-chip microcomputer, a power supply circuit, a crystal oscillator circuit and a reset circuit, which are used to ensure the normal operation of the entire traffic signal real-time control system; The infrared proximity sensor module is electrically connected to the STC89C52 single chip microcomputer and is used to detect the size of the vehicle flow in real time; The display module is electrically connected to the STC89C52 single-chip computer, and uses a light-emitting diode as a traffic signal light and a digital tube as a countdown display of a traffic light at an intersection; The key input module uses independent key connection to set the operating status of the system; The driving module uses a 74HC245 chip, which is electrically connected to the STC89C52 single-chip computer and is used for driving the circuit.

2. The real-time control system for traffic lights according to claim 1 is characterized in that: The power supply circuit is connected to an external power supply via a DC power supply interface and supplies power to the entire system via a self-locking switch; The crystal oscillator circuit is a quartz crystal connected to the XTAL1 and XTAL2 pins of the single-chip microcomputer to form a self-excited oscillator and generate a clock pulse signal inside the single-chip microcomputer; The reset circuit adopts two modes: power-on automatic reset and button reset. The power-on automatic reset is achieved by connecting the RST terminal to the power supply Vcc through a resistor.

3. The real-time control system for traffic lights according to claim 1 is characterized in that: The STC89C52 single-chip microcomputer P2 port sends a signal, which is connected to the light-emitting diode after the current is enhanced by the pull-up resistor; The digital tube uses a two-in-one common cathode digital tube, and the common cathode digital tube connects all cathodes together, and then the STC89C52 single-chip microcomputer sends out different high and low levels, which are connected to the anode of the digital tube after being driven by the 74HC245 chip.

4. The real-time control system for traffic lights according to claim 1, characterized in that: Pin 1 of the 74HC245 chip is connected to Vcc, and pin 19 is grounded, and the input and output are the same.

5. The real-time control system for traffic lights according to claim 1 is characterized in that: The independent keys include a red light key and a yellow light key to form an emergency stop mode and a night mode, an east-west key to indicate east-west traffic, a north-south key to indicate north-south traffic, and a reset key to reset the system.

6. The real-time control system for traffic lights according to claim 1, characterized in that: The device also comprises a buzzer, which is composed of a buzzer circuit, a current limiting resistor and a triode.