A light-sensitive feedback-based anti-interference low-power consumption brightness adjusting method and system
By constructing and preprocessing the original dataset for brightness soft start, the stable state of the power supply switching process is identified, the direction and continuity of light change are analyzed, the brightness change trend level is divided, the brightness transition path is established, and soft start rhythm control is executed. This solves the instability and power consumption problems of brightness adjustment in the prior art, and realizes the continuity and anti-interference capability of brightness adjustment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHUHAI RUITE PHOTOELECTRIC TECH CO LTD
- Filing Date
- 2026-03-10
- Publication Date
- 2026-05-19
AI Technical Summary
Existing automatic brightness adjustment circuits are prone to problems such as sluggish brightness adjustment, reset caused by transient voltage drops, inconsistent brightness jumps, and unstable adjustment during low-power sleep switching under conditions of power supply fluctuations, sudden changes in light intensity, load changes, and equipment vibration.
By collecting basic operational data of the brightness soft-start control process, a raw dataset of brightness soft-start is constructed and preprocessed. The stable state of the power supply switching process is identified, the direction and continuity of light change are analyzed, brightness change trend levels are divided, trend markers are generated, and a brightness transition path is established based on the trend markers and power supply conditions. Soft-start rhythm control is executed to promote the gradual increase of brightness. During the execution of dimming commands, the continuous operation status is monitored to maintain the continuous operation of the brightness adjustment link.
It improves the continuity and anti-interference capability of brightness adjustment, ensuring the stability and low power consumption of brightness adjustment under power switching, transient disturbances and sleep switching conditions.
Smart Images

Figure CN121815480B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electric lighting control technology, specifically to an anti-interference, low-power brightness adjustment method and system based on photosensitive feedback. Background Technology
[0002] With the widespread application of portable lighting equipment, small optoelectronic devices, and outdoor observation instruments, brightness adjustment technology based on photosensitive devices has gradually become an important direction for low-power lighting control. Phototransistors, visible light sensors, and related detection circuits can reflect changes in ambient light intensity, enabling automated adjustment of the light source output. Currently, the response speed, output characteristics, and noise suppression capabilities of photosensitive detection elements and their supporting circuits are continuously improving, leading to the widespread application of environmentally adaptive brightness control in consumer electronics, outdoor devices, and miniature aiming equipment.
[0003] For example, invention patent CN118973028B discloses a flicker adjustment method for an organic electroluminescent display panel, including: acquiring the brightness change curve of the panel based on a photosensitive sensor; transmitting the change curve to the main control system, performing frequency analysis on the brightness fluctuation data using an FFT algorithm to extract the flicker frequency that causes visual fatigue; adjusting the driving circuit of the organic electroluminescent panel based on the frequency analysis results; optimizing the brightness adjustment algorithm based on the brightness fluctuation condition, and using linear brightness adjustment to control the brightness change rate; feeding the adjusted driving signal back to the photosensitive sensor and continuously monitoring flicker changes; and intelligently selecting the best flicker suppression strategy by detecting the ambient light intensity and ambient light frequency through the sensor and combining the user's brightness preference. This invention accurately detects the frequency source of flicker through monitoring and analysis, and adjusts the driving circuit parameters in a timely manner. By optimizing the algorithm and brightness control, it reduces the flicker phenomenon caused by low-frequency PWM, effectively improving the visual comfort of the display.
[0004] For example, the invention patent with announcement number CN116582970B discloses a tunnel lighting control method and a tunnel lighting system, belonging to the field of automatic control. In this invention, a control model is established, and the specific values of the coefficients in the control model are calibrated to obtain a well-constructed LED multi-stage control model. A photosensitive sensor is used to collect brightness data, and the brightness data is filtered to avoid the influence of noise. At the same time, the filtered data is sampled to obtain brightness data for a period of time, thereby realizing the measurement of brightness over a period of time. Then, the LED multi-stage control model is used to achieve stable adjustment of the brightness in the tunnel, solving the problem of excessive oscillation during the adjustment of the brightness in the tunnel.
[0005] Existing automatic brightness adjustment circuits generally employ fixed threshold judgment, PWM-driven linear dimming, and photosensitive adjustment mechanisms based on simple filtering. They achieve brightness changes by acquiring photosensitive signals and directly adjusting the LED duty cycle. However, these common implementations rely heavily on basic sampling, single-cycle judgment, and simple power supply stabilization structures. This leads to issues such as brightness adjustment lag, resets caused by transient voltage drops, inconsistent brightness transitions, and instability during low-power sleep switching under conditions of power supply fluctuations, sudden changes in illumination, load variations, and equipment vibration. Overall, existing methods struggle to simultaneously meet the requirements of low power consumption, interference immunity, and continuous brightness adjustment.
[0006] To address the above issues, there is an urgent need for an anti-interference, low-power brightness adjustment method and system based on photosensitive feedback. Summary of the Invention
[0007] Technical problems to be solved
[0008] To address the shortcomings of existing technologies, this invention provides an anti-interference, low-power brightness adjustment method and system based on photosensitive feedback, which solves the problem of system reset caused by transient voltage drop due to excessive current surge during the power supply switching from sleep to working state.
[0009] To achieve the above objectives, the present invention provides the following technical solution: a low-power brightness adjustment method based on photosensitive feedback, comprising the following steps: S1, collecting basic operating data during the operation of the brightness soft-start control process, constructing a brightness soft-start raw dataset and preprocessing it; S2, identifying the stable state of the power supply switching process based on the brightness soft-start raw dataset, determining whether the current power supply conditions have dimming capability, and outputting a control command to enter the dimming process; S3, after the dimming process entry command is triggered, analyzing the direction and continuity of light change and the scene state, classifying brightness change trend levels and generating trend markers; S4, establishing a brightness transition path based on the trend markers and power supply conditions, executing soft-start rhythm control and promoting a gradual increase in brightness; S5, monitoring the continuous operating state during the execution of the dimming command, completing brightness recovery and trend recovery and updating the stable output to maintain the continuous operation of the brightness adjustment link.
[0010] Further, the specific steps for collecting basic operational data during the operation of the brightness soft-start control process, constructing the original brightness soft-start dataset, and preprocessing are as follows: Basic operational data generated by the chip voltage detection channel, current detection channel, photosensitive input channel, and vibration detection channel during the operation of the brightness soft-start control process are collected. This basic operational data includes: power input voltage samples, power input current samples, phototransistor output signal samples, binary trigger samples, and time record information formed between adjacent sampling points. All data is accompanied by a timestamp. The basic operational data is synchronously integrated according to time sequence to complete the organization structure of power supply information, illumination information, vibration information, and time information, constructing the original brightness soft-start dataset. The continuous data in the original brightness soft-start dataset are then processed... The time series analysis employs a joint detection method combining the median absolute deviation algorithm and the local anomaly factor algorithm within a sliding time window to eliminate abnormal discrete segments formed during power supply transitions, sudden changes in illumination, and vibration triggering. A missing segment completion process based on linear interpolation and exponentially weighted moving average is constructed, incorporating timestamp continuity, to complete the sequence for gaps caused by sleep switching, transient sampling jitter, and temporary port instability. The SG filtering algorithm is used to smooth cross-cycle fluctuations, ensuring the time series maintains a stable and analyzable form in the frequency domain. To maintain time consistency among multi-source input channels, a dynamic time warping algorithm is used to adjust the sampling rhythm differences between different channels, aligning the multi-source time series under a unified time reference. Standardization and normalization are performed on the original brightness soft-start dataset.
[0011] Further, the specific steps for identifying the stable state of the power supply switching process based on the original dataset of brightness soft start are as follows: Read the voltage calibration value of the current period according to the index position of the power input voltage sample in the time series, and directly use it as the instantaneous power supply voltage; trace back along the timestamp sequence to the recording position of the previous sampling period, call the voltage calibration value of the previous period in the power input voltage sample to obtain the power supply voltage of the previous period; retrieve the current amplitude field of the current period around the power input current sample, and read the real-time current value to form the instantaneous power supply current; locate the recording position of the previous period in the current sample sequence according to the timestamp, call the current amplitude field of the previous period to obtain the power supply current of the previous period; compare the current sampling point with the previous sampling point based on the time record information formed between adjacent sampling points. The sampling interval of electrical parameters is obtained by calculating the difference in timestamps. A lower limit feature extraction algorithm is performed on the power input current samples to extract the stable minimum amplitude and obtain the current minimum compensation amount. The voltage carrying capacity ratio is obtained by dividing the instantaneous power supply voltage by the sum of the instantaneous power supply current and the current minimum compensation amount. The absolute value of the voltage change rate is obtained by dividing the difference between the instantaneous power supply voltage and the previous cycle's power supply voltage by the electrical parameter sampling interval. The absolute value of the voltage change rate is obtained by multiplying the difference between the instantaneous power supply current and the previous cycle's power supply current by the electrical parameter sampling interval, multiplying it by the current change suppression coefficient, and adding it to a factor. The voltage change rate is then divided by the current change suppression term to obtain the voltage change amount corrected for current change suppression. The steady-state margin of the power supply is obtained by subtracting the voltage change amount from the voltage carrying capacity ratio.
[0012] Furthermore, the specific steps for determining whether the current power supply conditions are capable of dimming and outputting the control command to enter the dimming process are as follows: The power supply steady-state margin value is compared with the power supply stability threshold in real time; when the power supply steady-state margin value is greater than or equal to the power supply stability threshold, the power supply steady-state margin value is written into the power supply status register and the control command to enter the dimming process is output, while the power supply buffer delay is released; when the power supply steady-state margin value is less than the power supply stability threshold, all dimming paths are frozen, the power supply steady-state margin value is written into the power supply recovery monitoring record and the current brightness level is maintained, and power supply buffer recovery is performed until the dimming conditions are met in the next cycle.
[0013] Furthermore, the specific steps for analyzing the direction and continuity of light change and scene state after the dimming process is triggered are as follows: Receive the control command to enter the dimming process; read the voltage conversion value based on the current position of the phototransistor output signal sample in the time series to obtain the instantaneous photosensitive signal; trace back along the timestamp sequence of the phototransistor output signal sample to the record position corresponding to the previous cycle, call the voltage conversion value of the previous cycle, and obtain the photosensitive signal of the previous cycle; if a cycle exists, continue to search forward to the record of an earlier cycle, read the corresponding voltage conversion value in the phototransistor output signal sample, and obtain the photosensitive signal of the cycle before that; locate the trigger marker corresponding to the current timestamp around the binary trigger sample, directly read the vibration state from the trigger marker field, and obtain the vibration trigger state. The trigger state is a binary quantity. The photosensitive sampling interval is obtained by comparing the timestamp difference between two consecutive photosensitive signal records based on the time record information formed between adjacent photosensitive sampling points. The difference between the instantaneous photosensitive signal and the previous period's photosensitive signal is divided by the photosensitive sampling interval to obtain the first-order photosensitive rate of change. The instantaneous photosensitive signal is subtracted by twice the amount of the previous period's photosensitive signal and added to the photosensitive signal from the period before that, resulting in the second-order photosensitive difference component. This second-order difference component is then divided by the photosensitive sampling interval, and the absolute value is taken to obtain the absolute value of the second-order photosensitive change. The absolute value of the first-order photosensitive rate of change is multiplied by the vibration trigger state and then multiplied by the vibration enhancement coefficient to obtain the vibration enhancement change. The absolute value of the second-order photosensitive change is subtracted from the first-order photosensitive rate of change, and the difference is added to the vibration enhancement change to obtain the brightness trend direction value.
[0014] Further, the specific steps for classifying brightness change trend levels and generating trend markers are as follows: The brightness trend pointing value is compared in real time with a trend threshold, which includes a primary trend threshold and a secondary trend threshold; when the brightness trend pointing value is greater than or equal to the primary trend threshold, an upward trend marker is written to the trend marker storage area, the brightness enhancement preparation process is initiated, the output register information required for dimming execution is loaded, and a brightness enhancement command is pushed to the brightness soft-start control process; when the brightness trend pointing value is greater than the secondary trend threshold but less than the primary trend threshold, a stable trend marker is written to the trend marker storage area, the current brightness segment remains unchanged, and trend continuity information is recorded; when the brightness trend pointing value is less than or equal to the secondary trend threshold, a downward trend marker is written to the trend marker storage area, the brightness reduction preparation process is initiated, and photosensitivity changes are recorded to support trend judgment for the next cycle.
[0015] Further, the specific steps for establishing the brightness transition path based on trend markers and power supply conditions are as follows: extract the brightness trend pointing value with attached trend markers from the trend marker storage area; truncate the negative change result in the brightness trend pointing value to zero in the trend clipping structure to obtain the non-negative brightness trend value; obtain the power supply steady-state margin value; take the non-negative brightness trend value as the numerator, and take the result of a natural exponential function with the opposite of the power supply steady-state margin value as the exponent as the denominator to perform a division operation to obtain the trend modulation base value; subtract the result of a natural exponential function with the absolute value of the power supply steady-state margin value as the exponent to obtain the power supply envelope modulation factor; multiply the trend modulation base value and the power supply envelope modulation factor to obtain the soft-start control slope value.
[0016] Further, the specific steps for executing soft-start rhythm control and driving the brightness to increase step by step are as follows: During the multi-level brightness transition, the pulse width modulation output duty cycle of each sampling period is recorded to form a duty cycle sequence; the duty cycle change rate is calculated based on the duty cycle difference between adjacent sampling periods and the sampling interval to form a slope sequence; under the condition that the power supply steady-state margin value is greater than or equal to the power supply stability threshold and the brightness trend pointing value is greater than or equal to the first-level trend threshold within three consecutive sampling periods, and the power supply recovery monitoring record does not record power supply fluctuations during the same period, the interval maximum value extraction method under monotonicity constraints is used to perform interval scanning on the slope sequence that satisfies the monotonic increase characteristic of the duty cycle, extracting the maximum increase slope value within the interval to generate the upper limit of the soft-start upper region slope; the power supply steady-state margin value is greater than or equal to the power supply stability threshold within three consecutive sampling periods. Furthermore, under the condition that the brightness trend indicator value is between the secondary trend threshold and the primary trend threshold, and the downward trend is recorded in a way that does not continuously record a downward trend in the same period, the minimum value extraction method under the continuity constraint is used to perform interval scanning on the slope sequence that meets the continuous duty cycle increase characteristic, extract the minimum increase slope value within the interval, and generate the lower limit of the soft start upper zone slope; when the soft start control slope value is greater than or equal to the lower limit of the soft start upper zone slope, the increase step size is the duty cycle increase unit, the output duty cycle is increased according to the first increase step size, and the execution status is written into the brightness execution record; when the soft start control slope value is greater than zero and less than the lower limit of the soft start upper zone slope, the output duty cycle is increased according to the second increase step size, and the power supply steady-state margin value is recorded during the increase; when the soft start control slope value is equal to zero, the brightness increase action is paused, and the current output level is maintained.
[0017] Furthermore, the specific steps for monitoring the continuous operation status during the dimming command execution, completing brightness recovery and trend recovery, updating stable output, and maintaining the continuous operation of the brightness adjustment link are as follows: During the brightness soft start phase, the target brightness value, trend information, and brightness segment number are written into the breakpoint record; when the system is powered on again or a reset check is performed, the recorded content in the breakpoint record structure is read, and a mid-stage soft start is performed according to the recorded brightness segment number, so that the current brightness enters the corresponding brightness segment; after entering the corresponding brightness segment, the brightness change direction is restored according to the recorded trend information; after the restoration action is completed, the latest brightness segment number, trend information, and brightness output value are written into the brightness status record.
[0018] The second aspect of this invention provides an anti-interference, low-power brightness adjustment system based on photosensitive feedback, comprising: a photosensitive data aggregation module, a power supply buffer control module, a dimming trend analysis module, a brightness soft-start control module, and a state maintenance and recovery module. The photosensitive data aggregation module is used to collect basic operational data during the brightness soft-start control process, construct a brightness soft-start raw dataset, and perform preprocessing. The power supply buffer control module is used to identify the stable state of the power supply switching process based on the brightness soft-start raw dataset, determine whether the current power supply conditions have dimming capability, and output a control command to enter the dimming process. The dimming trend analysis module is used to analyze the direction and continuity of light change and the scene state after the dimming process entry command is triggered, classify brightness change trend levels, and generate trend markers. The brightness soft-start control module is used to establish a brightness transition path based on the trend markers and power supply conditions, execute soft-start rhythm control, and promote a gradual increase in brightness. The state maintenance and recovery module is used to monitor the continuous operating state during the execution of the dimming command, complete brightness recovery and trend recovery, update the stable output, and maintain the continuous operation of the brightness adjustment link.
[0019] The present invention has the following beneficial effects:
[0020] (1) This invention collects multi-source basic operating data during the operation of the brightness soft start control process and performs synchronous integration, abnormal segment removal, sequence completion, smoothing and time alignment, so that the original dataset of brightness soft start maintains a stable and continuous temporal structure, which helps to improve the input quality of subsequent trend calculation and power supply determination, and maintains a unified analysis basis for the entire dimming process under multi-channel sampling conditions.
[0021] (2) This invention constructs a power supply steady-state margin value based on the original dataset of brightness soft start, and determines whether to enter the dimming process based on the comparison between the power supply steady-state margin value and the power supply stable threshold. This enables the brightness adjustment action to be performed according to the actual power supply capacity under power supply switching, transient disturbance and sleep switching conditions, which helps to improve the execution continuity and anti-interference capability of the dimming process in low power devices.
[0022] (3) This invention constructs a brightness trend pointing value by analyzing the multi-cycle change of the output signal of the phototransistor and combining it with the vibration trigger state. Then, it divides the brightness change trend level according to the trend threshold and generates a trend mark, so that the trend determination process can simultaneously reflect the photosensitive change direction, continuity and scene state, thereby ensuring that the construction action of the brightness transition path is consistent with the change of external light.
[0023] (4) The present invention constructs a soft-start control slope value by taking the trend mark and the power supply steady state margin value as input, and uses the interval extreme value extraction method to determine the upper and lower limits of the appropriate boost slope, so that the brightness boost action can maintain the gradual change of duty cycle under multi-cycle sampling conditions; combined with the breakpoint recording and brightness segment recovery mechanism, the dimming link can re-enter the continuous brightness execution state after operation interruption or reset.
[0024] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description
[0025] Figure 1 This is a flowchart of an anti-interference, low-power brightness adjustment method based on photosensitive feedback according to the present invention.
[0026] Figure 2 This is a structural diagram of an anti-interference, low-power brightness adjustment system based on photosensitive feedback according to the present invention.
[0027] Figure 3 This is a brightness trend indicator value distribution diagram of the present invention;
[0028] Figure 4 This is the top-level routing diagram of the PCB of the present invention;
[0029] Figure 5 This is the PCB bottom layer wiring diagram of the present invention. Detailed Implementation
[0030] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0031] Please see Figures 1-5This invention provides a technical solution: a low-power brightness adjustment method based on photosensitive feedback, comprising the following steps: S1, collecting basic operating data during the operation of the brightness soft-start control process, constructing a brightness soft-start raw dataset and preprocessing it; S2, identifying the stable state of the power supply switching process based on the brightness soft-start raw dataset, determining whether the current power supply conditions have dimming capability, and outputting a control command to enter the dimming process; S3, after the dimming process entry command is triggered, analyzing the direction and continuity of light change and the scene state, classifying the brightness change trend level and generating trend markers; S4, establishing a brightness transition path based on the trend markers and power supply conditions, executing soft-start rhythm control and promoting the gradual increase of brightness; S5, monitoring the continuous operating state during the execution of the dimming command, completing brightness recovery and trend recovery and updating the stable output to maintain the continuous operation of the brightness adjustment link.
[0032] Specifically, the basic operational data collected during the brightness soft-start control process, the construction of the original brightness soft-start dataset, and the preprocessing steps are as follows: Basic operational data generated by the chip voltage detection channel, current detection channel, photosensitive input channel, and vibration detection channel during the brightness soft-start control process are collected. This basic operational data includes power input voltage samples, power input current samples, phototransistor output signal samples, binary trigger samples, and time record information between adjacent sampling points. All data is timestamped. The basic operational data is then synchronously integrated in chronological order. During the integration process, the data focuses on changes in power input voltage, power input current, photosensitive current conversion, and vibration trigger signals. The changes establish corresponding temporal relationships, completing the organization of power supply information, illumination information, vibration information, and time information to construct the original dataset for brightness soft start. The continuous time series contained in the original dataset are then subjected to joint detection using a sliding time window median absolute deviation algorithm and a local anomaly factor algorithm. During processing, the median absolute deviation algorithm is used to identify sudden amplitude-type discrete points, while the local anomaly factor algorithm is used to identify sparse neighborhood anomalies appearing across windows. This clearly distinguishes different types of discrete segments appearing during power supply transitions, current rises, illumination mutations, and vibration triggering phases, and removes segments that do not conform to continuous or amplitude characteristics, ensuring that the time series retains stability valuable for trend analysis. Partially, a missing segment completion process based on linear interpolation and exponentially weighted moving average is constructed by combining timestamp continuity. During the completion process, linear interpolation is used to handle recording gaps with short time spans and gentle gradient changes, while exponentially weighted moving average is used to handle long-span missing segments caused by sleep switching and transient sampling jitter, ensuring the sequence maintains structural continuity along the time axis. The SG filtering algorithm is used to smooth cross-period fluctuations, limiting the algorithm to denoising photosensitive and voltage change sequences with high frequency domain change rates, thus ensuring that the multi-source signals in the original brightness soft-start dataset have a stable and analyzable form. A dynamic time warping algorithm is used to address sampling deviations between multi-source input channels. The dynamic time warping algorithm adjusts the sampling rhythm differences between different channels to handle slight time offsets in multiple channels caused by factors such as sampling trigger clock drift, ADC conversion delay differences, and asynchronous sampling paths between the photosensitive input channel and the vibration input channel, even though all data have timestamps. This ensures that voltage, current, photosensitive, and vibration sequences are alignable across channels under a unified time reference. After all time series are aligned, the original brightness soft-start dataset is standardized and normalized. Standardization eliminates dimensional differences between different physical quantities, while normalization compresses the amplitude range to maintain algorithm stability, ensuring that the original data has a uniform scale before entering the trend analysis structure and slope construction structure.
[0033] In this implementation scheme, the original dataset for brightness soft start is integrated through multi-source time series synchronization, abnormal segment removal, missing segment completion, cross-cycle smoothing, and multi-channel time alignment to form a basic data form with continuous structure, unified rhythm, and controlled noise. This allows the power supply variation law, illumination variation trend, and vibration triggering performance to enter the trend analysis structure and slope construction structure at a stable scale, establishing a reliable data foundation for the brightness soft start control process and ensuring that subsequent adjustment logic runs in a continuous, stable, and computable input environment.
[0034] Specifically, the steps for identifying the stable state of the power supply switching process based on the original dataset of brightness soft start are as follows: The voltage calibration value of the current cycle is read from the index position of the power input voltage sample in the time series to form the instantaneous power supply voltage; the voltage calibration value of the previous cycle is read from the position of the previous sampling cycle in the timestamp sequence to form the power supply voltage of the previous cycle; the current amplitude field of the current cycle is retrieved around the power input current sample to obtain the instantaneous power supply current, and the current amplitude field of the previous cycle is read after reverse positioning of the timestamp to form the power supply current of the previous cycle; the electrical parameter sampling interval is obtained by comparing the timestamp difference based on the time record information formed between adjacent sampling points; the stable minimum amplitude is extracted from the power input current sample using a lower limit feature extraction algorithm to generate the current minimum compensation amount, making the low amplitude range calculable; the ratio of the instantaneous power supply voltage, the instantaneous power supply current, and the current minimum compensation amount is constructed to form the voltage carrying capacity ratio, which is used to express the carrying capacity of the current power supply path under transient load; the instantaneous power supply voltage is compared with the previous cycle... The voltage difference of one cycle is calculated and the rate of change is obtained by combining the voltage difference with the sampling interval of electrical parameters. The absolute value of the voltage change rate is used to characterize the disturbance amplitude of the voltage during the transition process. The current change suppression coefficient is obtained by extracting the response intensity of the voltage amplitude to the current derivative by executing the disturbance sensitivity assessment algorithm on the current change sequence. The value range is 0.01-1. The current change rate is obtained by combining the instantaneous supply current with the supply current of the previous cycle with the sampling interval of electrical parameters. The current change rate is combined with the current change suppression coefficient to form a suppression term, which is used to limit the amplification effect of current change on stability assessment. The absolute value of the voltage change rate is divided by the current change suppression term to form the voltage change amount corrected by the current change suppression, so that the voltage disturbance is reasonably corrected according to the load change rhythm. The voltage carrying capacity ratio is subtracted from the voltage change amount corrected by the current change suppression to form the power supply steady-state margin value. This clearly quantifies whether the power supply switching stage is in a stable state and can be used for subsequent trend analysis and slope construction processes.
[0035] The specific calculation method for the steady-state energy margin is as follows:
[0036] ;
[0037] In the formula, This represents the steady-state energy margin value. Indicates the instantaneous voltage of the power supply. This indicates the supply voltage of the previous cycle. Indicates the instantaneous current supplied by the power supply. This indicates the supply current in the previous cycle. Indicates the electrical parameter sampling interval. This indicates the minimum current compensation amount. This represents the current change suppression coefficient.
[0038] In this implementation scheme, after the power supply switching process completes the joint calculation of voltage change behavior, current change behavior and sampling rhythm, it forms a quantitative result that can reflect the power supply carrying capacity, transient disturbance amplitude and load change rhythm. This enables the power supply steady-state margin value to accurately express the stability of the power supply path during the sleep to work switching phase, providing a stability basis for trend analysis and soft start control slope value generation, and ensuring that the brightness soft start control process operates under acceptable power supply conditions.
[0039] Specifically, the steps for determining whether the current power supply conditions are suitable for dimming and outputting control commands to enter the dimming process are as follows: The power supply steady-state margin value is compared with the power supply stability threshold in real time. The comparison result determines the safety level of the power supply path in terms of transient load capacity, voltage disturbance amplitude, and load change rhythm. When the power supply steady-state margin value is greater than or equal to the power supply stability threshold, the power supply steady-state margin value is written into the power supply status register to record the current power supply stability status. Simultaneously, a control command for starting the brightness adjustment link is generated, and the power supply buffer delay is removed in the control logic, allowing the brightness soft-start control process to enter the trend analysis stage under stable power supply conditions. When the power supply steady-state margin value is less than the power supply stability threshold, all dimming paths are frozen to prevent further voltage drops caused by dimming actions. The power supply steady-state margin value is written into the power supply recovery monitoring record for continuous evaluation of power supply capacity changes, while maintaining the current brightness level. During the power supply buffer recovery process, the voltage and current are gradually stabilized until safe dimming conditions are met again in the next cycle.
[0040] In this implementation plan, after the power supply is stable and the threshold comparison is completed, a clear control logic is formed to determine whether the dimming path is allowed to be opened. This enables the brightness soft-start control process to automatically enter the dimming stage or remain frozen based on the power supply capacity and transient disturbance level, ensuring that the brightness adjustment action is only performed under safe power supply conditions, and providing a stable start-up environment for trend analysis and subsequent slope control.
[0041] Specifically, after the dimming process enters the command trigger, the specific steps for analyzing the direction and continuity of light changes and the scene state are as follows: The control command for entering the dimming process is received and the control signal is written into the trend analysis structure. Based on the current position of the phototransistor output signal sample in the time series, the voltage conversion value is read to form a photosensitive instantaneous signal. The photosensitive signal of the previous cycle is read by tracing back to the previous cycle through the timestamp sequence. If historical records exist in the sequence, an even earlier cycle is retrieved to form the photosensitive signal of the cycle before that, ensuring a continuous reference for the photosensitive change process. The trigger mark corresponding to the current timestamp is located around the binary trigger sample to read the vibration trigger state, establishing a basis for the correlation between light changes and scene actions. The photosensitive sampling interval is formed by comparing the timestamp difference based on the time record information of adjacent photosensitive sampling points, using the photosensitive instantaneous signal... The first-order rate of change of the photosensitive signal is obtained by constructing a gradient with the previous period's photosensitive signal. A second-order difference is constructed using the instantaneous photosensitive signal, the previous period's photosensitive signal, and the photosensitive signal from the period before that, and combined with the photosensitive sampling interval to form the second-order change of the photosensitive signal. The first-order rate of change of the photosensitive signal and the vibration triggering state are used together to participate in the amplification operation of the vibration enhancement coefficient to form the vibration enhancement change. The vibration enhancement coefficient is obtained by extracting the amplification intensity of the vibration amplitude on the brightness trend change rate by executing the scene sensitivity assessment algorithm on the vibration triggering sequence, with a value range of 0.1-3. The difference between the first-order rate of change of the photosensitive signal and the second-order change is synthesized and superimposed with the vibration enhancement change to obtain the brightness trend direction value. This allows the direction of illumination change, the stability of illumination change, and the scene action state to be expressed in a unified trend quantity, and provides a trend basis for the construction of brightness change strategy.
[0042] The specific calculation method for the brightness trend indicator value is as follows:
[0043] ;
[0044] In the formula, Indicates the value indicating the brightness trend. Indicates a photosensitive instantaneous signal. This indicates the photosensitive signal from the previous cycle. This indicates the photosensitive signal from the previous period. Indicates vibration-triggered state. Indicates the photosensitive sampling interval. This represents the vibration enhancement coefficient.
[0045] Table 1 shows the brightness trend pointing value data table provided in the embodiments of this application. The instantaneous photosensitive signal for trend 1 is set to 10.00, the previous cycle photosensitive signal is set to 9.40, the previous cycle photosensitive signal is set to 9.00, the vibration trigger state is set to 1, the photosensitive sampling interval is set to 1.20, and the vibration enhancement coefficient is set to 0.45; the instantaneous photosensitive signal for trend 2 is set to 11.40, the previous cycle photosensitive signal is set to 10.70, the previous cycle photosensitive signal is set to 10.20, the vibration trigger state is set to 1, the photosensitive sampling interval is set to 0.90, and the vibration enhancement coefficient is set to 0.55; the instantaneous photosensitive signal for trend 3 is set to 12.30, the previous cycle photosensitive signal is set to 11.60, and the previous cycle photosensitive signal is set to... The vibration trigger state is set to 0, the photosensitive sampling interval is set to 1.10, and the vibration enhancement coefficient is set to 0.60. The instantaneous photosensitive signal of trend 4 is set to 13.80, the photosensitive signal of the previous cycle is set to 13.00, the photosensitive signal of the cycle before that is set to 12.50, the vibration trigger state is set to 1, the photosensitive sampling interval is set to 0.95, and the vibration enhancement coefficient is set to 0.40. The instantaneous photosensitive signal of trend 5 is set to 14.40, the photosensitive signal of the previous cycle is set to 13.50, the photosensitive signal of the cycle before that is set to 13.00, the vibration trigger state is set to 0, the photosensitive sampling interval is set to 1.05, and the vibration enhancement coefficient is set to 0.50.
[0046] Table 1. Brightness Trend Indicator Data Table
[0047]
[0048] like Figure 3 The image shows a distribution map of brightness trend indicators provided in an embodiment of this application. According to the data in the image and table, the five sets of brightness trend indicators are distributed between 0.56 and 0.98, and are visually compared with the primary and secondary trend thresholds in the image. Trend 2 has a brightness trend indicator value of 0.98, exceeding the primary trend threshold, showing a clear upward trend in brightness. Trends 3, 4, and 5 have brightness trend indicator values of 0.75, 0.86, and 0.71, respectively, located between the secondary and primary trend thresholds, indicating that the illumination change remains within a relatively stable range and has a certain tendency to continue changing. Trend 1 has a brightness trend indicator value of 0.56, slightly higher than the secondary trend threshold but not reaching the primary trend threshold, belonging to a weak change state. The image can visually present the amplitude distribution and level range of brightness changes under different trend numbers, providing a visual basis for judging the upward, stable, and downward trends of external illumination, and providing auxiliary reference for the generation of trend markers and the construction of brightness change paths in the brightness soft-start control process.
[0049] In this implementation scheme, after completing gradient calculation of continuous time segments, analysis of photosensitive change stability, and vibration trigger amplification processing, the illumination change behavior forms a brightness trend pointing value that can simultaneously express directionality, continuity, and scene action correlation. This allows the illumination increase / decrease trend to be clearly quantified before entering the brightness soft start control process, and provides a stable trend basis for subsequent brightness change path construction and soft start adjustment slope value generation.
[0050] Specifically, the steps for classifying brightness change trend levels and generating trend markers are as follows: The brightness trend direction value is compared in real time with the trend threshold, which consists of a primary trend threshold and a secondary trend threshold. The comparison results clarify the level range of the illumination change direction. When the brightness trend direction value is greater than or equal to the primary trend threshold, an upward trend marker is written to the trend marker storage area to establish the meaning of the brightness increase trend. Simultaneously, the brightness increase preparation process is initiated, the output register information required for dimming execution is written to the execution structure, and a brightness increase command is pushed to the brightness soft-start control process, giving the brightness change action a clear upward direction. When the brightness trend indicator value is greater than the secondary trend threshold but less than the primary trend threshold, a stable trend marker is written into the trend marker storage area to indicate that the photosensitivity change is in a low fluctuation range. While keeping the current brightness segment unchanged, the trend continuity information is recorded so that subsequent cycles can determine whether the illumination has entered a new change phase based on continuity. When the brightness trend indicator value is less than or equal to the secondary trend threshold, a downward trend marker is written into the trend marker storage area to construct the meaning of the brightness reduction trend. At the same time, the brightness reduction preparation process is initiated, and the photosensitivity change is recorded to support the trend judgment of the next cycle, so that the brightness change strategy has a sustainable basis in the downward range.
[0051] In this implementation plan, after threshold comparison, the brightness change trend level forms a clear classification of rising, stable and falling intervals, so that the trend marker can accurately express the dynamic stage of the illumination change and provide corresponding trend meanings for brightness increase preparation, brightness maintenance and brightness decrease preparation. At the same time, it builds a stable trend foundation for the trend continuity judgment and brightness soft start control process of subsequent cycles.
[0052] Specifically, the steps for establishing a brightness transition path based on trend markers and power supply conditions are as follows: Extract the brightness trend direction value with attached trend markers from the trend marker storage area and write the trend meaning into the transition path construction structure; truncate the negative change result in the brightness trend direction value to zero in the trend pruning structure to form a non-negative brightness trend quantity, ensuring the transition path is activated only when there is a demand for increased brightness; obtain the power supply steady-state margin value and write the power supply carrying capacity into the adjustment quantity construction stage; use the non-negative brightness trend quantity as the numerator, and add a factor with the negative number of the power supply steady-state margin value as the exponent. The result of the exponential function forms the denominator, and a division operation is performed to form the trend modulation base value, so that the trend driving strength has the characteristic of convergence according to the power supply conditions under exponential modulation. The natural exponential function is calculated with the absolute value of the power supply steady-state margin as the exponent, and the result is subtracted to form the power supply envelope modulation factor, so that the trend modulation process is constrained by the power supply stability. The trend modulation base value and the power supply envelope modulation factor are multiplied to generate the soft-start control slope value, so that the brightness transition path completes the construction of the dynamic adjustment rhythm under the combined action of trend driving and power supply conditions, and serves as the core adjustment quantity of the brightness soft-start stage.
[0053] The specific calculation method for the soft start control slope value is as follows:
[0054] ;
[0055] In the formula, This represents the soft-start control slope value. This indicates a non-negative trend in brightness. This represents the steady-state margin of energy supply.
[0056] In this implementation scheme, the brightness transition path forms a soft-start control slope value with directionality, stability and convergence under the joint constraints of trend markers and power supply conditions. This allows the brightness increase rhythm to achieve a balance between the trend driving intensity and power supply capacity, and ensures that the brightness soft-start process remains smooth, safe and controllable through dynamic adjustment, providing the core adjustment basis for the subsequent brightness transition control.
[0057] Specifically, the steps for implementing soft-start rhythm control and gradually increasing brightness are as follows: During multi-level brightness transitions, the pulse width modulation output duty cycle of each sampling period is recorded to form a duty cycle sequence, which is then written into the rhythm control structure. The duty cycle change rate is calculated based on the duty cycle difference between adjacent sampling periods and the sampling interval to form a slope sequence, giving the brightness change rhythm a quantifiable dynamic gradient. Under the condition that the power supply steady-state margin value is greater than or equal to the power supply stability threshold, the brightness trend indication value is greater than or equal to the first-level trend threshold, and the power supply recovery monitoring record does not record power supply fluctuations, the following steps are taken: The method of extracting the maximum value of the interval under monotonicity constraints is used to perform interval scanning on the slope sequence that satisfies the monotonic increase characteristic of duty cycle. The maximum increase slope value within the interval is extracted to generate the upper limit of the soft start slope, so that the brightness increase rhythm has a controllable maximum acceleration boundary. Under the conditions that the power supply steady-state margin value is greater than or equal to the power supply stability threshold in three consecutive sampling periods, the brightness trend pointing value is between the secondary trend threshold and the primary trend threshold, and the downward trend record is not continuously recorded, the method of extracting the minimum value of the interval under continuity constraints is used to perform interval scanning on the slope sequence that satisfies the continuous increase characteristic of duty cycle. The minimum boost slope value within the interval is extracted to generate the lower limit of the soft-start upper zone slope, which is used to define the minimum boost rhythm under stable but not strong upward trend conditions. After defining the slope boundary, a boost step size control structure is constructed. When the soft-start control slope value is greater than or equal to the lower limit of the soft-start upper zone slope, the output duty cycle is increased by a duty cycle boost unit as the first boost step size, and the execution status is written to the brightness execution record, so that the brightness can be rapidly increased under strong trend and stable power supply conditions. When the soft-start control slope value is greater than zero and less than the lower limit of the soft-start upper zone slope, the output duty cycle is increased by a second boost step size, and the power supply steady-state margin value is recorded, so that the brightness can be rapidly increased under strong trend and stable power supply conditions. The brightness increases smoothly when the trend weakens or the power supply capacity is low; when the soft-start control slope value is equal to zero, the brightness increase action is paused and the current output level is maintained, so that the dimming rhythm remains in a safe state when the power supply is insufficient or the trend is unclear; a duty cycle saturation control is constructed around the duty cycle change behavior, and when the duty cycle is close to the driving capability limit, the maximum output is constrained by the upper limit of saturation to avoid entering the uncontrollable range; a change suppression window delay is introduced in the stage of rapid duty cycle change to construct duty cycle anti-jitter processing, so that instantaneous sampling disturbances and short-term voltage fluctuations do not affect the rhythm judgment, thereby maintaining the stability and continuity of the brightness soft-start process.
[0058] In this implementation scheme, the brightness progressive increase process forms a soft-start rhythm with acceleration intervals, stable intervals, and pause intervals under the joint constraints of slope boundary, trend level, power supply conditions, and duty cycle limit. This ensures that the brightness change maintains a controllable step size, smooth transition, and stable rhythm under different power supply carrying capacity and trend intensity. Furthermore, saturation constraints and anti-jitter processing ensure that the duty cycle change does not produce abrupt jumps, thus establishing a safe and continuous increase path for the brightness soft-start control process.
[0059] Specifically, during the execution of dimming commands, the continuous operation status is monitored to complete brightness recovery and trend recovery, and the stable output is updated to maintain continuous operation of the brightness adjustment link. The specific steps are as follows: During the brightness soft start phase, the target brightness value, trend information, and brightness segment number are written into the breakpoint record, and the recorded content is used as the basic information for breakpoint recovery; when the system is powered on again or a reset check is performed, the target brightness value, trend information, and brightness segment number are read from the breakpoint record structure, and a mid-stage soft start is performed according to the recorded brightness segment number, so that the current brightness directly enters the corresponding brightness segment without going through the initial high load phase, avoiding new current jumps during the recovery process; after entering the corresponding brightness segment, the direction of brightness change is restored according to the recorded trend information, so that the light change trend remains consistent with the direction of advancement before the interruption after recovery; after the recovery action is completed, the latest brightness segment number, trend information, and brightness output value are written into the brightness status record, so that the brightness adjustment link has sustainable state connection and ensures that the control logic of brightness increase, brightness maintenance, and brightness decrease can be stably continued during continuous operation.
[0060] In this implementation scheme, the brightness recovery process establishes a continuous processing mechanism for reset scenarios through the combined effects of breakpoint recording, trend recovery, and brightness segment connection. This enables the brightness to quickly return to the brightness segment and trend direction before the interruption after power-on or state interruption, and maintains the continuity and stability of brightness output, thereby ensuring the consistency of the brightness adjustment link in cross-cycle operation.
[0061] like Figure 2The diagram shown is a structural schematic of a low-power brightness adjustment system based on photosensitive feedback, provided in an embodiment of this application. This system employs a low-power brightness adjustment method based on photosensitive feedback, comprising: a photosensitive data aggregation module, a power supply buffer control module, a dimming trend analysis module, a brightness soft-start control module, and a state maintenance and recovery module. The photosensitive data aggregation module is used to collect basic operational data during the brightness soft-start control process, and integrates it through multi-channel synchronous integration, abnormal segment removal, missing segment completion, and cross-cycle... Smoothing and multi-channel rhythm alignment form a structurally continuous raw dataset for brightness soft-start, and preprocessing is performed to ensure that changes in illumination, power supply, and vibration triggering provide stable timing inputs that can be used for trend judgment and power supply assessment. The power supply buffer control module is used to identify the stable state of the power supply switching process based on the raw dataset for brightness soft-start. It forms a power supply steady-state margin value through joint calculation of voltage carrying capacity, transient voltage disturbance, and current change rhythm, and determines whether the current power supply conditions are sufficient for dimming. Under safe conditions, it outputs control commands to enter the dimming process; if the conditions are not met, it freezes the dimming path and executes power supply buffer recovery. The dimming trend analysis module analyzes the direction, continuity, and scene action status of light changes after the dimming process is triggered. It generates a brightness trend indicator value based on the first-order photosensitive rate of change, the second-order photosensitive rate of change, and the vibration-triggered amplification result. It then classifies the brightness change trend level according to a trend threshold, generating trend markers to clearly categorize the trend meaning between rising, stable, and falling ranges. The brightness soft-start control module establishes a brightness transition path based on the trend markers and power supply conditions. It generates a soft-start control slope value through the joint calculation of the trend modulation base value and the power supply envelope modulation factor. The system implements soft-start rhythm control based on slope boundaries, trend levels, power supply stability, and duty cycle limits, gradually increasing brightness in acceleration, stable, and pause intervals. Duty cycle saturation and anti-jitter processing are introduced to maintain the controllability of the increase rhythm. A state-maintaining recovery module monitors the continuous operating status during dimming command execution. Brightness and trend recovery are achieved through breakpoint recording, brightness segment recovery, and trend direction recovery. After the recovery action is completed, the latest brightness segment number, trend information, and brightness output value are updated, ensuring the brightness adjustment link maintains a stable structure for continuous operation across cycles.
[0062] In this implementation scheme, the photosensitive data aggregation module, power supply buffer control module, dimming trend analysis module, brightness soft start control module, and state maintenance and recovery module form a continuous link in the brightness soft start control process, from data acquisition, power supply determination, trend analysis, rhythm control to state recovery. This allows the characteristics of light change and power supply carrying capacity to be uniformly expressed through trend and control quantities, and ensures that brightness adjustment maintains a stable rhythm and coherent logic during startup, enhancement, and recovery, thereby constructing a complete and controllable brightness adjustment system.
[0063] like Figure 4 The diagram shown is a top-level PCB routing diagram provided in an embodiment of this application; as follows: Figure 5 The figures shown are PCB bottom layer routing diagrams provided in this application embodiment. The two figures respectively show the front and back routing structures of the circuit board, presenting a compact layout built around the chip body, power supply path, photosensitive input path, and vibration detection path. In the front view, the core chip is located in the center, surrounded by decoupling capacitors, filter capacitors, photosensitive circuits, vibration detection circuits, and LED driving paths. The red area is the top layer routing surface, and the blue area is the bottom layer interconnection. VCC, GND, and signal lines are layered and segmented using multiple traces. Key components such as resistors, capacitors, and diodes are placed close to their respective pins with short paths to reduce noise coupling and improve power supply stability. The back view shows the complete bottom layer routing coverage. Large areas of copper are used to form a stable ground plane, reducing high-frequency interference and improving the consistency of the power supply return path. The vibration detection area and photosensitive input area are connected to the upper layer pads via independent bottom layer traces to avoid crosstalk between the two signals. The power supply paths on both the front and back sides are interconnected through vias, making the overall power supply path more robust. The two figures together form a complete structural view of the circuit board, which intuitively reflects the comprehensive considerations of this design in terms of power supply stability, signal isolation, and compact component layout.
[0064] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0065] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. A low-power, anti-interference brightness adjustment method based on photosensitive feedback, characterized in that, Includes the following steps: S1: Collect basic operational data during the operation of the brightness soft start control process, construct the original brightness soft start dataset and perform preprocessing. S2, based on the original dataset of brightness soft start, identifies the stable state of the power supply switching process, determines whether the current power supply conditions have dimming capability, and outputs the control command to enter the dimming process; S3, after the dimming process enters the command trigger, analyzes the direction and continuity of light change and scene status, classifies the brightness change trend level and generates trend markers; S4 establishes a brightness transition path based on trend markers and power supply conditions, executes soft-start rhythm control, and promotes a gradual increase in brightness. The specific steps for implementing soft-start rhythm control and gradually increasing brightness are as follows: During the multi-level brightness transition, the duty cycle of the pulse width modulation output in each sampling period is recorded to form a duty cycle sequence; the duty cycle change rate is calculated based on the difference in duty cycle between adjacent sampling periods and the sampling interval to form a slope sequence; Under the condition that the steady-state margin of power supply is greater than or equal to the power supply stability threshold and the brightness trend pointing value is greater than or equal to the first-level trend threshold in three consecutive sampling periods, and the power supply recovery monitoring record does not record power supply fluctuations in the same period, the interval maximum value extraction method under monotonic constraints is used to perform interval scanning on the slope sequence that satisfies the monotonic increase characteristic of duty cycle, extract the maximum increase slope value in the interval, and generate the upper limit of the soft start upper region slope; Under the condition that the steady-state margin of power supply is greater than or equal to the steady-state threshold of power supply in three consecutive sampling periods, the brightness trend pointing value is between the secondary trend threshold and the primary trend threshold, and the downward trend is recorded in the same period without continuous recording of the downward trend, the interval minimum value extraction method under the continuity constraint is used to perform interval scanning on the slope sequence that meets the continuous duty cycle increase feature, extract the minimum increase slope value in the interval, and generate the lower limit of the soft start upper region slope. When the soft start control slope value is greater than or equal to the lower limit of the soft start upper zone slope, the increase step size is the duty cycle increase unit, the output duty cycle is increased according to the first increase step size, and the execution status is written into the brightness execution record; When the soft start control slope value is greater than zero and less than the lower limit of the soft start upper zone slope, the output duty cycle is increased according to the second increase step size, and the power supply steady-state margin value is recorded during the increase process. When the soft-start control slope value is equal to zero, the brightness increase action is paused, and the current output level is maintained. S5 monitors the continuous operation status during the dimming command execution, completes brightness restoration and trend restoration, and updates the stable output to maintain the continuous operation of the brightness adjustment link.
2. The anti-interference, low-power brightness adjustment method based on photosensitive feedback according to claim 1, characterized in that: The specific steps for collecting basic operational data during the brightness soft-start control process, constructing the original brightness soft-start dataset, and preprocessing it are as follows: During the operation of the brightness soft-start control process, basic operating data is generated by the chip voltage detection channel, current detection channel, photosensitive input channel, and vibration detection channel. The basic operating data includes: power input voltage samples, power input current samples, phototransistor output signal samples, binary trigger samples, and time record information formed between adjacent sampling points. All data is accompanied by timestamps. The basic operating data is synchronously integrated in chronological order to complete the organization structure of power supply information, illumination information, vibration information, and time information, and construct the original dataset for brightness soft-start. The continuous time series in the original brightness soft-start dataset are subjected to joint detection using a sliding time window median absolute deviation algorithm and a local anomaly factor algorithm to remove abnormal discrete segments formed during power supply transitions, sudden changes in illumination, and vibration triggering stages. A missing segment completion process based on linear interpolation and exponential weighted moving average is constructed to complete the sequence for recording gaps caused by sleep switching, transient sampling jitter, and temporary port instability. The SG filtering algorithm is used to smooth cross-cycle fluctuations, ensuring the time series maintains a stable and analyzable form in the frequency domain. To ensure time consistency among multi-source input channels, a dynamic time warping algorithm is used to adjust the sampling rhythm differences of different channels, aligning the multi-source time series under a unified time reference. Standardization and normalization processing are performed on the original brightness soft-start dataset.
3. The anti-interference, low-power brightness adjustment method based on photosensitive feedback according to claim 1, characterized in that: The specific steps for identifying the stable state of the power supply switching process based on the original dataset of brightness soft start are as follows: The voltage calibration value of the current period is read based on the index position of the power input voltage sample in the time series and directly used as the instantaneous power supply voltage; Tracing back to the record position of the previous sampling period along the timestamp sequence, the voltage calibration value of the previous period in the power input voltage sample is retrieved to obtain the power supply voltage of the previous period; the current amplitude field of the current period is retrieved around the power input current sample, and the real-time current value is read to form the instantaneous power supply current; Based on the timestamp, reverse the location to the record position in the current sample sequence of the previous cycle, call the current amplitude field of the previous cycle, and obtain the power supply current of the previous cycle. Based on the time record information formed between adjacent sampling points, the difference between the timestamp of the current sampling point and the previous sampling point is compared to obtain the electrical parameter sampling interval; the lower limit feature extraction algorithm is executed in the power input current sample to extract the stable minimum amplitude and obtain the current minimum compensation amount; Divide the instantaneous supply voltage by the sum of the instantaneous supply current and the minimum current compensation to obtain the voltage carrying capacity ratio; subtract the supply voltage of the previous cycle from the instantaneous supply voltage, divide the difference by the electrical parameter sampling interval and take the absolute value to obtain the absolute value of the voltage change rate; subtract the supply current of the previous cycle from the instantaneous supply current, divide the difference by the electrical parameter sampling interval and take the absolute value, multiply it by the current change suppression coefficient and add it to one to obtain the current change suppression term; divide the absolute value of the voltage change rate by the current change suppression term to obtain the voltage change amount corrected by the current change suppression; subtract the voltage change amount from the voltage carrying capacity ratio to obtain the power supply steady-state margin value.
4. The anti-interference, low-power brightness adjustment method based on photosensitive feedback according to claim 3, characterized in that: The specific steps for determining whether the current power supply conditions support dimming and outputting the control command to enter the dimming process are as follows: The steady-state margin value of the power supply is compared with the stable power supply threshold in real time. When the steady-state margin value of the power supply is greater than or equal to the stable power supply threshold, the steady-state margin value of the power supply is written into the power supply status register and the control command to enter the dimming process is output. At the same time, the power supply buffer delay is released. When the steady-state margin value of the power supply is less than the stable power supply threshold, all dimming paths are frozen, the steady-state margin value of the power supply is written into the power supply recovery monitoring record and the current brightness level is maintained. Power supply buffer recovery is performed until the dimming conditions are met in the next cycle.
5. The anti-interference, low-power brightness adjustment method based on photosensitive feedback according to claim 1, characterized in that: The specific steps for analyzing the direction and continuity of light changes and the scene state after the dimming process is triggered are as follows: Receive the control command to enter the dimming process; read the voltage conversion value according to the current position of the phototransistor output signal sample in the time series to obtain the instantaneous photosensitive signal; trace back along the timestamp sequence of the phototransistor output signal sample to the corresponding record position of the previous cycle, call the voltage conversion value of the previous cycle to obtain the photosensitive signal of the previous cycle; if the cycle exists, continue to search forward to the record of an earlier cycle, read the corresponding voltage conversion value in the phototransistor output signal sample to obtain the photosensitive signal of the cycle before that; The trigger marker corresponding to the current timestamp is located around the binary trigger sample. The vibration state is directly read from the trigger marker field to obtain the vibration trigger state, which is a binary quantity. The photosensitive sampling interval is obtained by comparing the timestamp difference between two consecutive photosensitive signal records based on the time record information formed between adjacent photosensitive sampling points. The difference between the instantaneous photosensitive signal and the previous period's photosensitive signal is divided by the photosensitive sampling interval to obtain the first-order rate of change of the photosensitive signal. The difference between the instantaneous photosensitive signal and the previous period's photosensitive signal is subtracted by twice and added to the photosensitive signal of the period before that to obtain the second-order difference component of the photosensitive signal. The second-order difference component of the photosensitive signal is then divided by the photosensitive sampling interval and the absolute value is taken to obtain the absolute value of the second-order change of the photosensitive signal. The absolute value of the first-order rate of change of the photosensitive signal is multiplied by the vibration triggering state and then multiplied by the vibration enhancement coefficient to obtain the vibration enhancement change. The absolute value of the second-order change in photosensitive intensity is subtracted from the first-order change rate of photosensitive intensity, and the difference is added to the vibration enhancement change rate to obtain the brightness trend direction value.
6. The anti-interference, low-power brightness adjustment method based on photosensitive feedback according to claim 5, characterized in that: The specific steps for classifying brightness change trend levels and generating trend markers are as follows: The brightness trend indicator value is compared with the trend threshold in real time, and the trend threshold includes a primary trend threshold and a secondary trend threshold. When the brightness trend indicator value is greater than or equal to the first-level trend threshold, the upward trend mark is written to the trend mark storage area, the brightness enhancement preparation process is started, the output register information required for dimming execution is loaded, and the brightness enhancement command is pushed to the brightness soft start control process. When the brightness trend indicator value is greater than the secondary trend threshold and less than the primary trend threshold, the stable trend mark is written to the trend mark storage area, keeping the current brightness segment unchanged and recording the trend continuity information; When the brightness trend indicator value is less than or equal to the secondary trend threshold, a downward trend marker is written to the trend marker storage area, the brightness reduction preparation process is started, and the photosensitive changes are recorded to support the trend judgment of the next cycle.
7. The anti-interference, low-power brightness adjustment method based on photosensitive feedback according to claim 6, characterized in that: The specific steps for establishing a brightness transition path based on trend markers and power supply conditions are as follows: Extract the brightness trend index value with attached trend marker from the trend marker storage area; The negative change result in the brightness trend direction value is truncated to zero in the trend clipping structure to obtain the non-negative brightness trend value; Obtain the steady-state energy supply margin value; The trend modulation base value is obtained by dividing the result of a natural exponential function with the negative of the energy steady-state margin value as the denominator by taking the non-negative value of the brightness trend as the numerator. The energy envelope modulation factor is obtained by subtracting the result of the natural exponential function from the absolute value of the energy steady-state margin. Multiplying the trend modulation base value by the power supply envelope modulation factor yields the soft-start control slope value.
8. The anti-interference, low-power brightness adjustment method based on photosensitive feedback according to claim 1, characterized in that: The specific steps for monitoring the continuous operation status during the dimming command execution, completing brightness restoration and trend restoration, updating the stable output, and maintaining the continuous operation of the brightness adjustment link are as follows: During the brightness soft start phase, the target brightness value, trend information, and brightness segment number are written to the breakpoint record. When the system is powered on again or a reset check is performed, the record content in the breakpoint record structure is read, and the mid-stage soft start is performed according to the recorded brightness segment number to make the current brightness enter the corresponding brightness segment. After entering the corresponding brightness segment, the brightness change direction is restored according to the recorded trend information. After the restoration action is completed, the latest brightness segment number, trend information, and brightness output value are written to the brightness status record.
9. A photosensitive feedback-based anti-interference low-power brightness adjustment system, employing the photosensitive feedback-based anti-interference low-power brightness adjustment method according to any one of claims 1-8, comprising: The photosensitive data aggregation module, power supply buffer control module, dimming trend analysis module, brightness soft-start control module, and state retention and recovery module are characterized by: The photosensitive data aggregation module is used to collect basic operating data during the operation of the brightness soft start control process, construct the original brightness soft start dataset, and perform preprocessing. The power supply buffer control module is used to identify the stable state of the power supply switching process based on the original dataset of brightness soft start, determine whether the current power supply conditions have dimming capability, and output the control command to enter the dimming process. The dimming trend analysis module is used to analyze the direction and continuity of light change and scene status after the dimming process is triggered by the entry command, classify the brightness change trend level and generate trend markers. The brightness soft-start control module is used to establish a brightness transition path based on trend markers and power supply conditions, execute soft-start rhythm control, and promote the brightness to increase step by step. The state maintenance and recovery module is used to monitor the continuous operating status during the execution of the dimming command, complete the brightness recovery and trend recovery, update the stable output, and maintain the continuous operation of the brightness adjustment link.