A signal light adaptive compensation power supply
By designing an adaptive compensation power supply that uses memory and microcontroller to identify signals, the error information problem caused by existing traffic lights in flash trigger mode is solved, and adaptive compensation is achieved, ensuring the accuracy and safety of traffic signals.
Patent Information
- Application Number
- CN201810180326.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-03-05
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2038-03-05
AI Technical Summary
When existing traffic lights use the flash-out triggering method, they will bring error messages to pedestrians and vehicles, resulting in traffic safety hazards, and error compensation occurs when the compensation power supply works on the entire signal machine, resulting in confusion of traffic light signals.
Design an adaptive compensation power supply for signal lamps, use the memory storage function to realize power off memory, identify the full or fixed-range signals through a microcontroller, and determine whether to perform compensation output based on the stored information to realize the adaptive compensation function.
The adaptive identification and compensation function is realized according to the on-site signal condition, avoiding error compensation, and ensuring the accuracy of traffic light signals and traffic safety.
Smart Images

Figure CN108260265B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an adaptive compensation power supply, in particular to an adaptive compensation power supply for a signal light which uses a memory storage function to realize power-off memory and can adaptively identify compensation functions according to the conditions of on-site signal machines. Background Art
[0002] At present, some of the known traffic lights use a flashing trigger to trigger the countdown, that is, a fixed-range countdown, which is characterized in that the signal machine uses a flashing signal of 150 to 300ms to trigger the countdown system to work, and there is no signal output during the flashing signal. This signal is manifested as a 150-300ms extinction on the traditional signal light. The extinction of this signal light will bring wrong information to pedestrians and vehicles. When the green light of the signal light flashes off, pedestrians and vehicles will mistakenly believe that the green flash has started and prepare to set off in advance. When the red light of the signal light flashes off, pedestrians and vehicles will mistakenly believe that the red light has ended and prepare to set off in advance, which brings hidden dangers to traffic. Compensation power supplies have appeared on the market, which realize compensation output when the fixed-range flashing signal appears. However, the signal lights using the compensation power supply show that error compensation occurs when working on the full-range signal machine, which is manifested in that when there is no flashing signal, the red light turns green and an error compensation appears when the red light turns green. In the first green flash during the green light signal, the first green flash is lost due to the error compensation due to the flashing signal being mistakenly used, which brings hidden dangers to traffic safety. Summary of the invention
[0003] In view of the above problems, the main purpose of the present invention is to provide a signal light adaptive compensation power supply which uses a memory storage function to realize power-off memory and can adaptively identify and compensate for the signal light according to the conditions of the on-site signal lights.
[0004] The present invention solves the above technical problems through the following technical solutions: a signal light adaptive compensation power supply, characterized in that: the signal light adaptive compensation power supply includes: an external power supply, a single-chip microcomputer, a storage circuit, a power supply control circuit, an input detection circuit, a memory, and a load output drive circuit.
[0005] The external power input is connected to the energy storage circuit and the power control circuit in sequence.
[0006] Another path of external power input is connected to the input detection circuit, the single chip microcomputer, and the load output drive circuit in sequence. The power control circuit is interconnected with the single chip microcomputer, and the single chip microcomputer is connected to the memory; the single chip microcomputer controls the load output drive circuit.
[0007] In a specific implementation example of the present invention, the single-chip microcomputer stores the full-course or fixed-course information recognized currently in the memory, and determines whether compensation is required next time based on the full-course information or fixed-course information read out from the memory, thereby realizing the power-off saving function, and judging the full-course or fixed-course information again and saving the result judgment in the memory as the basis for the next judgment, thereby realizing that learning and recognition once can adapt to whether the current signal machine needs compensation function, thereby realizing the adaptive compensation function.
[0008] In a specific implementation example of the present invention, the memory may be EEPROM or FLASH.
[0009] In a specific implementation example of the present invention, during a red or green light signal of a traffic light, when the red or green light signal is turned on, the power supply obtains electric energy to work, the power supply works, the single-chip microcomputer obtains electric energy output by the power supply to work, and the single-chip microcomputer identifies whether there is a flash-off signal of less than 0.3 seconds in the current signal. If there is, it is judged as a fixed process, and if not, it is judged as a full process. The memory first uses the full process information stored before use. The single-chip microcomputer compares the currently recognized full process or fixed process information with the information stored in the memory. If they are consistent, no action is taken. Otherwise, if they are inconsistent, the full process or fixed process information in the memory is modified. Information, after the flashing starts, the single-chip computer determines whether to compensate based on the full-range information or fixed-range information read out from the memory. If it is the full-range information, it controls not to compensate, and if it is the fixed-range information, it controls to compensate. The electric energy during the control compensation period is provided by the capacitor energy storage in the energy storage circuit in the power supply to maintain the output during the flashing. When the red light or green light signal ends, the power supply is cut off, and the energy stored in the energy storage circuit in the power supply is consumed by the single-chip computer until the single-chip computer is powered off and shut down. When the red light or green light is turned on again next time, the single-chip computer in the power supply works in the above manner to realize the adaptive compensation function.
[0010] The positive and progressive effect of the present invention is that the adaptive compensation power supply for the signal light provided by the present invention stores the full-range or fixed-range information currently identified into a memory, and determines whether compensation is required next time based on the full-range information or fixed-range information read out from the memory, thereby realizing a power-off saving function, and judging the full-range or fixed-range information again and saving the result judgment into the memory as a basis for the next judgment, thereby realizing that learning and identifying once can adapt to whether the current signal machine needs a compensation function, thereby realizing an adaptive compensation function. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a structural block diagram of the present invention.
[0012] Figure 2 It is a circuit schematic diagram of the present invention.
[0013] Figure 3 It is a program flow chart of the present invention.
[0014] Figure 2 In the middle, AC220 input P3, resistors R1, R2, R3, R4, R5, R7, R8, R9, R10, R11, R12, R14, R15, R16, R17, R18, rectifier bridge BR1, fuse resistor RF1, varistor RV1, safety X capacitor C1, safety Y capacitor C5, optocoupler U2, U3, fast recovery diode D1, D2, Schottky diode D3, TVS tube DZ1, voltage regulator D4, LED indicator D5, capacitor C2, C3, C4, C7, C8, C13, C14, C15, C16, common mode inductor L1, high frequency transformer T1, field effect tube Q1, load output P2, burning port P1, microcontroller U5, power chip U1, three-terminal voltage regulator U4. DETAILED DESCRIPTION
[0015] Preferred embodiments of the present invention are given below in conjunction with the accompanying drawings to illustrate the technical solutions of the present invention in detail.
[0016] Figure 1 It is a schematic diagram of the overall structure of the present invention, as shown in Figure 1 As shown: the signal light adaptive compensation power supply provided by the present invention includes: an external power supply, a single-chip microcomputer, an energy storage circuit, a power control circuit, an input detection circuit, a memory, and a load output drive circuit; one external power input is connected to the energy storage circuit and the power control circuit in sequence; another external power input is connected to the input detection circuit, the single-chip microcomputer, and the load output drive circuit in sequence, the power control circuit is interconnected with the single-chip microcomputer, and the single-chip microcomputer is connected to the memory; the single-chip microcomputer controls the load output drive circuit. The external power supply in the present invention is selected as an AC220V power supply.
[0017] Figure 2 It is a circuit diagram of the present invention, such as Figure 2As shown: the external AC power is connected to the AC220V input P3, and the power passes through the insurance resistor RF1 to the rectifier bridge BR1. The safety X capacitor C1 realizes the filtering effect. When the external input voltage is too high, the varistor RV1 clamps the protection to realize the lightning protection effect. The external input power is rectified by the rectifier bridge BR1 and then passes through the fast recovery diode D1 to the capacitors C2 and C3. Among them, the capacitors C2, C3 and the common mode inductor L1 form a filter circuit to realize the filtering function. The fast recovery diode D1 and the capacitor C4 realize the energy storage function. When there is power input, the capacitor C4 stores electric energy. When there is no power input, the electric energy stored in the capacitor C4 can also maintain the load output and the power supply itself during the flash off period. The power chip U1 gets the power and starts to work. The power chip U1 realizes the power control circuit. Resistors R7 and R8 are the working voltage range control resistors of the power chip U1. Capacitor C7 is the power control capacitor of the power chip U1. The power chip U1 realizes the power control function. The TVS tube DZ1 and the fast recovery diode D2 form a clamping circuit to absorb the high voltage after the high-frequency transformer T1 is reversed. The safety Y capacitor C5 realizes the filtering effect. The low-voltage output electricity is converted by the high-frequency transformer T1. The low-voltage output electricity reaches the capacitor C8 after passing through the Schottky diode D3. The Schottky diode D3 plays a unidirectional conduction role. The capacitor C8 realizes voltage stabilization and filtering. The secondary electricity passes through R18 to VCC. The voltage regulator diode D4 is for overvoltage protection. VCC passes through capacitors C16, C15, and C1 4. The three-terminal voltage regulator U4 converts the voltage into the working voltage required by the single-chip microcomputer U5. The single-chip microcomputer U5 obtains electricity and starts working. The resistors R11 and R12 realize the output voltage after the power supply output voltage is divided and supplied to the single-chip microcomputer for detection. The resistor R16 realizes the current detection function. When the current flows through the resistor R16, the single-chip microcomputer U5 reads the voltage through the resistor R17 to convert the current flowing through the resistor R16 to realize the power supply output current detection circuit. Among them, the on-resistance of Q1 is very small and can be ignored. If there is an impact, it can be calculated and corrected. The resistors R1, R3, field effect transistor Q1, and load output P2 realize the load output drive circuit. When the single-chip microcomputer U5 outputs a high level, the field effect transistor Q1 is turned on after passing through the resistor R1. When the single-chip microcomputer U5 outputs a low level, it passes through the resistor R 1, the field effect tube Q1 has high resistance, realizing the switch output circuit function. The resistor R3 is the absorption resistor after the field effect tube Q1 is turned off. The optocoupler U2, resistors R9, R10, and R14 form a power feedback circuit. The microcontroller U5 calculates the detected current and voltage by adjusting the high and low level states of the PWM_CC pin, and adjusts the input current of the optocoupler U2 through resistors R9 and R10. The output end of the optocoupler U2 changes accordingly, that is, the working condition of the power supply is fed back to the power chip U1. The power chip U1 adjusts the working condition of the power supply according to the feedback current. The feedback of the optocoupler U2 is relatively frequent to realize the power output stabilization function. The external input electricity is rectified by the rectifier bridge BR1 and the other way passes through resistors R4 and R5 to the optocoupler U3.Resistor R2 and capacitor C13 form an input detection circuit. When the external device is connected to AC220V input P3, the input of optocoupler U3 is turned on, the output of optocoupler U3 is turned on, and the connection between resistor R2 and capacitor C13 to the microcontroller shows a low level, otherwise it shows a high level, realizing the function of microcontroller U5 to detect whether there is external power input. Microcontroller U5 integrates EEPROM memory, which can store fixed-range or full-range information. Microcontroller U5 detects whether external power is input and starts flashing off. According to the fixed-range or full-range information stored in the EEPROM memory integrated in microcontroller U5 , and then control whether to turn on the control RA5 pin to a high level, then control the field effect tube Q1 to turn on and maintain the power output, otherwise control the field effect tube Q1 to turn off and turn off the power output, so that the power supply can achieve compensation or non-compensation output according to the stored value. When it is not a flash-off signal, control RA5 to follow the input. If there is power on the input, the field effect tube Q1 will be turned on. If there is no power on the input, the field effect tube Q1 will be turned off and turned on. The burning port P1 is the microcontroller program burning interface for program downloading. The resistor R15 and the LED indicator D5 are the output indicator functions. ,
[0018] Figure 3 It is a program flow chart of the present invention, now combined with Figure 3The working principle of the single-chip microcomputer U5 program is explained. During a red light signal or a green light signal, when the signal starts, the power supply obtains electric energy, the power supply is powered on and works, and the single-chip microcomputer U5 obtains electric energy provided by the power supply to work. After the single-chip microcomputer U5 works, it reads the full-range or fixed-range information stored in its own memory. When the first input is disconnected, the power supply maintains working because of the energy storage of capacitor C4. If the information stored in the read memory is full-range information, the single-chip microcomputer U5 controls the field effect transistor Q1 to turn on and off the output to achieve output following input. If the information stored in the read memory is fixed-range information, the output is turned on to maintain the output and the compensation output function is achieved. At the same time, the timing starts after the first input is disconnected. If the input is turned on again after the first input is disconnected, the timing stops and the timing time is calculated. If the calculated time is not more than 0.3 seconds, it is determined that this is fixed-range information, and compared with the information stored in the previously read memory, if they are consistent, no modification is made. If they are inconsistent, the memory is modified. The stored value is a fixed range; on the contrary, if the measured time is greater than 0.3 seconds or greater than 1 second without re-input to start, it is determined that this is full-range information, and compared with the stored value in the memory read out before, if they are consistent, no modification is made, if they are inconsistent, the stored value in the memory is modified to be full-range; after the single-chip computer judges that the input signal controls the output and the timing determines whether to modify the memory storage value, the subsequent input signal changes are not judged, and the single-chip computer U5 continues to run. When the red light or green light signal ends, the power supply is cut off, and the power supply capacitor C4 stores energy to maintain the single-chip computer working for a short time. The single-chip computer U5 consumes electricity until the power is cut off and shut down. Since the information saved in the memory will not change or disappear when the power is cut off, it can be used as a basis for judging the next work of the single-chip computer U5. When the green light or red light signal comes again, the single-chip computer U5 repeats the above process to judge the input signal control output and the timing determines whether to modify the memory storage value, thereby achieving the power supply adaptive judgment of whether the input signal is used for compensation output.
[0019] The single-chip microcomputer of the present invention has its own memory, which stores the full-range or fixed-range information recognized at the current time in the memory. Next time, it determines whether compensation is required based on the full-range information or fixed-range information read out from the memory, thereby realizing the power-off saving function, and judges the full-range or fixed-range information again and saves the result judgment in the memory as the basis for the next judgment, thereby realizing that learning and recognition once can adapt to whether the current signal machine needs compensation function, thereby realizing the adaptive compensation function.
[0020] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected, and the scope of the present invention to be protected is defined by the attached claims and their equivalents.
Claims
1. A signal light adaptive compensation power supply, characterized in that: The signal light adaptive compensation power supply comprises: an external power supply, a single chip microcomputer, an energy storage circuit, a power supply control circuit, an input detection circuit, a memory, and a load output drive circuit; The external power input is connected to the energy storage circuit and the power control circuit in sequence; Another path of the external power input is connected in sequence to the input detection circuit, the single chip microcomputer, and the load output drive circuit. The power control circuit is interconnected with the single chip microcomputer, and the single chip microcomputer is connected to the memory; the single chip microcomputer controls the load output drive circuit; The feature is that during a red or green signal of the traffic light, when the red or green signal is turned on, the power supply obtains electric energy to work, the single-chip microcomputer obtains electric energy output by the power supply to work, the single-chip microcomputer identifies whether there is a flash-off signal of less than 0.3 seconds in the current signal, if there is, it is judged as fixed process, if not, it is judged as full process, the memory is first used to store the full process information, the single-chip microcomputer compares the currently recognized full process or fixed process information with the information stored in the memory, if they are consistent, no action is taken, otherwise, if they are inconsistent, the full process or fixed process information in the memory is modified, and the flash is extinguished this time After the start, the single-chip microcomputer determines whether compensation is required based on the full-range information or fixed-range information read from the memory. If the full-range information is read, compensation is controlled not to be compensated, and if the fixed-range information is read, compensation is controlled. The electric energy during the control compensation period is provided by the capacitor energy storage in the energy storage circuit in the power supply to maintain the output during the flashing period. When the red light or green light signal ends, the power supply is cut off, and the energy stored in the energy storage circuit in the power supply is consumed by the single-chip microcomputer until the single-chip microcomputer is powered off and shut down. When the red light or green light is turned on again next time, the single-chip microcomputer in the power supply works in the above manner again, realizing the adaptive compensation function.
2. The signal light adaptive compensation power supply according to claim 1, characterized in that: The single-chip microcomputer stores the full-range or fixed-range information recognized currently in the memory. Next time, it determines whether compensation is needed based on the full-range information or fixed-range information read out from the memory, realizing the power-off saving function, and judges the full-range or fixed-range information again and saves the result judgment in the memory as the basis for the next judgment. It realizes that learning and recognition once can adapt to whether the current signal machine needs compensation function, realizing adaptive compensation function.
3. The signal light adaptive compensation power supply according to claim 1, characterized in that: The memory is EEPROM or FLASH.
Citation Information
Patent Citations
Power outage pulse type traffic signal lamp control system
CN106023604A
Signal lamp adaptive compensation power
CN208046982U