Circuit for calculating saturation and parking times of intersection
By designing a circuit for calculating the saturation and number of parking times at the intersection, using the vehicle detector and signal light color sampling circuit to obtain real-time data, the problem of not being associated with signal light color in the prior art is solved, and the real-time adjustment requirement of traffic signal control is realized.
Patent Information
- Application Number
- CN202510445071.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-10
- Publication Date
- 2025-06-03
AI Technical Summary
The prior art does not correlate with the signal light color when calculating the intersection saturation and number of parking times, and cannot meet the needs of real-time adjustment of traffic signal control.
A circuit is designed, including a vehicle detector interface circuit, a signal light color sampling circuit, and a data processing and solution circuit. By obtaining traffic flow, average speed, queue length and signal light voltage signals in real time, data processing is carried out to automatically calculate the intersection saturation and number of parking times.
Real-time, accurate and automatic calculation of the saturation and number of parking times at the intersection is realized, and the problem that the existing technology cannot meet the real-time adjustment of traffic signal control is solved.
Smart Images

Figure CN120088995A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of electronic circuits, and more specifically, to a circuit for calculating intersection saturation and parking times. Background Art
[0002] An intersection is a gathering point of pedestrian flow, non-motor vehicle flow and motor vehicle flow, and is the throat of the urban road network. The convergence and intersection of two roads interfere with each other, reducing the vehicle speed and prone to congestion. The traffic signal control system is an integrated traffic management system that improves the traffic operation efficiency and safety at intersections through technical means. After the traffic signal control system operates, it is necessary to evaluate the performance of the traffic signal control algorithm used and the effectiveness of the optimization plan, so as to improve the operation efficiency and service quality of the system.
[0003] Intersection saturation and parking times are important indicators for measuring the control benefit of traffic signal control algorithms and the traffic status at intersections. In practical applications, radar microwave detectors and video traffic detectors are limited to detecting conventional traffic parameters at intersections such as traffic flow, average speed, lane occupancy, and queue length. However, the calculation of intersection saturation and parking times requires associating with the signal light color duration and is difficult to directly detect and obtain through a single detector.
[0004] In the prior art, when calculating intersection saturation and parking times, it is not associated with the signal light color, but calculates the average value by regularly counting the traffic flow and vehicle passing speed (usually more than 15 minutes). If the statistical period is short, the average value will be greatly different from the actual value due to the percentage of the green light duration of the signal light in the statistical period; if the statistical period is long, it does not have real-time performance and cannot meet the real-time adjustment requirements of traffic signal control. Summary of the Invention
[0005] In order to solve the problem that the prior art cannot meet the real-time adjustment of traffic signal control because it does not associate with the signal light color when calculating intersection saturation and parking times, this application provides a circuit for calculating intersection saturation and parking times. The circuit communicates with the vehicle detector to obtain traffic flow, average speed, and queue length in real time, samples the traffic signal voltage signal of the traffic signal through the signal light color sampling circuit to obtain the real-time signal light color, and performs data processing inside the circuit, so as to realize the automatic calculation of intersection saturation and parking times.
[0006] In an embodiment of the present application, a circuit for calculating the saturation degree and the number of stops at an intersection is provided, which includes a vehicle detector interface circuit, a signal light color sampling circuit, and a data processing and solving circuit. Among them, the vehicle detector interface circuit is electrically connected to the vehicle detector and the data processing and solving circuit respectively, and is used to receive the real-time vehicle speed, the number of passing vehicles, and the queue length from the vehicle detector, and transmit the received real-time vehicle speed, the number of passing vehicles, and the queue length to the data processing and solving circuit; the signal light color sampling circuit is electrically connected to the traffic signal light and the data processing and solving circuit respectively, and is used to sample the lighting and extinguishing states of the three colors of the traffic signal light, and output the lighting and extinguishing states to the data processing and solving circuit; the data processing and solving circuit is used to receive the real-time vehicle speed, the number of passing vehicles, and the queue length from the vehicle detector interface circuit, and receive the lighting and extinguishing states of the three colors of the signal light from the signal light color sampling circuit, and process and solve the received data, so as to generate the saturation degree of the intersection and the number of vehicle stops.
[0007] In the above embodiment, further, the vehicle detector interface circuit includes a 485 conversion chip U1, a resistor R21, a resistor R22, a resistor R23, a resistor R25, a resistor R29, a resistor R30, a resistor R31, a transient voltage suppression diode D4, a transient voltage suppression diode D5, a GDT ceramic gas discharge tube G1, and a capacitor C8. Among them, pin 1 of the 485 conversion chip U1 is connected to the RXD1 input terminal of the vehicle detector interface of the data processing and solving circuit through the resistor R21; pin 2 of the 485 conversion chip U1 is connected to the 485DIR control terminal of the vehicle detector interface of the data processing and solving circuit through the resistor R25, and at the same time, pin 2 of the 485 conversion chip U1 is connected to pin 3 of the 485 conversion chip U1; pin 4 of the 485 conversion chip U1 is connected to the TXD1 output terminal of the vehicle detector interface of the data processing and solving circuit through the resistor R31; pin 5 of the 485 conversion chip U1 is connected to GND; pin 6 of the 485 conversion chip U1 is connected to the power supply voltage through the resistor R29, and at the same time, pin 6 of the 485 conversion chip U1 is connected to GND through the transient voltage suppression diode D5, and at the same time, pin 6 of the 485 conversion chip U1 is connected to pin 2 of the GDT ceramic gas discharge tube G1 through the resistor R30; pin 7 of the 485 conversion chip U1 is connected to GND through the resistor R22, and at the same time, pin 7 of the 485 conversion chip U1 is connected to GND through the transient voltage suppression diode D4, and at the same time, pin 7 of the 485 conversion chip U1 is connected to pin 1 of the GDT ceramic gas discharge tube G1 through the resistor R23; pin 8 of the 485 conversion chip U1 is connected to GND through the capacitor C8, and at the same time, pin 8 of the 485 conversion chip U1 is connected to the power supply voltage; pin 1 of the GDT ceramic gas discharge tube G1 is the 485A of the vehicle detector interface; pin 2 of the GDT ceramic gas discharge tube G1 is the 485B of the vehicle detector interface; pin 3 of the GDT ceramic gas discharge tube G1 is connected to the ground EARTH.
[0008] In the above embodiment, further, the 485 conversion chip U1 is the SP3485EN, the transient voltage suppression diode D4 is the SMBJ10CA, the transient voltage suppression diode D5 is the SMBJ10CA, the GDT ceramic gas discharge tube G1 is the 3RL090L-6, and the power supply voltage is 3.3V.
[0009] In the above embodiment, further, the signal lamp color sampling circuit includes an optocoupler U11, an inverter U10, resistors R83, R84, R85, R89, R94, R129, R130, R138, R139, transient voltage suppression diodes ZD2, ZD7, ZD8, and capacitors C26, C27, C28. Among them, pin 1 of the inverter U10 is connected to GND through the capacitor C28. At the same time, pin 1 of the inverter U10 is connected to the power supply voltage through the resistor R85. At the same time, pin 1 of the inverter U10 is connected to pin 16 of the optocoupler U11; pin 2 of the inverter U10 is connected to the input terminal RED of the signal lamp color interface of the data processing and calculation circuit; pin 3 of the inverter U10 is connected to GND through the capacitor C27. At the same time, pin 3 of the inverter U10 is connected to the power supply voltage through the resistor R84. At the same time, pin 3 of the inverter U10 is connected to pin 14 of the optocoupler U11; pin 4 of the inverter U10 is connected to the input terminal YEL of the signal lamp color interface of the data processing and calculation circuit; pin 5 of the inverter U10 is connected to GND through the capacitor C26. At the same time, pin 5 of the inverter U10 is connected to the power supply voltage through the resistor R83. At the same time, pin 5 of the inverter U10 is connected to pin 12 of the optocoupler U11; pin 6 of the inverter U10 is connected to the input terminal GREEN of the signal lamp color interface of the data processing and calculation circuit; pins 1, 3, and 5 of the optocoupler U11 are connected to the municipal power supply neutral line N; pin 2 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD8; pin 4 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD2; pin 6 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD7; pins 11, 13, and 15 of the optocoupler U11 are connected to GND; the second anode pin of the TVS diode ZD8 is connected to the first pin of the resistor R130; the second pin of the resistor R130 is connected to the first pin of the resistor R139; the second pin of the resistor R139 is the signal lamp interface R0; the second anode pin of the TVS diode ZD2 is connected to the first pin of the resistor R89; the second pin of the resistor 89 is connected to the first pin of the resistor R94; the second pin of the resistor R94 is the signal lamp interface Y0; the second anode pin of the TVS diode ZD7 is connected to the first pin of the resistor R129; the second pin of the resistor 129 is connected to the first pin of the resistor R138; the second pin of the resistor R138 is the signal lamp interface G0.
[0010] In the above-described embodiment, further, the optocoupler U11 is TLP620-4, the inverter U10 is SN74HC14D, the transient voltage suppression diode ZD2 is SMBJ120CA, the transient voltage suppression diode ZD7 is SMBJ120CA, the transient voltage suppression diode ZD8 is SMBJ120CA, and the power supply voltage is 3.3V.
[0011] In the above embodiment, further, the data processing and calculation circuit includes a microcontroller U2, an RS232 interface chip U14, resistors R1, R2, R3, R4, R5, R6, R88, R89, R90, R91, capacitors C1, C2, C3, C41, C42, C43, C44, C49, C50, C51, C52. Among them, pin 5 of the microcontroller U2 is connected to GND through the capacitor C2. At the same time, pin 5 of the microcontroller U2 is connected to pin 6 of the microcontroller U2 through the resistors R1 and R2. At the same time, the connection point of the resistors R1 and R2 is connected to GND through the capacitor C3. At the same time, the connection point of the resistors R1 and R2 is connected to pin 5 of the microcontroller U2 through the crystal oscillator Y1; pin 7 of the microcontroller U2 is connected to GND through the capacitor C1. At the same time, pin 7 of the microcontroller U2 is connected to the power supply voltage through the resistor R3; pin 60 of the microcontroller U2 is connected to GND through the resistor R4; pin 13 of the microcontroller U2 is connected to the power supply voltage through the resistor R5; pins 1, 19, 32, 48, 64 of the microcontroller U2 are connected to the power supply voltage; pin 28 of the microcontroller U2 is connected to GND through the resistor R6; pins 12, 18, 31, 47, 63 of the microcontroller U2 are connected to GND; pin 16 (TXD2) of the microcontroller U2 is connected to pin 10 of the RS232 interface chip U14; pin 17 (RXD2) of the microcontroller U2 is connected to pin 9 of the RS232 interface chip U14; pin 29 (TXD3) of the microcontroller U2 is connected to pin 11 of the RS232 interface chip U14; pin 30 (RXD3) of the microcontroller U2 is connected to pin 12 of the RS232 interface chip U14; pin 42 of the microcontroller U2 is connected to the input terminal (TXD1) of the vehicle detector interface circuit; pin 43 of the microcontroller U2 is connected to the output terminal (RXD1) of the vehicle detector interface circuit; pin 44 of the microcontroller U2 is connected to the control terminal (485DIR) of the vehicle detector interface circuit; pin 24 of the microcontroller U2 is connected to the output terminal (RED) of the signal light color sampling circuit; pin 25 of the microcontroller U2 is connected to the output terminal (YEL) of the signal light color sampling circuit; pin 37 of the microcontroller U2 is connected to the output terminal (GREEN) of the signal light color sampling circuit; pin 1 of the RS232 interface chip U14 is connected to pin 3 of the RS232 interface chip U14 through the capacitor C41; pin 4 of the RS232 interface chip U14 is connected to pin 5 of the RS232 interface chip U14 through the capacitor C42; pin 2 of the RS232 interface chip U14 is connected to the power supply voltage through the capacitor C43; pin 6 of the RS232 interface chip U14 is connected to GND through the capacitor C44; pin 16 of the RS232 interface chip U14 is connected to the power supply voltage; pin 15 of the RS232 interface chip U14 is connected to GND.
[0012] In the above embodiment, further, the microcontroller U2 is an STM32F103R8T6, the RS232 interface chip U14 is a MAX3232, and the power supply voltage is 3.3V.
[0013] In another embodiment of the present application, the circuit for calculating intersection saturation and parking times of the present application further includes a data encryption and decryption circuit, which is used for encrypting and decrypting communication data. The data encryption and decryption circuit includes a data encryption chip U5, a capacitor C12, and a capacitor C13. Among them, pin 1 of the data encryption chip U5 is connected to GND; pin 8 of the data encryption chip U5 is connected to the power supply voltage. At the same time, pin 8 of the data encryption chip is connected to GND through the capacitor C12, and at the same time, pin 8 of the data encryption chip is connected to GND through the capacitor C13; pin 54 of the microcontroller U2 is connected to the input terminal SSEL1 of pin 6 of the data encryption chip U5; pin 55 of the microcontroller U2 is connected to the input terminal SCK1 of pin 4 of the data encryption chip U5; pin 56 of the microcontroller U2 is connected to the output terminal MISO1 of pin 2 of the data encryption chip U5; pin 57 of the microcontroller U2 is connected to the input terminal MOSI1 of pin 3 of the data encryption chip U5; pin 58 of the microcontroller U2 is connected to the input terminal HSC_RST of pin 7 of the data encryption chip U5. Among them, the encryption chip U5 is an HSC32C1-S1V30, and the power supply voltage is 3.3V.
[0014] In another embodiment of the present application, the circuit for calculating intersection saturation and parking times of the present application further includes an Ethernet serial server, which is used for the wired transmission of communication data. Among them, pin 14 of the RS232 interface chip U14 is connected to the output terminal TXDOUT3 of the Ethernet serial server through a resistor R90, and at the same time, pin 14 of the RS232 interface chip U14 is connected to GND through a capacitor C50; pin 13 of the RS232 interface chip U14 is connected to the input terminal RXDOUT3 of the Ethernet serial server through a resistor R88, and at the same time, pin 13 of the RS232 interface chip U14 is connected to GND through a capacitor C52.
[0015] In another embodiment of the present application, the circuit for calculating intersection saturation and parking times of the present application further includes a router, which is used for the wireless transmission of communication data. Among them, pin 7 of the RS232 interface chip U14 is connected to the output terminal TXDOUT2 of the router through a resistor R89, and at the same time, pin 7 of the RS232 interface chip U14 is connected to GND through a capacitor C51; pin 8 of the RS232 interface chip U14 is connected to the input terminal RXDOUT2 of the router through a resistor R91, and at the same time, pin 8 of the RS232 interface chip U14 is connected to GND through a capacitor C49.
[0016] The beneficial effects of the present application are as follows:
[0017] Through the circuit of the present application, it can be directly electrically connected to a vehicle detector and a traffic signal, thereby realizing real-time, accurate and automatic calculation of the intersection saturation degree and the number of stops, and solving the problem that the existing technology cannot meet the real-time adjustment of traffic signal control because it does not associate with the signal lamp color when calculating the intersection saturation degree and the number of stops. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a block schematic diagram of the circuit for calculating the intersection saturation degree and the number of stops of the present application;
[0019] Figure 2 It is the vehicle detector interface circuit in the circuit for calculating the intersection saturation degree and the number of stops of the present application;
[0020] Figure 3 It is the signal lamp color sampling circuit in the circuit for calculating the intersection saturation degree and the number of stops of the present application;
[0021] Figure 4 It is the data processing and solution circuit in the circuit for calculating the intersection saturation degree and the number of stops of the present application;
[0022] Figure 5 It is the data encryption and decryption circuit in the circuit for calculating the intersection saturation degree and the number of stops of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] Refer to Figure 1 In an embodiment of the present application, a circuit for calculating the intersection saturation degree and the number of stops is provided, including a vehicle detector interface circuit, a signal lamp color sampling circuit and a data processing and solution circuit. Additionally or optionally, the circuit for calculating the intersection saturation degree and the number of stops of the present application further includes a data encryption and decryption circuit.
[0024] Among them, the vehicle detector interface circuit is electrically connected to the vehicle detector and the data processing and solution circuit respectively, and is used to receive the real-time vehicle speed, the number of passing vehicles and the queue length from the vehicle detector, and transmit the received real-time vehicle speed, the number of passing vehicles and the queue length to the data processing and solution circuit. Applicable vehicle detectors include but are not limited to video vehicle detectors, microwave radar vehicle detections, geomagnetic vehicle detectors, etc. The above types of vehicle detectors use methods such as video recognition, microwave radar wave reflection, and detection of changes in geomagnetic magnetic flux to detect vehicles. The detection result data includes but is not limited to vehicle speed, the number of passing vehicles and the queue length. The vehicle detector has a communication interface to output the detection result data.
[0025] The signal light color sampling circuit is electrically connected to the traffic signal light and the data processing and calculation circuit respectively, and is used to sample the on / off states of the three light colors of the traffic signal light and output the on / off states to the data processing and calculation circuit. The signal light color sampling circuit is directly connected to the power input end of the traffic signal light. The national standard of traffic signal lights stipulates that the power input of the signal light is AC220V. The signal light color sampling circuit is connected in parallel to the power input end of the traffic signal light to directly sample the power input voltage value of the traffic signal light. After step-down, rectification, and isolation processing, the processed electrical signal is transmitted to the I / O interface of the data processing and calculation circuit.
[0026] The data processing and calculation circuit is used to receive the real-time vehicle speed, the number of passing vehicles, and the queue length from the vehicle detector interface circuit, and receive the on / off states of the three light colors from the signal light color sampling circuit, and process and calculate the received data to generate the intersection saturation degree and the number of vehicle stops.
[0027] In the patent application CN116824857A, a method for calculating the intersection saturation degree is proposed, and in the patent application CN118781812A, a method for calculating the number of stops is proposed. The methods for calculating the intersection saturation degree and the number of stops in this application can refer to the technical solutions recorded in these two published documents.
[0028] In this application, the calculation principle of the intersection saturation degree is as follows: The data processing and calculation circuit obtains the vehicle speed, the number of passing vehicles, and the signal light color in real time. The microcontroller U2 of the data processing and calculation circuit establishes a list in the internal storage space to record the received vehicle speed and the number of passing vehicles, and synchronously calculates the total green light duration and the total yellow light duration. The controller U2 of the data processing and calculation circuit calculates the average speed of the vehicle according to the vehicle speed in the list, calculates the saturation flow according to the calculated average speed, and finally calculates the saturation degree according to the calculated saturation flow and the recorded number of passing vehicles.
[0029] The calculation principle of the number of stops is as follows: The data processing and calculation circuit obtains the vehicle speed, the number of passing vehicles, the queue length, and the signal light color in real time. The controller U2 of the data processing and calculation circuit records the queue length data at the moment when the red light of the signal light ends and the green light lights up in the internal storage space; at the same time, the microcontroller U2 of the data processing and calculation circuit establishes a list in the internal storage space to record the received vehicle speed and the number of passing vehicles, and synchronously calculates the total green light duration and the total yellow light duration. The controller U2 of the data processing and calculation circuit calculates the average speed of the vehicle according to the vehicle speed in the list, and calculates the maximum queue that can be released in the lane according to the green light duration and the average speed of the vehicle. Finally, the controller U2 of the data processing and calculation circuit calculates the number of stops for this green light according to the calculated maximum queue that can be released in the lane and the queue length stored at the moment when the red light ends and the green light lights up.
[0030] See Figure 2 , in an embodiment of the present application, the vehicle detector interface circuit in the circuit for calculating intersection saturation and parking times of the present application includes a 485 conversion chip U1, a resistor R21, a resistor R22, a resistor R23, a resistor R25, a resistor R29, a resistor R30, a resistor R31, a transient voltage suppression diode D4, a transient voltage suppression diode D5, a GDT ceramic gas discharge tube G1, and a capacitor C8. Among them, pin 1 of the 485 conversion chip U1 is connected to the vehicle detector interface input terminal RXD1 of the data processing and resolution circuit through the resistor R21; pin 2 of the 485 conversion chip U1 is connected to the vehicle detector interface control terminal 485DIR of the data processing and resolution circuit through the resistor R25, and at the same time, pin 2 of the 485 conversion chip U1 is connected to pin 3 of the 485 conversion chip U1; pin 4 of the 485 conversion chip U1 is connected to the vehicle detector interface output terminal TXD1 of the data processing and resolution circuit through the resistor R31; pin 5 of the 485 conversion chip U1 is connected to GND; pin 6 of the 485 conversion chip U1 is connected to the power supply voltage through the resistor R29, and at the same time, pin 6 of the 485 conversion chip U1 is connected to GND through the transient voltage suppression diode D5, and at the same time, pin 6 of the 485 conversion chip U1 is connected to pin 2 of the GDT ceramic gas discharge tube G1 through the resistor R30; pin 7 of the 485 conversion chip U1 is connected to GND through the resistor R22, and at the same time, pin 7 of the 485 conversion chip U1 is connected to GND through the transient voltage suppression diode D4, and at the same time, pin 7 of the 485 conversion chip U1 is connected to pin 1 of the GDT ceramic gas discharge tube G1 through the resistor R23; pin 8 of the 485 conversion chip U1 is connected to GND through the capacitor C8, and at the same time, pin 8 of the 485 conversion chip U1 is connected to the power supply voltage; pin 1 of the GDT ceramic gas discharge tube G1 is the vehicle detector interface 485A; pin 2 of the GDT ceramic gas discharge tube G1 is the vehicle detector interface 485B; pin 3 of the GDT ceramic gas discharge tube G1 is connected to the ground EARTH.
[0031] The chip U1 is a communication interface voltage conversion chip, which is used to convert the 485 level of the vehicle detector communication interface into the TTL level of the communication interface of the data processing and calculation circuit; the resistor R21 is the series resistor of the data receiving pin of U1; the resistor R22 is the pull-down resistor to ground of the differential data pin B of U1; the resistor R23 is the series resistor of the differential data pin B of U1; the resistor R25 is the input resistor of the data direction control pin of U1; the resistor R29 is the pull-up resistor to power supply of the differential data pin A of U1; the resistor R30 is the series resistor of the differential data pin A of U1, the resistor R31 is the series resistor of the data output pin of U1, the transient voltage suppression diode D4 is the TVS tube for discharging the surge current of the differential data pin B of U1 to GND; the transient voltage suppression diode D5 is the TVS tube for discharging the surge current of the differential data pin A of U1 to GND; the GDT ceramic gas discharge tube G1 is the TVS tube for discharging the surge current of the differential data pins A and B of U1 to the ground. The capacitor C8 is the power supply filter capacitor of U1.
[0032] In an embodiment of the present application, the 485 conversion chip U1 uses SP3485EN, the resistor R21 is 120 ohms, the resistor R22 is 4.3k ohms, the resistor R23 is 10 ohms, the resistor R25 is 33 ohms, the resistor R29 is 4.3k ohms, the resistor R30 is 10 ohms, the resistor R31 is 33 ohms, the transient voltage suppression diode D4 uses SMBJ10CA, the transient voltage suppression diode D5 uses SMBJ10CA, the GDT ceramic gas discharge tube G1 uses 3RL090L-6, and the capacitor C8 is 0.1uf.
[0033] See Figure 3, in an embodiment of the present application, the signal light color sampling circuit in the circuit for calculating the intersection saturation degree and the number of parking times of the present application includes an optocoupler U11, an inverter U10, resistors R83, R84, R85, R89, R94, R129, R130, R138, R139, transient voltage suppression diodes ZD2, ZD7, ZD8, and capacitors C26, C27, C28. Among them, pin 1 of the inverter U10 is connected to GND through the capacitor C28. At the same time, pin 1 of the inverter U10 is connected to the power supply voltage through the resistor R85. At the same time, pin 1 of the inverter U10 is connected to pin 16 of the optocoupler U11; pin 2 of the inverter U10 is connected to the input terminal RED of the signal light color interface of the data processing and calculation circuit; pin 3 of the inverter U10 is connected to GND through the capacitor C27. At the same time, pin 3 of the inverter U10 is connected to the power supply voltage through the resistor R84. At the same time, pin 3 of the inverter U10 is connected to pin 14 of the optocoupler U11; pin 4 of the inverter U10 is connected to the input terminal YEL of the signal light color interface of the data processing and calculation circuit; pin 5 of the inverter U10 is connected to GND through the capacitor C26. At the same time, pin 5 of the inverter U10 is connected to the power supply voltage through the resistor R83. At the same time, pin 5 of the inverter U10 is connected to pin 12 of the optocoupler U11; pin 6 of the inverter U10 is connected to the input terminal GREEN of the signal light color interface of the data processing and calculation circuit; pin 1 of the optocoupler U11 is connected to the neutral line N of the commercial power; pin 2 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD8; pin 3 of the optocoupler U11 is connected to the neutral line N of the commercial power; pin 4 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD2; pin 5 of the optocoupler U11 is connected to the neutral line N of the commercial power; pin 6 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD7; pin 11 of the optocoupler U11 is connected to GND; pin 13 of the optocoupler U11 is connected to GND; pin 15 of the optocoupler U11 is connected to GND; the second anode pin of the TVS diode ZD8 is connected to the first pin of the resistor R130; the second pin of the resistor R130 is connected to the first pin of the resistor R139; the second pin of the resistor R139 is the signal light interface R0; the second anode pin of the TVS diode ZD2 is connected to the first pin of the resistor R89; the second pin of the resistor 89 is connected to the first pin of the resistor R94; the second pin of the resistor R94 is the signal light interface Y0; the second anode pin of the TVS diode ZD7 is connected to the first pin of the resistor R129; the second pin of the resistor 129 is connected to the first pin of the resistor R138; the second pin of the resistor R138 is the signal light interface G0.
[0034] The chip U11 is a 4-channel optocoupler chip, which is used to perform optoelectronic isolation on the input voltage of the signal lamp. This circuit samples the states of the red, yellow, and green lamp surfaces of the signal lamp, and a total of 3 channels of optocoupler circuits of U11 are used. The input AC220V voltage of the signal lamp to be sampled by this circuit is a high-voltage and strong electrical signal, which cannot be directly input into the microcontroller U2, otherwise it will cause damage to the U2 chip. U11 converts the high-voltage and strong electrical signal at the input end of the signal lamp into an optical signal inside the chip for electrical isolation, and then restores it to a low-voltage and weak electrical signal that can be input into U1. Thus, optoelectronic isolation is achieved. The chip U10 is a 6-channel Schmitt trigger inverter, which can convert a slowly changing input signal into a clear and jitter-free output signal, thereby converting the low-voltage and weak electrical signal output by U11 into a clear and jitter-free TTL level signal, and at the same time performing logical inversion. This circuit samples the states of the red, yellow, and green lamp surfaces of the signal lamp, and a total of 3 channels of Schmitt trigger inverters of U10 are used; the resistor R83 is the pull-up resistor to the power supply at the output end of the 3rd channel of the U11 optocoupler circuit; the resistor R84 is the pull-up resistor to the power supply at the output end of the 2nd channel of the U11 optocoupler circuit; the resistor R85 is the pull-up resistor to the power supply at the output end of the 1st channel of the U11 optocoupler circuit; the resistors R89 and R94 are the current-limiting resistors at the input end of the 2nd channel of the U11 optocoupler circuit, the resistors R129 and R138 are the current-limiting resistors at the input end of the 3rd channel of the U11 optocoupler circuit, the resistors R130 and R139 are the current-limiting resistors at the input end of the 1st channel of the U11 optocoupler circuit. The input end of U11 is connected to the high-voltage and strong electrical signal at the input end of the signal lamp, and the loop current value needs to be limited within the range that the internal phototube of U11 can bear through the current-limiting resistor; the transient voltage suppression diode ZD2 is the step-down diode at the input end of the 2nd channel of the U11 optocoupler circuit, ZD7 is the step-down diode at the input end of the 3rd channel of the U11 optocoupler circuit, ZD8 is the step-down diode at the input end of the 1st channel of the U11 optocoupler circuit. The input end of U11 is connected to the high-voltage and strong electrical signal at the input end of the signal lamp. The transient voltage suppression diode can perform fast overvoltage protection on the circuit, so that the voltage applied to the input end of the U11 optocoupler circuit is reduced to the range that the chip can withstand; the capacitor C26 is the filter capacitor at the output end of the 3rd channel of the U11 optocoupler circuit, C27 is the filter capacitor at the output end of the 2nd channel of the U11 optocoupler circuit, and C28 is the filter capacitor at the output end of the 1st channel of the U11 optocoupler circuit.
[0035] In one embodiment of the present application, the optocoupler U11 uses TLP620-4, the inverter U10 uses SN74HC14D, the resistor R83 is 10 kΩ, the resistor R84 is 10 kΩ, the resistor R85 is 10 kΩ, the resistor R89 is 27 kΩ, the resistor R94 is 27 kΩ, the resistor R129 is 27 kΩ, the resistor R130 is 27 kΩ, the resistor R138 is 27 kΩ, the resistor R139 is 27 kΩ, the transient voltage suppression diode ZD2 uses SMBJ120CA, the transient voltage suppression diode ZD7 uses SMBJ120CA, the transient voltage suppression diode ZD8 uses SMBJ120CA, the capacitor C26 is 1 μF, the capacitor C27 is 1 μF, and the capacitor C28 is 1 μF.
[0036] See Figure 4, in an embodiment of the present application, the data processing and solution circuit in the circuit for calculating intersection saturation and parking times of the present application includes a microcontroller U2, an RS232 interface chip U14, resistors R1, R2, R3, R4, R5, R6, R88, R89, R90, R91, capacitors C1, C2, C3, C41, C42, C43, C44, C49, C50, C51, C52. Among them, the 5th pin of the microcontroller U2 is connected to GND through the capacitor C2. At the same time, the 5th pin of the microcontroller U2 is connected to the 6th pin of the microcontroller U2 through the resistors R1 and R2. At the same time, the connection point of the resistors R1 and R2 is connected to GND through the capacitor C3. At the same time, the connection point of the resistors R1 and R2 is connected to the 5th pin of the microcontroller U2 through the crystal oscillator Y1; the 7th pin of the microcontroller U2 is connected to GND through the capacitor C1. At the same time, the 7th pin of the microcontroller U2 is connected to the power supply voltage through the resistor R3; the 60th pin of the microcontroller U2 is connected to GND through the resistor R4; the 13th pin of the microcontroller U2 is connected to the power supply voltage through the resistor R5; the 1st pin of the microcontroller U2 is connected to the power supply voltage; the 32nd pin of the microcontroller U2 is connected to the power supply voltage; the 48th pin of the microcontroller U2 is connected to the power supply voltage; the 64th pin of the microcontroller U2 is connected to the power supply voltage; the 19th pin of the microcontroller U2 is connected to the power supply voltage; the 28th pin of the microcontroller U2 is connected to GND through the resistor R6; the 31st pin of the microcontroller U2 is connected to GND; the 47th pin of the microcontroller U2 is connected to GND; the 63rd pin of the microcontroller U2 is connected to GND; the 18th pin of the microcontroller U2 is connected to GND; the 12th pin of the microcontroller U2 is connected to GND; the 16th pin TXD2 of the microcontroller U2 is connected to the 10th pin of the RS232 interface chip U14; the 17th pin RXD2 of the microcontroller U2 is connected to the 9th pin of the RS232 interface chip U14; the 29th pin TXD3 of the microcontroller U2 is connected to the 11th pin of the RS232 interface chip U14; the 30th pin RXD3 of the microcontroller U2 is connected to the 12th pin of the RS232 interface chip U14; the 42nd pin of the microcontroller U2 is connected to the input terminal TXD1 of the vehicle detector interface circuit; the 43rd pin of the microcontroller U2 is connected to the output terminal RXD1 of the vehicle detector interface circuit; the 44th pin of the microcontroller U2 is connected to the control terminal 485DIR of the vehicle detector interface circuit; the 24th pin of the microcontroller U2 is connected to the output terminal RED of the signal light color sampling circuit; the 25th pin of the microcontroller U2 is connected to the output terminal YEL of the signal light color sampling circuit; the 37th pin of the microcontroller U2 is connected to the output terminal GREEN of the signal light color sampling circuit; the 1st pin of the RS232 interface chip U14 is connected to the 3rd pin of the RS232 interface chip U14 through the capacitor C41; the 4th pin of the RS232 interface chip U14 is connected to the 5th pin of the RS232 interface chip U14 through the capacitor C42; the 2nd pin of the RS232 interface chip U14 is connected to the power supply voltage through the capacitor C43; the 6th pin of the RS232 interface chip U14 is connected to GND through the capacitor C44;Pin 16 of the RS232 interface chip U14 is connected to the power supply voltage; Pin 15 of the RS232 interface chip U14 is connected to GND.;
[0037] Chip U2 is a microcontroller, which integrates functions such as a timer, a memory, a serial communication interface, and an IO input / output interface inside the chip. It is the core device for data processing, calculating the saturation degree and the number of stops; Chip U14 is an RS232 interface chip, which converts the TTL level of the serial communication interface of U2 into the RS232 level for connecting to a serial port server and a router; Resistors R1, R2, crystal oscillator Y1, capacitors C2, and C3 constitute the external oscillator input circuit of the microcontroller U2. The main function is to generate an accurate frequency signal to provide a stable and synchronous basic clock signal for the internal operations of the microcontroller, ensuring that various operations of the microcontroller can be synchronized; C1 and R3 constitute the power-on reset circuit of the microcontroller U2, which is used to stably reset the microcontroller U2 when the circuit is powered on and started; R4 is the pull-down resistor for the BOOT0 pin of U2 to ground, and its function is to make U2 start from the internal flash memory of the chip; R5 is the series magnetic bead of the analog power supply VDDA of the microcontroller U2 to the input power supply of the circuit. The analog power supply VDDA and the digital power supply VDD of the microcontroller U2 use the same input power supply. Here, the series magnetic bead R5 is used to ensure the stability of the power supply and reduce interference; R6 is the pull-down resistor for the BOOT1 pin of U2 to ground, and its function is to make U2 start from the internal flash memory of the chip; C41, C42, C43, and C44 are the peripheral resistors of the charge pump circuit of the chip U14, which help U14 generate the required ±5.5V voltage; Capacitors C49, C50, C51, and C52 are the filter capacitors for the TTL data terminal pins of U14 to ensure the stability of the data waveform and reduce interference.
[0038] In an embodiment of the present application, the microcontroller U2 uses STM32F103R8T6, the RS232 interface chip U14 uses MAX3232, the resistor R1 is 1M ohm, the resistor R2 is 220 ohm, the resistor R3 is 10k ohm, the resistor R4 is 20k ohm, the resistor R5 is a 10-ohm magnetic bead, the resistor R6 is 10k ohm, the resistor R88 is 22 ohm, the resistor R89 is 22 ohm, the resistor R90 is 22 ohm, the resistor R91 is 22 ohm, the capacitor C1 is 0.1uF, the capacitor C2 is 20pF, the capacitor C3 is 20pF, the capacitor C41 is 0.22uF, the capacitor C42 is 0.22uF, the capacitor C43 is 0.22uF, the capacitor C44 is 0.22uF, the capacitor C49 is 100pF, the capacitor C50 is 100pF, the capacitor C51 is 100pF, and the capacitor C52 is 100pF.
[0039] In an embodiment of the present application, the circuit for calculating the saturation degree and the number of stops at intersections of the present application further includes a data encryption and decryption circuit. SeeFigure 5 , the data encryption and decryption circuit of this application includes an encryption chip U5, a capacitor C12, and a capacitor C13. Among them, pin 1 of the data encryption chip U5 is connected to GND; pin 8 of the data encryption chip U5 is connected to the power supply voltage. At the same time, pin 8 of the data encryption chip is connected to GND through the capacitor C12, and at the same time, pin 8 of the data encryption chip is connected to GND through the capacitor C13; pin 54 of the microcontroller U2 is connected to the input terminal SSEL1 of pin 6 of the data encryption chip U5; pin 55 of the microcontroller U2 is connected to the input terminal SCK1 of pin 4 of the data encryption chip U5; pin 56 of the microcontroller U2 is connected to the output terminal MISO1 of pin 2 of the data encryption chip U5; pin 57 of the microcontroller U2 is connected to the input terminal MOSI1 of pin 3 of the data encryption chip U5; pin 58 of the microcontroller U2 is connected to the input terminal HSC_RST of pin 7 of the data encryption chip U5.
[0040] The data encryption and decryption circuit is used to encrypt and decrypt the communication data between this circuit and the central control system or other devices to ensure the security of data transmission. Since this circuit is applied in the field of traffic signal control, the central control system or other devices communicating with this circuit are usually deployed inside the public security network, so there are extremely high requirements for data transmission security.
[0041] In an embodiment of this application, the encryption chip U5 adopts HSC32C1-S1V30, the capacitor C12 is 0.1uF, and the capacitor C13 is 10uF.
[0042] In an embodiment of this application, the 485 conversion chip U1, the inverter U10, the microcontroller U2, the data encryption chip U5, the RS232 interface chip U14, and the microcontroller U2 all adopt a 3.3V power supply voltage. Unifying the power supply voltage can significantly simplify the design, and 3.3V devices usually have lower static current and dynamic power consumption, so the power consumption and cost can be reduced; in addition, in differential communications such as RS-485, 3.3V power supply can reduce the risk of common-mode voltage interference and improve the reliability of long-distance transmission; finally, the 3.3V system usually has smaller power supply ripple and noise, so the system reliability can be improved. Of course, other suitable power supply voltages are also possible.
[0043] In an embodiment of this application, the circuit for calculating the intersection saturation degree and the number of stops of this application further includes an Ethernet serial server. Among them, pin 14 of the RS232 interface chip U14 is connected to the output terminal TXDOUT3 of the Ethernet serial server through the resistor R90. At the same time, pin 14 of the RS232 interface chip U14 is connected to GND through the capacitor C50; pin 13 of the RS232 interface chip U14 is connected to the input terminal RXDOUT3 of the Ethernet serial server through the resistor R88. At the same time, pin 13 of the RS232 interface chip U14 is connected to GND through the capacitor C52.
[0044] This circuit is applied to the field of traffic signal control and needs to communicate with the central control system or other devices. The Ethernet serial server is the wired communication circuit of this circuit. The central control system or other devices that communicate with this circuit are usually deployed inside the public security network, and Ethernet is the transmission mode specified for the public security network.
[0045] In an embodiment of the present application, the circuit for calculating the intersection saturation and the number of stops of the present application further includes a router. Among them, the 7th pin of the RS232 interface chip U14 is connected to the output terminal TXDOUT2 of the router through the resistor R89. At the same time, the 7th pin of the RS232 interface chip U14 is connected to GND through the capacitor C51; the 8th pin of the RS232 interface chip U14 is connected to the input terminal RXDOUT2 of the router through the resistor R91. At the same time, the 8th pin of the RS232 interface chip U14 is connected to GND through the capacitor C49.
[0046] This circuit is applied to the field of traffic signal control and needs to communicate with the central control system or other devices. The router is the wireless communication circuit of this circuit, and this router can use a 4G router or a 5G router. The wireless communication circuit is applicable to intersections that use the 4G / 5G method to connect to the network without optical cables. This circuit can select to use wired communication or wireless communication according to actual application needs; in some application scenarios with high requirements for communication reliability, the wired communication can also be used as the main communication circuit, and the wireless communication can be used as the backup communication circuit, and switch to wireless communication when the wired communication is unstable or interrupted.
Claims
1. A circuit for calculating intersection saturation and number of stops, characterized in that: It includes a vehicle detector interface circuit, a signal light color sampling circuit, and a data processing and solving circuit, wherein: The vehicle detector interface circuit is electrically connected to the vehicle detector and the data processing and solving circuit respectively, and is used to receive the real-time vehicle speed, the number of passing vehicles and the queue length from the vehicle detector, and transmit the received real-time vehicle speed, the number of passing vehicles and the queue length to the data processing and solving circuit; The signal light color sampling circuit is electrically connected to the traffic light and the data processing and solving circuit respectively, and is used to sample the on and off states of the three light colors of the traffic light, and output the on and off states to the data processing and solving circuit; The data processing and solving circuit is used to receive the real-time vehicle speed, number of passing vehicles and queue length from the vehicle detector interface circuit, and receive the on and off status of three light colors from the signal light color sampling circuit, and process and solve the received data to generate the intersection saturation and the number of vehicle stops.
2. The circuit for calculating intersection saturation and number of stops according to claim 1, characterized in that: The vehicle detector interface circuit includes a 485 conversion chip U1, a resistor R21, a resistor R22, a resistor R23, a resistor R25, a resistor R29, a resistor R30, a resistor R31, a transient voltage suppression diode D4, a transient voltage suppression diode D5, a GDT ceramic gas discharge tube G1, and a capacitor C8, wherein: Pin 1 of the 485 conversion chip U1 is connected to the vehicle detector interface input terminal RXD1 of the data processing and solving circuit through resistor R21; Pin 2 of the 485 conversion chip U1 is connected to the vehicle detector interface control terminal 485DIR of the data processing and solving circuit through resistor R25. At the same time, Pin 2 of the 485 conversion chip U1 is connected to Pin 3 of the 485 conversion chip U1; Pin 4 of the 485 conversion chip U1 is connected to the vehicle detector interface output terminal TXD1 of the data processing and solving circuit through resistor R31; Pin 5 of the 485 conversion chip U1 is connected to GND; Pin 6 of the 485 conversion chip U1 is connected to the power supply voltage through resistor R29. , the 6th pin of the 485 conversion chip U1 is connected to GND through the transient voltage suppression diode D5, and at the same time, the 6th pin of the 485 conversion chip U1 is connected to the 2nd pin of the GDT ceramic gas discharge tube G1 through the resistor R30; the 7th pin of the 485 conversion chip U1 is connected to GND through the resistor R22, and at the same time, the 7th pin of the 485 conversion chip U1 is connected to GND through the transient voltage suppression diode D4, and at the same time, the 7th pin of the 485 conversion chip U1 is connected to the 1st pin of the GDT ceramic gas discharge tube G1 through the resistor R23; the 8th pin of the 485 conversion chip U1 is connected to GND through the capacitor C8, and at the same time, the 8th pin of the 485 conversion chip U1 is connected to the power supply voltage; Pin 1 of the GDT ceramic gas discharge tube G1 is the vehicle detector interface 485A; Pin 2 of the GDT ceramic gas discharge tube G1 is the vehicle detector interface 485B; Pin 3 of the GDT ceramic gas discharge tube G1 is connected to the earth EARTH.
3. The circuit for calculating intersection saturation and number of stops according to claim 2, characterized in that: The 485 conversion chip U1 adopts SP3485EN, the transient voltage suppression diode D4 adopts SMBJ10CA, the transient voltage suppression diode D5 adopts SMBJ10CA, the GDT ceramic gas discharge tube G1 adopts 3RL090L-6, and the power supply voltage is 3.3V.
4. The circuit for calculating intersection saturation and number of stops according to claim 1, characterized in that: The signal light color sampling circuit includes an optocoupler U11, an inverter U10, a resistor R83, a resistor R84, a resistor R85, a resistor R89, a resistor R94, a resistor R129, a resistor R130, a resistor R138, a resistor R139, transient voltage suppression diodes ZD2, ZD7, ZD8, capacitors C26, C27, C28, wherein: Pin 1 of the inverter U10 is connected to GND through capacitor C28, and at the same time, pin 1 of the inverter U10 is connected to the power supply voltage through resistor R85, and at the same time, pin 1 of the inverter U10 is connected to pin 16 of the optocoupler U11; pin 2 of the inverter U10 is connected to the signal light color interface input terminal RED of the data processing and resolution circuit; pin 3 of the inverter U10 is connected to GND through capacitor C27, and at the same time, pin 3 of the inverter U10 is connected to the power supply voltage through resistor R84, and at the same time, the inverter Pin 3 of U10 is connected to pin 14 of optocoupler U11; pin 4 of inverter U10 is connected to the signal light color interface input terminal YEL of the data processing and solving circuit; pin 5 of inverter U10 is connected to GND through capacitor C26, and at the same time, pin 5 of inverter U10 is connected to the power supply voltage through resistor R83, and at the same time, pin 5 of inverter U10 is connected to pin 12 of optocoupler U11; pin 6 of inverter U10 is connected to the signal light color interface input terminal GREEN of the data processing and solving circuit; Pin 1, 3, and 5 of the optocoupler U11 are connected to the mains neutral line N; Pin 2 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD8; Pin 4 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD2; Pin 6 of the optocoupler U11 is connected to the first anode pin of the TVS diode ZD7; Pin 11, 13, and 15 of the optocoupler U11 are connected to GND; The second anode pin of the TVS diode ZD8 is connected to the first pin of the resistor R130; The second pin of the resistor R130 is connected to the first pin of the resistor R139; The second pin of the resistor R139 is the signal light interface R0; The second anode pin of the TVS diode ZD2 is connected to the first pin of the resistor R89; The second pin of the resistor 89 is connected to the first pin of the resistor R94; The second pin of the resistor R94 is the signal light interface Y0; The second anode pin of the TVS diode ZD7 is connected to the first pin of the resistor R129; The second pin of the resistor 129 is connected to the first pin of the resistor R138; The second pin of the resistor R138 is the signal light interface G0.
5. The circuit for calculating intersection saturation and number of stops according to claim 4, characterized in that: The optocoupler U11 adopts TLP620-4, the inverter U10 adopts SN74HC14D, the transient voltage suppression diode ZD2 adopts SMBJ120CA, the transient voltage suppression diode ZD7 adopts SMBJ120CA, the transient voltage suppression diode ZD8 adopts SMBJ120CA, and the power supply voltage is 3.3V.
6. The circuit for calculating intersection saturation and number of stops according to claim 1, characterized in that: The data processing and solving circuit includes a microcontroller U2, an RS232 interface chip U14, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R88, a resistor R89, a resistor R90, a resistor R91, a capacitor C1, a capacitor C2, a capacitor C3, a capacitor C41, a capacitor C42, a capacitor C43, a capacitor C44, a capacitor C49, a capacitor C50, a capacitor C51, and a capacitor C52, wherein: Pin 5 of microcontroller U2 is connected to GND through capacitor C2, and at the same time, pin 5 of microcontroller U2 is connected to pin 6 of microcontroller U2 through resistors R1 and R2, and at the same time, the connection point of resistors R1 and R2 is connected to GND through capacitor C3, and at the same time, the connection point of resistors R1 and R2 is connected to pin 5 of microcontroller U2 through crystal oscillator Y1; pin 7 of microcontroller U2 is connected to GND through capacitor C1, and at the same time, pin 7 of microcontroller U2 is connected to power supply voltage through resistor R3; pin 60 of microcontroller U2 is connected to GND through resistor R4; pin 13 of microcontroller U2 is connected to power supply voltage through resistor R5; pin 1, pin 19, pin 32, pin 48, and pin 64 of microcontroller U2 are connected to power supply voltage; pin 28 of microcontroller U2 is connected to GND through resistor R6; pin 12, pin 18, pin 31, pin 47, and pin 63 of microcontroller U2 are connected to GND; microcontroller U2 The 16-pin TXD2 of the microcontroller U2 is connected to the 10-pin of the RS232 interface chip U14; the 17-pin RXD2 of the microcontroller U2 is connected to the 9-pin of the RS232 interface chip U14; the 29-pin TXD3 of the microcontroller U2 is connected to the 11-pin of the RS232 interface chip U14; the 30-pin RXD3 of the microcontroller U2 is connected to the 12-pin of the RS232 interface chip U14; the 42-pin of the microcontroller U2 is connected to the input terminal TXD1 of the vehicle detector interface circuit; the 43-pin of the microcontroller U2 is connected to the output terminal RXD1 of the vehicle detector interface circuit; the 44-pin of the microcontroller U2 is connected to the control terminal 485DIR of the vehicle detector interface circuit; the 24-pin of the microcontroller U2 is connected to the output terminal RED of the signal light color sampling circuit; the 25-pin of the microcontroller U2 is connected to the output terminal YEL of the signal light color sampling circuit; the 37-pin of the microcontroller U2 is connected to the output terminal GREEN of the signal light color sampling circuit; Pin 1 of the RS232 interface chip U14 is connected to pin 3 of the RS232 interface chip U14 via capacitor C41; pin 4 of the RS232 interface chip U14 is connected to pin 5 of the RS232 interface chip U14 via capacitor C42; pin 2 of the RS232 interface chip U14 is connected to the power supply voltage via capacitor C43; pin 6 of the RS232 interface chip U14 is connected to GND via capacitor C44; pin 16 of the RS232 interface chip U14 is connected to the power supply voltage; and pin 15 of the RS232 interface chip U14 is connected to GND.
7. The circuit for calculating intersection saturation and number of stops according to claim 6, characterized in that: The microcontroller U2 adopts STM32F103R8T6, the RS232 interface chip U14 adopts MAX3232, and the power supply voltage is 3.3V.
8. The circuit for calculating intersection saturation and number of stops according to any one of claims 1 to 7, characterized in that: It also includes a data encryption and decryption circuit, which is used to encrypt and decrypt communication data. The data encryption and decryption circuit includes a data encryption chip U5, a capacitor C12, and a capacitor C13, wherein: Pin 1 of the data encryption chip U5 is connected to GND; Pin 8 of the data encryption chip U5 is connected to the power supply voltage, and at the same time, Pin 8 of the data encryption chip is connected to GND through capacitor C12, and at the same time, Pin 8 of the data encryption chip is connected to GND through capacitor C13; Pin 54 of the microcontroller U2 is connected to the 6-pin input terminal SSEL1 of the data encryption chip U5; Pin 55 of the microcontroller U2 is connected to the 4-pin input terminal SCK1 of the data encryption chip U5; Pin 56 of the microcontroller U2 is connected to the 2-pin output terminal MISO1 of the data encryption chip U5; Pin 57 of the microcontroller U2 is connected to the 3-pin input terminal MOSI1 of the data encryption chip U5; Pin 58 of the microcontroller U2 is connected to the 7-pin input terminal HSC_RST of the data encryption chip U5, wherein the encryption chip U5 adopts HSC32C1-S1V30, and the power supply voltage is 3.3V.
9. The circuit for calculating intersection saturation and number of stops according to claim 8, characterized in that: It also includes an Ethernet serial port server, which is used for wired transmission of communication data. Pin 14 of the RS232 interface chip U14 is connected to the output terminal TXDOUT3 of the Ethernet serial port server through a resistor R90, and at the same time, pin 14 of the RS232 interface chip U14 is connected to GND through a capacitor C50; pin 13 of the RS232 interface chip U14 is connected to the input terminal RXDOUT3 of the Ethernet serial port server through a resistor R88, and at the same time, pin 13 of the RS232 interface chip U14 is connected to GND through a capacitor C52.
10. The circuit for calculating intersection saturation and number of stops according to claim 8, characterized in that: It also includes a router, which is used for wireless transmission of communication data, wherein: Pin 7 of the RS232 interface chip U14 is connected to the output terminal TXDOUT2 of the router through a resistor R89, and at the same time, pin 7 of the RS232 interface chip U14 is connected to GND through a capacitor C51; pin 8 of the RS232 interface chip U14 is connected to the input terminal RXDOUT2 of the router through a resistor R91, and at the same time, pin 8 of the RS232 interface chip U14 is connected to GND through a capacitor C49.
Citation Information
Patent Citations
Method for calculating saturation degree of road intersection in entrance direction and electronic equipment
CN116824857A