A method and system for preventing transient flickering in LED vehicle lights based on voltage change rate monitoring

By monitoring the rate of change of the vehicle power supply voltage in real time, using the ADC module of the microcontroller and software algorithms to identify transient disturbances and lock the PWM output duty cycle, the problem of brightness fluctuation of LED vehicle lights under transient conditions is solved, achieving efficient and precise flicker suppression effect, which is suitable for various vehicle models.

CN123124174APending Publication Date: 2026-11-17HELLA BHAPSANHEAUTOMOTIVE LIGHTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611482000.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-22
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Under transient conditions, automotive LED headlights experience brightness fluctuations and flickering due to voltage fluctuations in the vehicle's power supply. Existing hardware and software solutions are costly, have slow response times, and low disturbance recognition accuracy, making it difficult to balance anti-interference capabilities with response speed.

Method used

By monitoring the rate of change of the vehicle power supply voltage in real time, the microcontroller's ADC module and software algorithm are used to identify transient disturbances, lock the PWM output duty cycle to maintain constant brightness, and unlock it after the power supply recovers to a stable state. Combined with hardware acceleration mode, the response speed is improved.

Benefits of technology

It achieves accurate identification of transient disturbances with zero additional hardware cost, eliminates visible light flicker, improves nighttime driving safety and driving experience, is applicable to all types of vehicles, and has a response speed improved to the nanosecond level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123124174A_ABST
    Figure CN123124174A_ABST
Patent Text Reader

Abstract

This invention relates to the field of automotive electronic lighting control technology, and particularly to a method and system for controlling transient flicker prevention in LED vehicle lights based on voltage change rate monitoring. By real-time acquisition of the vehicle's power supply voltage signal, the method calculates the voltage change amplitude and rate to determine transient power supply disturbances. Upon detection of a disturbance, the PWM output duty cycle of the LED driver circuit is immediately locked to maintain constant brightness. The steady-state voltage level is continuously monitored, and the lock is released and normal dimming resumes once the power supply returns to a preset steady-state range and meets the stability duration condition. Furthermore, hardware acceleration can be achieved through the microcontroller's on-chip resources, enabling rapid response to disturbances with zero CPU usage for voltage monitoring. This invention requires no additional hardware costs, accurately distinguishes between normal dimming and transient disturbances, effectively eliminates headlight flicker, and improves nighttime driving safety and the overall driving experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive electronic lighting control technology, and in particular to a method and system for preventing transient flicker in LED vehicle lights based on voltage change rate monitoring. Background Technology

[0002] Automotive LED headlights are prone to brightness fluctuations and even visible flickering under transient conditions such as engine start-stop and high-power on-board load switching. These issues arise from momentary voltage drops or voltage surges in the vehicle's power supply, compromising nighttime driving safety. Current technologies address voltage fluctuations by adding large-capacity energy storage capacitors and front-end voltage regulator circuits. However, this method is costly in terms of hardware, requires a large PCB area, and increases circuit complexity. Furthermore, the electrolytic capacitors have limited lifespan and suffer from insufficient long-term reliability. Conventional software control schemes struggle to distinguish between normal dimming commands and transient power supply disturbances, exhibiting issues such as response lag, low disturbance identification accuracy, and poor flicker suppression, making it difficult to balance anti-interference performance and response speed.

[0003] Therefore, it is necessary to propose a method and system for preventing transient flickering of LED vehicle lights based on voltage change rate monitoring to solve the above problems. Summary of the Invention

[0004] The purpose of this invention is to provide a method and system for controlling transient flicker prevention of LED vehicle lights based on voltage change rate monitoring, so as to solve the problems of high cost, slow response, low disturbance recognition accuracy and poor flicker suppression effect caused by adding hardware or software control.

[0005] To achieve the above objectives, the present invention provides the following technical solution: The LED vehicle headlight anti-transient flicker control method based on voltage change rate monitoring includes the following steps: S1: Real-time acquisition of the voltage signal of the vehicle power supply to obtain dynamic voltage change data over time; S2: Based on the dynamic change data, determine whether a transient power supply disturbance has occurred according to the calculated voltage change amplitude and voltage change rate; S3: In response to the determination result of transient power disturbance, if so, immediately lock the PWM output duty cycle of the current LED driver circuit to maintain the constant output brightness of the LED vehicle light during power disturbance. S4: Continuously monitor the steady-state voltage level of the vehicle power supply. When the power supply voltage recovers to the preset steady-state range and continuously meets the preset stable duration condition, release the lock of the PWM output duty cycle and restore the normal dimming control logic.

[0006] Preferably, the step of acquiring the voltage signal of the vehicle power supply in real time and obtaining the dynamic change data of the voltage over time includes: The microcontroller uses its built-in ADC module to periodically sample the vehicle power supply voltage according to a preset sampling period, and uses the sampled voltage values ​​as dynamic change data.

[0007] Preferably, the step of determining whether a transient power supply disturbance has occurred based on the calculated voltage change amplitude includes: Calculate the voltage change amplitude between two consecutive samples; A preset voltage change threshold is set. When the voltage change exceeds the voltage change threshold, it is determined to be a transient power supply disturbance. When the voltage change amplitude does not exceed the voltage surge threshold, it is determined that no transient power supply disturbance has occurred, and the PWM output duty cycle is updated according to the normal dimming curve.

[0008] Preferably, when a transient power supply disturbance is detected, the current PWM output duty cycle is locked to maintain the LED brightness unchanged.

[0009] Preferably, the step of unlocking the PWM output duty cycle and restoring normal dimming control logic includes: Preset steady-state fluctuation threshold and stable duration; When the fluctuation amplitude of the vehicle power supply voltage is continuously monitored to be less than the steady-state fluctuation threshold and the duration meets the stable duration, it is determined that the power supply voltage has recovered to a stable state and the PWM output duty cycle lock is released.

[0010] Preferably, the locked PWM output duty cycle can also be implemented through hardware acceleration, including: The analog comparator is used to compare the voltage of the vehicle power supply after voltage division with the reference voltage threshold in real time. When the on-board power supply voltage drops rapidly, causing the voltage after voltage division to fall below the reference voltage threshold, the analog comparator outputs a toggle signal. The analog comparator directly inputs the toggle signal to the fault control port of the timer module to lock the current PWM output duty cycle in a hardware-level manner.

[0011] Preferably, after locking the current PWM output duty cycle in a hardware-level manner, when the vehicle power supply voltage rises and the voltage after voltage division is higher than the reference voltage threshold, the analog comparator output flips back to the initial level, continuously monitors the fluctuation amplitude of the vehicle power supply voltage, and when the voltage fluctuation amplitude is continuously monitored to be less than the steady-state fluctuation threshold and the duration reaches the preset stable duration, the locked state of the PWM timer module fault control port is cleared, the PWM output duty cycle is unlocked, and the normal dimming control logic is restored.

[0012] Preferably, the reference voltage threshold is output by the DAC module inside the microcontroller, corresponding to the safe voltage threshold on the vehicle power supply side. At the same time, the voltage data collected by the ADC module is automatically transferred by the DMA controller inside the microcontroller, so that the voltage monitoring process has zero CPU core usage.

[0013] LED vehicle headlight anti-transient flicker control system based on voltage change rate monitoring, the system includes: The acquisition module is used to acquire the voltage signal of the vehicle power supply in real time, obtain the dynamic change data of the voltage over time, and output it. The identification module is used to receive dynamically changing data in order to identify and determine whether a transient power supply disturbance has occurred. The duty cycle locking module is used to receive transient power disturbance judgment signals to lock the PWM output duty cycle of the current LED driver circuit; The steady-state recovery module is used to continuously monitor the steady-state voltage level of the vehicle power supply. When the power supply voltage recovers to the preset steady-state range and the duration meets the preset stable duration condition, the PWM output duty cycle lock is released and the normal dimming control logic is restored.

[0014] The technical effects and advantages of the present invention in the above technical solution are as follows: 1. This invention utilizes the on-chip resources such as the ADC and PWM timer built into a general-purpose microcontroller to achieve transient disturbance identification and duty cycle locking control through a pure software algorithm. It eliminates the need for additional hardware components such as large-capacity energy storage capacitors and front-end voltage regulator circuits, thus solving the defects of limited lifespan and insufficient long-term reliability of electrolytic capacitors. Furthermore, the algorithm is highly portable, adaptable to various mainstream automotive-grade microcontroller platforms, and has a wide range of applications.

[0015] 2. In this invention, the pure software mode is applicable to general vehicle models, achieving basic anti-flicker function at zero cost. The hardware acceleration mode reuses the on-chip integrated analog comparator, DAC, DMA controller and PWM fault input port of the microcontroller to build a disturbance identification and locking mechanism with a full hardware link, which improves the response speed. By automatically transferring the sampled data through DMA, the voltage monitoring process achieves zero CPU core occupation, freeing up computing resources for other body control functions and improving resource efficiency.

[0016] 3. This invention uses voltage change rate characteristics to determine transient disturbances. Combined with a sudden change threshold and a continuous sampling anti-shake filtering mechanism, it accurately distinguishes between normal dimming commands and power transient drops. Experimental test data shows that under typical transient conditions such as cold start of a car, the relative brightness of the LED headlights remains at 100% throughout the process, which can completely eliminate visible light flicker and improve the safety of nighttime driving lighting and the driving experience. Attached Figure Description

[0017] Figure 1This is a flowchart of the LED vehicle light anti-transient flicker control method based on voltage change rate monitoring according to the present invention.

[0018] Figure 2 This is a structural diagram of the LED vehicle light anti-transient flicker control system based on voltage change rate monitoring according to the present invention.

[0019] Figure 3 This is a flowchart of the LED vehicle light anti-transient flicker control method based on voltage change rate monitoring according to the present invention.

[0020] Figure 4 This is a system architecture diagram.

[0021] Figure 5 This is a graph comparing the power supply voltage with the relative brightness of the LED. Detailed Implementation

[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] Example 1, as Figure 1 , Figures 3-5 As shown, this embodiment provides a method for controlling transient flicker prevention in LED vehicle lights based on voltage change rate monitoring, including the following steps: S1: Real-time acquisition of the voltage signal of the vehicle power supply to obtain dynamic voltage change data over time; S2: Based on the dynamic change data, determine whether a transient power supply disturbance has occurred according to the calculated voltage change amplitude and voltage change rate; S3: In response to the determination result of transient power disturbance, if so, immediately lock the PWM output duty cycle of the current LED driver circuit to maintain the constant output brightness of the LED vehicle light during power disturbance. S4: Continuously monitor the steady-state voltage level of the vehicle power supply. When the power supply voltage recovers to the preset steady-state range and continuously meets the preset stable duration condition, release the lock of the PWM output duty cycle and restore the normal dimming control logic.

[0024] In situations such as vehicle start-stop and high-power load switching, this embodiment addresses the issue of LED headlight flickering caused by instantaneous voltage drops or voltage surges in the vehicle's power supply. Based on the on-chip resources of a general-purpose microcontroller (MCU), it implements voltage change rate monitoring and transient disturbance identification through a pure software algorithm. This eliminates the need for additional large-capacity capacitors, external voltage regulator circuits, or other hardware components. With zero additional hardware cost, it distinguishes between normal dimming commands and abnormal power supply fluctuations, locking the PWM output duty cycle of the LED driver in real time to maintain stable headlight brightness. Specifically, this is achieved through the following method: In one embodiment of the present invention, the step of acquiring the voltage signal of the vehicle power supply in real time and obtaining dynamic voltage change data over time includes: The on-board power supply voltage is periodically sampled by the built-in ADC module of the microcontroller according to a preset sampling period, and the voltage sample value is used as dynamic change data. In this embodiment of the invention, during the system initialization phase, the microcontroller's built-in ADC module is configured with a sampling period of 1ms. The front end uses a resistor divider network to step down the on-board 12V power supply voltage to a safe sampling range for the ADC, ensuring sampling accuracy and component safety. During operation, the ADC discretely samples the on-board power supply voltage at a fixed period of 1ms to obtain the voltage sample value at the current moment. And cache the voltage value from the previous sampling time. This is to generate voltage dynamic change data in time series form; In one embodiment of the present invention, the step of determining whether a transient power supply disturbance has occurred based on the calculated voltage change amplitude includes: Calculate the voltage change amplitude between two consecutive samples; A preset voltage change threshold is set. When the voltage change exceeds the voltage change threshold, it is determined to be a transient power supply disturbance. When the voltage change amplitude does not exceed the voltage change threshold, it is determined that no transient power supply disturbance has occurred, and the PWM output duty cycle is updated according to the normal dimming curve; When a transient power supply disturbance is detected, the current PWM output duty cycle is locked to maintain the LED brightness. In this embodiment of the invention, based on the above-described voltage dynamic change data sampling process, after each new voltage sampling process is completed, the voltage change amplitude and voltage change rate between two adjacent samples are immediately calculated, wherein the voltage change amplitude... The calculation formula is: ; The formula for calculating the rate of change of voltage is: ; in, In this embodiment, the preset ADC sampling period is used. ms, The time interval between two samplings; Preset voltage change threshold In this embodiment, a value of 0.5V is used. This threshold is calculated based on the ISO7637-2 standard and a 1ms sampling rate, which can accurately distinguish between normal dimming (voltage change rate <50V / s) and transient drops (voltage change rate >2000V / s), while avoiding EMC glitches. The calculated value is... and Perform a comparison, if Mark it as a suspected disturbance event; if If the signal is determined to be a normal steady-state or normal dimming command, the suspected disturbance count is cleared, and the PWM output duty cycle is updated according to the normal dimming curve. Furthermore, to avoid false triggering caused by ADC sampling noise and instantaneous voltage surges, continuous sampling anti-jitter filtering is used. Specifically, when the voltage change amplitude of three consecutive samples... All exceeded the mutation threshold When a transient power supply disturbance occurs, it is determined that a transient power supply disturbance has occurred. For three consecutive samples, the 3ms anti-shake duration is used to balance EMC anti-interference and human vision. It can filter out voltage change pulses of less than 3ms and is far below the 50ms visual perception threshold of the human eye, achieving imperceptible intervention. When the voltage change amplitude does not exceed the voltage change threshold, the system determines that the fluctuation of the current power supply voltage is a normal operating condition fluctuation or a normal dimming command issued by the upper control unit, and does not trigger the duty cycle locking mechanism of transient protection. In this state, the system continuously responds to the brightness adjustment requirements of the vehicle body control module. According to the preset LED dimming curve, that is, the corresponding mapping relationship between the PWM output duty cycle and the target brightness level, the configuration value of the PWM duty cycle register is updated every sampling cycle to achieve smooth and linear adjustment of the LED headlight brightness. When a transient power supply disturbance is finally determined to have occurred after continuous sampling and anti-jitter confirmation, the system immediately triggers a duty cycle lock operation, freezing the output duty cycle register value of the PWM timer module at the current value at the time of disturbance determination, pausing reception and executing new dimming update commands. Since the average luminous brightness of the LED headlights is positively correlated with the duty cycle of the PWM signal, maintaining a constant PWM output duty cycle during a power transient disturbance lasting only tens of milliseconds can keep the average output power of the LEDs at a stable level. At the same time, the duration of this disturbance is far below the human eye's flicker perception threshold of 50ms, so it appears visually as a constant headlight brightness without fluctuations, thus eliminating the visible flicker under transient conditions.

[0025] It should be understood that, in this embodiment of the invention, due to the sampling interval Fixed, voltage variation amplitude With voltage change rate It is a direct proportional relationship, as can be seen through comparison. The voltage change threshold is essentially a comparison of the voltage change rate. In this embodiment, the voltage change rate is calculated for further comparison. That is, under a fixed sampling period, the voltage change rate converted from the voltage change amplitude is compared with the known change rate reference thresholds corresponding to normal dimming and transient drops to verify suspected disturbance events and improve the accuracy of the judgment results.

[0026] In one embodiment of the present invention, the step of unlocking the PWM output duty cycle and restoring normal dimming control logic includes: Preset steady-state fluctuation threshold and stable duration; When the fluctuation amplitude of the vehicle power supply voltage is continuously monitored to be less than the steady-state fluctuation threshold and the duration meets the stable duration, it is determined that the power supply voltage has recovered to a stable state and the PWM output duty cycle lock is released. In this embodiment of the invention, a steady-state fluctuation threshold and a stable duration are set. In this embodiment, the steady-state fluctuation threshold needs to be set significantly lower than the voltage surge threshold for transient disturbance judgment, in order to distinguish between generator voltage build-up oscillations during power recovery and true voltage steady state. Its value is calibrated by combining the typical ripple amplitude within the 10-30ms voltage build-up period of the vehicle generator and the ISO7637-2 vehicle electrical transient immunity standard. At the same time, it matches the system's voltage sampling period and sliding anti-jitter window width. Under the premise of effectively filtering ripple interference in the early stage of voltage recovery and avoiding secondary flickering caused by repeated PWM locking and unlocking due to oscillation, this embodiment sets the steady-state fluctuation threshold to 0.1V, corresponding to a transient voltage surge threshold of 0.5V. The duration is set to 20ms to match the 10-30ms voltage build-up oscillation period of the automotive generator, while also conforming to the critical flicker fusion frequency of the human eye, avoiding secondary flicker and visual fatigue caused by oscillations during voltage recovery. A stabilization timer is started. When the fluctuation amplitude of the vehicle power supply voltage is continuously monitored to be less than the steady-state fluctuation threshold, and the duration of this stable state reaches the preset 20ms stable duration, it is determined that the power supply voltage has stabilized, the PWM timer's locked state is cleared, the normal dimming control logic is restored, and the dimming command from the body control module continues to be responded to. In this embodiment, the voltage change amplitude is the absolute value of the voltage difference between two adjacent sampling times, and the voltage fluctuation amplitude is the difference between the maximum and minimum values ​​of all sampled voltages within the specified time window.

[0027] To address the issues of millisecond-level response delay and continuous consumption of computing resources in the methods described above, this embodiment constructs a transient disturbance identification and duty cycle locking mechanism based on hardware peripherals such as analog comparators, DACs, DMAs, and PWM fault inputs integrated on the microcontroller chip. Without increasing the cost of external hardware, it adapts to high-end automotive lighting control scenarios with higher real-time requirements and further improves the anti-flicker effect under extreme transient conditions. In one embodiment of the present invention, locking the PWM output duty cycle can also be implemented through hardware acceleration, including: The analog comparator is used to compare the voltage of the vehicle power supply after voltage division with the reference voltage threshold in real time. When the on-board power supply voltage drops rapidly, causing the voltage after voltage division to fall below the reference voltage threshold, the analog comparator outputs a toggle signal. The analog comparator directly inputs the toggle signal to the fault control port of the timer module to lock the current PWM output duty cycle in a hardware-level manner; After locking the current PWM output duty cycle at the hardware level, when the vehicle power supply voltage rises and the voltage after voltage division is higher than the reference voltage threshold, the analog comparator output flips back to the initial level and continuously monitors the fluctuation amplitude of the vehicle power supply voltage. When the voltage fluctuation amplitude is continuously monitored to be less than the steady-state fluctuation threshold and the duration reaches the preset stable duration, the locked state of the fault control port of the PWM timer module is cleared, the lock of the PWM output duty cycle is released, and the normal dimming control logic is restored. The reference voltage threshold is output by the microcontroller's internal DAC module, corresponding to the safe voltage threshold on the vehicle power supply side. Simultaneously, the voltage data collected by the ADC module is automatically transferred via the microcontroller's internal DMA controller, achieving zero CPU core usage during voltage monitoring. This is specifically implemented using the following methods: This embodiment is built based on the on-chip peripheral resources of an automotive-grade microcontroller. The overall hardware chain includes a front-end voltage acquisition and divider network, a microcontroller internal DAC module, an analog comparator (CMP), a TIM / PWM timer module, a DMA controller, and a back-end LED driver and light source. The connections and configurations of each module are as follows: The front-end voltage divider network configuration uses a high-precision resistor voltage divider network to step down the on-board 12V power supply voltage to the safe sampling range of the microcontroller's I / O port according to a fixed voltage division ratio. The voltage divider output is simultaneously connected to the negative input terminal of the analog comparator and the ADC sampling channel. The voltage division ratio is calibrated according to the microcontroller's reference voltage range to ensure that the voltage level corresponding to the on-board 9V safe voltage is matched with the reference level of the DAC output. The internal DAC configuration sets and outputs a reference voltage threshold through the microcontroller's internal DAC module. This reference voltage threshold corresponds to the 9V safety threshold on the vehicle power supply side. The 9V safety threshold value is calibrated according to the ISO16750-2 cold start voltage curve and is located before the unlock voltage boundary (8.5V-9.5V) of mainstream LED driver ICs. This ensures that control is intervened in advance before the driver circuit becomes unstable, thus ensuring controllable brightness. The analog comparator is configured with CMP, where the positive input is connected to the reference voltage output of the internal DAC, and the negative input is connected to the voltage sampling output of the front-end voltage divider network. The comparator's output mode is configured as push-pull output, and the output signal is directly hardware-routed to the fault control (FaultInput) port of the TIM / PWM timer module without going through the CPU core. DMA and ADC configuration: Configure the data transfer direction of the DMA controller to be from the ADC peripheral to the memory buffer, enable the ADC hardware automatic sampling trigger, and the DMA controller automatically moves the voltage sampling data collected by the ADC to the specified memory area. The entire process does not require the CPU core to participate in data moving and management, achieving zero CPU usage in the voltage monitoring process. PWM fault lockout configuration: Configure the fault control port of the TIM / PWM timer to hardware trigger mode. When the fault port receives a valid trigger level, the timer immediately freezes the current PWM output duty cycle in hardware and suspends the writing and updating of the duty cycle register until the lockout state is actively cleared by software.

[0028] For hardware-level transient disturbance identification and PWM duty cycle locking, specifically, when the vehicle power supply is in normal steady state, the power supply voltage is maintained at around 12V. The voltage after being stepped down by the voltage divider network is higher than the reference voltage threshold of the DAC output. At this time, the voltage at the positive input terminal of the analog comparator is higher than that at the negative input terminal, and the output remains at an initial low level. The PWM timer operates in normal dimming mode, continuously responding to the upper-level dimming commands to update the output duty cycle. When the vehicle power supply experiences a rapid transient drop (such as cold start or high-power load switching), the power supply voltage drops rapidly at an extremely high rate of change. When it drops below the 9V safety threshold, the output voltage of the voltage divider network is lower than the DAC reference voltage threshold. The voltage relationship between the positive and negative input terminals of the analog comparator reverses, the output level flips, and a hardware trigger signal is generated. This flip signal is directly transmitted to the fault control port of the PWM timer. The timer hardware immediately responds to the trigger signal, locking the current PWM output duty cycle, so that the input control pulse of the LED driver remains constant. In this process, the identification of voltage drops and the locking of the duty cycle are both completed directly by the hardware circuit, with a response time in the nanosecond range.

[0029] To avoid repeated PWM locking and unlocking due to generator voltage build-up oscillations during voltage recovery, which could cause secondary flickering, the analog comparator output level flips back to its initial state when the voltage divider network output voltage gradually rises and becomes higher than the DAC reference voltage again. The hardware trigger signal is then removed, but the PWM lock is not directly released. The system uses the ADC voltage sampling data automatically transferred by DMA, employing a 3-sampling-point sliding window as described in the above embodiment, to calculate the voltage fluctuation amplitude within the window in real time. The calculation formula is as follows: ; When the voltage fluctuation amplitude is continuously monitored to be less than the preset steady-state fluctuation threshold of 0.1V, and the duration of the stable state reaches the preset stable duration of 20ms, it is determined that the power supply voltage has been completely restored to stability. At this time, the software writes a lock clear instruction to the PWM timer to clear the lock state of the fault control port, releases the write permission of the duty cycle register, and restores the normal dimming control logic to continue responding to the brightness adjustment instructions of the body control module.

[0030] To verify the transient anti-flicker effect of this method, a synchronous comparative test was conducted on the relative brightness of LED vehicle lights. The experimental comparative test results are shown in Table 1 below: Table 1. Experimental Comparison Results:

[0031] Example 2, as Figure 2 As shown, this embodiment provides an LED vehicle headlight anti-transient flicker control system based on voltage change rate monitoring. The system includes: The acquisition module is used to acquire the voltage signal of the vehicle power supply in real time, obtain the dynamic change data of the voltage over time, and output it. The identification module is used to receive dynamically changing data in order to identify and determine whether a transient power supply disturbance has occurred. The duty cycle locking module is used to receive transient power disturbance judgment signals to lock the PWM output duty cycle of the current LED driver circuit; The steady-state recovery module is used to continuously monitor the steady-state voltage level of the vehicle power supply. When the power supply voltage recovers to the preset steady-state range and the duration meets the preset stable duration condition, the PWM output duty cycle lock is released and the normal dimming control logic is restored.

[0032] In this embodiment of the invention, the system is deployed within the microcontroller of the vehicle body control unit. It works in conjunction with a front-end voltage acquisition and divider network, a back-end LED driver circuit, and an LED light source to form a complete headlight brightness control link. The acquisition module connects to the front-end resistor divider network and the microcontroller's built-in ADC sampling channel. Simultaneously, it links with the on-chip DMA controller to automatically transfer sampled data to a memory buffer, acquiring the vehicle power supply voltage signal in real time and outputting dynamic voltage change data over time. The identification module includes a software algorithm identification unit and a hardware acceleration identification unit, forming two parallel branches. The software branch calculates the voltage change amplitude and rate of change between adjacent samples based on the ADC sampling data, and uses a three-sampling anti-jitter filtering mechanism to determine transient disturbances. The hardware branch outputs a reference voltage corresponding to the vehicle's 9V safety threshold through the microcontroller's internal DAC module. It uses an on-chip analog comparator to compare the divided power supply voltage with the reference voltage in real time, identifying high-rate-of-change extreme voltage drop disturbances with nanosecond-level response speed. The duty cycle locking module connects to the microcontroller... The controller's TIM / PWM timer module locks the output by freezing the configuration value of the PWM duty cycle register in software-triggered scenarios and locks the PWM output duty cycle at the hardware level through the timer's fault control port in hardware-triggered scenarios, maintaining a constant output brightness of the LED headlights during power disturbances. The steady-state recovery module calculates the voltage fluctuation amplitude in real time based on a 3-sampling-point sliding window and combines it with a 20ms stable duration. When the power supply voltage recovers to the preset steady-state range and continuously meets the stable duration condition, the locked state of the PWM output duty cycle is cleared, and the normal dimming control logic is restored. Specifically, under normal operating conditions, the system monitors the power supply voltage in real time through the software branch and updates the PWM output in response to the dimming command of the body control module. When a normal millisecond-level power transient drop occurs, the software branch quickly identifies and triggers the duty cycle lock. When an extreme voltage drop with a higher rate of change occurs, the hardware branch directly triggers the hardware-level lock. In both modes, the lock is smoothly released after steady-state confirmation during the voltage recovery process to avoid secondary flickering. The system is compatible with both pure software implementation at zero cost and hardware acceleration with nanosecond-level response. It can be flexibly adapted to vehicle configuration and operating conditions without increasing external hardware costs. It effectively eliminates LED headlight flickering under various transient conditions of vehicle power supply, such as vehicle start-stop and high-power load switching, thus improving vehicle lighting stability.

[0033] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the claimed invention.

Claims

1. A method for preventing transient flicker in LED vehicle lights based on voltage change rate monitoring, characterized in that, Includes the following steps: S1: Real-time acquisition of the voltage signal of the vehicle power supply to obtain dynamic voltage change data over time; S2: Based on the dynamic change data, determine whether a transient power supply disturbance has occurred according to the calculated voltage change amplitude and voltage change rate; S3: In response to the determination result of transient power disturbance, if so, immediately lock the PWM output duty cycle of the current LED driver circuit to maintain the constant output brightness of the LED vehicle light during power disturbance. S4: Continuously monitor the steady-state voltage level of the vehicle power supply. When the power supply voltage recovers to the preset steady-state range and continuously meets the preset stable duration condition, release the lock of the PWM output duty cycle and restore the normal dimming control logic.

2. The LED vehicle light anti-transient flicker control method based on voltage change rate monitoring according to claim 1, characterized in that, The step of acquiring the voltage signal of the vehicle power supply in real time and obtaining dynamic voltage change data over time includes: The microcontroller uses its built-in ADC module to periodically sample the vehicle power supply voltage according to a preset sampling period, and uses the sampled voltage values ​​as dynamic change data.

3. The LED vehicle light anti-transient flicker control method based on voltage change rate monitoring according to claim 1, characterized in that, The step of determining whether a transient power supply disturbance has occurred based on the calculated voltage change amplitude includes: Calculate the voltage change amplitude between two consecutive samples; A preset voltage change threshold is set. When the voltage change exceeds the voltage change threshold, it is determined to be a transient power supply disturbance. When the voltage change amplitude does not exceed the voltage surge threshold, it is determined that no transient power supply disturbance has occurred, and the PWM output duty cycle is updated according to the normal dimming curve.

4. The LED vehicle light anti-transient flicker control method based on voltage change rate monitoring according to claim 3, characterized in that: When a transient power supply disturbance is detected, the current PWM output duty cycle is locked to maintain the LED brightness.

5. The LED vehicle lamp anti-transient flicker control method based on voltage change rate monitoring according to claim 1, characterized in that, The steps to unlock the PWM output duty cycle and restore normal dimming control logic include: Preset steady-state fluctuation threshold and stable duration; When the fluctuation amplitude of the vehicle power supply voltage is continuously monitored to be less than the steady-state fluctuation threshold and the duration meets the stable duration, it is determined that the power supply voltage has recovered to a stable state and the PWM output duty cycle lock is released.

6. The LED vehicle lamp anti-transient flicker control method based on voltage change rate monitoring according to claim 1, characterized in that, The locked PWM output duty cycle can also be implemented through hardware acceleration, including: The analog comparator is used to compare the voltage of the vehicle power supply after voltage division with the reference voltage threshold in real time. When the on-board power supply voltage drops rapidly, causing the voltage after voltage division to fall below the reference voltage threshold, the analog comparator outputs a toggle signal. The analog comparator directly inputs the toggle signal to the fault control port of the timer module to lock the current PWM output duty cycle in a hardware-level manner.

7. The LED vehicle light anti-transient flicker control method based on voltage change rate monitoring according to claim 6, characterized in that: After locking the current PWM output duty cycle at the hardware level, when the vehicle power supply voltage rises and the voltage after voltage division is higher than the reference voltage threshold, the analog comparator output flips back to the initial level and continuously monitors the fluctuation amplitude of the vehicle power supply voltage. When the voltage fluctuation amplitude is continuously monitored to be less than the steady-state fluctuation threshold and the duration reaches the preset stable duration, the locked state of the PWM timer module fault control port is cleared, the PWM output duty cycle is unlocked, and the normal dimming control logic is restored.

8. The LED vehicle light anti-transient flicker control method based on voltage change rate monitoring according to claim 6, characterized in that: The reference voltage threshold is output by the DAC module inside the microcontroller, corresponding to the safe voltage threshold on the vehicle power supply side. At the same time, the voltage data collected by the ADC module is automatically transferred by the DMA controller inside the microcontroller, realizing zero CPU core occupation during the voltage monitoring process.

9. An LED vehicle lamp anti-transient flicker control system based on voltage change rate monitoring, applied to the LED vehicle lamp anti-transient flicker control method based on voltage change rate monitoring as described in any one of claims 1-8, characterized in that, The system includes: The acquisition module is used to acquire the voltage signal of the vehicle power supply in real time, obtain the dynamic change data of the voltage over time, and output it. The identification module is used to receive dynamically changing data in order to identify and determine whether a transient power supply disturbance has occurred. The duty cycle locking module is used to receive transient power disturbance judgment signals to lock the PWM output duty cycle of the current LED driver circuit; The steady-state recovery module is used to continuously monitor the steady-state voltage level of the vehicle power supply. When the power supply voltage recovers to the preset steady-state range and the duration meets the preset stable duration condition, the PWM output duty cycle lock is released and the normal dimming control logic is restored.