Control system for controlling traffic light passing time according to traffic flow
By designing a control system including main control module, drive module, infrared detection module, display module and key module, using microcontrollers and infrared sensors to detect traffic flow and intelligently adjust traffic light time, the problem of inability to effectively adjust traffic lights in the existing technology is solved and traffic traffic efficiency is improved.
Patent Information
- Application Number
- CN202422314836.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2034-09-23
AI Technical Summary
The existing technology cannot effectively adjust the traffic lights' passage time according to the traffic flow, making it difficult to completely solve the traffic congestion problem.
A control system including a main control module, a driver module, an infrared detection module, a display module, a buzzer module and a button module is designed. The traffic flow is detected by a microcontroller and infrared sensor, signal processing is performed through the microcontroller, and the display time of the traffic light is intelligently adjusted.
It realizes intelligent adjustment of traffic light time based on traffic flow, improves traffic efficiency and reduces traffic congestion.
Smart Images

Figure CN223284666U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the field of control circuits, and in particular relates to a control system for controlling the passage time of traffic lights according to vehicle flow. Background Art
[0002] Traffic congestion has become a significant issue in the lives of urban residents, and urban traffic, in particular, has been a source of widespread public concern. With the acceleration of urbanization and population growth, many cities have built expressways to address this thorny issue, attempting to improve transportation. However, over time, people have come to realize that traffic congestion cannot be completely resolved simply by building expressways. Utility Model Content
[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a control system for controlling the passage time of traffic lights according to the traffic volume.
[0004] The technical solution adopted by the utility model to solve its technical problems is:
[0005] A control system for controlling the passage time of traffic lights according to the traffic flow, comprising a main control module, a driving module, an infrared detection module, a display module, a buzzer module, a key module and a power supply module for providing working power to the main control module, the driving module, the infrared detection module, the display module, the buzzer module and the key module, wherein the power supply module is composed of a power interface, an electrolytic capacitor 1, an electrolytic capacitor 2, a diode 1, a capacitor 1 and a power chip, wherein the power interface is connected to a +12V power supply, a positive electrode of a diode 1 and a positive electrode of an electrolytic capacitor 1 are connected to pin 1 of the power interface, pin 2 of the power interface and a negative electrode of an electrolytic capacitor 1 are grounded respectively, a negative electrode of a diode 1 outputs a working voltage of +11.3V, pin 3 of the power chip and one end of a capacitor 1 are connected to a working voltage of +11.3V, pin 1 of the power chip and a positive electrode of an electrolytic capacitor 2 output a working voltage of +5V, pin 2 of the power chip, a negative electrode of an electrolytic capacitor 2 and the other end of a capacitor 1 are grounded respectively; the main control module is composed of a single-chip microcomputer, Resistor 8, resistor 9, resistor 10, resistor 11, resistor 12, resistor 13, resistor 14, capacitor 2, capacitor 3, capacitor 4, switch 8, crystal oscillator, where MCU pin 1 is connected to network label S1, MCU pin 2 is connected to network label S2, MCU pin 3 is connected to network label S3, MCU pin 4 is connected to network label S4, MCU pin 6 is connected to network label P1, switch 8 pin 4, capacitor 4 end, resistor 14 end are connected to MCU pin 9, MCU 1 Pin 1 is connected to network label P2, pin 12 of the MCU is connected to network label P3, pin 13 of the MCU is connected to network label P4, pin 14 of the MCU is connected to network label P5, pin 15 of the MCU is connected to network label DX, pin 16 of the MCU is connected to network label NB, pin 17 of the MCU is connected to network label P6, one end of capacitor 3 and one end of the crystal oscillator are connected to pin 18 of the MCU, the other end of the crystal oscillator and one end of capacitor 2 are connected to pin 19 of the MCU, and pin 22 of the MCU is connected to one end of resistor 13. The other end of resistor 13 is connected to network label G1. Pin 23 of the MCU is connected to the first end of resistor 12. The other end of resistor 12 is connected to network label Y1. Pin 24 of the MCU is connected to the first end of resistor 11. The other end of resistor 11 is connected to network label R1. Pin 25 of the MCU is connected to the first end of resistor 11. The other end of resistor 10 is connected to network label G2. Pin 26 of the MCU is connected to the first end of resistor 9. The other end of resistor 9 is connected to network label Y2. Pin 27 of the MCU is connected to the first end of resistor 8. The other end of resistor 8 is connected to network label R2, pin 33 of the single-chip microcomputer is connected to network label G0, pin 34 of the single-chip microcomputer is connected to network label F0, pin 35 of the single-chip microcomputer is connected to network label E0, pin 36 of the single-chip microcomputer is connected to network label D0, pin 37 of the single-chip microcomputer is connected to network label C0, pin 38 of the single-chip microcomputer is connected to network label B0, pin 39 of the single-chip microcomputer is connected to network label A0, pin 40 of the single-chip microcomputer is connected to the operating voltage +5V, pin 1 of switch 8 is connected to the other end of capacitor 4, and the other ends of resistor 14, capacitor 3, and capacitor 2 are grounded respectively;The driver module consists of a display driver chip, resistor 1, resistor 2, resistor 3, resistor 4, resistor 5, resistor 6, and resistor 7. Pin 1 of the display driver chip and pin 20 of the display driver chip are connected to the operating voltage +5V. Pin 3 of the display driver chip is connected to one end of resistor 1, and the other end of resistor 1 is connected to network label A0. Pin 4 of the display driver chip is connected to one end of resistor 2, and the other end of resistor 2 is connected to network label B0. Pin 5 of the display driver chip is connected to one end of resistor 3, and the other end of resistor 3 is connected to network label C0. Pin 6 of the display driver chip is connected to one end of resistor 4, and the other end of resistor 4 is connected to network label D0. Pin 7 of the display driver chip is connected to one end of resistor 5, and the other end of resistor 5 is connected to network label E0. Pin 8 of the display driver chip is connected to one end of resistor 6, and the other end of resistor 6 is connected to network label F0. Pin 9 of the display driver chip is connected to one end of resistor 7. The other end of resistor seven is connected to network label G0, pin 10 of the display driver chip and pin 19 of the display driver chip are grounded respectively, pin 11 of the display driver chip is connected to network label G, pin 12 of the display driver chip is connected to network label F, pin 13 of the display driver chip is connected to network label E, pin 14 of the display driver chip is connected to network label D, pin 15 of the display driver chip is connected to network label C, pin 16 of the display driver chip is connected to network label B, and pin 17 of the display driver chip is connected to network label A; the infrared detection module consists of interface 1 and interface 2, wherein pin 1 of interface 1 and pin 1 of interface 2 are grounded respectively, pin 3 of interface 1 and pin 3 of interface 2 are connected to the working power supply +5V, pin 2 of interface 1 is connected to network label DX, and pin 2 of interface 2 is connected to network label NB;The display module consists of digital tube 1, digital tube 2, digital tube 3, digital tube 4, yellow light 1, yellow light 2, yellow light 3, yellow light 4, green light 1, green light 2, green light 3, green light 4, red light 1, red light 2, red light 3, and red light 4. Among them, the 1st pin of digital tube 1 is connected to the network label G, the 3rd pin of digital tube 1 is connected to the network label A, the 4th pin of digital tube 1 is connected to the network label F, the 5th pin of digital tube 1 is connected to the network label S4, the 6th pin of digital tube 1 is connected to the network label D, the 7th pin of digital tube 1 is connected to the network label E, the 8th pin of digital tube 1 is connected to the network label C, the 9th pin of digital tube 1 is connected to the network label B, the 10th pin of digital tube 1 is connected to the network label S3, the 1st pin of digital tube 2 is connected to the network label Connect to network label G, digital tube 2 3 pin connected to network label A, digital tube 2 4 pin connected to network label F, digital tube 2 5 pin connected to network label S2, digital tube 2 6 pin connected to network label D, digital tube 2 7 pin connected to network label E, digital tube 2 8 pin connected to network label C, digital tube 2 9 pin connected to network label B, digital tube 2 10 pin connected to network label S1, digital tube 3 1 pin connected to network label G, digital tube 3 3 pin connected to network label A, digital tube 3 4 pin connected to network label F, digital tube 3 5 pin connected to network label S4, digital tube 3 6 pin connected to network label D, digital tube 3 7 pin connected to network label E, digital tube 3 8 pin connected Connect to network label C, digital tube three 9 pin connected to network label B, digital tube three 10 pin connected to network label S3, digital tube four 1 pin connected to network label G, digital tube four 3 pin connected to network label A, digital tube four 4 pin connected to network label F, digital tube four 5 pin connected to network label S2, digital tube four 6 pin connected to network label D, digital tube four 7 pin connected to network label E, digital tube four 8 pin connected to network label C, digital tube four 9 pin connected to network label B, digital tube four 10 pin connected to network label S1, yellow light one positive pole connected to network label Y1, yellow light two positive pole connected to network label Y2, yellow light three positive pole connected to network label Y2, yellow light four positive pole connected Connect to network label Y1, the positive pole of green light 1 is connected to network label G1, the positive pole of green light 2 is connected to network label G2, the positive pole of green light 3 is connected to network label G2, the positive pole of green light 4 is connected to network label G1, the positive pole of red light 1 is connected to network label R1, the positive pole of red light 2 is connected to network label R2, the positive pole of red light 3 is connected to network label R2, and the positive pole of red light 4 is connected to network label R1; the buzzer module consists of a buzzer, transistor 1, and resistor 15, where the positive pole of the buzzer is connected to the collector of transistor 1, the emitter of the transistor is connected to the operating voltage +5V, the base of transistor 1 is connected to one end of resistor 15, the other end of resistor 15 is connected to network label P7, and the negative pole of the buzzer is grounded;The key module consists of switch 1, switch 2, switch 3, switch 4, switch 5, and switch 6. Pin 2 of switch 1 is connected to network label P1, pin 2 of switch 2 is connected to network label P2, pin 2 of switch 3 is connected to network label P3, pin 2 of switch 4 is connected to network label P4, pin 2 of switch 5 is connected to network label P5, and pin 2 of switch 6 is connected to network label P6. Pin 3 of switch 1 and pin 4 of switch 6 are grounded. Pin 4 of switch 1 is connected to pin 3 of switch 2, pin 4 of switch 2 is connected to pin 3 of switch 3, pin 4 of switch 3 is connected to pin 3 of switch 4, pin 4 of switch 4 is connected to pin 3 of switch 5, and pin 4 of switch 5 is connected to pin 3 of switch 6.
[0006] Preferably, the power chip is 78L05.
[0007] Preferably, the transistor 1 is S9012.
[0008] Preferably, the single chip microcomputer is STC89C51RC.
[0009] Preferably, the display driver chip is 74HC245PW.
[0010] Compared with the prior art, the present invention has the following advantages and effects:
[0011] An embedded system based on a single-chip microcomputer can be connected to components such as external buttons, infrared sensors and digital tubes. The system can intelligently adjust the display time of traffic lights through infrared detection of changes in traffic flow and update them in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a circuit diagram of the power supply module in the embodiment of the utility model.
[0013] Figure 2 Schematic diagram of the circuit of the main control module in the embodiment.
[0014] Figure 3 Schematic diagram of the circuit of the driving module in the embodiment.
[0015] Figure 4 Schematic diagram of the circuit of the infrared detection module in the embodiment.
[0016] Figure 5 FIG. 4 is a circuit diagram of a display module in an embodiment.
[0017] Figure 6 Schematic diagram of the circuit of the buzzer module in the embodiment.
[0018] Figure 7 Schematic diagram of the circuit of the key module in the embodiment.
[0019] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. DETAILED DESCRIPTION
[0020] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0021] Example
[0022] like Figure 1-7 As shown, this embodiment includes a main control module, a drive module, an infrared detection module, a display module, a buzzer BUZZER1 module, a button module, and a power supply module. The power supply module consists of a power supply interface VIN, an electrolytic capacitor EC1, an electrolytic capacitor EC2, a diode D1, a capacitor C1, and a power supply chip U1. The power supply interface VIN is connected to a +12V power supply, the positive electrode of a diode and the positive electrode of an electrolytic capacitor EC1 are connected to pin 1 of the power supply interface VIN, the pin 2 of the power supply interface VIN and the negative electrode of an electrolytic capacitor EC1 are grounded, the negative electrode of a diode outputs an operating voltage of +11.3V, the pin 3 of the power supply chip U1 and one end of the capacitor C1 are connected to the operating voltage of +11.3V, the pin 1 of the power supply chip U1 and the positive electrode of the electrolytic capacitor EC2 output an operating voltage of +5V, and the pin 2 of the power supply chip U1, the negative electrode of the electrolytic capacitor EC2, and the other end of the capacitor C1 are grounded.
[0023] The main control module is composed of a single-chip computer U4, resistor eight R8, resistor nine R9, resistor ten R10, resistor eleven R11, resistor twelve R12, resistor thirteen R13, resistor fourteen R14, capacitor two C2, capacitor three C3, capacitor four C4, switch eight SW8, and crystal oscillator X1. Pin 1 of the single-chip computer U4 is connected to the network label S1, pin 2 of the single-chip computer U4 is connected to the network label S2, pin 3 of the single-chip computer U4 is connected to the network label S3, pin 4 of the single-chip computer U4 is connected to the network label S4, and pin 6 of the single-chip computer U4 is connected to the network label P1. Pin 4 of the switch eight SW8, one end of the capacitor four C4, and one end of the resistor fourteen R14 are connected to pin 9 of the single-chip computer U4, pin 11 of the single-chip computer U4 is connected to the network label P2, pin 12 of the single-chip computer U4 is connected to the network label P3, and pin 13 of the single-chip computer U4 is connected to the network label P4. Pin 14 is connected to network number P5, pin 15 of microcontroller U4 is connected to network number DX, pin 16 of microcontroller U4 is connected to network number NB, pin 17 of microcontroller U4 is connected to network number P6, one end of capacitor C3 and one end of crystal oscillator X1 are connected to pin 18 of microcontroller U4, the other end of crystal oscillator X1 and one end of capacitor C2 are connected to pin 19 of microcontroller U4, pin 22 of microcontroller U4 is connected to one end of resistor R13, the other end of resistor R13 is connected to network number G1, pin 23 of microcontroller U4 is connected to one end of resistor R12, the other end of resistor R12 is connected to network number Y1, pin 24 of microcontroller U4 is connected to one end of resistor R11, the other end of resistor R11 is connected to network number R1, pin 25 of microcontroller U4 is connected to the end of resistor R11, The other end of resistor R10 is connected to network label G2, pin 26 of microcontroller U4 is connected to one end of resistor R9, the other end of resistor R9 is connected to network label Y2, pin 27 of microcontroller U4 is connected to one end of resistor R8, the other end of resistor R8 is connected to network label R2, pin 33 of microcontroller U4 is connected to network label G0, pin 34 of microcontroller U4 is connected to network label F0, pin 35 of microcontroller U4 is connected to network label E0, pin 36 of microcontroller U4 is connected to network label D0, pin 37 of microcontroller U4 is connected to network label C0, pin 38 of microcontroller U4 is connected to network label B0, pin 39 of microcontroller U4 is connected to network label A0, pin 40 of microcontroller U4 is connected to working voltage +5V, pin 1 of switch 8 SW8 is connected to the other end of capacitor 4 C4, the other end of resistor R14, the other end of capacitor C3, and the other end of capacitor C2 are grounded respectively.
[0024] The driver module consists of the display driver chip U3, resistor 1 R1, resistor 2 R2, resistor 3 R3, resistor 4 R4, resistor 5 R5, resistor 6 R6, and resistor 7 R7. Among them, the display driver chip U3 pin 1 and the display driver chip U3 pin 20 are connected to the working voltage +5V, the display driver chip U3 pin 3 is connected to one end of resistor 1 R1, and the other end of resistor 1 R1 is connected to the network label A0, the display driver chip U3 pin 4 is connected to one end of resistor 2 R2, and the other end of resistor 2 R2 is connected to the network label B0, the display driver chip U3 pin 5 is connected to one end of resistor 3 R3, and the other end of resistor 3 R3 is connected to the network label C0, the display driver chip U3 pin 6 is connected to one end of resistor 4 R4, and the other end of resistor 4 R4 is connected to the network label D0, the display driver chip U3 pin 7 is connected to one end of resistor 5 R5, and the other end of resistor 5 R5 is connected to the network label E0, and the display driver chip U3 pin 8 is connected to one end of resistor 6 R6. The other end of resistor R6 is connected to network labeled F0. Pin 9 of display driver chip U3 is connected to one end of resistor R7. The other end of resistor R7 is connected to network labeled G0. Pins 10 and 19 of display driver chip U3 are grounded. Pin 11 of display driver chip U3 is connected to network labeled G. Pin 12 of display driver chip U3 is connected to network labeled F. Pin 13 of display driver chip U3 is connected to network labeled E. Pin 14 of display driver chip U3 is connected to network labeled D. Pin 15 of display driver chip U3 is connected to network labeled C. Pin 16 of display driver chip U3 is connected to network labeled B. Pin 17 of display driver chip U3 is connected to network labeled A. In this embodiment, the display driver chip U3 is a 74HC245PW, a direction-controllable 8-way buffer specifically designed to implement bidirectional asynchronous communication on a data bus. Its main function is to act as a buffer and protector at the parallel interface of the main control chip to prevent the main control chip from being interfered with or affected by the external circuit or load. By controlling the direction pin, it can achieve two-way communication of data transmission with high flexibility and reliability.
[0025] The infrared detection module consists of J1 and J2. Pins 1 and 3 of J1 and J2 are connected to ground, respectively. Pins 3 and 3 of J2 are connected to the +5V power supply. Pin 2 of J1 is connected to the DX network, and pin 2 of J2 is connected to the NB network. J1 and J2 are connected to a pair of infrared obstacle avoidance sensors. When a person or vehicle passes through, the infrared sensors output a low or high signal, triggering a corresponding action or control, thereby counting the number of vehicles passing through. The signal is then processed by microcontroller U4, and the calculated results are used to control the traffic light display duration.
[0026] The display module consists of digital tube one LED1, digital tube two LED2, digital tube three LED3, digital tube four LED4, yellow light one LEDY1, yellow light two LEDY2, yellow light three LEDY3, yellow light four LEDY4, green light one LEDG1, green light two LEDG2, green light three LEDG3, green light four LEDG4, red light one LEDR1, red light two LEDR2, red light three LEDR3, and red light four LEDR4.Among them, the 1st pin of digital tube LED1 is connected to network label G, the 3rd pin of digital tube LED1 is connected to network label A, the 4th pin of digital tube LED1 is connected to network label F, the 5th pin of digital tube LED1 is connected to network label S4, the 6th pin of digital tube LED1 is connected to network label D, the 7th pin of digital tube LED1 is connected to network label E, the 8th pin of digital tube LED1 is connected to network label C, the 9th pin of digital tube LED1 is connected to network label B, the 10th pin of digital tube LED1 is connected to network label S3, the 1st pin of digital tube LED2 is connected to network label G, the 3rd pin of digital tube LED2 is connected to network label A, the 4th pin of digital tube LED2 is connected to network label F, the 5th pin of digital tube LED2 is connected to network label S2, the 6th pin of digital tube LED2 is connected to network label D, the 7th pin of digital tube LED2 is connected to network label E, the 8th pin of digital tube LED2 is connected to network label C, the 9th pin of digital tube LED2 is connected to network label B, the 2nd pin LED2 is connected to network label Pin 10 is connected to network label S1, pin 1 of digital tube LED3 is connected to network label G, pin 3 of digital tube LED3 is connected to network label A, pin 4 of digital tube LED3 is connected to network label F, pin 5 of digital tube LED3 is connected to network label S4, pin 6 of digital tube LED3 is connected to network label D, pin 7 of digital tube LED3 is connected to network label E, pin 8 of digital tube LED3 is connected to network label C, pin 9 of digital tube LED3 is connected to network label B, pin 10 of digital tube LED3 is connected to network label S3, pin 1 of digital tube LED4 is connected to network label G, pin 3 of digital tube LED4 is connected to network label A, pin 4 of digital tube LED4 is connected to network label F, pin 5 of digital tube LED4 is connected to network label S2, pin 6 of digital tube LED4 is connected to network label D, pin 7 of digital tube LED4 is connected to network label E, pin 8 of digital tube LED4 is connected to network label C, pin 4 of digital tube LED4 Pin 9 is connected to network label B, pin 10 of digital tube four LED4 is connected to network label S1, the positive pole of yellow light one LEDY1 is connected to network label Y1, the positive pole of yellow light two LEDY2 is connected to network label Y2, the positive pole of yellow light three LEDY3 is connected to network label Y2, the positive pole of yellow light four LEDY4 is connected to network label Y1, the positive pole of green light one LEDG1 is connected to network label G1, the positive pole of green light two LEDG2 is connected to network label G2, the positive pole of green light three LEDG3 is connected to network label G2, the positive pole of green light four LEDG4 is connected to network label G1, the positive pole of red light one LEDR1 is connected to network label R1, the positive pole of red light two LEDR2 is connected to network label R2, the positive pole of red light three LEDR3 is connected to network label R2, and the positive pole of red light four LEDR4 is connected to network label R1.The aforementioned yellow light (LED Y1), green light (LED G1), and red light (LED R1) form a group; yellow light (LED Y2), green light (LED G2), and red light (LED R2) form a group; yellow light (LED Y3), green light (LED G3), and red light (LED R3) form a group; and green light (LED G4), yellow light (LED Y4), and red light (LED R4) form a group. These four groups of red, green, and yellow lights are located in the four directions, respectively. The digital tubes (LED 1), LED 2, LED 3, and LED 4) serve as time display devices for the red, green, and yellow lights in these four directions.
[0027] The buzzer BUZZER1 module consists of buzzer BUZZER1, transistor Q1, and resistor R15. The positive electrode of buzzer BUZZER1 is connected to the collector of transistor Q1, the emitter of transistor is connected to the working voltage +5V, the base of transistor Q1 is connected to one end of resistor R15, the other end of resistor R15 is connected to network label P7, and the negative electrode of buzzer BUZZER1 is grounded.
[0028] The key module consists of switch 1 K0, switch 2 K1, switch 3 K2, switch 4 K3, switch 5 K4, and switch 6 K5. Among them, pin 2 of switch 1 K0 is connected to network label P1, pin 2 of switch 2 K1 is connected to network label P2, pin 2 of switch 3 K2 is connected to network label P3, pin 2 of switch 4 K3 is connected to network label P4, pin 2 of switch 5 K4 is connected to network label P5, and pin 2 of switch 6 K5 is connected to network label P6. Pin 3 of switch 1 K0 and pin 4 of switch 6 K5 are grounded respectively. Pin 4 of switch 1 K0 is connected to pin 3 of switch 2 K1, pin 4 of switch 2 K1 is connected to pin 3 of switch 3 K2, pin 4 of switch 3 K2 is connected to pin 3 of switch 4 K3, pin 4 of switch 4 K3 is connected to pin 3 of switch 5 K4, and pin 4 of switch 5 K4 is connected to pin 3 of switch 6 K5. Switch 1 K0, switch 2 K1, switch 3 K2, switch 4 K3, switch 5 K4, and switch 6 K5 correspond to five modes, among which switch 1 K0 is night mode. After it is turned on, the yellow lights in the four directions flash; switch 2 K1 is the no-traffic mode. After it is turned on, the red lights in the four directions are on and the rest are off; switch 3 K2 is the east-west traffic mode. After it is turned on, the green lights in the east-west directions are on and the rest are off; switch 4 K3 is the north-south traffic mode. After it is turned on, the green lights in the north-south directions are on and the rest are off; switch 5 K4 is the confirmation key and is used in conjunction with switch 6 K5. Switch 6 K5 is the view key. You can view the number of vehicles currently passing and can manually adjust the number of vehicles passing (press it once to view the current number, and continue to press it to increase it). After adjusting the number of vehicles passing, press switch 5 K4 to confirm to drive the microcontroller U4 to change the traffic light passage time of the circuit.
[0029] In this embodiment, the power chip U1 is 78L05, the transistor Q1 is S9012, and the single chip microcomputer U4 is STC89C51RC.
[0030] In this embodiment, the power supply module converts the input power into 5V output to power the main control module and the display module. The signal of the infrared detection module is judged and controlled by the microcontroller U4 in the main control module, and then displayed by the display module.
[0031] Now we provide a working mode of the above control system, but it is not limited to this working mode:
[0032] This system simulates a basic traffic control system, simulating a real-world traffic intersection. It features a countdown function and uses red, green, and yellow lights to indicate no-go, allowed, and waiting. At the touch of a button, you can activate functions such as no-go, night mode, north-south, and east-west directions. Furthermore, infrared sensors automatically monitor vehicle traffic and pedestrians, triggering an alarm when pedestrians run red lights and intelligently adjusting the time it takes for traffic lights to pass through the intersection. The specific adjustment rules are as follows:
[0033] 1. By default, the green light duration in the east-west direction is 20 seconds, and the red light duration in the north-south direction is 25 seconds;
[0034] 2. When the traffic light is green, the east-west infrared probe detects the traffic flow. If there are more than 10 vehicles (that is, more than half of the time or one vehicle every 2 seconds), the passage time will be extended by 5 seconds;
[0035] 3. When the light is green in the north-south direction, the traffic flow is checked. If there are more than 15 vehicles (that is, more than half of the time or one vehicle every 2 seconds), the passing time will be extended by 5 seconds;
[0036] 4. If the traffic volume is lower than a certain value (same as above, less than half the time or less than one car per 2 seconds), the travel time will be shortened accordingly, by 5 seconds each time, with a minimum of 15 seconds;
[0037] 5. Time adjustments in the east-west and north-south directions do not affect each other.
[0038] The above contents described in this specification are merely examples of the present invention. Those skilled in the art of the present invention may make various modifications, additions, or substitute similar methods to the specific embodiments described, as long as they do not deviate from the contents of this specification or exceed the scope defined by the claims, and shall fall within the scope of protection of the present invention.
Claims
1. A control system for controlling traffic light passage time according to vehicle flow, comprising a main control module, a drive module, an infrared detection module, a display module, a buzzer module, a key module, and a power supply module for providing operating power to the main control module, the drive module, the infrared detection module, the display module, the buzzer module, and the key module, characterized in that: The power supply module consists of a power interface, electrolytic capacitor 1, electrolytic capacitor 2, diode 1, capacitor 1, and a power chip. The power interface is connected to a +12V power supply, the positive pole of diode 1 and the positive pole of electrolytic capacitor 1 are connected to pin 1 of the power interface, pin 2 of the power interface and the negative pole of electrolytic capacitor 1 are grounded respectively, the negative pole of diode 1 outputs a working voltage of +11.3V, pin 3 of the power chip and one end of capacitor 1 are connected to a working voltage of +11.3V, pin 1 of the power chip and the positive pole of electrolytic capacitor 2 output a working voltage of +5V, pin 2 of the power chip, the negative pole of electrolytic capacitor 2, and the other end of capacitor 1 are grounded respectively; The main control module consists of a single-chip microcomputer, resistor 8, resistor 9, resistor 10, resistor 11, resistor 12, resistor 13, resistor 14, capacitor 2, capacitor 3, capacitor 4, switch 8, and a crystal oscillator. Pin 1 of the single-chip microcomputer is connected to network label S1, pin 2 of the single-chip microcomputer is connected to network label S2, pin 3 of the single-chip microcomputer is connected to network label S3, pin 4 of the single-chip microcomputer is connected to network label S4, pin 6 of the single-chip microcomputer is connected to network label P1, pin 4 of switch 8, one end of capacitor 4, and one end of resistor 14 are connected to pin 9 of the single-chip microcomputer. , MCU pin 11 is connected to network label P2, MCU pin 12 is connected to network label P3, MCU pin 13 is connected to network label P4, MCU pin 14 is connected to network label P5, MCU pin 15 is connected to network label DX, MCU pin 16 is connected to network label NB, MCU pin 17 is connected to network label P6, capacitor 3 and one end of the crystal oscillator are connected to MCU pin 18, the other end of the crystal oscillator and capacitor 2 are connected to MCU pin 19, MCU pin 22 is connected to resistor 13 and one end of the resistor. The other end of resistor 13 is connected to network label G1. Pin 23 of the MCU is connected to the first end of resistor 12. The other end of resistor 12 is connected to network label Y1. Pin 24 of the MCU is connected to the first end of resistor 11. The other end of resistor 11 is connected to network label R1. Pin 25 of the MCU is connected to the first end of resistor 11. The other end of resistor 10 is connected to network label G2. Pin 26 of the MCU is connected to the first end of resistor 9. The other end of resistor 9 is connected to network label Y2. Pin 27 of the MCU is connected to the first end of resistor 8. The other end of resistor 8 is connected to network label R2, pin 33 of the single-chip microcomputer is connected to network label G0, pin 34 of the single-chip microcomputer is connected to network label F0, pin 35 of the single-chip microcomputer is connected to network label E0, pin 36 of the single-chip microcomputer is connected to network label D0, pin 37 of the single-chip microcomputer is connected to network label C0, pin 38 of the single-chip microcomputer is connected to network label B0, pin 39 of the single-chip microcomputer is connected to network label A0, pin 40 of the single-chip microcomputer is connected to the operating voltage +5V, pin 1 of switch 8 is connected to the other end of capacitor 4, and the other ends of resistor 14, capacitor 3, and capacitor 2 are grounded respectively; The driver module consists of a display driver chip, resistor 1, resistor 2, resistor 3, resistor 4, resistor 5, resistor 6, and resistor 7. Pin 1 of the display driver chip and pin 20 of the display driver chip are connected to the operating voltage +5V. Pin 3 of the display driver chip is connected to one end of resistor 1, and the other end of resistor 1 is connected to network label A0. Pin 4 of the display driver chip is connected to one end of resistor 2, and the other end of resistor 2 is connected to network label B0. Pin 5 of the display driver chip is connected to one end of resistor 3, and the other end of resistor 3 is connected to network label C0. Pin 6 of the display driver chip is connected to one end of resistor 4, and the other end of resistor 4 is connected to network label D0. Pin 7 of the display driver chip is connected to one end of resistor 5, and the other end of resistor 5 is connected to network label E0. Pin 8 of the display driver chip is connected to one end of resistor 6, and the other end of resistor 6 is connected to network label F0. Pin 9 of the display driver chip is connected to one end of resistor 7. The other end of resistor seven is connected to network label G0, pin 10 of the display driver chip and pin 19 of the display driver chip are grounded respectively, pin 11 of the display driver chip is connected to network label G, pin 12 of the display driver chip is connected to network label F, pin 13 of the display driver chip is connected to network label E, pin 14 of the display driver chip is connected to network label D, pin 15 of the display driver chip is connected to network label C, pin 16 of the display driver chip is connected to network label B, and pin 17 of the display driver chip is connected to network label A; The infrared detection module consists of interface 1 and interface 2. Pin 1 of interface 1 and pin 1 of interface 2 are grounded respectively. Pin 3 of interface 1 and pin 3 of interface 2 are connected to the working power supply +5V. Pin 2 of interface 1 is connected to the network label DX, and pin 2 of interface 2 is connected to the network label NB. The display module consists of digital tube 1, digital tube 2, digital tube 3, digital tube 4, yellow light 1, yellow light 2, yellow light 3, yellow light 4, green light 1, green light 2, green light 3, green light 4, red light 1, red light 2, red light 3, and red light 4. Among them, the 1st pin of digital tube 1 is connected to the network label G, the 3rd pin of digital tube 1 is connected to the network label A, the 4th pin of digital tube 1 is connected to the network label F, the 5th pin of digital tube 1 is connected to the network label S4, the 6th pin of digital tube 1 is connected to the network label D, the 7th pin of digital tube 1 is connected to the network label E, the 8th pin of digital tube 1 is connected to the network label C, and the 9th pin of digital tube 1 is connected to the network label B. Pin 10 of digital tube one is connected to network label S3, pin 1 of digital tube two is connected to network label G, pin 3 of digital tube two is connected to network label A, pin 4 of digital tube two is connected to network label F, pin 5 of digital tube two is connected to network label S2, pin 6 of digital tube two is connected to network label D, pin 7 of digital tube two is connected to network label E, pin 8 of digital tube two is connected to network label C, pin 9 of digital tube two is connected to network label B, pin 10 of digital tube two is connected to network label S1, pin 1 of digital tube three is connected to network label G, pin 3 of digital tube three is connected to network label A, pin 4 of digital tube three is connected to network label F, Pin 5 of digital tube 3 is connected to network label S4, pin 6 of digital tube 3 is connected to network label D, pin 7 of digital tube 3 is connected to network label E, pin 8 of digital tube 3 is connected to network label C, pin 9 of digital tube 3 is connected to network label B, pin 10 of digital tube 3 is connected to network label S3, pin 1 of digital tube 4 is connected to network label G, pin 3 of digital tube 4 is connected to network label A, pin 4 of digital tube 4 is connected to network label F, pin 5 of digital tube 4 is connected to network label S2, pin 6 of digital tube 4 is connected to network label D, pin 7 of digital tube 4 is connected to network label E, pin 8 of digital tube 4 is connected to network label C, pin 9 of digital tube 4 is connected to Connect to network label B, pin 10 of digital tube 4 to network label S1, positive pole of yellow light 1 to network label Y1, positive pole of yellow light 2 to network label Y2, positive pole of yellow light 3 to network label Y2, positive pole of yellow light 4 to network label Y1, positive pole of green light 1 to network label G1, positive pole of green light 2 to network label G2, positive pole of green light 3 to network label G2, positive pole of green light 4 to network label G1, positive pole of red light 1 to network label R1, positive pole of red light 2 to network label R2, positive pole of red light 3 to network label R2, positive pole of red light 4 to network label R1; The buzzer module consists of a buzzer, transistor 1, and resistor 15. The positive electrode of the buzzer is connected to the collector of transistor 1, the emitter of the transistor is connected to the operating voltage +5V, the base of the transistor is connected to one end of resistor 15, the other end of resistor 15 is connected to the network label P7, and the negative electrode of the buzzer is grounded. The key module consists of switch one, switch two, switch three, switch four, switch five, and switch six. Among them, pin 2 of switch one is connected to network label P1, pin 2 of switch two is connected to network label P2, pin 2 of switch three is connected to network label P3, pin 2 of switch four is connected to network label P4, pin 2 of switch five is connected to network label P5, and pin 2 of switch six is connected to network label P6. Pin 3 of switch one and pin 4 of switch six are grounded respectively. Pin 4 of switch one is connected to pin 3 of switch two, pin 4 of switch two is connected to pin 3 of switch three, pin 4 of switch three is connected to pin 3 of switch four, pin 4 of switch four is connected to pin 3 of switch five, and pin 4 of switch five is connected to pin 3 of switch six.
2. The control system for controlling traffic light passage time according to vehicle flow according to claim 1, characterized in that: The power chip is 78L05.
3. The control system for controlling traffic light passage time according to vehicle flow according to claim 1, characterized in that: The transistor 1 is S9012.
4. The control system for controlling traffic light passage time according to vehicle flow according to claim 1, characterized in that: The single chip microcomputer is STC89C51RC.
5. The control system for controlling traffic light passage time according to vehicle flow according to claim 1, characterized in that: The display driver chip is 74HC245PW.