Method and system for graded regulation and control of light emitting of lamp beads
Through preset luminescence level and current mapping, combined with interpolation processing and temperature compensation, the precise brightness control and stability of LED lamp beads is achieved, solving the problems of inaccurate brightness adjustment and low luminous efficiency in traditional control methods, ensuring high quality Lighting experience and long-term stability.
Patent Information
- Application Number
- CN202411443289.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2024-11-15
AI Technical Summary
The traditional LED lamp bead control method has inaccurate brightness adjustment, unsmooth brightness changes, and low luminous efficiency, which is difficult to meet the needs of high-quality lighting experience. The luminous characteristics are affected by temperature, current and other factors, resulting in brightness deviation and color temperature drift, affecting the lighting effect. consistency and stability.
By presetting multiple luminous levels and performing current mapping, pulse width modulation signal sequence is generated to achieve accurate control of the brightness of the lamp beads. Interpolation processing and S-shaped curve generation algorithm are used to ensure the smoothness and nature of brightness changes, and to monitor the lamp beads in real time The junction temperature is compensated for temperature, and the luminous intensity is detected in real time for dynamic adjustment, optimizing energy utilization efficiency and reducing electromagnetic interference.
It realizes precise control of the brightness of the lamp beads, ensures consistency and stability of lighting effects, improves the smoothness and nature of brightness changes, optimizes energy utilization efficiency, extends the service life of the lamp beads, and improves the system's Reliability and security.
Smart Images

Figure CN118973015A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lamp bead luminescence regulation, and in particular to a graded regulation control method and system for lamp bead luminescence. Background Art
[0002] With the rapid development of lighting technology, LED lamp beads have been widely used in various fields due to their advantages such as high efficiency, energy saving, long life and small size. However, traditional LED lamp bead control methods often have problems such as inaccurate brightness adjustment, uneven brightness change and low luminous efficiency, which makes it difficult to meet users' demand for high-quality lighting experience.
[0003] In addition, the luminous characteristics of LED lamp beads are affected by many factors such as temperature and current. In actual use, brightness deviation and color temperature drift are prone to occur, affecting the consistency and stability of the lighting effect. Especially in multi-level dimming scenarios, how to achieve accurate and smooth brightness transition while ensuring the long-term reliability of the lamp beads has become an important challenge facing the industry. Summary of the invention
[0004] The main purpose of the present invention is to provide a method and system for graded regulation and control of lamp bead light emission. The present invention realizes precise control of lamp bead brightness by presetting multiple light emission levels and performing current mapping to meet lighting needs in different scenarios.
[0005] To achieve the above object, the present invention provides a hierarchical regulation control method for lamp bead light emission, comprising the following steps: Presetting a plurality of luminous levels to obtain a first level, a second level, a third level, and a fourth level corresponding to different luminous intensities, and storing the plurality of luminous levels in a processing unit; According to the electrical characteristics and luminous characteristics of the lamp beads, current mapping is performed on the multiple luminous levels to obtain a current value corresponding to each luminous level, and the current value is stored in a signal conversion unit; generating a pulse width modulation signal sequence based on the current value, obtaining duty cycle values corresponding to the plurality of light emission levels, and arranging the duty cycle values according to a preset cycle mode; Performing interpolation processing on the pulse width modulation signal sequence to obtain a gradual control sequence including a plurality of transition pulse width modulation signals; Inputting the gradual change control sequence into a driving unit for current conversion to obtain a driving current corresponding to the multiple light emission levels, and using the driving current to drive the lamp bead to emit light; The actual luminous intensity of the lamp bead is detected in real time to obtain an actual intensity value, the actual intensity value is compared with the theoretical intensity value to generate a compensation value, and the pulse width modulation signal sequence is adjusted according to the compensation value.
[0006] The present invention also provides a hierarchical regulation control system for lamp bead lighting, comprising: A preset module, used for presetting a plurality of light emitting levels, obtaining a first level, a second level, a third level and a fourth level corresponding to different light emitting intensities, and storing the plurality of light emitting levels in a processing unit; A mapping module, used to perform current mapping on the multiple light-emitting levels according to the electrical characteristics and light-emitting characteristics of the lamp beads, obtain a current value corresponding to each light-emitting level, and store the current value in a signal conversion unit; an arrangement module, configured to generate a pulse width modulation signal sequence based on the current value, obtain duty cycle values corresponding to the plurality of light emission levels, and arrange the duty cycle values according to a preset cycle mode; An interpolation module, used for performing interpolation processing on the pulse width modulation signal sequence to obtain a gradual control sequence including a plurality of transition pulse width modulation signals; A conversion module, used for inputting the gradual control sequence into a driving unit for current conversion, obtaining a driving current corresponding to the multiple light-emitting levels, and using the driving current to drive the lamp bead to emit light; The adjustment module is used to detect the actual luminous intensity of the lamp bead in real time to obtain an actual intensity value, generate a compensation value after comparing the actual intensity value with the theoretical intensity value, and adjust the pulse width modulation signal sequence according to the compensation value.
[0007] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0008] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0009] In summary, the technical solution provided by the present invention realizes precise control of the brightness of the lamp beads by presetting multiple luminous levels and performing current mapping, thereby meeting the lighting requirements in different scenarios. By adopting interpolation processing and S-curve generation algorithm, a gradual control sequence containing multiple transition pulse width modulation signals is obtained, which ensures the smoothness and naturalness of the brightness change. By real-time monitoring of the junction temperature of the lamp beads and performing temperature compensation, the influence of temperature change on the luminous intensity is effectively reduced, and the stability of the luminous intensity of the lamp beads is improved. The actual luminous intensity of the lamp beads is detected in real time and compared with the theoretical value, and the pulse width modulation signal sequence is dynamically adjusted by generating compensation values, thereby ensuring the luminous accuracy during long-term use. Current mapping is performed based on the electrical characteristics and luminous characteristics of the lamp beads, and the human eye perception characteristics are considered through nonlinear transformation, thereby optimizing energy utilization efficiency while ensuring visual effects. By performing jitter processing on the pulse width sequence, electromagnetic interference is reduced, and the reliability and stability of the system are improved. The duty cycle value is arranged in a preset cycle mode, so that the periodic change of the brightness of the lamp beads is realized to adapt to diverse lighting requirements. Through the steps of digital-to-analog conversion, amplification processing and current source modulation, precise control of the driving current is achieved, ensuring the consistency of the luminous intensity with the set value. The present invention integrates overcurrent protection and temperature monitoring functions, effectively prolongs the service life of the lamp beads, and improves the safety of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a schematic diagram of the steps of a method for controlling the graded regulation of light emission of lamp beads in one embodiment of the present invention; Figure 2 This is a structural block diagram of a hierarchical regulation control system for lamp bead lighting in one embodiment of the present invention; Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.
[0011] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0012] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0013] Reference Figure 1 This embodiment provides a hierarchical adjustment control method for lamp bead light emission, comprising the following steps: S1, presetting a plurality of luminous levels to obtain a first level, a second level, a third level and a fourth level corresponding to different luminous intensities, and storing the plurality of luminous levels in a processing unit; Among them, the maximum rated power of the lamp bead is obtained, and the maximum power value is obtained by measurement or from the equipment specifications. The maximum power value is divided by a predetermined target value to obtain a power interval value. The power interval value is used to determine the power distribution of different luminous levels. Based on the maximum power value and the power interval value, a decreasing calculation is performed to obtain four specific power values corresponding to the first level, the second level, the third level and the fourth level. The relationship between the luminous flux and the power of the lamp bead is analyzed, and a mathematical model of the relationship is established by a fitting method. By curve fitting the actually measured luminous flux and power data, a mathematical function describing the relationship between luminous flux and power is obtained. The four power values are substituted into the mathematical function describing the relationship curve for calculation to obtain four luminous flux values corresponding to each luminous level. The luminous flux value is a theoretical value of the intensity of the light actually emitted by the lamp bead at different powers. The four luminous flux values are normalized, and each luminous flux value is converted into a normalized luminous intensity value between 0 and 1 to eliminate the brightness difference between different lamp beads or different devices. The normalized luminous intensity value is mapped to a preset perceived brightness function. The perceived brightness function can convert physical brightness into a value that matches the brightness perceived by the human eye. Through mapping, four brightness values that are consistent with human eye perception are obtained. Linear interpolation calculation is performed on the four perceived brightness values to generate multiple intermediate brightness values to form a continuous brightness change sequence, which is used to control the brightness of the lamp beads to smoothly transition between different levels. The brightness change sequence includes an increasing process and a decreasing process to form a complete brightness change cycle. At the same time, time allocation is performed on the complete brightness change cycle to determine the duration of each luminous level and the rate of brightness change. Through time allocation, the residence time of the lamp beads at different brightness levels and the transition speed from one brightness level to another are controlled. The four power values, four luminous flux values, four normalized luminous intensity values, four perceived brightness values, the brightness change sequence, the complete brightness change cycle, the duration of each luminous level and the rate of change are stored in the memory of the processing unit for subsequent real-time brightness adjustment control.
[0014] S2, performing current mapping for multiple light-emitting levels according to the electrical characteristics and light-emitting characteristics of the lamp beads, obtaining a current value corresponding to each light-emitting level, and storing the current value in a signal conversion unit; Specifically, the rated voltage and maximum allowable current value of the lamp bead are obtained. The equivalent resistance value of the lamp bead is calculated based on Ohm's law. The luminous characteristics of the lamp bead are analyzed. The luminous intensity of the lamp bead under different current conditions is tested to obtain a set of corresponding data of current and luminous intensity. These data are collected by experimental equipment and cover multiple current points in the range from the minimum starting current to the maximum allowable current. The current-luminous intensity data is input into the curve fitting algorithm for processing to fit a relationship model between current and luminous intensity. The model is a nonlinear mathematical function used to describe the effect of current change on luminous intensity. In order to optimize the luminous control, the relationship model between current and luminous intensity is derived to obtain a sensitivity function of luminous intensity changing with current. The sensitivity function reflects the degree of response of luminous intensity to current change under different current conditions. The luminous intensity values corresponding to the preset first level, second level, third level and fourth level are substituted into the sensitivity function to calculate the optimal working point current value under each luminous level. The working point current value refers to the current value that can achieve a balance between luminous effect and current efficiency at each level. The optimal operating point current value is range checked to ensure that the current values are between the minimum starting current and the maximum allowable current of the lamp bead. If some current values are beyond this range, they need to be adjusted. Based on the effective operating point current value, interpolation calculation is performed to obtain a sequence of transition current values between adjacent luminous levels, ensuring that the brightness changes more smoothly when the lamp bead transitions between different brightness levels. In order to keep the lamp bead stable under different temperature conditions, the effective current value and the transition current value sequence are input into the temperature compensation algorithm. The algorithm corrects the current according to the temperature change to ensure that the luminous intensity of the lamp bead is still in line with expectations even when the temperature rises or falls. After temperature compensation, the corrected current value is obtained, which takes into account the effect of temperature on the current and luminous efficiency to ensure the stability of the lamp bead luminescence. The corrected current value is quantized and converted into a discrete current value suitable for actual hardware implementation. The corrected current value is converted into a series of discrete values through quantization so that the system can perform control operations according to the discrete current value. The discrete current value is stored in the lookup table of the signal conversion unit. Through the lookup table, the system quickly selects the appropriate current value according to different luminous levels and environmental conditions to achieve precise luminous control of the lamp bead.
[0015] Furthermore, the junction temperature of the lamp bead is measured in real time. The junction temperature refers to the temperature of the semiconductor junction inside the lamp bead, which has a direct impact on the luminous efficiency and life of the lamp bead. After obtaining the current operating temperature value through a real-time temperature sensor or other detection means, the temperature value is compared with the preset standard operating temperature of the lamp bead under standard working conditions to obtain a temperature deviation value. The size and positive and negative directions of the temperature deviation value can reflect the temperature difference between the current working environment of the lamp bead and the standard environment. According to the temperature deviation value, the temperature-voltage characteristic curve of the lamp bead is queried. The voltage characteristics of semiconductor devices will change when the temperature changes. The increase in temperature often leads to a decrease in voltage, and the decrease in temperature leads to an increase in voltage. The voltage change at the corresponding temperature is found through the temperature-voltage characteristic curve. The voltage change caused by the temperature is added and subtracted from the rated voltage of the lamp bead to obtain the actual operating voltage after temperature compensation, which reflects the voltage level of the lamp bead working at the rated current under the current temperature conditions. The actual operating voltage after temperature compensation is multiplied by the effective current value to obtain the actual power value under the influence of temperature, which represents the actual electric power consumed by the lamp bead under the current temperature conditions. Based on the actual power value, combined with the power-luminous flux characteristic curve of the lamp bead, interpolation calculation is performed to obtain the luminous flux value after temperature compensation. The power-luminous flux characteristic curve is used to describe the luminous flux output by the lamp bead under different power conditions. The influence of temperature on power will further affect the actual luminous intensity of the lamp bead. Compare the temperature-compensated luminous flux value with the target luminous flux to obtain the luminous flux difference. The target luminous flux refers to the luminous intensity preset by the system and expected by the user, while the temperature-compensated luminous flux is the actual luminous intensity after considering the temperature effect. By comparing these two values, it is determined whether the temperature effect causes the actual luminous intensity to deviate from the expected. If there is a luminous flux difference, further current adjustment is performed to compensate for the change in luminous intensity caused by temperature. Based on the luminous flux difference, a reverse search is performed through the current-luminous flux characteristic curve of the lamp bead to obtain the current adjustment required for luminous flux compensation. The current adjustment indicates how much the driving current of the lamp bead needs to be adjusted in order to compensate for the luminous flux deviation caused by temperature change. The current required for compensation is accurately calculated by searching the curve. The current adjustment required for luminous flux compensation is superimposed on the effective current value and the transition current value sequence. The effective current value is the preset working current of the lamp bead at different luminous levels, and the transition current value sequence is used to achieve a smooth transition between different luminous levels. By superimposing the current adjustment of luminous flux compensation on these current values, it is ensured that in actual operation, the system can automatically adjust the drive current to ensure that the luminous intensity of the lamp bead meets the expected requirements. After superimposition, the corrected current value considering the temperature effect is obtained.
[0016] S3, generating a pulse width modulation signal sequence based on the current value, obtaining duty cycle values corresponding to a plurality of light emission levels, and arranging the duty cycle values according to a preset cycle mode; It should be noted that the discrete current values stored in the signal conversion unit are read to obtain four current values corresponding to the first level, the second level, the third level and the fourth level. Based on the rated voltage and the maximum current value of the lamp bead, the reference frequency and resolution of the pulse width modulation signal are calculated. The reference frequency is determined according to the response speed of the lamp bead and the characteristics of the power supply to ensure that the PWM signal can stably and efficiently control the luminous intensity of the lamp bead. At the same time, the resolution determines the fineness of the PWM signal when adjusting the brightness. The higher the resolution, the smoother the brightness adjustment. The four discrete current values are divided by the maximum current value respectively, and normalized to obtain four normalized current values between 0 and 1. The four normalized current values are nonlinearly transformed to obtain a brightness compensation value. The nonlinear transformation is designed based on the nonlinear perception characteristics of the human eye to brightness, for example, through gamma correction or other curve fitting techniques. Through nonlinear transformation, the brightness change of the lamp bead is more in line with the perception of the human eye, avoiding the brightness change being too abrupt or unnatural. Based on the brightness compensation value and the resolution of the pulse width modulation signal, four duty cycle values corresponding to the first level, the second level, the third level and the fourth level are calculated. The duty cycle value determines the ratio of high level to low level in the PWM signal, which directly affects the average current and luminous intensity of the lamp bead. The four duty cycle values are input into the interpolation algorithm for processing to generate a transition duty cycle value sequence between adjacent levels. The interpolation algorithm makes the brightness change process smoother by inserting intermediate values between the preset luminous levels, avoiding obvious jumps or flickering. The four duty cycle values and the transition duty cycle value sequence are arranged according to the preset cycle mode to form a complete duty cycle change cycle including increasing and decreasing processes. Based on the complete duty cycle change cycle, a pulse width sequence that changes with time is generated. The duty cycle values are arranged according to the time axis to form a continuously changing pulse width sequence to ensure that the PWM signal can be output according to the predetermined brightness change mode. In order to optimize the PWM signal, the generated pulse width sequence is input into the dithering algorithm for processing. The dithering algorithm effectively reduces the electromagnetic interference and harmonic distortion caused by the periodic changes of the PWM signal by introducing small random changes in the pulse width, thereby improving the overall performance and compatibility of the system. The target pulse width sequence is digitally encoded and converted into a pulse width modulation signal sequence that can be directly used by the digital controller. The process of digital encoding includes converting pulse width data into binary or other digital formats for storage and processing in the digital controller. The digital controller controls the driving current of the lamp beads according to the stored PWM signal sequence to achieve the preset luminous intensity and brightness change mode. The generated pulse width modulation signal sequence is stored in the memory of the processing unit.
[0017] S4, performing interpolation processing on the pulse width modulation signal sequence to obtain a gradual control sequence including a plurality of transition pulse width modulation signals; Specifically, the difference between two adjacent duty cycle values in the pulse width modulation signal sequence is calculated to determine the brightness change amplitude between two luminous levels, and obtain multiple duty cycle differences. Based on the preset gradient time and the system clock frequency, the number of interpolation points required between two adjacent duty cycle values is calculated. The gradient time determines the time required for the brightness to smoothly transition from one level to another, while the system clock frequency determines the update rate of the pulse width modulation signal. Through the combination of these two parameters, it is determined how many interpolation points the system needs to calculate in each clock cycle, thereby ensuring the smoothness and naturalness of the brightness change. The duty cycle difference is divided by the number of interpolation points to obtain the duty cycle increment value of each interpolation step. The duty cycle increment value indicates the amplitude by which the brightness should increase or decrease at each interpolation point. By gradually increasing or decreasing, a linear interpolation sequence from the starting duty cycle to the ending duty cycle is formed. The characteristic of the linear interpolation sequence is that the brightness changes at a uniform speed, which can ensure that the luminous intensity increases or decreases linearly over time and avoid abrupt brightness changes. The linear interpolation sequence is input into the S-curve generation algorithm for processing to obtain a nonlinear interpolation sequence with acceleration and deceleration characteristics. The acceleration and deceleration characteristics of the S-curve simulate a brightness change process that is more in line with the visual comfort of the human eye. The S-curve accelerates in the initial stage of brightness change and decelerates when approaching the target brightness, forming a smooth and natural transition effect. Based on the nonlinear interpolation sequence, the corresponding transition pulse width modulation signal is generated to obtain the initial gradient control sequence. The initial gradient control sequence is subjected to spectrum analysis to obtain the distribution of the signal on different frequency components. Through analysis, high-frequency components in the signal are found. These high-frequency components are usually caused by sudden brightness changes or system jitters, which can cause the lamp beads to flicker or become unstable in some cases. In order to eliminate potential high-frequency interference, the initial gradient control sequence is filtered to remove the high-frequency components therein and obtain a smooth gradient control sequence. In order to adapt to different system requirements or application scenarios, the smooth gradient control sequence is input into the dynamic range compression algorithm for processing to ensure that the transition between different brightness levels is not too intense, especially between higher or lower brightness levels. By compressing the range of brightness changes, a softer transition effect is achieved. The gradual control sequence including a plurality of transition pulse width modulation signals is stored in a buffer of the processing unit so as to be called in real time during actual operation of the system.
[0018] Furthermore, the linear interpolation sequence is normalized and mapped to a standardized interval of 0 to 1 to ensure that input data of different ranges can adapt to the unified S-shaped curve generation model, making the brightness transition effect more consistent and controllable. Based on the preset S-shaped curve parameters, two key factors that control the shape of the curve are calculated: the slope factor and the midpoint position. The slope factor determines the steepness of the curve and affects the intensity of the acceleration and deceleration stages, while the midpoint position determines the time point when the brightness change changes from acceleration to deceleration. The standardized linear interpolation sequence is substituted into the sigmoid function for transformation. The Sigmoid function is an S-shaped curve function that can simulate the process of acceleration and deceleration. Through the nonlinear characteristics of the sigmoid function, the initial linear interpolation sequence is converted into a curve with S-shaped acceleration and deceleration characteristics to generate an initial S-shaped curve sequence. The derivative of the initial S-shaped curve sequence is calculated to obtain the instantaneous rate of change of the curve at each point. The instantaneous rate of change reflects the speed of change of the curve at different positions and can help determine the rhythm of brightness change. Based on the instantaneous rate of change of the curve at each point, the threshold is judged to determine the demarcation points of the acceleration section, the uniform speed section and the deceleration section. The demarcation points divide the brightness change process into different stages, gradually accelerating from the initial brightness, maintaining a uniform speed when reaching the middle brightness, and finally gradually decelerating when approaching the target brightness. By adjusting the curve shape of the acceleration section and the deceleration section, the smoothness of the brightness change is optimized to obtain the target S-shaped curve. The target S-shaped curve is interpolated and mixed with the linear interpolation sequence to obtain a mixed sequence that comprehensively considers linear and nonlinear characteristics. Combining the advantages of the two change modes of linear and nonlinear, the final brightness change sequence can maintain linear stability and have the natural acceleration and deceleration characteristics of the S-shaped curve. The mixed sequence is denormalized to convert the standardized 0 to 1 range sequence back to the range corresponding to the original duty cycle value. The difference between adjacent points is calculated based on the nonlinear interpolation sequence to generate a dynamically adjusted step value sequence. The step value sequence represents the magnitude of the brightness change in each clock cycle. The dynamically adjusted step value sequence is matched with the system clock cycle. The clock cycle determines the speed of brightness change. By matching the clock cycle and the step value, accurate control of brightness change is achieved, and a nonlinear interpolation sequence with acceleration and deceleration characteristics is obtained. The nonlinear interpolation sequence with acceleration and deceleration characteristics is stored in the buffer of the processing unit.
[0019] S5, inputting the gradual control sequence into the driving unit for current conversion to obtain driving currents corresponding to multiple light-emitting levels, and using the driving currents to drive the lamp beads to emit light; Among them, the gradual control sequence is decoded, and the gradual control sequence contains multiple duty cycle values, which determine the brightness change of the lamp beads under different luminous levels. Through the decoding operation, the duty cycle value is converted into a digital control signal, reflecting the luminous intensity that the lamp beads should output at different time points. The digital control signal is input into the digital-to-analog converter for processing, and the digital signal is converted into a corresponding analog voltage signal. The analog voltage signal is amplified, and the low voltage signal output by the digital-to-analog converter is amplified to the input voltage range required by the drive unit to ensure that the drive circuit can work stably and provide sufficient current for the lamp beads. The amplified voltage signal meets the input requirements of the drive unit, thereby driving the current source to work and modulating the drive current corresponding to the duty cycle value. The drive current is input into the overcurrent protection circuit for detection to ensure that it operates within a safe range. If it is detected that the current exceeds the preset safety value, the overcurrent protection circuit will perform current limiting processing to obtain a current limiting drive current within a safe range. The current limiting drive current is smoothed and filtered to obtain a stable drive current with high-frequency ripple removed, ensuring the stability and uniformity of the lamp bead luminescence and eliminating visual flickering and jitter. The lamp beads are powered based on the stable drive current. The luminous intensity of the lamp bead depends on the size of the input current. By controlling the amplitude of the driving current, the brightness of the lamp bead is adjusted to ensure that it corresponds to the preset luminous level. At the same time, the junction temperature of the lamp bead is monitored in real time to obtain the lamp bead operating temperature data. The lamp bead operating temperature data is input into the temperature compensation algorithm for processing, and the driving current is dynamically adjusted according to the current operating temperature. A temperature correction coefficient is calculated to reflect the impact of temperature changes on current demand. For example, when the junction temperature rises, the luminous efficiency of the LED will decrease, and the driving current is increased to maintain the same brightness. When the junction temperature drops, the driving current is appropriately reduced to save energy and prevent excessive heating. Based on the temperature correction coefficient, the stable driving current is dynamically adjusted to generate a temperature-compensated driving current. The driving current can automatically adjust adaptively according to the temperature change to ensure that the lamp bead can maintain a stable luminous intensity under different temperature conditions. The temperature-compensated driving current is continuously output to the lamp bead to ensure the stability, reliability and safety of the lamp bead's lighting throughout the entire working cycle.
[0020] S6, real-time detection of the actual luminous intensity of the lamp bead is performed to obtain an actual intensity value, a compensation value is generated after the actual intensity value is compared with the theoretical intensity value, and the pulse width modulation signal sequence is adjusted according to the compensation value.
[0021] Specifically, the luminous intensity of the lamp beads is sampled using a photoelectric sensor. The photoelectric sensor converts the light signal into an electrical signal to generate the original light intensity data. The original light intensity data is filtered to eliminate high-frequency noise and abnormal fluctuations to obtain smooth light intensity data. The smoothed light intensity data is input into the calibration algorithm for processing to obtain the actual luminous intensity value after calibration. At the same time, the theoretical luminous intensity value is obtained by calculation based on the current pulse width modulation signal sequence and the preset lamp bead characteristic curve. The actual luminous intensity value is compared with the theoretical luminous intensity value to calculate the luminous intensity deviation value, which reflects the gap between the actual brightness of the lamp bead and the theoretical expected brightness. In order to eliminate this gap, the luminous intensity deviation value is input into the PID (proportional-integral-differential) controller for processing. The PID controller is a feedback control algorithm that can quickly and accurately calculate the initial compensation value by adjusting the proportional, integral and differential parameters. Fuzzy logic reasoning is performed based on the initial compensation value, and the compensation value is adjusted more flexibly according to the historical data and current conditions of the system to generate the target compensation value. The target compensation value is converted into the adjustment amount of the pulse width modulation signal, and the duty cycle correction value to be adjusted is calculated according to the target compensation value. The duty cycle correction value reflects the adjustment amount of the high level time in the PWM signal, and the change of the duty cycle directly affects the luminous intensity of the lamp bead. In this way, the current PWM signal sequence is updated to generate a corrected PWM signal sequence. The corrected pulse width modulation signal sequence is input into the drive unit for processing, and the drive unit generates a new drive current value according to the updated PWM signal. The lamp bead is driven by the new drive current value, and the whole process completes a complete closed-loop control cycle. The core of closed-loop control lies in real-time detection, feedback and adjustment. By real-time detection of the luminous intensity of the lamp bead, the difference between the actual brightness and the theoretical brightness is identified, and the appropriate compensation value is calculated through PID control and fuzzy logic reasoning, and then the PWM signal is adjusted to finally achieve dynamic control of the brightness of the lamp bead.
[0022] In one example, a plurality of luminous levels are preset to obtain a first level, a second level, a third level, and a fourth level corresponding to different luminous intensities, and the plurality of luminous levels are stored in a processing unit, including: obtaining the maximum rated power of the lamp bead to obtain a maximum power value, and dividing the maximum power value by a target value to obtain a power interval value; performing a decreasing calculation based on the maximum power value and the power interval value to obtain four power values corresponding to the first level, the second level, the third level, and the fourth level; fitting a luminous flux and power relationship curve of the lamp bead to obtain a mathematical function describing the relationship curve, and substituting the four power values into the mathematical function describing the relationship curve for calculation to obtain four luminous flux values corresponding to the first level, the second level, the third level, and the fourth level; and calculating the four luminous flux values. A normalization process is performed to obtain four normalized luminous intensity values between 0 and 1, and the four normalized luminous intensity values are mapped to a preset perceived brightness function to obtain four perceived brightness values; a linear interpolation calculation is performed on the four perceived brightness values to obtain a plurality of intermediate brightness values to form a continuous brightness change sequence, and the brightness change sequence is input into a loop control algorithm for processing to obtain a complete brightness change cycle including an increasing and decreasing process, and at the same time, a time allocation is performed on the complete brightness change cycle to obtain the duration and change rate of each luminous level; the four power values, the four luminous flux values, the four normalized luminous intensity values, the four perceived brightness values, the brightness change sequence, the complete brightness change cycle, the duration and change rate of each luminous level are stored in a memory of the processing unit.
[0023] In this example, the maximum rated power of the lamp bead is obtained. Assume that the maximum rated power of the lamp bead is , the target value is Indicates that the entire power range is divided into The maximum power Divide by target value , get the power interval value between each level, the calculation formula is as follows: ; in, is the power interval value, which indicates the power difference between each level. Based on this, the power value corresponding to each luminous level is calculated step by step from the maximum power value. Suppose the entire power range is divided into four luminous levels, namely , the power values from the first level to the fourth level are obtained by the following formula: ; in, Indicates The power value corresponding to the level. Fit the relationship curve between the luminous flux and power of the lamp bead. Assume that the luminous flux of the lamp bead and power The relationship between is approximated by a quadratic function, which is obtained by fitting experimental data and is expressed as: ; in, , and It is a coefficient obtained by fitting experimental data, describing the nonlinear relationship between power and luminous flux. Substituting into mathematical functions , and obtain the luminous flux values corresponding to the four luminous levels . In order to make the luminous flux values better adapt to the subsequent brightness adjustment, they are normalized and mapped to a standardized interval between 0 and 1. The normalized luminous intensity value is mapped to the preset perceived brightness function to reflect the human eye's perception of brightness. The perceived brightness function is nonlinear because the human eye's perception of brightness is nonlinear. A logarithmic function or a power function is used to describe this relationship. Assume that the logarithmic function is used to represent the perceived brightness: ; in, It is the perceived brightness value after the normalized luminous flux is mapped by the perceived brightness function. is a parameter that controls the shape of the perceived brightness function curve. Through the formula, we get the perceived brightness value corresponding to each level. In order to make the brightness of the lamp beads transition smoothly between different levels, linear interpolation calculation is performed on these four perceived brightness values to generate multiple intermediate brightness values. Multiple intermediate brightness values form a continuous brightness change sequence to ensure that the brightness transition of the lamp beads between different luminous levels will not be abrupt. Assuming that several intermediate brightness values are inserted between the first level and the second level, the interpolation formula can be expressed as: ; in, is the interpolated brightness value, is the number of interpolation points, Indicates the current step number of interpolation. The complete brightness change sequence is input into the loop control algorithm for processing to obtain a complete brightness change cycle including increasing and decreasing processes. The loop control algorithm can ensure that the brightness changes in an orderly manner over time, so that the lamp beads can gradually increase from low brightness to high brightness, and then gradually decrease to low brightness. The brightness change cycle is time-allocated to determine the duration of each luminous level and the rate of brightness change. For example, the duration of each level is determined according to the system clock frequency and the gradient time, so that the brightness change process is smoother and more natural. The four power values, four luminous flux values, four normalized luminous intensity values, four perceived brightness values, the brightness change sequence, the complete brightness change cycle, the duration of each luminous level and the change rate are stored in the memory of the processing unit. The processing unit quickly calls these data according to the pre-stored parameters during the actual operation to ensure that the lamp beads can control the light emission according to the set brightness level and change mode.
[0024] In one example, according to the electrical characteristics and luminous characteristics of the lamp bead, current mapping is performed on multiple luminous levels to obtain the current value corresponding to each luminous level, and the current value is stored in a signal conversion unit, including: obtaining the rated voltage and maximum allowable current of the lamp bead to obtain the rated voltage value and the maximum current value, and calculating the resistance based on the rated voltage value and the maximum current value to obtain the equivalent resistance value of the lamp bead; collecting the luminous intensity data of the lamp bead under different currents to obtain multiple groups of current-luminous intensity corresponding data, and inputting the multiple groups of current-luminous intensity corresponding data into a curve fitting algorithm for processing to obtain a relationship model between current and luminous intensity; and performing a derivative operation on the relationship model between current and luminous intensity. A sensitivity function of the luminous intensity varying with the current is obtained, and the luminous intensity values corresponding to the first level, the second level, the third level and the fourth level are substituted into the sensitivity function to obtain the optimal operating point current value for each luminous level; a range check is performed on the optimal operating point current value to obtain an effective current value between the minimum starting current and the maximum allowable current, and an interpolation calculation is performed based on the effective current value to obtain a sequence of transition current values between adjacent levels; the effective current value and the sequence of transition current values are input into a temperature compensation algorithm for processing to obtain a corrected current value that takes the temperature effect into account; the corrected current value is quantized to obtain a discrete current value, and the discrete current value is stored in a lookup table of the signal conversion unit.
[0025] In this example, the rated voltage is obtained from the data sheet of the lamp bead. and the maximum allowable current . Use Ohm's law to calculate the equivalent resistance of the lamp bead. According to Ohm's law, the resistance Pass voltage and current The ratio is calculated as follows: ; in, is the equivalent resistance value of the lamp bead, is the rated voltage of the lamp bead, is the maximum allowable current. Assuming the rated voltage of the lamp bead is 3.2 volts, the maximum allowable current is 0.7 amperes, and the equivalent resistance value is: ; The equivalent resistance value is used to determine the size of the driving current and the control strategy in the subsequent circuit design. In order to optimize the luminous intensity control of the lamp bead, the luminous intensity data of the lamp bead at different currents is collected, including multiple current points within the range from the minimum starting current to the maximum allowable current. At each current point, the luminous intensity of the lamp bead is measured. , and convert the current-luminous intensity data The data is input into the curve fitting algorithm for processing. The curve fitting algorithm generates a mathematical model describing the relationship between current and luminous intensity based on these experimental data. Usually, this relationship is nonlinear and is approximated using a quadratic polynomial. The fitted mathematical model is as follows: ; in, Indicates that the lamp is in current The luminous intensity under , and It is a coefficient obtained by fitting, which describes the nonlinear relationship between current and luminous intensity. The relationship model between current and luminous intensity is derived to obtain the sensitivity function of luminous intensity changing with current. The sensitivity function describes the sensitivity of luminous intensity to current changes under different currents. The derivation formula is as follows: ; Sensitivity function Indicates the current The speed at which the luminous intensity changes with the current. By calculating the sensitivity, the optimal working point of the lamp bead under different currents is determined to ensure the best luminous efficiency in practical applications. The luminous intensity values corresponding to the first level, the second level, the third level and the fourth level are Substitute the sensitivity function and calculate the optimal operating point current corresponding to each luminous level. The optimal operating point current value is the target current value of the system at each luminous level, which can ensure that the lamp has the best luminous efficiency when running at different brightness levels. Perform a range check on the optimal operating point current values. Make sure they are within the minimum starting current and the maximum allowable current If some current values exceed this range, appropriate adjustments are made to return them to a safe range. For example, if the optimal operating point current of a certain level exceeds , the system limits it to Interpolation calculation is performed based on the effective current value to generate a sequence of transition current values between adjacent luminous levels. Interpolation calculation ensures smoother brightness changes by inserting multiple intermediate current values between two adjacent luminous levels. The linear interpolation formula is as follows: ; in, is the interpolated current value, is the number of interpolation points, Indicates the current interpolation step number. The transition current value sequence is input into the temperature compensation algorithm for processing. Since the luminous characteristics of the lamp beads are affected by temperature changes, the increase in temperature will lead to a decrease in luminous efficiency, so temperature compensation is required. The temperature compensation algorithm is based on the current ambient temperature. And the temperature characteristics of the lamp beads, calculate a correction factor , and apply it to the current value. The temperature correction formula is as follows: ; in, is the current value after temperature compensation, is the current value without temperature compensation, It is the temperature correction coefficient, which is obtained through experiments based on the temperature curve. Through temperature compensation, the driving current is automatically adjusted to ensure that the lamp beads can maintain a stable luminous intensity under different temperature conditions. The corrected current value after temperature compensation is quantized and converted into a discrete current value suitable for the digital control system. The discretization process maps the continuous current value to a fixed current step that the system hardware can support, ensuring that the lamp beads can be driven stably in actual operation. The quantized discrete current value is stored in the lookup table of the signal conversion unit. The lookup table is used to quickly find and apply pre-calculated current values, so that the system can respond quickly under different luminous levels and environmental conditions, ensuring the stability and consistency of the lamp bead luminescence.
[0026] In one example, the effective current value and the transition current value sequence are input into the temperature compensation algorithm for processing to obtain the corrected current value considering the temperature effect, including: measuring the junction temperature of the lamp bead in real time to obtain the current operating temperature value, and comparing the current operating temperature value with the preset standard operating temperature to obtain the temperature deviation value; querying the temperature-voltage characteristic curve based on the temperature deviation value to obtain the voltage change caused by the temperature, and performing addition and subtraction operations on the voltage change caused by the temperature and the rated voltage of the lamp bead to obtain the actual working voltage after temperature compensation; comparing the actual working voltage after temperature compensation with the effective The current value is multiplied to obtain the actual power value under the influence of temperature, and the interpolation calculation is performed based on the actual power value under the influence of temperature and the power-luminous flux characteristic curve of the lamp bead to obtain the luminous flux value after temperature compensation; the luminous flux value after temperature compensation is compared with the target luminous flux to obtain the luminous flux difference, and a reverse search is performed based on the luminous flux difference and the current-luminous flux characteristic curve of the lamp bead to obtain the current adjustment amount required for luminous flux compensation; the current adjustment amount required for luminous flux compensation, the effective current value and the transition current value sequence are superimposed to obtain the corrected current value considering the temperature effect.
[0027] In this example, a temperature sensor is used to monitor the junction temperature of the lamp bead. The junction temperature of the lamp bead refers to the operating temperature of its internal semiconductor junction. This parameter directly affects the luminous efficiency and electrical characteristics of the lamp bead. The current operating temperature value is obtained in real time through the sensor and recorded as At the same time, a standard operating temperature is pre-set , which is the ideal working temperature of the lamp. With standard temperature Compare and calculate the temperature deviation : ; Temperature deviation It is an important parameter that affects subsequent electrical adjustments, because temperature changes will cause changes in the voltage and current characteristics of the lamp beads. , find the temperature-voltage characteristic curve of the lamp bead, and get the voltage change caused by temperature. Add and subtract the voltage change caused by temperature and the rated voltage of the lamp bead: ; in, is the actual working voltage after temperature compensation, is the rated voltage of the lamp bead, The voltage offset caused by temperature change. This compensation voltage reflects the impact of temperature fluctuations on the electrical characteristics of the lamp beads. The effective working current of the lamp bead Multiply them together to get the actual power value under the influence of temperature. The calculation formula is: ; in, is the actual power under the influence of temperature, is the working voltage after compensation, is the working current of the lamp bead. Based on the actual power value under the influence of temperature and the power-luminous flux characteristic curve of the lamp bead, the luminous flux value after temperature compensation is obtained. The luminous flux calculated by design is , and the target luminous flux is , the luminous flux difference between the two is calculated by the following formula: ; in, Indicates the difference between the actual luminous flux and the target luminous flux. If it is negative, it means that the current luminous flux is lower than the target value, otherwise it means that the luminous flux is higher than the target value. In order to eliminate the luminous flux difference, based on the current-luminous flux characteristic curve of the lamp bead, the current that needs to be adjusted is determined by the reverse search method. Suppose the current adjustment required for luminous flux compensation is , which is calculated by looking up a table or interpolating a curve. The effective working current , and a transition current value sequence are superimposed to obtain the final corrected current value. The transition current value is regarded as a smoothing factor of the adjustment process to ensure that the current adjustment is not too drastic to avoid damage to the lamp beads. The final formula is: ; in, To take into account the temperature effect and the difference in luminous flux, It is the current sequence value used for transition to ensure stability during current regulation.
[0028] In one example, a pulse width modulation signal sequence is generated based on the current value to obtain duty cycle values corresponding to a plurality of light emission levels, and the duty cycle values are arranged according to a preset cycle mode, including: The discrete current values stored in the signal conversion unit are read to obtain four current values corresponding to the first level, the second level, the third level, and the fourth level; the reference frequency and resolution of the pulse width modulation signal are obtained based on the rated voltage and the maximum current value of the lamp bead, and the four current values are divided by the maximum current value for normalization to obtain four normalized current values between 0 and 1; the four normalized current values between 0 and 1 are nonlinearly transformed to obtain the brightness compensation value, and the brightness compensation value and the resolution of the pulse width modulation signal are calculated to obtain the brightness compensation value corresponding to the first level, the second level, the third level, and the fourth level. The invention relates to a method for generating a pulse width sequence corresponding to a duty cycle; inputting the four duty cycle values into an interpolation algorithm for processing to obtain a transition duty cycle value sequence between adjacent levels, and arranging the four duty cycle values and the transition duty cycle value sequence to obtain a complete duty cycle variation cycle including an increasing and decreasing process; generating a pulse width sequence that varies with time based on the complete duty cycle variation cycle, and inputting the pulse width sequence that varies with time into a jitter algorithm for processing to obtain a target pulse width sequence; digitally encoding the target pulse width sequence to obtain a pulse width modulation signal sequence that can be directly used by a digital controller, and storing the pulse width modulation signal sequence in a memory of a processing unit.
[0029] In this example, the current lookup table stored in the signal conversion unit is accessed. The discrete current values stored in the signal conversion unit are read to obtain four current values corresponding to the first level, the second level, the third level, and the fourth level, corresponding to four different working states of the lamp bead from the lowest brightness to the highest brightness. Based on the rated voltage of the lamp bead and maximum current Determines the reference frequency and resolution of the pulse width modulation (PWM) signal. Reference frequency for pulse width modulation It is the core parameter of the PWM signal in the system and determines the working speed of the PWM signal. In order to ensure the stable light emission of the lamp beads at different brightness, the reference frequency is selected to be several hundred hertz to several thousand hertz. Resolution The accuracy of the duty cycle value that the PWM signal can generate is calculated by the frequency of the timer or system clock. Assume that the rated voltage of the lamp bead is 3.2 volts and the maximum current is 0.7 amperes. The reference frequency is calculated by the system clock frequency. and PWM cycle The reciprocal of is defined as: ; For example, if the system clock is 16MHz and a 1kHz PWM signal is required, the base frequency is set to 1kHz and the resolution is determined by the system hardware. Normalization is the process of scaling the current value to a range between 0 and 1 for subsequent brightness compensation and duty cycle calculation. By dividing each current value by the maximum current To calculate: ; in, , the normalized current value is transformed nonlinearly to calculate the brightness compensation value. Brightness compensation is to match the human eye's perception of brightness, because the human eye's perception of light is not linear, but closer to a logarithmic or gamma curve. Assume that a simple gamma correction function is used to describe the nonlinear transformation: ; in, It is The brightness compensation value of the level, It is the gamma correction parameter, usually between 2 and 2.2. and PWM resolution , calculate the duty cycle value corresponding to each brightness level The duty cycle determines the duration of the high level in the PWM signal and is proportional to the luminous intensity of the lamp bead. The duty cycle calculation formula is as follows: ; Through the formula, we get four duty cycle values In order to make the brightness transition smoothly between levels, the duty cycle value is input into the interpolation algorithm to generate a transition duty cycle sequence between adjacent brightness levels. The linear interpolation algorithm is used to interpolate the intermediate transition values to make the brightness change softer. and Insert two transition points between them and use linear interpolation to calculate the intermediate duty cycle value: ; in is the number of interpolation points, is the index of the current interpolation point. Through interpolation, more duty cycle value sequences are generated to form a complete transition sequence from the lowest brightness to the highest brightness. The transition duty cycle values are arranged in increasing and decreasing order to form a complete brightness change cycle, ensuring that the lamp beads can gradually dim smoothly while gradually brightening, and finally realize cyclic control. Based on the generated complete duty cycle change cycle, a pulse width sequence that changes with time is constructed. This sequence controls the output of the PWM signal and ensures that the brightness of the lamp beads changes gradually over time. In order to avoid electromagnetic interference and harmonic distortion in the PWM signal, the pulse width sequence is input into the dithering algorithm for processing. The dithering algorithm effectively reduces the periodic noise in the PWM signal by introducing tiny random changes. The target pulse width sequence is digitally encoded and converted into a PWM signal sequence that can be directly used by the digital controller. These pulse width modulation signal sequences are stored in the memory of the processing unit so that the system can quickly call these pre-calculated signal sequences during actual operation to achieve precise control of the brightness of the lamp beads.
[0030] In one example, a pulse width modulation signal sequence is interpolated to obtain a gradual control sequence including a plurality of transition pulse width modulation signals, including: performing difference calculation on two adjacent duty cycle values in the pulse width modulation signal sequence to obtain a plurality of duty cycle differences, and performing calculation based on a preset gradual change time and a system clock frequency to obtain the number of interpolation points between two adjacent duty cycle values; dividing the duty cycle difference by the number of interpolation points to obtain a duty cycle increment value for each interpolation step, and accumulating the duty cycle increment values to obtain a linear interpolation sequence from a starting duty cycle to an ending duty cycle; and inputting the linear interpolation sequence into an S-curve generation algorithm for processing. The invention relates to a method for processing a linear gradient control sequence and a linear gradient control sequence. The linear gradient control sequence is processed to obtain a nonlinear interpolation sequence with acceleration and deceleration characteristics; a corresponding transition pulse width modulation signal is generated based on the nonlinear interpolation sequence to obtain an initial gradual control sequence, and a spectrum analysis is performed on the initial gradual control sequence to obtain a frequency distribution characteristic of the signal; the initial gradual control sequence is filtered based on the frequency distribution characteristic of the signal to obtain a smooth gradual control sequence with high-frequency components removed, and the smooth gradual control sequence is input into a dynamic range compression algorithm for processing to obtain a gradual control sequence including a plurality of transition pulse width modulation signals, and the gradual control sequence including a plurality of transition pulse width modulation signals is stored in a buffer of the processing unit.
[0031] In this example, pulse width modulation (PWM) controls the transmission of current by adjusting the duty cycle, thereby adjusting the brightness of the lamp bead. In this process, the goal is to make the brightness transition smoothly from one level to another, so multiple intermediate values are inserted between two adjacent duty cycle values to achieve a smooth transition of light intensity. Suppose there are two adjacent duty cycle values and , by calculating the difference between the two , determine the magnitude of the brightness change: ; in, and are the starting and ending duty cycle values, respectively, and is the duty cycle difference between these two values. Based on the preset fade time and system clock frequency , calculate the number of interpolation points that need to be inserted , that is, how many small steps the duty cycle value is divided into during the gradient process. The formula for calculating the number of interpolation points is as follows: ; in, is the expected gradient time, indicating the transition from Transition to The total time required, is the system clock frequency, which determines the number of times the duty cycle value can be updated per second. , the duty cycle difference Divide by , get the duty cycle increment value of each interpolation step ; The increment value indicates the duty cycle change of each interpolation point and determines the step size of the brightness change. Perform cumulative calculations to generate the starting duty cycle To terminate the duty cycle The linear interpolation sequence of : ; in, , Represents the duty cycle value of each interpolation point, as As the brightness increases, Change to . The linear interpolation sequence is input into the S-shaped curve generation algorithm for processing. The S-shaped curve can better simulate the acceleration and deceleration characteristics of brightness. By inputting the linear interpolation sequence into the S-shaped curve generation algorithm, a nonlinear interpolation sequence with natural acceleration and deceleration characteristics is generated. The S-shaped curve is usually implemented using the sigmoid function: ; in, is the output of the S-shaped curve, is the parameter that controls the steepness of the curve, is the position of the midpoint of the curve. Each duty cycle value of the linear interpolation sequence is taken as input , after S-shaped curve transformation, the nonlinear duty cycle sequence is obtained , which can better reflect the visual effects of acceleration and deceleration. Based on the nonlinear interpolation sequence, the corresponding transition pulse width modulation signal is generated to form the initial gradual control sequence. The initial gradual control sequence is subjected to spectrum analysis to understand the distribution of the signal on different frequency components. Spectral analysis helps detect high-frequency components in the signal, which cause unstable phenomena such as electromagnetic interference or lamp bead flickering. The results of spectrum analysis are realized through Fourier transform, which converts the time domain signal into the frequency domain signal, revealing the strength of different frequency components: ; in, is the spectrum of the signal, is the time domain signal, is the frequency. Through spectrum analysis, the high-frequency noise component in the signal is found. The initial gradient control sequence is filtered to remove high-frequency noise and obtain a smooth gradient control sequence. The filter uses a low-pass filter to eliminate high-frequency components and retain low-frequency signals, so that the duty cycle changes more smoothly. After completing the filtering process, the smoothed gradient control sequence is input into the dynamic range compression algorithm to control the range of brightness change and avoid excessive brightness fluctuations under extreme brightness conditions. Dynamic range compression is achieved through a nonlinear mapping function, which compresses the high-brightness part and enhances the low-brightness part to ensure that the brightness of the lamp beads changes more evenly. The gradient control sequence that has been filtered and smoothed contains multiple transition pulse width modulation signals. These signals can ensure the smooth transition of the lamp beads between different brightness levels and maintain the stability of the system. The gradient control sequence containing multiple transition pulse width modulation signals is stored in the buffer of the processing unit for real-time call.
[0032] In one example, a linear interpolation sequence is input into an S-shaped curve generation algorithm for processing to obtain a nonlinear interpolation sequence with acceleration and deceleration characteristics, including: normalizing the linear interpolation sequence to obtain a standardized sequence with a value range of 0 to 1, and calculating based on preset S-shaped curve parameters to obtain a slope factor and a midpoint position that control the shape of the curve; substituting the standardized sequence into a sigmoid function for transformation to obtain an initial S-shaped curve sequence, and performing derivative calculation on the initial S-shaped curve sequence to obtain an instantaneous rate of change of the curve at each point; performing threshold judgment based on the instantaneous rate of change of the curve at each point to obtain an acceleration segment, a uniform speed segment, and a deceleration segment. The invention discloses a method for obtaining a target S-shaped curve by determining the dividing point of the acceleration segment and adjusting the curve shapes of the acceleration segment and the deceleration segment; interpolating and mixing the target S-shaped curve with the linear interpolation sequence to obtain a mixed sequence that comprehensively considers linear and nonlinear characteristics; performing inverse normalization processing on the mixed sequence to obtain a nonlinear interpolation sequence corresponding to the original duty cycle value range, and calculating the difference between adjacent points based on the nonlinear interpolation sequence to obtain a dynamically adjusted step value sequence; matching the dynamically adjusted step value sequence with the system clock cycle to obtain a nonlinear interpolation sequence with acceleration and deceleration characteristics, and storing the nonlinear interpolation sequence with acceleration and deceleration characteristics in a buffer of the processing unit.
[0033] In this example, the linear interpolation sequence is normalized to map interpolation data of different ranges to a uniform interval between 0 and 1 for subsequent nonlinear processing. The calculation is based on the preset S-curve parameters. The S-curve is implemented by the sigmoid function, and its basic form is: ; in, is the slope factor, which controls the steepness of the curve; It is the midpoint of the curve, which determines the center point of the smooth transition of the curve; is the normalized interpolation point For example, suppose , and the midpoint , then the change of the S-shaped curve will be more obvious near 0.5, forming a nonlinear transition of acceleration and deceleration. In order to obtain the initial S-shaped curve sequence, the normalized linear interpolation sequence Substitute the sigmoid function to get the corresponding S-shaped curve sequence The value of each point produces different acceleration and deceleration effects depending on its distance from the midpoint. The derivative of the initial S-curve sequence is calculated to obtain the instantaneous rate of change of the curve at each point. The derivative calculation formula is as follows: ; in, is the derivative of the S-shaped curve, that is, the instantaneous rate of change. By calculating the instantaneous rate of change of each point, the speed of change of the curve can be determined. ), the speed of change is the largest at the beginning of the curve, while at the two ends of the curve, the speed of change is slower. Based on the instantaneous rate of change of each point, a threshold judgment is performed to divide the dividing points of the acceleration segment, the uniform speed segment, and the deceleration segment. The area with a large instantaneous rate of change is defined as the uniform speed segment, while the part with a lower rate of change is the acceleration segment and the deceleration segment. By analyzing these dividing points, the acceleration segment and the deceleration segment of the S-shaped curve are adjusted to make the transition smoother or more in line with the specific needs of the system. After completing the curve adjustment, the target S-shaped curve is obtained. The target S-shaped curve is interpolated and mixed with the original linear interpolation sequence. Combining the advantages of linear change and nonlinear change, the stability of the linear transition can be maintained, and the natural acceleration and deceleration effects of the S-shaped curve can be introduced. The formula for interpolation mixing is: ; in, is the mixed sequence value, is the blending weight, which controls the weight ratio of linear interpolation and S-curve. The value is used to adjust the smoothness of brightness transition in different application scenarios. Denormalization is performed to convert the normalized value back to the original duty cycle range. The denormalization formula is as follows: ; in, is a nonlinear interpolation sequence after denormalization, representing the brightness value corresponding to the original duty cycle range. In this way, the mixed sequence is converted into a pulse width modulation signal that can be actually applied. The difference between adjacent points is calculated based on the nonlinear interpolation sequence to obtain a dynamically adjusted step value sequence. The step value sequence reflects the speed and amplitude of the brightness change at each moment, and is an important parameter for the system to perform real-time brightness adjustment. The calculation formula of the step value sequence is: ; in, It is and The difference between the interpolation points is the brightness change of each step. By calculating these differences, a sequence of brightness changes that gradually increases or decreases is generated. The dynamically adjusted step value sequence is matched with the system clock cycle. The system clock cycle determines how many times the brightness value is updated per second and controls the rate of brightness change. By synchronizing the step value sequence with the clock cycle, it is ensured that the rhythm of brightness change meets the preset acceleration and deceleration requirements. A nonlinear interpolation sequence with acceleration and deceleration characteristics is obtained and stored in the buffer of the processing unit. The nonlinear interpolation sequence can be called in real time in actual operation to adjust the brightness change of the lamp beads, thereby achieving a smooth brightness transition.
[0034] In one example, a gradual control sequence is input into a driving unit for current conversion to obtain driving currents corresponding to a plurality of light-emitting levels, and the driving currents are used to drive the lamp beads to emit light, including: The gradual control sequence is decoded to obtain a digital control signal containing multiple duty cycle values, and the digital control signal is input into a digital-to-analog converter for processing to obtain an analog voltage signal; the analog voltage signal is amplified to obtain an amplified voltage signal that meets the input requirements of the drive unit, and the current source is modulated based on the amplified voltage signal to obtain a drive current corresponding to the duty cycle value; the drive current is input into an overcurrent protection circuit for detection to obtain a current-limited drive current within a safe range, and the current-limited drive current is smoothed and filtered to obtain a stable drive current with high-frequency ripple removed; the lamp beads are powered based on the stable drive current to obtain the luminous intensity of the lamp beads corresponding to the luminous level, and the junction temperature of the lamp beads is monitored in real time to obtain the operating temperature data of the lamp beads; the operating temperature data of the lamp beads is input into a temperature compensation algorithm for processing to obtain a temperature correction coefficient, and the stable drive current is dynamically adjusted based on the temperature correction coefficient to obtain the temperature-compensated drive current, and the drive current is continuously output to the lamp beads.
[0035] In this example, a gradient control sequence is decoded. A gradient control sequence is a digital signal containing multiple duty cycle values, each of which determines the corresponding brightness output. By decoding this sequence, the duty cycle values corresponding to each moment are extracted to form a digital control signal for controlling the brightness of the lamp beads. These digital control signals represent the duty cycle that the lamp beads should maintain at different times, that is, the duty time ratio of the pulse width modulation (PWM) signal. For example, a duty cycle of 50% means that the brightness is half of the full brightness, and a duty cycle of 100% means full brightness. These duty cycle values are used as input to a digital-to-analog converter (DAC) to convert discrete digital signals into continuous analog voltage signals. The output of the digital-to-analog converter is a voltage value proportional to the input duty cycle value, representing the voltage that the lamp beads should obtain at the current moment. The analog voltage signal is amplified to generate an amplified voltage signal that meets the input requirements of the drive unit. The amplified voltage signal can provide sufficient power to ensure that the lamp beads obtain sufficient driving voltage at high brightness. The current source is modulated based on the amplified voltage signal to convert the voltage into a driving current corresponding to the duty cycle value. The output current of the current source is adjusted according to the input amplified voltage signal. The higher the voltage, the greater the output current. The size of the driving current determines the luminous intensity of the lamp bead. For example, when the duty cycle is 50%, the output current of the current source is 0.5A, and when the duty cycle is 100%, the current will reach 1A, thereby controlling the brightness of the lamp bead. Before the driving current output by the current source enters the lamp bead, it is detected by the overcurrent protection circuit. The function of the overcurrent protection circuit is to prevent the driving current from exceeding the safe range and ensure the safe operation of the lamp bead. Assuming that the maximum allowable current within the safety range is 1A, if the current is detected to exceed this value, the overcurrent protection circuit will automatically limit the current and reduce it to the current-limited driving current within the safety range. The driving current after current limiting is smoothed and filtered. The function of the filter is to remove high-frequency components and obtain a more stable current. After filtering, the driving current becomes smooth and stable, eliminating the problem of flickering or uneven brightness of the lamp bead caused by current fluctuations. The stable driving current is input to the lamp bead to power it. The luminous intensity of the lamp bead is proportional to the input driving current. The larger the current, the higher the luminous intensity. By controlling the input current, the brightness of the lamp bead is precisely adjusted to ensure that it reaches the expected luminous level. At the same time, the junction temperature of the lamp bead is monitored in real time. The junction temperature is the operating temperature of the semiconductor junction inside the lamp bead, which has an important impact on its luminous efficiency and life. The current operating temperature data of the lamp bead is obtained through the temperature sensor. Assuming that the junction temperature of the lamp bead is 85°C and its standard operating temperature is 75°C, the system performs temperature compensation based on this difference. The temperature compensation algorithm calculates the temperature correction coefficient based on the real-time temperature data , this coefficient is used to adjust the driving current to ensure that the lamp can maintain a stable luminous intensity under high or low temperature conditions. The temperature correction coefficient is calculated by the following formula: ; in, is the temperature coefficient, which indicates the ratio by which the drive current needs to be reduced for every 1°C increase in temperature. is the current temperature, is the standard temperature. Assume that the temperature coefficient k=0.01, the current temperature is 85°C, and the standard temperature is 75°C, then the temperature correction coefficient is: ; Based on this temperature correction coefficient, the stable driving current is dynamically adjusted to obtain the driving current after temperature compensation. The adjusted current is calculated by the following formula: ; Assuming the stable drive current is 1A and the temperature correction coefficient is 0.9, the drive current after temperature compensation is: ; This means that under the current temperature conditions, the system will reduce the drive current to 0.9A to adapt to the temperature rise and prevent the lamp beads from being damaged due to overheating. The temperature-compensated drive current will continue to be output to the lamp beads to ensure that they can maintain a stable brightness output when the temperature changes.
[0036] In one example, the actual luminous intensity of the lamp bead is detected in real time to obtain the actual intensity value, the actual intensity value is compared with the theoretical intensity value to generate a compensation value, and the pulse width modulation signal sequence is adjusted according to the compensation value, including: using a photoelectric sensor to sample the luminous intensity of the lamp bead to obtain original light intensity data, and filtering the original light intensity data to obtain smoothed light intensity data; inputting the smoothed light intensity data into a calibration algorithm for processing to obtain the calibrated actual luminous intensity value, and calculating based on the current pulse width modulation signal sequence and a preset lamp bead characteristic curve to obtain the corresponding theoretical luminous intensity value; comparing the actual luminous intensity value and The difference between the theoretical luminous intensity values is calculated to obtain the luminous intensity deviation value, the luminous intensity deviation value is input into the PID controller for processing to obtain the initial compensation value, and fuzzy logic reasoning is performed based on the initial compensation value to obtain the target compensation value; the target compensation value is converted into the adjustment amount of the pulse width modulation signal to obtain the duty cycle correction value, and the current pulse width modulation signal sequence is updated based on the duty cycle correction value to obtain the corrected pulse width modulation signal sequence; the corrected pulse width modulation signal sequence is input into the drive unit for processing to obtain a new drive current value, and the lamp beads are driven with the new drive current value to complete a closed-loop control cycle.
[0037] In this example, the light intensity of the lamp beads is sampled in real time through a photoelectric sensor. A photoelectric sensor is a device that converts light signals into electrical signals. It can capture the light emitted by the lamp beads when they are working and convert it into a voltage signal. Through the sampling process, real-time raw light intensity data is obtained. . Filter the raw light intensity data. Use a low-pass filter to eliminate high-frequency noise, retain low-frequency components, and obtain smooth light intensity data. Suppose the output of the filter is , then the smoothed light intensity data formula is: ; in, is the size of the filter window, It is The original light intensity data of the sampling times. Through this formula, The sampling points are averaged to eliminate irregular fluctuations and obtain a stable light intensity signal. Input into the calibration algorithm for processing to eliminate the nonlinear relationship between the sensor and the lamp beads, so that the output light intensity data can accurately reflect the actual luminous intensity. Suppose the actual luminous intensity value after calibration is , linear calibration is performed using the following formula: ; in, and is the calibration coefficient, obtained through pre-experimental calibration. These coefficients can convert the voltage signal output by the sensor into the actual light intensity of the lamp bead. Through the formula, the actual luminous intensity value after calibration is obtained At the same time, according to the current pulse width modulation (PWM) signal sequence and the preset lamp bead characteristic curve, the theoretical luminous intensity value that the lamp bead should produce under ideal conditions is calculated. Assume that the duty cycle of the PWM signal is , the characteristic curve of the lamp bead is , then the theoretical luminous intensity value Obtained by the following formula: ; in, It is a characteristic curve function fitted based on the relationship between lamp bead current and light intensity, indicating the duty cycle The corresponding theoretical luminous intensity. By calculating the duty cycle The corresponding theoretical value , compare it with the actual luminous intensity value, and calculate the luminous intensity deviation value ; Luminous intensity deviation Indicates the difference between the actual luminous intensity of the current lamp bead and the theoretical expectation. If the deviation is positive, it means that the lamp bead is not luminous enough; if the deviation is negative, it means that the lamp bead is too bright. Compensation adjustment is made based on this deviation value. In order to adjust this deviation, the deviation value The input is processed in a PID (Proportional-Integral-Derivative) controller. The PID controller is a feedback control algorithm that can eliminate the deviation of the luminous intensity by adjusting the duty cycle. The output of the PID controller is the initial compensation value. , expressed as: ; in, , , They are the proportional, integral and differential coefficients of the PID controller. They control the speed, amplitude and stability of the compensation. Through the feedback of the PID controller, a preliminary duty cycle adjustment is obtained. Fuzzy logic reasoning is introduced on the basis of PID control. Fuzzy logic can adjust the compensation value more flexibly according to the size and change trend of the deviation value, and obtain a more accurate target compensation value. Through fuzzy logic reasoning, the compensation strategy is intelligently adjusted according to the current control environment to obtain a smoother brightness change. Converted into the adjustment amount of PWM signal. By adjusting the duty cycle of PWM signal, the luminous intensity of the lamp bead is changed. The duty cycle correction value after adjustment It can be expressed as:
[0038] in, is the current duty cycle value, is the target compensation value. Through this adjustment, a corrected PWM signal sequence is generated to ensure that the luminous intensity of the lamp bead is close to the theoretical value. The corrected PWM signal sequence is input into the drive unit to generate a new drive current value The drive current is proportional to the duty cycle of the PWM signal. The new drive current is calculated by the following formula: ; in, is the maximum allowable current, is the corrected duty cycle value. Through this formula, the corresponding current is generated according to the duty cycle to drive the lamp bead to emit light. Assume the maximum current , the corrected duty cycle is 80%, then the new drive current is: ; New drive current value It is used to drive the lamp beads to complete a complete closed-loop control cycle. During this cycle, the photoelectric sensor detects the luminous intensity in real time, uses PID control and fuzzy logic to make compensation adjustments, and controls the driving current through PWM signals to achieve precise control of the brightness of the lamp beads.
[0039] Reference Figure 2 This embodiment provides a hierarchical adjustment control system for lamp bead light emission, including: A preset module 1, used for presetting a plurality of luminous levels, obtaining a first level, a second level, a third level and a fourth level corresponding to different luminous intensities, and storing the plurality of luminous levels in a processing unit; Mapping module 2, used to perform current mapping on multiple luminous levels according to the electrical characteristics and luminous characteristics of the lamp beads, obtain the current value corresponding to each luminous level, and store the current value in the signal conversion unit; Arrangement module 3, used to generate a pulse width modulation signal sequence based on the current value, obtain duty cycle values corresponding to multiple light emission levels, and arrange the duty cycle values according to a preset cycle mode; An interpolation module 4 is used to perform interpolation processing on the pulse width modulation signal sequence to obtain a gradual control sequence including a plurality of transition pulse width modulation signals; The conversion module 5 is used to input the gradual control sequence into the driving unit for current conversion, obtain the driving current corresponding to the multiple light-emitting levels, and use the driving current to drive the lamp beads to emit light; The adjustment module 6 is used to detect the actual luminous intensity of the lamp bead in real time to obtain the actual intensity value, generate a compensation value after comparing the actual intensity value with the theoretical intensity value, and adjust the pulse width modulation signal sequence according to the compensation value.
[0040] In this embodiment, for the specific implementation of each unit in the above system embodiment, please refer to the above method embodiment, which will not be repeated here.
[0041] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0042] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.
[0043] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0044] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
[0045] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, system, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, system, article or method. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, system, article or method including the element.
[0046] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for controlling the grading of light emission of a lamp bead, characterized in that: The following steps are involved: Presetting a plurality of luminous levels to obtain a first level, a second level, a third level, and a fourth level corresponding to different luminous intensities, and storing the plurality of luminous levels in a processing unit; According to the electrical characteristics and luminous characteristics of the lamp beads, current mapping is performed on the multiple luminous levels to obtain a current value corresponding to each luminous level, and the current value is stored in a signal conversion unit; generating a pulse width modulation signal sequence based on the current value, obtaining duty cycle values corresponding to the plurality of light emission levels, and arranging the duty cycle values according to a preset cycle mode; Performing interpolation processing on the pulse width modulation signal sequence to obtain a gradual control sequence including a plurality of transition pulse width modulation signals; Inputting the gradual change control sequence into a driving unit for current conversion to obtain a driving current corresponding to the multiple light emission levels, and using the driving current to drive the lamp bead to emit light; The actual luminous intensity of the lamp bead is detected in real time to obtain an actual intensity value, the actual intensity value is compared with the theoretical intensity value to generate a compensation value, and the pulse width modulation signal sequence is adjusted according to the compensation value.
2. The hierarchical adjustment control method of lamp bead light emission according to claim 1 is characterized in that: The method of presetting a plurality of luminous levels to obtain a first level, a second level, a third level and a fourth level corresponding to different luminous intensities, and storing the plurality of luminous levels in a processing unit comprises: The maximum rated power of the lamp bead is obtained to obtain a maximum power value, and the maximum power value is divided by a target value to obtain a power interval value; Perform a decreasing calculation based on the maximum power value and the power interval value to obtain four power values corresponding to the first level, the second level, the third level and the fourth level; Fitting the relationship curve between the luminous flux and power of the lamp bead to obtain a mathematical function describing the relationship curve, and substituting four power values into the mathematical function describing the relationship curve for calculation to obtain four luminous flux values corresponding to the first level, the second level, the third level and the fourth level; Normalizing the four luminous flux values to obtain four normalized luminous intensity values between 0 and 1, and mapping the four normalized luminous intensity values to a preset perceived brightness function to obtain four perceived brightness values; Performing linear interpolation calculation on the four perceived brightness values to obtain multiple intermediate brightness values to form a continuous brightness change sequence, and inputting the brightness change sequence into a loop control algorithm for processing to obtain a complete brightness change cycle including an increasing and decreasing process, and at the same time, performing time allocation on the complete brightness change cycle to obtain the duration and change rate of each luminous level; The four power values, the four luminous flux values, the four normalized luminous intensity values, the four perceived brightness values, the brightness change sequence, the complete brightness change cycle, the duration of each luminous level and the change rate are stored in a memory of the processing unit.
3. The hierarchical regulation control method of lamp bead light emission according to claim 2 is characterized in that: According to the electrical characteristics and luminous characteristics of the lamp beads, current mapping is performed on the multiple luminous levels to obtain a current value corresponding to each luminous level, and the current value is stored in a signal conversion unit, including: The rated voltage and the maximum allowable current of the lamp bead are obtained to obtain the rated voltage value and the maximum current value, and resistance calculation is performed based on the rated voltage value and the maximum current value to obtain the equivalent resistance value of the lamp bead; The luminous intensity data of the lamp beads under different currents are collected to obtain multiple sets of current-luminous intensity corresponding data, and the multiple sets of current-luminous intensity corresponding data are input into a curve fitting algorithm for processing to obtain a relationship model between current and luminous intensity; Performing a derivative operation on the relationship model between the current and the luminous intensity to obtain a sensitivity function of the luminous intensity changing with the current, and substituting the luminous intensity values corresponding to the first level, the second level, the third level and the fourth level into the sensitivity function to obtain the optimal operating point current value of each luminous level; Performing a range check on the optimal operating point current value to obtain an effective current value between a minimum starting current and a maximum allowable current, and performing an interpolation calculation based on the effective current value to obtain a transition current value sequence between adjacent levels; Inputting the effective current value and the transition current value sequence into a temperature compensation algorithm for processing to obtain a corrected current value that takes temperature influence into consideration; The corrected current value is quantized to obtain a discrete current value, and the discrete current value is stored in a lookup table of the signal conversion unit.
4. The hierarchical regulation control method of lamp bead light emission according to claim 3 is characterized in that: The step of inputting the effective current value and the transition current value sequence into a temperature compensation algorithm for processing to obtain a corrected current value taking temperature influence into consideration includes: The junction temperature of the lamp bead is measured in real time to obtain a current operating temperature value, and the current operating temperature value is compared with a preset standard operating temperature to obtain a temperature deviation value; Based on the temperature deviation value, the temperature-voltage characteristic curve is queried to obtain the voltage change caused by the temperature, and the voltage change caused by the temperature is added and subtracted from the rated voltage of the lamp bead to obtain the actual working voltage after temperature compensation; The actual working voltage after temperature compensation is multiplied by the effective current value to obtain the actual power value under the influence of temperature, and interpolation calculation is performed based on the actual power value under the influence of temperature and the power-luminous flux characteristic curve of the lamp bead to obtain the luminous flux value after temperature compensation; Comparing the temperature-compensated luminous flux value with the target luminous flux to obtain a luminous flux difference, and performing a reverse search based on the luminous flux difference and the current-luminous flux characteristic curve of the lamp bead to obtain a current adjustment amount required for luminous flux compensation; The current adjustment amount required for the luminous flux compensation, the effective current value and the transition current value sequence are superimposed and calculated to obtain a corrected current value that takes temperature influence into consideration.
5. The hierarchical regulation control method of lamp bead light emission according to claim 3 is characterized in that: The step of generating a pulse width modulation signal sequence based on the current value, obtaining duty cycle values corresponding to the plurality of light emission levels, and arranging the duty cycle values according to a preset cycle mode comprises: Reading the discrete current values stored in the signal conversion unit to obtain four current values corresponding to the first level, the second level, the third level, and the fourth level; Calculating based on the rated voltage of the lamp bead and the maximum current value to obtain the reference frequency and resolution of the pulse width modulation signal, and dividing the four current values by the maximum current value for normalization to obtain four normalized current values between 0 and 1; Performing nonlinear transformation on four normalized current values between 0 and 1 to obtain a brightness compensation value, and performing calculation based on the brightness compensation value and a resolution of the pulse width modulation signal to obtain four duty cycle values corresponding to the first level, the second level, the third level, and the fourth level; Input the four duty cycle values into an interpolation algorithm for processing to obtain a transition duty cycle value sequence between adjacent levels, and arrange the four duty cycle values and the transition duty cycle value sequence to obtain a complete duty cycle change cycle including an increasing and decreasing process; Generating a pulse width sequence that varies with time based on the complete duty cycle variation cycle, and inputting the pulse width sequence that varies with time into a jitter algorithm for processing to obtain a target pulse width sequence; The target pulse width sequence is digitally encoded to obtain a pulse width modulation signal sequence that can be directly used by a digital controller, and the pulse width modulation signal sequence is stored in a memory of the processing unit.
6. The hierarchical regulation control method of lamp bead light emission according to claim 1, characterized in that: The interpolation process is performed on the pulse width modulation signal sequence to obtain a gradual control sequence including a plurality of transition pulse width modulation signals, including: Calculating the difference between two adjacent duty cycle values in the pulse width modulation signal sequence to obtain a plurality of duty cycle differences, and calculating based on a preset gradient time and a system clock frequency to obtain the number of interpolation points between two adjacent duty cycle values; The duty cycle difference is divided by the number of interpolation points to obtain a duty cycle increment value for each interpolation step, and the duty cycle increment values are accumulated to obtain a linear interpolation sequence from a starting duty cycle to an ending duty cycle; Inputting the linear interpolation sequence into an S-curve generation algorithm for processing to obtain a nonlinear interpolation sequence with acceleration and deceleration characteristics; Generate a corresponding transition pulse width modulation signal based on the nonlinear interpolation sequence to obtain an initial gradual change control sequence, and perform spectrum analysis on the initial gradual change control sequence to obtain a frequency distribution characteristic of the signal; The initial gradual control sequence is filtered based on the frequency distribution characteristics of the signal to obtain a smooth gradual control sequence with high-frequency components removed, and the smooth gradual control sequence is input into a dynamic range compression algorithm for processing to obtain a gradual control sequence including multiple transition pulse width modulation signals, and the gradual control sequence including multiple transition pulse width modulation signals is stored in a buffer of the processing unit.
7. The hierarchical regulation control method of lamp bead light emission according to claim 6, characterized in that: The step of inputting the linear interpolation sequence into an S-curve generation algorithm for processing to obtain a nonlinear interpolation sequence with acceleration and deceleration characteristics comprises: Normalizing the linear interpolation sequence to obtain a standardized sequence with a value range of 0 to 1, and calculating based on preset S-shaped curve parameters to obtain a slope factor and a midpoint position of a control curve shape; Substituting the standardized sequence into the sigmoid function for transformation to obtain an initial S-shaped curve sequence, and performing derivative calculation on the initial S-shaped curve sequence to obtain the instantaneous rate of change of the curve at each point; A threshold value is judged based on the instantaneous change rate of the curve at each point to obtain the dividing points of the acceleration section, the uniform speed section and the deceleration section, and the curve shapes of the acceleration section and the deceleration section are adjusted to obtain a target S-shaped curve; Interpolating and mixing the target S-shaped curve with the linear interpolation sequence to obtain a mixed sequence that comprehensively considers linear and nonlinear characteristics; Denormalizing the mixed sequence to obtain a nonlinear interpolation sequence corresponding to the original duty cycle value range, and calculating the difference between adjacent points based on the nonlinear interpolation sequence to obtain a dynamically adjusted step value sequence; The dynamically adjusted step value sequence is matched with the system clock cycle to obtain a nonlinear interpolation sequence with acceleration and deceleration characteristics, and the nonlinear interpolation sequence with acceleration and deceleration characteristics is stored in a buffer of the processing unit.
8. The hierarchical regulation control method of lamp bead light emission according to claim 1, characterized in that: The step of inputting the gradual control sequence into a driving unit for current conversion to obtain driving currents corresponding to the multiple light-emitting levels, and using the driving currents to drive the lamp beads to emit light, comprises: Decoding the gradual control sequence to obtain a digital control signal including a plurality of duty cycle values, and inputting the digital control signal into a digital-to-analog converter for processing to obtain an analog voltage signal; Amplifying the analog voltage signal to obtain an amplified voltage signal that meets the input requirement of the driving unit, and modulating the current source based on the amplified voltage signal to obtain a driving current corresponding to the duty cycle value; Inputting the driving current into an overcurrent protection circuit for detection to obtain a current-limited driving current within a safe range, and performing smoothing and filtering on the current-limited driving current to obtain a stable driving current with high-frequency ripples removed; The lamp beads are powered based on the stable driving current to obtain the luminous intensity of the lamp beads corresponding to the luminous level, and the junction temperature of the lamp beads is monitored in real time to obtain the operating temperature data of the lamp beads; The working temperature data of the lamp bead is input into the temperature compensation algorithm for processing to obtain a temperature correction coefficient, and the stable driving current is dynamically adjusted based on the temperature correction coefficient to obtain a temperature-compensated driving current, and the driving current is continuously output to the lamp bead.
9. The hierarchical regulation control method of lamp bead light emission according to claim 1, characterized in that: The real-time detection of the actual luminous intensity of the lamp bead to obtain an actual intensity value, the actual intensity value is compared with the theoretical intensity value to generate a compensation value, and the pulse width modulation signal sequence is adjusted according to the compensation value, including: The luminous intensity of the lamp beads is sampled by using a photoelectric sensor to obtain raw light intensity data, and the raw light intensity data is filtered to obtain smoothed light intensity data; The smoothed light intensity data is input into the calibration algorithm for processing to obtain the actual luminous intensity value after calibration, and the corresponding theoretical luminous intensity value is obtained by calculation based on the current pulse width modulation signal sequence and the preset lamp bead characteristic curve; Calculating the difference between the actual luminous intensity value and the theoretical luminous intensity value to obtain a luminous intensity deviation value, inputting the luminous intensity deviation value into a PID controller for processing to obtain an initial compensation value, and performing fuzzy logic reasoning based on the initial compensation value to obtain a target compensation value; Converting the target compensation value into an adjustment amount of a pulse width modulation signal to obtain a duty cycle correction value, and updating the current pulse width modulation signal sequence based on the duty cycle correction value to obtain a corrected pulse width modulation signal sequence; The corrected pulse width modulation signal sequence is input into the driving unit for processing to obtain a new driving current value, and the lamp bead is driven by the new driving current value to complete a closed-loop control cycle.
10. A hierarchical regulation control system for lamp bead lighting, characterized in that: For implementing the steps of the method according to any one of claims 1 to 9, the system comprises: A preset module, used for presetting a plurality of light emitting levels, obtaining a first level, a second level, a third level and a fourth level corresponding to different light emitting intensities, and storing the plurality of light emitting levels in a processing unit; A mapping module, used to perform current mapping on the multiple light-emitting levels according to the electrical characteristics and light-emitting characteristics of the lamp beads, obtain a current value corresponding to each light-emitting level, and store the current value in a signal conversion unit; an arrangement module, configured to generate a pulse width modulation signal sequence based on the current value, obtain duty cycle values corresponding to the plurality of light emission levels, and arrange the duty cycle values according to a preset cycle mode; An interpolation module, used for performing interpolation processing on the pulse width modulation signal sequence to obtain a gradual control sequence including a plurality of transition pulse width modulation signals; A conversion module, used for inputting the gradual control sequence into a driving unit for current conversion, obtaining a driving current corresponding to the multiple light-emitting levels, and using the driving current to drive the lamp bead to emit light; The adjustment module is used to detect the actual luminous intensity of the lamp bead in real time to obtain an actual intensity value, generate a compensation value after comparing the actual intensity value with the theoretical intensity value, and adjust the pulse width modulation signal sequence according to the compensation value.
Citation Information
Cited By
Dimming method based on straight line fitting and table look-up trimming
CN119255428A
Illumination control system and method
CN119450865A
Infrared expandable portable navigation-aid lighting system, lamp and storage medium
CN119743867A
Uniform control method and device for light emitting color of LED lamp bead and LED lamp bead
CN119922784A
A method and device for uniformly controlling the light-emitting color of an LED lamp bead and the LED lamp bead
CN119922784B
