A continuously dimming light source driving method and system

By adopting a light source driving method that can be continuously dimmed in the car light system, using extended Kalman filtering and PID control algorithms, the problems of insufficient response and limited energy consumption optimization effects in complex environments are solved, and more efficient , stable dimming effect of headlights.

CN119136386BActive Publication Date: 2025-02-11LANCE VEHICLE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411596618.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-02-11
Estimated Expiration
2044-11-11

AI Technical Summary

Technical Problem

In the existing headlight dimming technology, PWM dimming is insufficient in complex driving environments, has limited energy consumption optimization effect, and is unstable in light source output, which is prone to flickering, affecting service life and user experience.

Method used

The continuous dimmable light source driving method is adopted to obtain the initial voltage and current signals of the vehicle's headlight power supply, and filter processing is performed and the vehicle light state is predicted using an extended Kalman filtering algorithm. According to the brightness required by the headlight, the duty cycle of the PWM signal is adjusted, and the duty cycle and energy consumption are adjusted adaptively through the PID control algorithm and energy optimization algorithm.

Benefits of technology

It realizes more accurate brightness control, improves the energy efficiency and stability of the system, avoids flickering, extends the service life of the headlights, and improves driving experience and driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136386B_ABST
    Figure CN119136386B_ABST
Patent Text Reader

Abstract

The present invention relates to a continuously dimming light source driving method and system, and to the field of light source driving technology. The method comprises: obtaining an initial voltage signal and an initial current signal input by a vehicle headlight power supply; filtering the initial voltage signal and the initial current signal to obtain a filtered voltage signal and a current signal; predicting and updating the state of the headlight power supply through an extended Kalman filter algorithm based on the voltage signal and the current signal; controlling the output brightness of the headlight by adjusting the duty cycle of a PWM signal according to the required brightness of the headlight; obtaining real-time light intensity and ambient light intensity through a headlight sensor, and adaptively adjusting the duty cycle based on a PID control algorithm; real-time monitoring and minimizing the total energy consumption of the headlight based on an energy optimization algorithm to obtain the minimized total energy consumption of the headlight, and driving and adjusting the headlight under the minimized total energy consumption. The present invention can provide a continuous dimming operation with precision, high energy efficiency and stronger stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of light source driving technology, and in particular to a light source driving method, system, electronic device and non-transitory computer-readable storage medium capable of continuous dimming. Background Art

[0002] In the current car light dimming technology, pulse width modulation (PWM) is often used to control the brightness of the light source. PWM dimming adjusts the output brightness of the light source by changing the duty cycle, which realizes a simple and efficient dimming process. The traditional PWM dimming system can respond to external input quickly, has a simple structure and low cost, so it is widely used in automotive lighting systems. At the same time, some car light dimming systems also integrate ambient light sensors to automatically adjust the brightness of the car lights by detecting the light intensity of the external environment, so as to achieve the purpose of energy saving and improving driving safety.

[0003] However, PWM dimming is not responsive enough to complex driving environments. When the vehicle frequently changes speed and the lighting environment changes rapidly, the dimming effect is prone to lag or over-adjustment, and cannot meet driving needs in real time. Secondly, traditional dimming methods have limited effects in optimizing energy consumption. It is difficult to perform refined power control according to the different load modes of the headlights, resulting in waste of electricity. In addition, the existing system has insufficient processing capabilities for noise and interference signals, and the light source output is not stable enough. Especially under low duty cycle conditions, flickering is prone to occur, affecting the service life of the headlights and user experience. Summary of the invention

[0004] In view of the technical problems existing in the prior art, the present invention provides a continuously dimming light source driving method, system, electronic device and non-transitory computer-readable storage medium capable of providing continuous dimming operation with more precise control, higher energy efficiency and stronger stability.

[0005] The technical solution of the present invention to solve the above technical problems is as follows:

[0006] The present invention provides a continuously dimming light source driving method, the method comprising:

[0007] Obtaining an initial voltage signal and an initial current signal input by a headlight power supply of the vehicle;

[0008] Filtering the initial voltage signal and the initial current signal to obtain filtered voltage signals and current signals;

[0009] Based on the voltage signal and the current signal, predicting and updating the state of the vehicle lamp power supply by using an extended Kalman filter algorithm;

[0010] According to the required brightness of the headlight, the output brightness of the headlight is controlled by adjusting the duty cycle of the PWM signal;

[0011] Acquire real-time light intensity and ambient light intensity through a vehicle light sensor, and adaptively adjust the duty cycle based on a PID control algorithm;

[0012] The total energy consumption of the headlight is monitored in real time and minimized based on an energy optimization algorithm to obtain the minimized total energy consumption of the headlight, and the headlight is driven and adjusted under the minimized total energy consumption.

[0013] Optionally, controlling the output brightness of the vehicle lamp by adjusting the duty cycle of a PWM signal according to the required brightness of the vehicle lamp comprises:

[0014] Obtaining the maximum output brightness of the vehicle;

[0015] Obtaining a nonlinear index for controlling the output brightness and a time constant of the vehicle lamp response;

[0016] The duty cycle is adjusted according to the maximum output brightness, the nonlinear index and the time constant to control the output brightness of the vehicle lamp.

[0017] Optionally, the output brightness of the vehicle lamp is expressed as:

[0018]

[0019] in, is the output brightness of the headlight, is the maximum output brightness of the headlight, is the duty cycle, is a nonlinear exponent that controls the output brightness, is the time constant of the headlight response, and t is the current moment.

[0020] Optionally, the adaptively adjusting the duty cycle based on a PID control algorithm includes:

[0021] Obtaining a default initial duty cycle of the vehicle light;

[0022] Obtaining the current real-time light intensity and ambient light intensity of the vehicle light, as well as a preset target light intensity;

[0023] The real-time light intensity, the ambient light intensity and the target light intensity are processed according to the PID control algorithm, and the initial duty cycle is adaptively adjusted to obtain the current duty cycle of the vehicle light.

[0024] Optionally, the duty cycle is expressed as:

[0025]

[0026] in, is the duty cycle, is the initial duty cycle, is the proportional gain constant, is the integral gain constant, is the differential gain constant, is the target light intensity, is the real-time light intensity, is the ambient light intensity.

[0027] Optionally, the total energy consumption of the vehicle lamp is obtained by:

[0028] Obtaining a load voltage and a load current of the vehicle lamp under different load modes;

[0029] Obtaining energy conversion efficiency of the vehicle lamp;

[0030] The total energy consumption of the vehicle lamp is determined according to the load voltage and load current of the vehicle lamp in different load modes, the energy conversion efficiency, the initial voltage signal and the initial current signal.

[0031] Optionally, the total energy consumption of the vehicle lamp is expressed as:

[0032]

[0033] in, is the total energy consumption of the headlight, is the energy conversion efficiency, is the initial voltage signal, is the initial current signal, is the response coefficient under different load conditions with the headlight light source, O is the total number of load modes, o is the number of the load mode, is the load voltage of the oth load mode, is the load current of the oth load mode.

[0034] Optionally, the filtering the initial voltage signal and the initial current signal to obtain a filtered voltage signal and a filtered current signal further includes:

[0035] Performing high-order filtering on the initial voltage signal to decompose the initial voltage signal into a first component of multiple frequency bands;

[0036] Performing high-order filtering on the initial voltage signal to decompose the initial voltage signal into second components of multiple frequency bands;

[0037] The voltage signal and the current signal are obtained according to the first component and the second component.

[0038] Optionally, the method further includes:

[0039] Obtain the current speed of the vehicle and the corresponding maximum speed;

[0040] Obtaining the maximum and minimum adjustable brightness of the vehicle light;

[0041] Based on the current speed and the maximum speed of the vehicle, and the maximum brightness and the minimum brightness of the headlight, the current brightness of the headlight is adjusted to obtain an adjusted brightness.

[0042] The present invention also provides a continuously dimming light source driving system, the system comprising:

[0043] A signal acquisition module, used to acquire an initial voltage signal and an initial current signal input by a vehicle lamp power supply;

[0044] A signal filtering module, used for filtering the initial voltage signal and the initial current signal to obtain a filtered voltage signal and a filtered current signal;

[0045] A state updating module, configured to predict and update the state of the vehicle lamp power supply by using an extended Kalman filter algorithm based on the voltage signal and the current signal;

[0046] A first adjustment module, used for controlling the output brightness of the headlight by adjusting the duty cycle of the PWM signal according to the required brightness of the headlight;

[0047] A second adjustment module, used for obtaining real-time light intensity and ambient light intensity through a vehicle light sensor, and adaptively adjusting the duty cycle based on a PID control algorithm;

[0048] The light source driving module is used for real-time monitoring and minimizing the total energy consumption of the headlight based on an energy optimization algorithm, obtaining the minimized total energy consumption of the headlight, and driving and adjusting the headlight under the minimized total energy consumption.

[0049] In addition, to achieve the above objectives, the present invention also proposes an electronic device, comprising: a memory for storing a computer software program; a processor for reading and executing the computer software program, thereby implementing a continuously dimming light source driving method as described above.

[0050] In addition, to achieve the above objectives, the present invention also proposes a non-transitory computer-readable storage medium, in which a computer software program is stored. When the computer software program is executed by a processor, a continuously dimming light source driving method as described above is implemented.

[0051] The beneficial effects of the present invention are:

[0052] (1) The present invention can effectively improve the linear limitations of the traditional PWM dimming method. The brightness adjustment is not only more precise, but also can adapt to different driving environments. Especially at low duty cycles, the brightness changes more smoothly, avoiding flickering and improving the driving experience.

[0053] (2) The present invention uses an energy optimization algorithm to dynamically adjust the energy consumption of headlights under different load modes. By real-time monitoring of input voltage and current and combining different load responses, the system can minimize energy consumption while ensuring light output, thereby extending the service life of the headlights and improving the overall energy efficiency of the vehicle.

[0054] (3) The present invention significantly enhances the stability and anti-interference capability of the vehicle lighting system. The filter removes noise and transient interference from the input signal, ensuring that the system can maintain stable light output in various complex environments. In addition, the extended Kalman filter accurately predicts and updates the nonlinear power supply state in real time, further improving the stability of the system.

[0055] (4) The present invention uses a PID control algorithm to achieve the function of automatically adjusting the brightness of the headlights according to changes in ambient light. The sensor monitors the light intensity in real time and adaptively adjusts the duty cycle of the PWM signal to ensure that the headlights maintain the optimal brightness level under different lighting conditions, which not only improves driving safety but also effectively reduces the energy consumption of the light source.

[0056] (5) The present invention can quickly adjust the brightness of the headlights according to changes in ambient light, ensuring that the driver has the best view at night or in bad weather conditions. At the same time, the smooth dimming of the system avoids the frequent flickering in traditional dimming methods, providing a more stable and comfortable lighting experience, thereby improving driving safety and comfort.

[0057] In summary, the present invention achieves higher brightness adjustment accuracy, lower energy consumption and stronger system stability by optimizing the traditional vehicle light dimming method. It is suitable for a variety of different driving environments and lighting conditions and has significant practical value. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A flow chart of a continuously dimming light source driving method provided by the present invention;

[0059] Figure 2 A schematic diagram of the structure of a continuously dimming light source driving system provided by the present invention;

[0060] Figure 3 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention;

[0061] Figure 4 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0063] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0064] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or explanation". Any embodiment described as "for example" in the present invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present invention.

[0065] See also Figure 1 , provides a flow chart of a continuously dimming light source driving method of the present invention, comprising the following steps:

[0066] Step 201: Acquire an initial voltage signal and an initial current signal input by a headlight power supply of a vehicle.

[0067] The initial voltage signal is the actual input voltage of the vehicle lamp power supply, which indicates the voltage value received by the lamp system at the current time t. The voltage signal may fluctuate due to factors such as battery voltage changes, generator working status, lamp load changes, etc.

[0068] The initial current signal is the current input received by the headlight system at the same time, indicating the actual current passing through the headlight circuit. The current signal reflects the instantaneous power consumption of the system and will change with the brightness of the light and the working state.

[0069] In the headlight drive system, voltage and current sensors are usually installed to monitor the input of the headlight power supply in real time. The voltage sensor is directly connected to the headlight power port and is responsible for collecting the input voltage V(t); the current sensor is installed at the input end or load path of the headlight circuit to collect the current I(t) passing through the headlight.

[0070] It is understandable that since the voltage and current signals are affected by noise or transient interference during vehicle operation, the system will first pre-process the original signals when acquiring these signals. High-order filters will be used to remove high-frequency noise and unstable fluctuations to ensure that the collected voltage and current signals are smooth and accurate. This processing can effectively improve the response accuracy of the headlight drive system.

[0071] The headlight system can determine the current working status of the headlight by acquiring and analyzing the voltage V(t) and current I(t). These signals provide basic data for dimming control. The system adjusts the duty cycle D(t) of the PWM signal according to the size of the input signal to control the brightness of the headlight. For example, if the input voltage is low, the system will increase the duty cycle to maintain the required brightness. Voltage and current signals are also important parameters for calculating the power consumption of headlights. In the subsequent energy consumption optimization step, the system needs to use V(t)⋅I(t) to calculate the instantaneous power consumption of the headlights and combine the dynamic response of other load modes to optimize energy management.

[0072] It is understandable that since the vehicle power system will fluctuate under different driving conditions, the lighting system needs to be able to adapt to these fluctuations and make corresponding adjustments. For example: Voltage fluctuation: When the vehicle is accelerating, braking or the load changes, the power supply voltage is unstable. The system needs to monitor V(t) in real time and adjust the working parameters of the lights in time. And current changes: As the brightness of the lights is adjusted, the current signal I(t) will also change. The system ensures that the power output is consistent with expectations by tracking the current changes to avoid excessive energy consumption or insufficient power.

[0073] By acquiring the initial voltage and current signals in real time, the present invention can ensure that the headlight system can work stably in complex driving environments. Signal monitoring can not only prevent voltage and current fluctuations from affecting the normal operation of the headlights, but also help the dimming system to respond quickly and accurately. By accurately acquiring these input signals, the system can calculate the power consumption based on the actual input conditions and optimize the energy in combination with the dynamic load mode, thereby maximizing the energy efficiency of the headlight system.

[0074] As can be seen from the above, the present invention monitors the power input in real time through voltage and current sensors, and filters and analyzes the signals. The system can adjust the brightness of the headlights according to the input conditions to ensure the stability and energy efficiency of the headlights in different driving environments.

[0075] Step 202: Filter the initial voltage signal and the initial current signal to obtain filtered voltage signal and current signal.

[0076] In some embodiments, step 202 may include:

[0077] Performing high-order filtering on the initial voltage signal to decompose the initial voltage signal into a first component of multiple frequency bands;

[0078] Performing high-order filtering on the initial voltage signal to decompose the initial voltage signal into second components of multiple frequency bands;

[0079] The voltage signal and the current signal are obtained according to the first component and the second component.

[0080] It can be understood that the initial voltage signal is the original input voltage signal obtained by the headlight system from the vehicle power supply. Due to the complexity of the vehicle power supply system, the initial voltage signal usually contains high-frequency noise, transient interference and various nonlinear fluctuations, which will affect the normal operation of the headlight. The high-order filter is a signal processing tool that can remove unnecessary high-frequency components and noise. By performing high-order filtering on the input signal, the system can filter out unwanted frequency components and only retain signals that are meaningful for headlight control. This filtering process can improve the stability and accuracy of the headlight system to the signal and ensure the accuracy of dimming control.

[0081] In some embodiments, the initial voltage signal V(t) can be decomposed into multiple frequency band components through high-order filtering, where each component corresponds to a signal in a specific frequency range. The first component usually corresponds to the low-frequency component, which mainly includes the stable part and low-frequency fluctuations in the voltage signal. This part of the signal is relatively stable in the vehicle power supply and has a greater impact on the basic power consumption and dimming of the lighting system. The low-frequency component usually represents the long-term voltage fluctuation of the lighting system. For example, as the vehicle battery voltage changes slowly, the first component can capture the trend of voltage changes. The lighting system can use this component to adjust the overall dimming strategy to ensure that the brightness output remains stable when the voltage changes slowly.

[0082] Unlike the first component, the second component usually corresponds to high-frequency components. This part of the signal mainly reflects short-term fluctuations and rapid interference in the power supply, such as engine start and stop, power switching or other transient voltage changes. High-frequency components contain noise or voltage spikes, and these fluctuations can affect the transient performance of the lighting system. The second component provides the lighting system with fast feedback to voltage fluctuations and noise. By identifying high-frequency components, the system can respond quickly and make instantaneous adjustments to avoid the impact of voltage fluctuations on the brightness of the lights. For example, voltage fluctuations that occur in a short period of time can cause brightness flickering, but the system can identify and correct them through the second component to maintain stable light output.

[0083] After high-order filtering, the initial voltage signal is decomposed into multiple frequency band components (the first component and the second component are mainly discussed here). Based on these components, the system can recombine and analyze the signal to obtain a more accurate voltage signal and the corresponding current signal. After filtering, the voltage signal obtained by the headlight system is a smooth signal with high-frequency noise and transient interference removed. It combines the long-term fluctuation information of the first component and the rapid change information of the second component, and can represent the actual input voltage of the system at the current moment. Voltage and current are closely related. By analyzing the filtered voltage signal, the system can infer the corresponding current signal. Usually, the change of the current signal is proportional to the voltage. Through this calculation, a more accurate instantaneous current signal can be obtained, which is convenient for subsequent energy consumption calculation and dimming control.

[0084] The lighting system obtains the stable part of the voltage through the first component, thus ensuring that the basic brightness output of the lamp is stable. With the second component, the system can immediately adjust when the voltage fluctuates rapidly to avoid brightness flickering caused by power supply noise or interference. Through accurate processing of the signal, the lighting system can better manage energy consumption under different load modes. The filtered voltage and current signals provide accurate input data for the system, ensuring more accurate power calculations, thereby improving the energy efficiency of the lamp.

[0085] In summary, the present invention performs high-order filtering on the initial voltage signal, and by decomposing it into a first component and a second component of a multi-band, the system can obtain the long-term trend and short-term fluctuation information of the voltage signal respectively. This process provides the vehicle lighting system with high-precision voltage and current signals, which facilitates dimming control and energy consumption optimization, ensures that the vehicle lights can operate stably under various working conditions, and can cope with instantaneous fluctuations and interference. This multi-band decomposition technology greatly improves the response speed and stability of the system.

[0086] Step 203: Based on the voltage signal and the current signal, predict and update the state of the vehicle light power supply by using an extended Kalman filter algorithm.

[0087] In some embodiments, the voltage signal and the current signal are extracted from the original voltage and current signals through the previous high-order filtering process to remove noise and transient interference. These signals represent the real-time input voltage and input current of the headlight power supply. These signals contain the current working status information of the headlight power supply, such as voltage and current fluctuations, changes in the headlight load, etc. In actual operation, the voltage and current of the vehicle are affected by various factors (such as engine working status, vehicle acceleration or deceleration, external power supply interference, etc.), and often have irregular fluctuations, so real-time monitoring and prediction are required.

[0088] The Extended Kalman Filter algorithm is a recursive method for state estimation of nonlinear systems. It predicts the future state by linearizing the current state and combining the observed data with the system model. The Extended Kalman Filter is divided into two main steps: the prediction step and the update step. The prediction step uses the state transition equation to predict the state of the system at the next moment based on the estimated value of the current state. This step provides a prediction of the future power state. The update step is when new observation data (such as real-time voltage and current signals) arrives, using these data to update the previous prediction to obtain a more accurate state estimate.

[0089] In some embodiments, after receiving the voltage and current signals, the headlight system first predicts the future power state through the extended Kalman filter, including predicting the changing trends of voltage and current under different driving conditions, such as power fluctuations during acceleration or sudden braking. This prediction can provide an early warning for the headlight dimming system to avoid sudden changes in brightness. When the system actually measures new voltage and current data, the Kalman filter compares these observations with the predicted values ​​and corrects the previous predictions through an update step. This means that even if the power signal is affected by external factors (such as power noise, signal interference, etc.), the system can correct the brightness output in time through the filtering algorithm to ensure that the working state of the headlight remains stable at all times.

[0090] Compared with the ordinary Kalman filter, the extended Kalman filter can handle the nonlinear factors in the headlight power system. This enables the system to better cope with complex power fluctuations, especially when the vehicle's operating status changes frequently, the system can quickly adjust the power output of the headlights. The prediction and update mechanism of the extended Kalman filter enables the headlight system to respond to changes in the power status in real time. Through continuous monitoring of voltage and current signals, the system can dynamically adjust the duty cycle D(t) to maintain the stability of the headlight brightness.

[0091] The present invention uses an extended Kalman filter algorithm based on voltage and current signals, so that the headlight system can predict and update the power supply status in real time. By accurately estimating the power supply status, the system can adjust the dimming strategy in advance when the voltage and current fluctuate, ensuring the stability of the brightness output of the headlights, thereby improving driving safety and the energy efficiency of the headlight system. The nonlinear processing capability of the extended Kalman filter enables the system to perform better when dealing with power supply fluctuations in complex environments.

[0092] Step 204: According to the required brightness of the vehicle lamp, the output brightness of the vehicle lamp is controlled by adjusting the duty cycle of the PWM signal.

[0093] In some embodiments, step 204 may include:

[0094] Obtaining the maximum output brightness of the vehicle;

[0095] Obtaining a nonlinear index for controlling the output brightness and a time constant of the vehicle lamp response;

[0096] The duty cycle is adjusted according to the maximum output brightness, the nonlinear index and the time constant to control the output brightness of the vehicle lamp.

[0097] In some embodiments, the output brightness of the vehicle lamp is expressed as:

[0098]

[0099] in, is the output brightness of the headlight, is the maximum output brightness of the headlight, is the duty cycle, is a nonlinear exponent that controls the output brightness, is the time constant of the headlight response, and t is the current moment.

[0100] In the specific implementation, is the output brightness of the headlight, which indicates the actual brightness value of the system at time t. The brightness is determined by the duty cycle D(t). As the duty cycle changes, the output brightness is dynamically adjusted.

[0101] is the maximum output brightness of the headlight, which is the highest brightness value of the system under 100% duty cycle. It is a constant used to define the upper limit of the system brightness. No matter how the duty cycle changes, the brightness L(t) will not exceed .

[0102] is the duty cycle, which indicates the ratio of the high level duration to the period in the PWM control signal. The higher the duty cycle, the higher the output brightness; conversely, the lower the duty cycle, the lower the output brightness. Usually, D(t) ranges from 0% to 100%.

[0103] It is a nonlinear index that controls the output brightness. This parameter determines the nonlinear degree of brightness L(t) changing with duty cycle D(t). If γ=1, the brightness and duty cycle are linearly related; when γ>1, the brightness changes more slowly with duty cycle; and when γ<1, the brightness changes more dramatically. By adjusting γ, the relationship between brightness and duty cycle can be made more in line with actual needs.

[0104] It is the time constant of the system response, which characterizes the response speed of the system to the change of duty cycle. It is used to control the dynamic response characteristics of the system. The larger the value, the slower the system responds to the change of duty cycle; the smaller the value, the faster the system responds. This parameter introduces an exponential decay term , which is used to simulate the brightness transition process of the system when the duty cycle changes. This item ensures that the system does not reach the target brightness instantaneously, but changes gradually, which is consistent with the physical response of actual car lights.

[0105] t is the current moment, which is part of the real-time control of the system and is used to describe the current output brightness L(t).

[0106] Specifically, This section describes the nonlinear relationship between brightness L(t) and duty cycle D(t). γ is used to control the nonlinear response of brightness to duty cycle. Usually, the dimming system needs to have more obvious brightness changes at low duty cycles and more gradual changes at high duty cycles. The adjustment of γ makes this requirement possible. For example, when γ>1, the brightness changes faster at low duty cycles, meeting the requirements of high-sensitivity dimming, while the brightness changes more slowly at high duty cycles, preventing discomfort caused by excessive brightness.

[0107] This section is used to describe the delayed response of the lighting system to the change of duty cycle. In the actual lighting system, the brightness cannot be adjusted instantly with the change of duty cycle, but there is a certain response time, which is limited by physical characteristics. , which can simulate the process of the headlight brightness gradually approaching the target value. When D(t) is small, the brightness rises slowly; as D(t) increases, the exponential decay term quickly approaches 1, making the brightness response faster. Finally, the output brightness L(t) is the maximum brightness This means that the actual brightness is always As an upper limit, through the combined effect of nonlinear regulation and response delay, the output brightness will change smoothly with the duty cycle, meeting the dynamic requirements of the system.

[0108] In practical applications, when the vehicle is driving at high speed, the brightness of the headlights needs to respond quickly to changes in road conditions. At this time, λ is small and the brightness can be quickly adjusted to the target value. When the vehicle is driving at a low speed or parked, the system hopes that the brightness changes more slowly to avoid discomfort caused by sudden brightness changes. At this time, γ can be adjusted to achieve smoother brightness control. This formula takes into account the accuracy of brightness control and the dynamics of system response. By properly adjusting the parameters γ and λ, different headlight dimming requirements can be met.

[0109] The present invention combines the nonlinear relationship between duty cycle and brightness and the dynamic response of the system, and can accurately control the brightness of the headlights under various driving conditions. By adjusting γ and λ, different driving needs can be flexibly responded to, which not only ensures the accuracy of brightness adjustment, but also ensures the stability of system response.

[0110] Step 205: Acquire the real-time light intensity and the ambient light intensity through the vehicle light sensor, and adaptively adjust the duty cycle based on the PID control algorithm.

[0111] In some embodiments, step 205 may include:

[0112] Obtaining a default initial duty cycle of the vehicle light;

[0113] Obtaining the current real-time light intensity and ambient light intensity of the vehicle light, as well as a preset target light intensity;

[0114] The real-time light intensity, the ambient light intensity and the target light intensity are processed according to the PID control algorithm, and the initial duty cycle is adaptively adjusted to obtain the current duty cycle of the vehicle light.

[0115] In some embodiments, the duty cycle may be expressed as:

[0116]

[0117] in, is the duty cycle, is the initial duty cycle, is the proportional gain constant, is the integral gain constant, is the differential gain constant, is the target light intensity, is the real-time light intensity, is the ambient light intensity.

[0118] In the specific implementation, The duty cycle is the ratio of the high-level duration of the PWM signal to the total cycle. The brightness of the headlights is controlled by adjusting the duty cycle. The larger the duty cycle, the higher the brightness of the headlights, and vice versa.

[0119] The initial duty cycle is the basic duty cycle value of the system before adjustment. When the system is initialized or the light does not change, the headlights will output brightness according to this initial value.

[0120] Is the proportional gain constant, which represents the gain of the proportional term controller in PID control. It defines the current light intensity error Direct impact on duty cycle D(t). The role of the proportional term is to immediately adjust the duty cycle based on the real-time error.

[0121] is the integral gain constant, which represents the gain of the integral term controller in PID control. The integral term is adjusted by accumulating past errors, with the aim of eliminating the steady-state error in the system. That is, when the light intensity error exists for a long time, the role of the integral term becomes more and more significant, and the duty cycle is gradually adjusted to make the actual light intensity close to the set value.

[0122] is the differential gain constant, which represents the gain of the differential term controller in PID control. The differential term is used to predict the change trend of the error and make early corrections to the change. It calculates the rate of change of the error To prevent the error from changing too quickly and causing the system to overshoot or become unstable.

[0123] The target light intensity is the ideal light brightness value set according to driving needs or environmental requirements. The system will adjust the duty cycle according to the current lighting conditions to ensure the actual light intensity. Try to get as close to this setting as possible.

[0124] The real-time light intensity is the actual light intensity of the current headlight measured by the headlight sensor. It represents the real-time output of the system and is used to compare with the set value. Make a comparison.

[0125] The ambient light intensity is the light intensity of the surrounding environment measured by the sensor. The ambient light intensity will affect the system's adjustment of the headlight brightness. For example, in a strong light environment, the headlights can automatically reduce the brightness, while in a dim environment, the headlights will increase the brightness to compensate for the lack of external light.

[0126] Specifically, This item is proportional control and directly reflects the current lighting error of the system. is the target light intensity, is the real-time light intensity, is the ambient light intensity. Therefore, the error Indicates the difference between the actual headlight brightness and the target brightness. The proportional control item directly adjusts the duty cycle through this error value, and the proportional constant Determines the impact of the error on the duty cycle adjustment. A larger value will result in a faster response, but may also cause system oscillation; a smaller value This makes the system respond more smoothly, but the adjustment speed is slower.

[0127] Integral control is used to eliminate the steady-state error of the system. The integral term gradually adjusts the system output by accumulating the error over time. Even if the error is small, after a long period of accumulation, the integral term will continue to adjust the duty cycle to ensure that the system eventually stabilizes at the target light intensity. nearby.

[0128] is the integral gain constant, which determines the strength of the integral term to adjust the duty cycle. Too large may cause the system to over-regulate and overshoot; if If it is too small, the integral action will be insufficient and the system may not be able to eliminate the steady-state error.

[0129] Derivative control is used to predict the changing trend of the error and make adjustments in advance. By calculating the rate of change of the error, the derivative term can reduce the response delay of the system and prevent system instability or oscillation caused by rapid changes in the error. is the differential gain constant, which determines the influence of the differential term. The value can effectively suppress the fast-changing error, but if If it is too large, the system may become overly sensitive to noise and produce over-adjustment.

[0130] In the absence of error or in the initial state, the duty cycle of the system output is When the system detects an error, the PID controller gradually eliminates the error by adjusting D(t) to achieve the target light intensity.

[0131] The present invention combines the three functions of PID control (proportional, integral, and differential) to accurately control the brightness of the headlights so that they always remain at the predetermined light intensity. Among them: proportional control quickly responds to the current error; integral control gradually eliminates long-standing errors to ensure the ultimate stability of the system; differential control predicts the changing trend of the error to prevent overshoot and oscillation in the system.

[0132] The present invention realizes precise control of duty cycle through PID control algorithm, so that the headlight can dynamically adjust the brightness according to the real-time lighting conditions. The advantage of PID control is that it balances the response speed, stability and accuracy of the system, ensuring that the headlight always provides the best lighting effect under different driving conditions while avoiding over-adjustment or response lag.

[0133] Step 206: monitor in real time and minimize the total energy consumption of the headlight based on an energy optimization algorithm to obtain the minimized total energy consumption of the headlight, and drive and adjust the headlight under the minimized total energy consumption.

[0134] In some embodiments, step 206 may include the following steps:

[0135] Obtaining a load voltage and a load current of the vehicle lamp under different load modes;

[0136] Obtaining energy conversion efficiency of the vehicle lamp;

[0137] The total energy consumption of the vehicle lamp is determined according to the load voltage and load current of the vehicle lamp in different load modes, the energy conversion efficiency, the initial voltage signal and the initial current signal.

[0138] In some embodiments, the total energy consumption of the vehicle lamp is expressed as:

[0139]

[0140] in, is the total energy consumption of the headlight, is the energy conversion efficiency, is the initial voltage signal, is the initial current signal, is the response coefficient under different load conditions with the headlight light source, O is the total number of load modes, o is the number of the load mode, is the load voltage of the oth load mode, is the load current of the oth load mode.

[0141] Obtaining a load voltage and a load current of the vehicle lamp under different load modes;

[0142] Obtaining energy conversion efficiency of the vehicle lamp;

[0143] The total energy consumption of the vehicle lamp is determined according to the load voltage and load current of the vehicle lamp in different load modes, the energy conversion efficiency, the initial voltage signal and the initial current signal.

[0144] In some embodiments, the total energy consumption of the vehicle lamp is expressed as:

[0145]

[0146] in, is the total energy consumption of the headlight, is the energy conversion efficiency, is the initial voltage signal, is the initial current signal, is the response coefficient under different load conditions with the headlight light source, O is the total number of load modes, o is the number of the load mode, is the load voltage of the oth load mode, is the load current of the oth load mode.

[0147] In the specific implementation, is the total energy consumption of the headlight, which represents the power consumed by the system at time t. The power consumption of the headlight system changes with the dynamic changes of voltage, current and load mode.

[0148] It is the energy conversion efficiency, which indicates the efficiency of the vehicle lighting system in converting input electrical energy into output light energy. Its value is between 0 and 1. When it is close to 1, it indicates that the system has a high energy conversion efficiency and a small energy loss; when it is close to 0, it indicates that there is a large amount of energy loss.

[0149] It is the initial voltage signal, which is the input voltage of the headlight system under standard load mode, usually referring to the voltage of the headlight working circuit. It reflects the voltage of the system when it is not affected by load changes.

[0150] is the initial current signal, which is the input current of the headlight system under standard load mode, indicating the current input of the headlight under normal working conditions. The current multiplied by the initial voltage V(t) gives the instantaneous power consumption under standard load.

[0151] It is the response coefficient under different load conditions with the headlight light source, indicating the voltage and current response degree of the system under different load modes. It reflects the sensitivity of the lighting system to the power change of each load mode. is smaller, indicating that the system is more sensitive to changes in power consumption under this load mode; on the contrary, A larger value indicates smaller power fluctuations.

[0152] O is the total number of load modes, which refers to the number of all variable load modes in the system. Headlights use different load modes under different driving conditions, such as high beam, low beam, flash, and other different modes.

[0153] o is the number of the load mode, which is used to distinguish different load modes. The value range of o is 1 to 0, representing the oth load mode.

[0154] is the voltage of the oth load mode, indicating the voltage input in the oth load mode. The voltage signal of each load mode may vary over time, depending on the operating state of the vehicle lighting system.

[0155] is the current of the oth load mode, indicating the current input in the oth load mode. Current and Voltage Together they determine the instantaneous power consumption in this load mode.

[0156] Specifically, This part is the energy consumption calculation of the headlight system under standard load mode. The instantaneous power consumption can be obtained by multiplying the voltage V(t) and the current I(t), and then multiplying it by the energy conversion efficiency , we can get the initial power consumption of the system. Since the initial power consumption is relatively stable, it represents the basic power consumption of the system when there is no dynamic load change.

[0157] This part shows the dynamic power consumption of the system under different load modes. The voltage of each load mode o and current will change over time, causing power fluctuations in the system. The instantaneous rate of change of voltage and current over time, that is, the power change rate, can be obtained. Multiply the square of this change rate by the corresponding response coefficient , and obtain the dynamic power variation of the load mode.

[0158] in, It is the load mode adjustment factor, which adjusts the impact of power changes in each load mode on the total system power. The smaller it is, the more significant the system's response to power fluctuations in this load mode.

[0159] Represents the square of the power change under each load mode. This term can amplify large power fluctuations so that the system can dynamically adjust to power changes. The introduction of the square term can enhance the sensitivity to power changes, thereby accurately reflecting the energy consumption impact caused by load changes.

[0160] The final total power consumption P(t) is the sum of the initial power consumption and the dynamic power changes of all load modes. By considering the response of each load mode, the formula can accurately calculate the actual power consumption of the lighting system at different times. This method can not only calculate the power consumption under stable working conditions, but also capture the instantaneous energy consumption changes caused by load changes, thereby improving the energy consumption optimization effect of the system.

[0161] The present invention not only calculates the basic power consumption of the vehicle lighting system in the initial working state, but also effectively handles the dynamic impact of various load modes (such as high beam, low beam, automatic headlight, etc.) on the system power. The formula can capture the power variation trend of the headlight system under different load modes and use the response coefficient Adjust the influence of each load mode. The energy conversion efficiency in the formula Ensuring that the system's energy consumption calculations truly reflect energy utilization can help optimize the energy management of the lighting system.

[0162] In practical applications, the total energy consumption calculation can be applied to vehicle lighting systems with multiple load modes, such as automatic adjustment of high and low beams, fog lights and other modes. The formula can accurately calculate the power consumption in each mode and provide an optimization control reference for the system. It can also be applied to dynamic energy consumption management. Vehicle lights will dynamically switch load modes in different driving scenarios (such as high beam mode on highways and low beam mode in urban driving). The formula can capture these load changes and calculate the actual power consumption. It can also be applied to energy optimization. The vehicle lighting system can find the best balance between power demand and energy consumption, thereby improving energy efficiency and extending the service life of the vehicle lights.

[0163] The present invention provides a comprehensive energy consumption calculation method by calculating the initial power of the headlight system and the dynamic power changes under multiple load modes. It not only takes into account the basic power consumption of the system, but also captures the power fluctuations caused by the change of load mode through the square derivative term, ensuring that the system can accurately optimize energy consumption under different working conditions, thereby improving the energy efficiency and reliability of the headlight system.

[0164] In some embodiments, the present invention may further include:

[0165] Obtain the current speed of the vehicle and the corresponding maximum speed;

[0166] Obtaining the maximum and minimum adjustable brightness of the vehicle light;

[0167] Based on the current speed and the maximum speed of the vehicle, and the maximum brightness and the minimum brightness of the headlight, the current brightness of the headlight is adjusted to obtain an adjusted brightness.

[0168] The current speed of the vehicle is the speed of the vehicle at the current moment, which is measured in real time by the vehicle speed sensor. The current speed of the vehicle will vary depending on the driving situation, such as acceleration, deceleration or constant speed.

[0169] The maximum speed of a vehicle is the maximum speed in the vehicle design or configuration. It can be the theoretical maximum speed of the vehicle when it leaves the factory, or it can be a limited maximum speed based on certain specific driving modes (such as high-speed mode or city mode). The maximum speed is a fixed value used to calibrate the upper limit of the speed range.

[0170] In practical applications, the information of current speed v(t) and maximum speed provides the basis for the brightness adjustment of the headlight system. The higher the vehicle speed, the greater the driver's vision requirement, so higher headlight brightness is required to ensure driving safety; while at low speed or parking, the headlight brightness can be appropriately reduced to reduce energy consumption and avoid glare.

[0171] Among them, the maximum brightness of the headlights is the highest brightness that the headlight system can output, which is usually used in high-speed driving or in conditions of poor visibility (such as driving at night or in foggy days). Ensure that the vehicle can provide sufficient lighting in extreme conditions to ensure a clear view for the driver. Among them, the minimum brightness of the headlights is the lowest brightness that the headlights can output, which is usually used in low-speed driving or parking to save energy and reduce interference with other road users. When there is sufficient light during the day, the brightness of the headlights can also be maintained at the lowest level. By obtaining the maximum and minimum brightness of the headlights, the system can flexibly adjust the light intensity according to different driving conditions. The range of brightness adjustment is determined by the continuous interval between.

[0172] In some embodiments, when the current speed of the vehicle is low, the brightness of the headlights will be close to the minimum brightness. For example, when driving at a low speed in the city or parking, the headlights can maintain a low brightness to save energy and avoid glare to other drivers. When the vehicle speed is close to the maximum speed, the brightness of the headlights will be close to the maximum brightness to ensure that the driver has a sufficient field of view on the highway or in an environment with poor visibility. At this time, the brightness is close, but depending on the adjustment index, the increase in brightness can be presented as a gradual and smooth transition.

[0173] The lighting system automatically adjusts the brightness of the lights by monitoring the vehicle's speed in real time. The system dynamically adjusts the brightness based on the ratio between the current speed and the maximum speed to ensure that the vehicle has the appropriate lighting level at different speeds. At the same time, the system further optimizes the brightness based on environmental changes (such as at night or in fog) to ensure the best lighting effect.

[0174] In actual applications, when a vehicle enters a highway, the vehicle speed is usually close to the maximum speed. At this time, the headlight system will automatically adjust the brightness to close to the maximum brightness to provide a wide field of view and improve safety. In urban traffic, vehicles usually travel at low speeds or wait at traffic lights. At this time, the headlight system will automatically reduce the brightness to close to the minimum brightness, reducing energy consumption and avoiding light pollution. When the vehicle is stationary or idling, the system will adjust the brightness to the lowest level, which not only reduces the battery load, but also prevents excessive consumption of the headlights.

[0175] In summary, the present invention adjusts the brightness of the headlights in real time by obtaining the current speed and maximum speed of the vehicle, combined with the maximum brightness and minimum brightness of the headlights. Through the nonlinear adjustment formula, the brightness of the headlights gradually increases with the increase of speed, ensuring that the vehicle provides higher brightness at high speeds to improve safety, while reducing the brightness at low speeds or when parked to save energy. This adaptive brightness adjustment can optimize the performance of the headlights under various driving conditions, improve the driving experience and achieve energy-saving effects.

[0176] See also Figure 2 , Figure 2 A schematic structural diagram of a continuously dimming light source driving system provided by the present invention.

[0177] like Figure 2 As shown, a continuously dimming light source driving system proposed in an embodiment of the present invention includes:

[0178] The signal acquisition module 301 is used to acquire the initial voltage signal and the initial current signal input by the vehicle lamp power supply;

[0179] A signal filtering module 302, configured to filter the initial voltage signal and the initial current signal to obtain a filtered voltage signal and a filtered current signal;

[0180] A state updating module 303, configured to predict and update the state of the vehicle lamp power supply by using an extended Kalman filter algorithm based on the voltage signal and the current signal;

[0181] A first adjustment module 304, configured to control the output brightness of the vehicle lamp by adjusting the duty cycle of the PWM signal according to the required brightness of the vehicle lamp;

[0182] A second adjustment module 305 is used to obtain real-time light intensity and ambient light intensity through a vehicle light sensor, and adaptively adjust the duty cycle based on a PID control algorithm;

[0183] The light source driving module 306 is used to monitor in real time and minimize the total energy consumption of the headlight based on an energy optimization algorithm, obtain the minimized total energy consumption of the headlight, and drive and adjust the headlight under the minimized total energy consumption.

[0184] See also Figure 3 , Figure 3 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention provides an electronic device 400, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented:

[0185] Obtaining an initial voltage signal and an initial current signal input by a headlight power supply of the vehicle;

[0186] Filtering the initial voltage signal and the initial current signal to obtain filtered voltage signals and current signals;

[0187] Based on the voltage signal and the current signal, predicting and updating the state of the vehicle lamp power supply by using an extended Kalman filter algorithm;

[0188] According to the required brightness of the headlight, the output brightness of the headlight is controlled by adjusting the duty cycle of the PWM signal;

[0189] Acquire real-time light intensity and ambient light intensity through a vehicle light sensor, and adaptively adjust the duty cycle based on a PID control algorithm;

[0190] The total energy consumption of the headlight is monitored in real time and minimized based on an energy optimization algorithm to obtain the minimized total energy consumption of the headlight, and the headlight is driven and adjusted under the minimized total energy consumption.

[0191] See also Figure 4 , Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 4 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 411 is stored. When the computer program 411 is executed by a processor, the following steps are implemented:

[0192] Obtaining an initial voltage signal and an initial current signal input by a headlight power supply of the vehicle;

[0193] Filtering the initial voltage signal and the initial current signal to obtain filtered voltage signals and current signals;

[0194] Based on the voltage signal and the current signal, predicting and updating the state of the vehicle lamp power supply by using an extended Kalman filter algorithm;

[0195] According to the required brightness of the headlight, the output brightness of the headlight is controlled by adjusting the duty cycle of the PWM signal;

[0196] Acquire real-time light intensity and ambient light intensity through a vehicle light sensor, and adaptively adjust the duty cycle based on a PID control algorithm;

[0197] The total energy consumption of the headlight is monitored in real time and minimized based on an energy optimization algorithm to obtain the minimized total energy consumption of the headlight, and the headlight is driven and adjusted under the minimized total energy consumption.

[0198] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0199] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0200] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or multiple boxes.

[0201] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0202] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0203] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0204] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for driving a light source capable of continuous dimming, characterized in that: The method comprises: Obtaining an initial voltage signal and an initial current signal input by a headlight power supply of the vehicle; Filtering the initial voltage signal and the initial current signal to obtain filtered voltage signals and current signals; Based on the voltage signal and the current signal, predicting and updating the state of the vehicle lamp power supply by using an extended Kalman filter algorithm; According to the required brightness of the headlight, the output brightness of the headlight is controlled by adjusting the duty cycle of the PWM signal; Acquire real-time light intensity and ambient light intensity through a vehicle light sensor, and adaptively adjust the duty cycle based on a PID control algorithm; Real-time monitoring and minimizing the total energy consumption of the headlight based on an energy optimization algorithm to obtain the minimized total energy consumption of the headlight, and driving and adjusting the headlight under the minimized total energy consumption; The method of obtaining the real-time light intensity and the ambient light intensity through the vehicle light sensor and adaptively adjusting the duty cycle based on the PID control algorithm includes: Obtaining a default initial duty cycle of the vehicle light; Obtaining the current real-time light intensity and ambient light intensity of the vehicle light, as well as a preset target light intensity; Processing the real-time light intensity, the ambient light intensity and the target light intensity according to the PID control algorithm, adaptively adjusting the initial duty cycle, and obtaining the current duty cycle of the vehicle light; The duty cycle is expressed as: Where D(t) is the duty cycle, which represents the ratio of the high-level duration of the PWM signal to the total period; D0 is the initial duty cycle, which means the basic duty cycle value before adjustment; k p is the proportional gain constant, which represents the gain of the proportional term controller in PID control; k i is the integral gain constant, which represents the gain of the integral term controller in PID control; k d is the differential gain constant, which represents the gain of the differential controller in PID control; I set It is the set target light intensity, which indicates the ideal headlight brightness value set according to driving needs or environmental requirements; I l (t) is the real-time light intensity, which indicates the actual light intensity of the current headlight measured by the headlight sensor; I a (t) is the ambient light intensity, which represents the light intensity of the surrounding environment measured by the sensor.

2. The continuously dimming light source driving method according to claim 1, characterized in that: The step of controlling the output brightness of the vehicle lamp by adjusting the duty cycle of the PWM signal according to the required brightness of the vehicle lamp comprises: Obtaining the maximum output brightness of the vehicle; Obtaining a nonlinear index for controlling the output brightness and a time constant of the vehicle lamp response; According to the maximum output brightness, the nonlinear index and the time constant, adjusting the duty cycle to control the output brightness of the vehicle lamp; The output brightness of the headlight is expressed as: Where L(t) is the output brightness of the headlight, which represents the actual brightness value at time t; L max It is the maximum output brightness of the headlight, indicating the highest brightness value under 100% duty cycle; D(t) is the duty cycle, which represents the ratio of the high-level duration of the PWM signal to the total period; γ is the nonlinear index for controlling the output brightness, which indicates the nonlinear degree of the brightness L(t) changing with the duty cycle D(t); λ is the time constant of the headlight response, which represents the response speed to the duty cycle change; t is the current moment, which is used to describe the current output brightness L(t).

3. The continuously dimming light source driving method according to claim 1, characterized in that: The total energy consumption of the vehicle lamp is obtained by: Obtaining a load voltage and a load current of the vehicle lamp under different load modes; Obtaining energy conversion efficiency of the vehicle lamp; The total energy consumption of the vehicle lamp is determined according to the load voltage and load current of the vehicle lamp in different load modes, the energy conversion efficiency, the initial voltage signal and the initial current signal.

4. The continuously dimming light source driving method according to claim 3, characterized in that: The total energy consumption of the headlight is expressed as: Among them, P(t) is the total energy consumption of the headlight, η is the energy conversion efficiency, V(t) is the initial voltage signal, I(t) is the initial current signal, ρ o is the response coefficient under different load conditions with the headlight source, O is the total number of load modes, o is the number of the load mode, V o (t) is the load voltage of the oth load mode, I o (t) is the load current of the oth load mode.

5. The continuously dimming light source driving method according to claim 4, characterized in that: The filtering of the initial voltage signal and the initial current signal to obtain a filtered voltage signal and a filtered current signal further includes: Performing high-order filtering on the initial voltage signal to decompose the initial voltage signal into a first component of multiple frequency bands; Performing high-order filtering on the initial voltage signal to decompose the initial voltage signal into second components of multiple frequency bands; The voltage signal and the current signal are obtained according to the first component and the second component.

6. The continuously dimming light source driving method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtain the current speed of the vehicle and the corresponding maximum speed; Obtaining the maximum and minimum adjustable brightness of the vehicle light; Based on the current speed and the maximum speed of the vehicle, and the maximum brightness and the minimum brightness of the headlight, the current brightness of the headlight is adjusted to obtain an adjusted brightness.

7. A continuously dimming light source driving system, characterized in that: The system comprises: A signal acquisition module, used to acquire an initial voltage signal and an initial current signal input by a vehicle lamp power supply; A signal filtering module, used for filtering the initial voltage signal and the initial current signal to obtain a filtered voltage signal and a filtered current signal; A state updating module, configured to predict and update the state of the vehicle lamp power supply by using an extended Kalman filter algorithm based on the voltage signal and the current signal; A first adjustment module, used for controlling the output brightness of the headlight by adjusting the duty cycle of the PWM signal according to the required brightness of the headlight; A second adjustment module, used for obtaining real-time light intensity and ambient light intensity through a vehicle light sensor, and adaptively adjusting the duty cycle based on a PID control algorithm; A light source driving module, used for real-time monitoring and minimizing the total energy consumption of the headlight based on an energy optimization algorithm, obtaining the minimized total energy consumption of the headlight, and driving and adjusting the headlight under the minimized total energy consumption; The method of obtaining the real-time light intensity and the ambient light intensity through the vehicle light sensor and adaptively adjusting the duty cycle based on the PID control algorithm includes: Obtaining a default initial duty cycle of the vehicle light; Obtaining the current real-time light intensity and ambient light intensity of the vehicle light, as well as a preset target light intensity; Processing the real-time light intensity, the ambient light intensity and the target light intensity according to the PID control algorithm, adaptively adjusting the initial duty cycle, and obtaining the current duty cycle of the vehicle light; The duty cycle is expressed as: Where D(t) is the duty cycle, which represents the ratio of the high-level duration of the PWM signal to the total period; D0 is the initial duty cycle, which means the basic duty cycle value before adjustment; k p is the proportional gain constant, which represents the gain of the proportional term controller in PID control; k i is the integral gain constant, which represents the gain of the integral term controller in PID control; k d is the differential gain constant, which represents the gain of the differential controller in PID control; I set It is the set target light intensity, which indicates the ideal headlight brightness value set according to driving needs or environmental requirements; I l (t) is the real-time light intensity, which indicates the actual light intensity of the current headlight measured by the headlight sensor; I a (t) is the ambient light intensity, which represents the light intensity of the surrounding environment measured by the sensor.

Citation Information

Patent Citations

  • Indoor anti-glare intelligent lighting system and adjustment method thereof

    CN105813261A

  • Device for luminosity control of brake lamp for automobile

    KR1020090120615A