Adaptive dimming control method and system based on state control and lighting device
By employing triaxial acceleration detection and adaptive dimming control, the problem of portable lighting devices accidentally turning off when not in use is solved, achieving energy saving, reduced consumption, and improved safety, while providing visual warning and rapid response lighting control.
Patent Information
- Application Number
- CN202611422998.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-24
AI Technical Summary
Existing portable lighting devices are prone to being misinterpreted as being held when not in use and will accidentally turn off, resulting in wasted electricity and safety hazards. They also lack visual warning and interactive blocking mechanisms.
By periodically collecting triaxial acceleration components, calculating transient discrete differential fluctuations, constructing a time-domain sliding window, statistically analyzing characteristic parameters, determining the device status, and triggering an adaptive dimming control process when the static timer accumulates to a preset duration, the brightness is gradually reduced by combining a pulse width modulation dimming signal, and finally the brightness is restored when user movement is detected.
It effectively avoids unnecessary lighting when the equipment is not in use, reduces power consumption, extends battery life, provides visual warnings and instant wake-up response, and ensures continuous and safe lighting during operation.
Smart Images

Figure CN123164622A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lighting equipment technology, and in particular to an adaptive dimming control method, system and lighting equipment based on state control. Background Technology
[0002] Portable lighting equipment (such as high-powered flashlights, headlamps, and mining searchlights) is widely used in field operations, rescue operations, and underground mining. In practice, workers often leave these devices unattended on workbenches, supports, or the ground after a period of work, when changing tools, or when their attention is diverted. In these idle states, the lighting equipment often remains at high brightness levels. This not only rapidly depletes the limited battery power and severely shortens the equipment's operating time, but also causes the high-power light source to generate continuous high heat in enclosed or confined spaces, easily leading to high temperatures, component aging, and even fire hazards in mining operations.
[0003] To achieve energy conservation and consumption reduction when the device is unused, existing technologies typically employ simple timed countdown shutdown or incorporate motion sensors within the device to detect its movement. When no significant shaking or displacement signal is detected within a set period, the control circuit cuts off the power supply to the light source. However, existing automatic light-off solutions suffer from the following technical problems in practical applications: Static holding can easily lead to accidental light shut-off: Existing motion detection mechanisms typically rely on setting a single motion amplitude threshold. When a user holds the lighting equipment and remains relatively still for observation (e.g., miners stopping to focus on checking rock wall cracks, repairing small instruments, or reading blueprints), the equipment can easily misinterpret this situation as idleness due to the lack of significant macroscopic displacement or shaking of the human hand, thus accidentally triggering the light shut-off and severely affecting the continuity of work. In dark and dangerous working environments, sudden accidental light outages can directly threaten the personal safety of workers.
[0004] Poor resistance to weak environmental vibration interference: If the trigger threshold of motion detection is simply lowered to avoid the accidental turning off of the light when the hand is held still, the subtle background disturbances in the environment (such as the flashlight being placed on a workbench with slight resonance, the micro-vibrations transmitted by the operation of a ventilator or water pump) will cause the sensor to continuously report motion, making it impossible for the equipment to recognize the true state of being free and stationary, thus completely paralyzing the automatic light-off energy-saving mechanism.
[0005] The lights are turned off abruptly and lack visual warning and interactive blocking mechanisms: the existing shutdown logic is mostly a sudden power outage. The instantaneous loss of light not only disrupts the dark vision that workers have adapted to, causing extreme discomfort and a feeling of blindness; more seriously, it cannot convey any intuitive warning signal to people around before the equipment is about to shut down. Even if users are still next to the equipment, it is difficult to intervene in time. There is a lack of an effective control mechanism that allows for easy blocking of the lights and quick restoration of light during the transition period. Summary of the Invention
[0006] Based on this, the purpose of the present invention is to provide an adaptive dimming control method, system and lighting device based on state control, so as to solve the problems of existing lighting devices continuously consuming power and generating heat when the hands are not in use, causing safety hazards, and existing motion detection is prone to misjudging the user's relatively still observation of the hand as if the hands are not in use, resulting in the accidental turning off of the light.
[0007] An adaptive dimming control method based on state control according to an embodiment of the present invention is applied to a lighting device, the method comprising: The triaxial acceleration components are periodically acquired, and the transient discrete differential fluctuation is calculated based on the discrete changes of each axis component between adjacent sampling points. A time-domain sliding time window is constructed based on a preset number of sampling points, and characteristic statistical parameters of transient discrete differential fluctuations falling within a preset micro-vibration range are statistically analyzed. The working state of the lighting equipment is classified and determined according to the aforementioned characteristic statistical parameters. The working state includes a large-scale movement state, a state in which the human hand is holding the equipment still, and a state in which the equipment is physically stationary after being released from the hand. The working mode of the stationary timer is controlled according to the determined working state. If it is determined to be a state of large-scale movement or a state of still hand holding, the stationary timer is reset and the current lighting brightness is maintained; if it is determined to be a state of physical stillness after the hand is removed, the stationary timer is incremented. When the static timer accumulates to the preset static duration, the adaptive dimming control process is triggered. The output pulse width modulation dimming signal controls the drive circuit to dynamically reduce the duty cycle according to the preset nonlinear dimming attenuation strategy, so as to control the lighting source to gradually reduce from the initial working brightness maintained by the lighting device before the adaptive dimming control process is triggered until it is turned off. During the execution of the adaptive dimming control process, the transient discrete differential fluctuation is continuously monitored. If the working state is detected to change from a physically stationary state to a state of large-scale movement or a state of static hand holding before the lighting source is turned off, the adaptive dimming control process is immediately interrupted, and the duty cycle of the pulse width modulation dimming signal is quickly restored to the initial working brightness.
[0008] In addition, the adaptive dimming control method based on state control according to the above embodiments of the present invention may also have the following additional technical features: Furthermore, the step of periodically acquiring triaxial acceleration components and calculating transient discrete differential fluctuations based on the discrete changes of each axis component between adjacent sampling points includes: The triaxial acceleration components at the current sampling time are obtained according to the preset sampling period, and the triaxial acceleration components recorded at the previous sampling time are read. Calculate the absolute value of the first-order difference between the acceleration components at the current sampling time and the previous sampling time in each of the three axes to obtain the first axial difference component, the second axial difference component, and the third axial difference component; The first axial difference component, the second axial difference component, and the third axial difference component are summed by scalar accumulation to obtain the transient discrete differential fluctuation at the current sampling time. The calculated transient discrete differential fluctuations are sequentially pushed into the storage queue, and the historical differential data is updated.
[0009] Furthermore, the step of statistically analyzing the characteristic statistical parameters of the transient discrete difference fluctuation within the sliding time window falling into the preset micro-vibration range includes: Set a noise floor threshold for filtering out inherent hardware noise, a micro-tremor determination threshold for characterizing the upper limit of human physiological micro-tremors, and a large-amplitude motion threshold for characterizing macroscopic displacement, wherein the noise floor threshold is less than the micro-tremor determination threshold, and the micro-tremor determination threshold is less than the large-amplitude motion threshold. The range of values that is greater than the noise floor threshold and less than the micro-vibration determination threshold is defined as the micro-vibration range; Maintain a time-domain sliding window containing a fixed number of sampling points. In each sampling period, discard the differential data at the earliest moment within the window and push in the latest acquired transient discrete differential fluctuation. Traverse the differential data within the sliding time window, and count the total number of sampling points whose values fall within the micro-vibration interval, using this count as the micro-vibration feature value; The total number of sampling points whose values are lower than the noise floor threshold within the sliding time window is counted, and their proportion in the total number of sampling points in the sliding time window is calculated as the static confidence ratio.
[0010] Furthermore, the step of classifying and determining the operating state of the lighting equipment based on the characteristic statistical parameters includes: Detect whether there exists a transient discrete difference fluctuation at at least one sampling point within the sliding time window that is greater than or equal to the large motion threshold; If so, the current working state is determined to be a state of large-scale movement; If not, the micro-tremor feature count value is compared with the preset effective count lower threshold and count upper threshold of human hand grip; If the micro-tremor feature count value is between the lower and upper count thresholds, the current working state is determined to be a static hand gripping state. If the micro-tremor feature count value is less than the count lower limit threshold, and the static confidence ratio is greater than or equal to the preset static ratio judgment threshold, then the current working state is determined to be a hands-free physical static state.
[0011] Furthermore, before the step of determining the current working state as a static hand-holding state, the method further includes: Extract the discrete curves of each transient discrete difference fluctuation within the sliding time window as a function of time, detect the first derivative sign reversal points that occur continuously within the micro-vibration interval of the discrete curves, and count the reversal frequency of alternating peaks and troughs. The reversal frequency of the micro-vibration feature is calculated based on the duration of the sliding time window and the reversal frequency. Determine whether the reversal frequency of the micro-vibration feature is within the preset inherent frequency band of human hand physiological tremor; If the reversal frequency of the micro-vibration feature falls within the inherent frequency band of the human hand's physiological tremor, then the micro-vibration feature verification is confirmed, and the step of determining the current working state as a static hand gripping state continues. If the reversal frequency of the micro-vibration feature does not fall within the inherent frequency band of the human hand physiological tremor, the micro-tremor feature count value is attenuated or cleared to determine that the micro-tremor feature is invalid, and the classification is re-determined based on the corrected micro-tremor feature count value.
[0012] Furthermore, in the step of determining that the current working state is a physically stationary state, the method further includes: Calculate the statistical variance of the discrete difference fluctuation at each sampling point within the sliding time window; When the static confidence ratio does not reach the preset static ratio judgment threshold, but the statistical variance of the discrete difference fluctuation is continuously less than the preset fluctuation variance threshold, autocorrelation analysis is performed on the difference data to detect whether there is a harmonic signal with a fixed period. If a harmonic signal with a fixed period is detected, the device is determined to be in a physically stationary state under mechanical resonance interference, and the working state is forcibly confirmed as a physically stationary state.
[0013] Furthermore, the step of dynamically reducing the duty cycle according to a preset nonlinear dimming attenuation strategy to control the lighting source to gradually decrease from the initial working brightness maintained by the lighting device before triggering the adaptive dimming control process until it is turned off includes: Lock the reference duty cycle used by the lighting equipment at the moment the dimming process is triggered, and initialize the dimming run timer; Set the total dimming control cycle, and subdivide the total dimming control cycle into multiple consecutive dimming control steps; Based on the preset human eye sensory illuminance adaptation model, the target pulse width modulation duty cycle corresponding to each adjustment moment is calculated so that the decrease slope of the luminous brightness of the lighting source is relatively steep and rapid in the early stage of dimming, and smooth and gentle fine adjustment in the later stage of dimming. The pulse width modulation duty cycle of the output is updated step by step until the running timer reaches the total dimming control cycle, at which point the duty cycle output is completely turned off.
[0014] Furthermore, the step of rapidly restoring the duty cycle of the pulse width modulation dimming signal to the initial operating brightness includes: Capture the instantaneous duty cycle value at the moment of interrupt triggering, and read the system's preset startup recovery duration; The difference between the reference duty cycle corresponding to the initial working brightness and the instantaneous duty cycle is divided into multiple increasing steps; During the startup recovery period, the duty cycle of the drive pulse width modulation is continuously increased from the instantaneous duty cycle to the reference working duty cycle according to the preset step time base; After the duty cycle is fully restored, the dimming logic is locked within the preset shielding time window, preventing the response to the next dimming trigger signal.
[0015] Another embodiment of the present invention aims to provide an adaptive dimming control system based on state control, applied in lighting equipment, the system comprising: The signal acquisition and differential calculation module is used to periodically acquire triaxial acceleration components and calculate transient discrete differential fluctuations based on the discrete changes of each axis component between adjacent sampling points. The feature statistics extraction module is used to construct a time-domain sliding time window based on a preset number of sampling points, and to statistically analyze the feature parameters of transient discrete differential fluctuations falling within a preset micro-vibration range within the sliding time window. The state classification and determination module is used to classify and determine the working state of the lighting equipment according to the feature statistical parameters. The working state includes a large-scale movement state, a state in which the human hand is still holding the equipment, and a state in which the hand is removed and the equipment is physically still. The timing management module is used to control the working mode of the stationary timer according to the determined working state. If it is determined to be a state of large-scale movement or a state of hand holding still, the stationary timer is reset and the current lighting brightness is maintained; if it is determined to be a state of physical stillness after the hand is removed, the stationary timer is incremented. The dimming execution module is used to trigger the adaptive dimming control process when the static timer accumulates to a preset static duration. It controls the drive circuit by outputting a pulse width modulation dimming signal to dynamically reduce the duty cycle according to a preset nonlinear dimming attenuation strategy, so as to control the lighting source to gradually decrease from the initial working brightness maintained by the lighting device before the adaptive dimming control process is triggered until it is turned off. The interruption and recovery module is used to continuously monitor the transient discrete differential fluctuation during the operation of the dimming execution module. If the system detects that the physical static state of the hand has switched to a large-scale movement state or the hand is still before the lighting source is turned off, the dimming process is immediately interrupted and the duty cycle of the pulse width modulation dimming signal is quickly restored to the initial working brightness.
[0016] Another embodiment of the present invention aims to provide a lighting device, comprising: The lamp housing, the lighting source disposed inside the lamp housing, the driving circuit electrically connected to the lighting source, the power management module, the triaxial accelerometer, the memory, and the controller; The memory stores computer program instructions; The controller is electrically connected to the drive circuit, the triaxial accelerometer, and the memory. The controller implements the state-based adaptive dimming control method described above by calling and executing computer program instructions in the memory.
[0017] The adaptive dimming control method based on state control provided in this invention has the following beneficial effects: 1. By periodically collecting triaxial acceleration components and calculating transient discrete differential fluctuations based on the discrete changes of each axis component between adjacent sampling points, low-computing-power rapid extraction of dynamic motion changes in three-dimensional space is achieved in the discrete time-series dimension. This effectively eliminates the interference of static components such as constant gravitational acceleration, thereby capturing the minute physical displacement dynamics of the device with extremely low computational overhead.
[0018] 2. By constructing a time-domain sliding window based on a preset number of sampling points and statistically analyzing the characteristic parameters of transient discrete differential fluctuations falling within a preset micro-vibration range, the working state of the lighting equipment is further classified and determined into large-scale motion state, hand-held still state, and physically stationary state. This achieves effective capture and quantification of the minute hand tremors within the time window, overcoming the shortcomings of traditional motion detection that equates relative stillness of the human body with the equipment being idle. It effectively avoids the problem of accidental extinguishing of the lighting equipment when the user is holding it and observing it in a relatively still position, thus improving the accuracy of the working condition determination and the safety of the operation.
[0019] 3. By adaptively controlling the working mode of the stationary timer based on the determined working state, the stationary timer is reset and the current lighting brightness is maintained when the state of large-scale movement or when the hand is stationary, and the stationary timer is incremented when the state of physical stationary state is determined. This achieves dynamic coordination between the lighting control of the lighting equipment and the actual human-machine interaction working conditions. Without changing the user's operating habits, it effectively avoids unnecessary continuous lighting when the equipment is idle, significantly reduces power consumption, and slows down the battery life degradation.
[0020] 4. By triggering the adaptive dimming control process when the static timer accumulates to the preset static duration, and dynamically reducing the duty cycle of the pulse width modulation dimming signal until it is turned off according to the preset nonlinear dimming attenuation strategy, the natural attenuation of the light intensity conforms to the nonlinear light and dark adaptation perception law of the human eye. The dimming process is transformed into an intuitive and silent visual warning signal, eliminating the damage and discomfort to the human eye's dark adaptation vision caused by the traditional sudden power failure, and improving the visual comfort and user-friendliness of the dimming process.
[0021] 5. By continuously monitoring transient discrete differential fluctuations during the execution of the adaptive dimming control process, and immediately interrupting the adaptive dimming control process and quickly restoring the duty cycle to the initial working brightness maintained by the lighting equipment before the lighting source is turned off when the working state is detected to switch to a large movement state or the hand is stationary, the system achieves instantaneous perception and immediate wake-up response to the user's reuse or slight shaking movements. This gives the user the ability to block the lights from turning off and restore the work lighting at any time with a simple action before the equipment is about to be turned off, ensuring the continuity of lighting during critical stages of the work process.
[0022] In summary, this effectively solves the safety hazards caused by the continuous power consumption and heat generation of existing lighting equipment when it is not in use, as well as the problem that existing motion detection can easily misjudge a user's relatively still hand position as if the light is not in use, leading to accidental light turning off. Attached Figure Description
[0023] Figure 1 This is a flowchart illustrating the adaptive dimming control method based on state control in the first embodiment of the present invention. Figure 2 This is a schematic diagram of the specific process of step S10 in the first embodiment of the present invention; Figure 3 This is a schematic diagram of the adaptive dimming control system based on state control in the second embodiment of the present invention; Figure 4 This is a schematic diagram of the lighting device in the third embodiment of the present invention; The following detailed description of the embodiments will further illustrate the present invention in conjunction with the above-described accompanying drawings. Detailed Implementation
[0024] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
[0025] It should be noted that when a component is said to be "fixed to" another component, it can be directly on the other component or there may be an intervening component. When a component is said to be "connected to" another component, it can be directly connected to the other component or there may be an intervening component. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0027] Example 1
[0028] Please see Figure 1 The diagram illustrates a state-based adaptive dimming control method according to a first embodiment of the present invention. For ease of explanation, only the parts relevant to this embodiment are shown. The state-based adaptive dimming control method provided by this embodiment is applied to lighting equipment, and the method includes: Step S10: Periodically collect triaxial acceleration components and calculate transient discrete differential fluctuation based on the discrete changes of each axis component between adjacent sampling points; In one embodiment of the present invention, the method is applied to lighting equipment, including flashlights, headlamps, mining searchlights, or portable engineering lights. Specifically, the lighting equipment in this embodiment is actually a portable high-intensity flashlight or headlamp, mainly used in high-risk mining operations such as underground mining, mine inspection, and tunnel construction. It can also be used for field search and rescue or routine maintenance. Furthermore, the lighting equipment can be used in conjunction with a mining safety helmet, that is, the lighting equipment can be detachably installed on a special bracket on the side of the safety helmet or on the top light stand, serving as a safety headlamp for hands-free mobile lighting for mining workers.
[0029] Furthermore, the hardware architecture of the lighting device includes, but is not limited to, a central processing unit, a data acquisition module, a light-emitting unit, and a power management module. The central processing unit (CPU) serves as the core control and data processing unit, electrically connected to the data acquisition module, the light-emitting unit, and the power management module. The data acquisition module includes at least a three-axis accelerometer, employing a microelectromechanical system (MEMS) accelerometer chip. This chip is mounted on the main control circuit board inside the lighting equipment and tightly fitted to the rigid inner shell. It is used to sense and acquire the instantaneous acceleration components of the lighting equipment in three mutually perpendicular directions in three-dimensional physical space in real time. Internally, it integrates an analog-to-digital converter, a data buffer register, and interrupt control logic. The light-emitting unit, as the light source output module, includes high-power semiconductor light-emitting diodes and a pulse-width modulation (PWM) drive circuit. It not only provides directional high-brightness illumination for workers in underground dim or dusty environments but also, under the control of the CPU, dynamically adjusts the duty cycle of the PWM signal to achieve multi-level dimming and gradual dimming / extinguishing when the equipment is idle. The power management module includes at least a battery pack, a charge / discharge protection circuit, and a voltage regulator chip to provide a clean and stable operating voltage for the CPU, the three-axis accelerometer, and the light-emitting unit.
[0030] In one embodiment of the present invention, reference is made to Figure 2 As shown, the steps of periodically acquiring triaxial acceleration components and calculating transient discrete difference fluctuations based on the discrete changes of each axis component between adjacent sampling points include: Step S11: Obtain the triaxial acceleration components at the current sampling time according to the preset sampling period, and read the triaxial acceleration components recorded at the previous sampling time. Step S12: Calculate the absolute value of the first-order difference between the acceleration components at the current sampling time and the previous sampling time in the three axes respectively, to obtain the first axial difference component, the second axial difference component and the third axial difference component; Step S13: Scalar summation of the first axial difference component, the second axial difference component, and the third axial difference component to obtain the transient discrete differential fluctuation at the current sampling time. Step S14: The calculated transient discrete differential fluctuations are sequentially pushed into the storage queue, and the historical differential data is updated.
[0031] Specifically, the hardware timer inside the central processing unit periodically generates data acquisition clock interrupts according to pre-configured time base parameters. This preset sampling period is preferably configured to be between 20 and 50 milliseconds, corresponding to a sampling frequency of 20 to 50 Hz. This timescale is sufficient to fully capture the physiological micro-motion frequency band generated when the human hand grips the object, while avoiding additional computational power consumption for the microprocessor due to excessively high sampling frequencies. At each sampling moment, the triaxial accelerometer, through its internal micromechanical sensing structure, detects the instantaneous acceleration force along the first, second, and third spatial axes (i.e., mutually orthogonal spatial coordinate directions) in real time. After internal analog-to-digital conversion, it generates the first, second, and third axial acceleration components representing the current physical state and stores them in the sensor's output register. The central processing unit responds to the timer interrupt and sends a data reading command to the triaxial accelerometer via the internal serial communication bus to continuously read the triaxial acceleration components at the current sampling time. At the same time, the central processing unit retrieves the triaxial acceleration components that were previously saved in its random access memory at the previous sampling time to complete the alignment and loading of two adjacent sets of sampling data in the time series.
[0032] Next, after obtaining two sets of temporally adjacent three-axis data, the central processing unit (CPU) subtracts the first axial acceleration component from the previous sampling time from the first axial acceleration component at the current sampling time, and performs an absolute value operation on the calculated difference to eliminate interference from the vector direction sign, obtaining the first axial difference component characterizing the intensity of the sudden change in physical motion along that single axis. Similarly, the CPU independently calculates the second axial difference component along the second spatial axis and the third axial difference component along the third spatial axis using the exact same logic. This operation of obtaining the absolute value of the first-order difference achieves spatial gravity vector decoupling and reference separation. Regardless of whether the lighting device is currently placed horizontally, vertically inverted, or at any tilt angle, since the projection components of the Earth's constant gravitational acceleration along each axis remain constant when the device is stationary, the difference operation between adjacent extremely short sampling times can completely cancel out the constant static components, thereby filtering out the interference of static attitude on motion detection and directly exposing the net acceleration jump variable excited by external dynamic jitter.
[0033] Subsequently, the central processing unit (CPU) feeds the calculated first, second, and third axial difference components into the accumulator, performs unweighted scalar algebraic accumulation, and merges them to generate a scalar form of transient discrete difference fluctuation. By using the scalar accumulation and summation of the absolute values of the first-order differences along the three axes instead of the conventional Euclidean norm operation based on the square root of the sum of squares along each axis, the CPU ensures comprehensive capture of subtle oscillation energy in any direction in three-dimensional space while avoiding excessive computational cycles in low-power microprocessors when performing floating-point multiplication and nonlinear square root operations. This allows the entire calculation process to rely solely on basic fixed-point integer addition and subtraction instructions, thereby achieving extremely low power consumption and low response latency.
[0034] Finally, the central processing unit (CPU) uses the calculated transient discrete differential fluctuations as the latest time series feature points and pushes them sequentially into the tail of a pre-set first-in-first-out (FIFO) circular storage queue in memory. If the number of samples stored in the FIFO circular storage queue has reached a preset storage depth threshold, the CPU automatically performs data pointer rollback and queue head shift operations to remove the oldest historical differential data from the queue, ensuring that the queue always contains the latest data set within the predetermined time window. Simultaneously, the CPU writes the first, second, and third axial acceleration components sampled at the current sampling moment back to the historical data cache unit, overwriting the old data from the previous period, as a new comparison benchmark when the next sampling period arrives. This completes the differential data iteration for the current period, providing a data foundation for subsequent construction of a time-domain sliding window and extraction of micro-vibration feature statistical parameters.
[0035] Therefore, by calculating the absolute value of the first-order difference in the three-axis directions and performing scalar accumulation and summation, and by using a circular queue to dynamically update historical difference data, the present invention achieves the natural elimination of interference from the projection components of the Earth's constant gravitational acceleration in each spatial axis at the physical level, and avoids complex nonlinear geometric operations such as high-power floating-point multiplication and spatial square root extraction. This reduces the computational load and instruction execution overhead of the controller, enabling low-power microcontrollers with extremely low hardware costs and extremely low computational performance to achieve microsecond-level high-frequency real-time attitude decoupling, balancing the sensitivity of motion detection with the ultra-low standby power consumption of the device itself.
[0036] Step S20: Construct a time-domain sliding window based on a preset number of sampling points, and statistically analyze the characteristic parameters of transient discrete differential fluctuations falling within a preset micro-vibration range within the sliding window. In one embodiment of the present invention, the step of defining the characteristic statistical parameters in which the transient discrete difference fluctuation within the statistical sliding time window falls within a preset micro-vibration range includes: Set a noise floor threshold for filtering out inherent hardware noise, a micro-tremor determination threshold for characterizing the upper limit of human physiological micro-tremors, and a large-amplitude motion threshold for characterizing macroscopic displacement, wherein the noise floor threshold is less than the micro-tremor determination threshold, and the micro-tremor determination threshold is less than the large-amplitude motion threshold. The range of values that are greater than the noise floor threshold and less than the micro-vibration detection threshold is defined as the micro-vibration range; Maintain a time-domain sliding window containing a fixed number of sampling points. In each sampling period, discard the differential data at the earliest moment within the window and push in the latest acquired transient discrete differential fluctuation. Traverse the differential data within the sliding time window, count the total number of sampling points whose values fall within the micro-vibration interval, and use this as the micro-vibration feature count value; The total number of sampling points with values below the noise floor threshold within the sliding time window is counted, and their proportion in the total number of sampling points in the sliding time window is calculated as the static confidence ratio.
[0037] Specifically, during the firmware initialization phase, the central processing unit pre-configures three discrete thresholds with clear physical gradients in its internal non-volatile memory, based on the hardware physical characteristics of the triaxial accelerometer and ergonomic experimental data.
[0038] Specifically, the first level is the noise floor threshold, which is set based on the inherent noise upper limit induced by the thermal Brownian motion of the internal microelectromechanical structure of the triaxial accelerometer, the thermal noise of the preamplifier circuit, and the jump of the least significant bit of the analog-to-digital converter in a completely rigid and silent environment without any external force disturbance. When the lighting equipment is placed flat on a stationary horizontal surface, the transient discrete differential fluctuation calculated at adjacent sampling times is affected by this background white noise, and its value always fluctuates slightly below the noise floor threshold. The second level is the micro-tremor detection threshold, which is set based on the upper limit of the weak mechanical tremor caused by the physiological tremor of the arm when the human body holds the lighting device in a static position with one hand and looks at the target. Although the displacement is difficult to be detected by the naked eye, it will produce continuous micro-amplitude oscillations with higher than the sensor noise floor but with strictly limited energy in the spatial acceleration dimension. The third level is the large-amplitude motion threshold, which is significantly higher than the micro-tremor detection threshold. It is used to characterize the sudden acceleration caused by macroscopic displacement behaviors such as waving arms, running with a light, making large adjustments to the direction of lighting, or collisions. By using the noise floor threshold, micro-tremor detection threshold, and large-amplitude motion threshold arranged in ascending order, the system divides the data amplitude into a static noise floor zone, a micro-vibration zone between the noise floor threshold and the micro-tremor detection threshold, and a large-amplitude motion zone greater than the large-amplitude motion threshold.
[0039] Next, the central processing unit (CPU) allocates a contiguous array storage space in memory to construct a fixed-length time-domain sliding window. This sliding window contains a pre-defined number of valid sampled data points (e.g., preferably twenty consecutive sampled points; in an embodiment where the sampling period for each point is fifty milliseconds, the entire window strictly corresponds to one second of continuous physical observation time in the time domain). The span of this time window is sufficient to completely cover several complete alternating fluctuation cycles of human physiological tremors in the time domain. During each sampling clock cycle of system operation, after the CPU calculates the latest transient discrete differential fluctuation, it invokes the ring pointer scheduling mechanism to write the latest differential data to the end of the window queue. Simultaneously, it automatically overwrites and removes the earliest stored and outdated differential data on the time axis, thus shifting the time-domain sliding window forward on the time axis. This ensures that the dataset within the window always maintains the complete picture of the continuous dynamic response of the lighting device within the most recent one-second time span.
[0040] Subsequently, the CPU performs segmented statistical analysis on all sampling point data currently residing within the sliding time window. The CPU first initializes and clears the micro-flicker event counter and the still event counter in its internal registers. Then, the CPU sequentially reads each transient discrete differential fluctuation within the sliding time window using an incrementing pointer, and compares its value with the noise floor threshold and the micro-flicker determination threshold, respectively. If the transient discrete differential fluctuation value of a certain sampling point is strictly greater than the noise floor threshold and simultaneously strictly less than the micro-vibration detection threshold, the central processing unit (CPU) determines that the sampling point has captured a disturbance event that conforms to the micro-vibration energy characteristics, and immediately instructs the micro-vibration event counting unit to perform an automatic increment operation. After the CPU sequentially completes the scanning and comparison of all data points within the sliding time window, the sum of the accumulated values of the micro-vibration event counting unit is used as the final micro-vibration feature count value characterizing the micro-vibration activity density within the observation period. By statistically analyzing the frequency density of discrete differential points falling into the micro-vibration interval, the system can directly quantify and extract the discrete shaking characteristics of a hand holding the object at rest in the discrete time domain without relying on complex frequency domain transformations.
[0041] Finally, during the traversal of the sliding time window, if the transient discrete differential fluctuation value of a certain sampling point is detected to be less than or equal to the noise floor threshold, the CPU determines that the sampling point is in a purely mechanically silent state and instructs the static event counter unit to automatically increment by one. After the traversal is completed, the CPU obtains the total number of static sampling points recorded by the static event counter unit and divides it by the total number of sampling points within the sliding time window, obtaining the ratio between the two values. To avoid the resource overhead caused by the low-power processor performing floating-point division, the CPU can convert the obtained ratio into a static confidence ratio presented as a percentage integer value through fixed-point shifting or multiplying by one hundred. This static confidence ratio intuitively reflects the proportion of time when the device is completely in a static state without external force within the current sliding time window. The closer the value is to the full percentage, the higher the certainty that the device has detached from human contact and been placed on the support. Thus, the central processing unit extracts two complementary statistical parameters, the micro-tremor feature count and the static confidence ratio, in parallel within a sliding time window, thereby completing the feature dimensionality reduction and physical state abstraction of the instantaneous acceleration discrete differential flow.
[0042] Step S30: Classify and determine the working state of the lighting equipment according to the feature statistical parameters. The working state includes large-scale movement state, hand-held still state, and physical still state after being released from the hand. In one embodiment of the present invention, the step of classifying and determining the working state of the lighting device based on feature statistical parameters includes: Detect whether there is a transient discrete difference fluctuation at at least one sampling point within the sliding time window that is greater than or equal to the large motion threshold; If so, the current working state is determined to be a state of large-scale movement; If not, the micro-tremor feature count value is compared with the preset effective count lower threshold and count upper threshold of human hand grip; If the micro-tremor feature count value is between the lower and upper count thresholds, the current working state is determined to be a static hand-holding state. If the micro-tremor feature count is less than the lower limit threshold and the rest confidence ratio is greater than or equal to the preset rest ratio judgment threshold, then the current working state is determined to be a physically idle state.
[0043] Specifically, after extracting the micro-flicker feature count value and the static confidence ratio within the time-domain sliding window, the central processing unit (CPU) retrieves the differential values of each sampling point within the sliding window and compares them point-by-point with a preset large-amplitude motion threshold. If the transient discrete differential fluctuation of any sampling point within the entire window reaches or exceeds the large-amplitude motion threshold, the CPU does not need to wait for subsequent count comparisons. It immediately determines that the lighting equipment is currently in use when the user is waving their arm, running with the light, adjusting the illumination direction, or undergoing a violent displacement, and immediately marks the equipment as being in a large-amplitude motion state in the system's global status register. This priority exclusion mechanism ensures that strong motion signals can be captured and responded to by the microcontroller with minimal instruction latency. This ensures that the lighting equipment always maintains the highest sensitivity for activity recognition when workers in mining operations are making large movements, completely avoiding erroneous operations such as flickering or dimming caused by algorithm delays.
[0044] Next, if, after traversing and searching within the sliding time window, it is confirmed that the transient discrete differential fluctuations of all sampling points are strictly below the large-amplitude motion threshold, indicating that the lighting equipment has not undergone large-scale displacement changes in the macroscopic physical space, the central processing unit then retrieves the lower limit threshold and the upper limit threshold of the effective hand grip count, which are pre-stored in memory. In a typical embodiment where the sliding time window is set to twenty discrete sampling points (the time domain span corresponds to one second), the lower limit threshold is preferably configured with four sampling points, and the upper limit threshold is preferably configured with sixteen sampling points. The central processing unit then performs an interval inclusion determination between the micro-tremor feature count values obtained from the previous steps and the threshold interval: Specifically, if the micro-vibration count falls precisely within the range closed by the lower and upper thresholds, it indicates that the device, within the current second, has neither produced any violent large movements nor consistently and intermittently generated micro-amplitude tremors consistent with the physiological twitching frequency and energy scale of human muscle fibers (i.e., reflecting the physiological tremor waveform of eight to twelve hertz per second that inevitably exists when the human body is statically holding the device). Based on this, the central processing unit confirms that the lighting device has not been discarded or placed, but is being stably held by the user, and thus updates the system's global status register to mark it as a static hand-holding state. This judgment rule, by utilizing the discrete density characteristics of physiological micro-vibrations in the time domain, successfully and accurately separates the static hand-holding state from the mechanical static state, solving the problem of traditional technologies misjudging static holding as idle equipment.
[0045] If the central processing unit (CPU) detects that the micro-tremor feature count is significantly lower than the aforementioned lower threshold, it indicates an extreme lack of micro-motion signals representing physiological contact within the sliding time window. The CPU then retrieves the stationary confidence ratio calculated in the previous steps and compares it with a preset stationary ratio judgment threshold (set to 80% to 90% in a preferred embodiment). If the micro-tremor feature count is lower than the lower limit, and simultaneously, the proportion of dead static sampling points below the noise floor threshold reaches 80% or 90% or more within the entire sliding time window, the CPU determines that the lighting equipment has been removed from direct contact with human skin and muscles and is in a physically detached state, either lying flat on a workbench, suspended on a fixed bracket, or left on the ground. The CPU then updates the system's global status register to mark it as a physically detached state.
[0046] Finally, the central processing unit pushes the flags of the large-scale motion state, the static holding state, or the physical static state of the released hand to the system's timing and scheduling management unit in real time. This serves as the sole driving input source for subsequent control of whether the static timer is reset, kept on standby, or incremented. This achieves a highly reliable classification of multiple physical interaction states and realizes a deep synergy between low instruction overhead and high anti-interference capability.
[0047] Furthermore, in a preferred embodiment of the present invention, before the step of determining the current working state as a static hand-holding state, the method further includes: Extract the discrete curves of each transient discrete difference fluctuation within the sliding time window as a function of time, detect the inversion points of the first derivative sign that occur continuously in the micro-vibration interval of the discrete curves, and count the inversion frequency of the alternating peaks and troughs. The reversal frequency of the micro-vibration characteristics is calculated based on the duration of the sliding time window and the reversal frequency. Determine whether the reversal frequency of the micro-vibration characteristic is within the preset natural frequency band of human hand physiological tremor; If the reversal frequency of the micro-vibration feature falls within the inherent frequency band of human hand physiological tremor, then the micro-vibration feature verification is confirmed, and the step of determining the current working state as a static hand gripping state continues. If the reversal frequency of the micro-vibration feature does not fall within the inherent frequency band of human hand physiological tremor, the micro-vibration feature count value will be attenuated or cleared to determine that the micro-vibration feature is invalid, and the classification will be re-evaluated based on the corrected micro-vibration feature count value.
[0048] Specifically, after obtaining the micro-vibration characteristic count value at the front end, although this value represents the number density of sampling points falling within the micro-vibration range, if screening is based solely on amplitude magnitude, there may be special cases where sampling points happen to fall within the amplitude range due to weak low-frequency shaking of the mining work platform, slow baseline shift induced by temperature drift, or occasional external clutter. To eliminate misjudgments caused by such occasional non-physiological interference, before confirming the static gripping state of the human hand, the central processing unit (CPU) retrieves the transient discrete differential fluctuation quantities arranged sequentially within the current sliding time window, constructing a curve reflecting the variation of the intensity of micro-vibration in the discrete time domain. The central processing unit (CPU) iterates along the time progression direction, using a discrete numerical difference method to calculate the first-order slope difference between adjacent points. This involves subtracting the differential fluctuation of the previous sampling point from the current sampling point's differential fluctuation, yielding the sign of the first-order discrete derivative representing the trend of the discrete curve (a positive sign indicates an upward trend, a negative sign indicates a downward trend). When the CPU detects a sign reversal between two adjacent first-order derivatives (i.e., from positive to negative, corresponding to a local maximum peak; or from negative to positive, corresponding to a local minimum trough), it confirms that a valid first-order derivative sign reversal point has been captured. Next, the CPU performs a validity check on the amplitude of these reversal points. Only when the value of the reversal point itself strictly falls within the aforementioned micro-oscillation range is the reversal counter incremented, thus statistically determining the total frequency of alternating peaks and troughs within the entire sliding time window.
[0049] Next, the central processing unit (CPU) calculates the physical fluctuation frequency using fixed-point arithmetic based on the physical time span corresponding to the sliding time window (in a preferred embodiment, the window duration is configured as one second) and the total reversal frequency recorded by the reversal counter. Since a complete alternating cycle in a continuous sinusoidal or quasi-periodic vibration waveform necessarily contains exactly one peak and one trough (i.e., two alternating reversals of direction signs) in physical geometry, the CPU divides the statistically obtained total reversal frequency by two and then by the physical duration of the sliding time window to directly obtain the dominant oscillation frequency in the time domain of the current micro-amplitude oscillation, i.e., the micro-vibration characteristic reversal frequency (in Hertz). This algorithm directly extracts the dominant frequency in the time domain using the discrete derivative reversal point, completely avoiding the need to call the energy-intensive frequency domain fast Fourier transform algorithm within the microprocessor, enabling the low-power microcontroller to instantly complete the quantitative analysis of the waveform frequency characteristics within a few instruction cycles.
[0050] Furthermore, the central processing unit retrieves the inherent frequency band of human hand physiological tremor pre-programmed into the storage area. According to the laws of biomechanics and human neuroelectrophysiology, when the human body is statically holding a tool or device, the postural physiological tremor caused by the synchronous firing of spinal motor neurons and the autonomous micro-tension and relaxation movements of muscle fibers exhibits a highly concentrated frequency band constraint in its energy distribution. The inherent frequency band is strictly located between 8 Hz and 12 Hz (in the fault-tolerant extended embodiment, this range can be adaptively widened to between 6 Hz and 14 Hz). The central processing unit (CPU) compares the calculated micro-vibration feature reversal frequency with the inherent frequency band. If the calculated micro-vibration feature reversal frequency falls strictly within the frequency band of 8 Hz to 12 Hz, the CPU confirms that the continuous micro-vibration waveform completely matches the physiological tremor characteristics of a living human hand when it is still holding the hand. Then, it sets the micro-tremor feature verification pass flag and continues to execute the step of determining the current working state as a still hand holding state. If the micro-tremor feature count value is between the lower and upper limits of the count, the working state is officially confirmed as a still hand holding state.
[0051] Finally, if the central processing unit (CPU) finds that the reversal frequency of the micro-vibration feature is lower than the lower limit of the preset physiological frequency band (e.g., below six Hz, typically corresponding to low-frequency swaying of equipment with a suspended rope, slow bumping of mining vehicles, or slow temperature drift of the baseline), or higher than the upper limit of the preset physiological frequency band (e.g., above fourteen Hz, typically corresponding to high-frequency structural vibration or electromagnetic noise generated by the operation of a machine motor), the CPU determines that such vibration is a pseudo-micro-motion signal that is not a human physiological micro-tremor. The CPU immediately forces the micro-tremor feature count value calculated in the previous steps to be cleared, or multiplies it by a preset attenuation factor less than one to reduce the amplitude. After being zeroed or attenuated, the micro-vibration feature count value will directly fall below the lower limit threshold required for subsequent entry into the static gripping state. At this time, the classification is re-determined based on the corrected micro-vibration feature count value. Since the micro-vibration feature count value is less than the lower limit threshold, it prompts the subsequent logic to determine that the hand is physically stationary after being released, thereby blocking the misjudgment channel of misidentifying external high-frequency mechanical vibration or low-frequency shaking as a hand gripping. This ensures that the equipment can accurately, stably and reliably identify the user's true release behavior in harsh industrial and mining disturbance environments.
[0052] Therefore, this embodiment of the invention extracts the sign reversal point of the first derivative of the discrete curve within the sliding time window to count the frequency of alternating reversals of peaks and troughs, and verifies whether the reversal frequency of micro-vibration features falls within the inherent frequency band of human physiological tremors. This achieves accurate analysis of the dominant frequency of micro-amplitude swaying signals from the time-domain discrete morphological dimension, effectively filtering out slow swaying and occasional electromagnetic noise in the external environment. Thus, it confirms the gripping contact of a living human hand from the perspective of inherent biomechanical characteristics, avoiding misjudging pseudo-micro-motion signals of non-human contact as a static gripping hand, and improving the objectivity and high fidelity of state recognition judgment.
[0053] Furthermore, in a preferred embodiment of the present invention, the method further includes, in the step of determining the current working state as a physically stationary state, the method further includes: Calculate the statistical variance of the discrete difference fluctuation at each sampling point within the sliding time window; When the static confidence ratio does not reach the preset static ratio judgment threshold, but the statistical variance of the discrete difference fluctuation is continuously less than the preset fluctuation variance threshold, autocorrelation analysis is performed on the difference data to detect whether there is a harmonic signal with a fixed period. If a harmonic signal with a fixed period is detected, the device is determined to be in a physically stationary state under mechanical resonance interference, and the working state is forcibly confirmed as a physically stationary state.
[0054] Specifically, in typical mining operations such as underground mines, tunnel excavation, or heavy industrial assembly, workers often have the habit of temporarily placing flashlights or miner's lamps on the surface of the casing of continuously operating heavy mining machinery (for example, placing them flat on the outer casing of ventilation fans, underground sewage sludge pump units, diesel generator casings, or vibrating screen supports).
[0055] Under the aforementioned operating conditions, the running mechanical motor and transmission shaft system generate continuous structural mechanical micro-vibrations. These vibrations are directly transmitted through the metal casing to the triaxial accelerometer inside the lighting equipment's outer shell, causing the transient discrete differential fluctuations detected by the sensor to continuously fluctuate above the noise floor threshold. At this point, the number of silent sampling points within the sliding time window that fall below the noise floor threshold decreases significantly, resulting in a sharp drop in the calculated static confidence ratio, failing to reach the preset static judgment threshold of 80% to 90%. If relying solely on a single static confidence ratio threshold, traditional equipment is highly susceptible to misjudging the lighting as being manually moved, causing the lighting equipment to remain under rated high-intensity illumination for extended periods when left unattended, leading to irreversible battery depletion and safety hazards such as overheating and deterioration of the sealed cavity. To overcome this technical deficiency, when the static confidence ratio fails to meet the standard, the central processing unit automatically initiates a secondary multidimensional anti-resonance discrimination mechanism. First, it calls a discrete statistical analysis algorithm to calculate the statistical variance of the transient discrete differential fluctuations of all sampling points residing within the sliding time window. In the specific calculation, the central processing unit first calculates the arithmetic mean of all difference values within the current window, then calculates the sum of squares of the discrete differences between each sampling point and the mean value, and divides it by the total number of sampling points to obtain the statistical variance that characterizes the degree of deviation of the differential fluctuation energy from the discreteness.
[0056] Next, the central processing unit compares the calculated statistical variance with a pre-stored preset fluctuation variance threshold. Based on the fundamental differences between vibration physics and ergonomics: when a lighting device is held by a living human body, even if the hand attempts to remain suspended, the hand's micro-tremor signal will inevitably exhibit random, sporadic, and energy-fluctuating non-stationary discrete characteristics in the time domain due to the discrete nonlinearity of human respiratory muscle movement, cardiovascular pulsation, and nervous system regulation. This results in a relatively large and drastically fluctuating statistical variance of its discrete differential fluctuation. Conversely, rotating machinery driven by a fixed-speed motor exhibits highly stable simple harmonic motion characteristics on a macroscopic time scale. Its vibration amplitude distribution is extremely balanced, convergent, and highly stable, resulting in a very small statistical variance of its discrete differential fluctuation within a time-domain sliding window. Therefore, when the central processing unit detects that although the static confidence ratio has not reached the threshold, the statistical variance of the discrete difference fluctuation has been strictly less than the preset fluctuation variance threshold for multiple windows, the central processing unit initially infers that the external disturbance is likely to originate from steady-state mechanical resonance rather than human movement, and immediately triggers the autocorrelation harmonic fine analysis algorithm to further decouple the differential data in the time domain periodicity.
[0057] Furthermore, the central processing unit (CPU) performs discrete autocorrelation function analysis on the differential data sequence within the sliding time window in its internal memory: the CPU takes the differential array within the window as the main sequence and generates a time-shifted sequence that is shifted point by point along the time axis; at each discrete time delay lag step, the CPU performs item-by-item multiplication and accumulation of the data at corresponding positions of the main sequence and the time-shifted sequence to quantitatively extract the degree of self-similarity of the differential waveform under different time delays.
[0058] According to the physical laws of digital signal processing: the autocorrelation energy of purely random human body micro-movements or aperiodic noise is highly concentrated only at the zero-delay point. With a slight increase in time delay lag, its autocorrelation coefficient rapidly decays and converges to near zero. However, for the periodic harmonic vibrations generated by industrial rotating machinery, since the waveform strictly repeats cyclically with a fixed rotation period in the time domain, its autocorrelation analysis curve not only shows a main peak at zero delay, but also inevitably shows clear and extremely high secondary correlation peaks at the time delay lag points corresponding to the fundamental frequency rotation period of the machinery and its integer multiples of harmonics. The central processing unit (CPU) searches for local peak points in the non-zero delay interval and determines whether there are secondary correlation peaks that exceed a preset confidence threshold and are equidistantly distributed in the time domain. Once this regular secondary peak is successfully found, the CPU confirms that the differential signal contains mechanical harmonic components with a strictly fixed period.
[0059] Finally, once the central processing unit (CPU) confirms the detection of a fixed-period harmonic signal, it logically determines that the current high-frequency differential micro-motion is purely induced by the steady-state operation of external industrial machinery, and that the equipment is actually in a state of vibration-induced stillness, passively supported on the surface of the industrial casing, detached from human contact. The CPU then unconditionally overrides and waives the previous failure to meet the required stillness confidence ratio due to resonance, forcibly overwriting the operating state in the system's global state register to confirm a physically still state under mechanical resonance interference. This determination is directly transmitted to the subsequent scheduling unit as the standard physically still state, allowing the stillness timer to unlock normally and start positive accumulation timing. This enables the lighting equipment to smoothly enter the subsequent nonlinear dimming and complete sleep process without any interference from machine noise resonance, greatly enhancing the robustness of the lighting equipment's operating condition identification and its adaptive energy management capabilities in harsh industrial and mining environments with high noise and heavy vibration.
[0060] Therefore, this invention introduces statistical variance calculation of discrete difference fluctuations when the static confidence ratio fails to meet the standard, and combines it with time delay autocorrelation analysis to detect the existence of mechanical harmonic signals with fixed periods. When harmonics are detected, the system is forcibly confirmed as a physically stationary state, thereby achieving active decoupling and feature elimination of steady-state simple harmonic resonance interference of operating machinery in industrial sites. This breaks the technical deadlock of traditional equipment being unable to automatically go into hibernation under resonance conditions, thus effectively solving the problem of lighting equipment remaining constantly lit due to continuous resonance when placed on the surface of a running ventilator, water pump, or generator casing. It also eliminates unnecessary waste of electricity in unused states and fire safety hazards caused by continuous heat accumulation in sealed cavities.
[0061] Step S40: Control the working mode of the stationary timer according to the determined working state. If it is determined to be a large movement state or a static hand holding state, reset the stationary timer and maintain the current lighting brightness; if it is determined to be a physical stationary state with the hand removed, increment the stationary timer. In one embodiment of the present invention, the above-mentioned method of controlling the working mode of the stationary timer based on the determined working state includes, if the state is determined to be a state of large-scale movement or a state of hand stillness, resetting the stationary timer and maintaining the current lighting brightness; if the state is determined to be a state of physical stillness after the hand has been removed, the step of accumulating the stationary timer includes: When the current working state is determined to be a large-scale movement state, the current count value of the stationary timer is cleared to zero, and the timer counting is paused; When the current working state is determined to be a static hand holding state, the current count value of the static timer is cleared to zero, and the current output pulse width modulation duty cycle is kept constant; Maintain continuous sampling of the triaxial accelerometer. When the working state determined by subsequent sampling is continuously in the physical static state, restart the static timer and start counting from zero.
[0062] Specifically, the central processing unit (CPU) configures a dedicated software timing register in its internal memory as a static timer, defining it to perform discrete time accumulation using milliseconds or whole seconds as the base time unit. Simultaneously, the CPU loads a pre-defined static duration parameter from the storage area (in typical mining applications such as miners' lamps and flashlights, this preset static duration is preferably configured to be between 30 and 120 seconds, for example, 60 seconds). Upon device power-on and the lighting source reaching its normal operating brightness, the initial value of this static timer is forcibly reset to zero and attached to the CPU's state machine main scheduling loop.
[0063] Next, when the central processing unit (CPU) determines that the current working state of the lighting equipment is a state of high-intensity movement based on the characteristic statistical parameters of the previous steps, the CPU confirms that the user is in a high-activity stage of walking, working displacement, or significantly adjusting the illumination posture. The determination logic immediately calls the timer reset instruction to directly clear and reset the timing value recorded inside the static timer. At the same time, the CPU sets the working mode of the static timer to the standby mode, blocks any spontaneous accumulation at any time, and ensures that the pulse width modulation dimming signal output to the drive circuit maintains the current preset duty cycle, so that the semiconductor light-emitting diode continuously illuminates with a constant rated lumen value and never produces any sudden light intensity jumps.
[0064] Meanwhile, when the central processing unit (CPU) determines, based on the micro-vibration characteristics extracted within the sliding time window, that the lighting equipment is currently held statically by the user, it indicates that although the user has not experienced macroscopic spatial displacement, the objective existence of physiological micro-vibrations proves that the user is holding the lighting equipment stably with one or both hands while focusing on the target area (e.g., miners stopping to concentrate on checking rock wall cracks, repairing equipment instruments, or reading underground construction drawings). Under this condition, the CPU also determines that the equipment is in a substantially controlled usage phase and immediately issues a zero-reset command to the static timer, forcibly erasing any accumulated time values that may have been accumulated due to brief periods of stillness, resetting it to zero. More importantly, the CPU locks the duty cycle control register of the current pulse width modulation output module, prohibiting any dimming attenuation actions. This completely eliminates the risk of accidental dimming or accidental extinguishing caused by the user remaining stationary while observing, ensuring a very high level of personal safety reliability in low-light mining environments.
[0065] Furthermore, when the central processing unit (CPU) determines the current working state to be a physically stationary state (i.e., the lighting equipment is placed off the work surface, on a hanging bracket, or fallen to the ground) based on an extremely low micro-vibration characteristic count value and an extremely high static confidence ratio, the CPU immediately releases the reset lock of the static timer and switches the static timer from standby mode to positive accumulation timing mode. While maintaining continuous differential data acquisition from the triaxial accelerometer at a preset sampling period, after each time-domain sliding time window determination, the CPU linearly accumulates the corresponding physical time span (e.g., one second) to the current count value of the static timer; or, by calling the CPU's internal system millisecond tick timer interrupt, the static timer is continuously incremented by the system clock reference. During this accumulation timing process, if any subsequent state determination result changes abruptly, re-identifying a large movement state or a static hand gripping state, the CPU will instantly interrupt the current accumulation process and unconditionally reset the static timer to achieve a sensitive anti-shake response to the user's re-picking of the lighting equipment.
[0066] Finally, during the positive accumulation of the timer, the central processing unit (CPU) compares the current accumulated value of the timer with the preset static duration in real time after each update. If the current accumulated value is still less than the preset static duration, the CPU continues to maintain normal lighting output and drives the three-axis accelerometer and feature extraction algorithm to execute cyclically. Once the accumulated value of the timer reaches or exceeds the preset static duration (i.e., confirming that the lighting equipment has been maintained in a physically static environment free from human contact for a sufficient period of time, meeting the timeout judgment standard for unused equipment), the CPU immediately sets the timeout event flag, triggering subsequent steps.
[0067] Therefore, this embodiment of the invention adaptively switches the working mode of the stationary timer according to the identified different working states. When a large movement or a person's hand is stationary, the timer is actively reset and the output duty cycle is locked. The positive accumulation timer is only activated when it is confirmed that the hand is physically stationary. This achieves deep dynamic linkage between lighting output control and the actual human-machine interaction state. Thus, without changing the daily operating habits of the operators, a seamless upgrade from manual passive lighting to autonomous intelligent control of the equipment is achieved, maximizing the battery's single-charge kinetic energy range.
[0068] Step S50: When the static timer accumulates to the preset static duration, the adaptive dimming control process is triggered. The drive circuit is controlled by outputting a pulse width modulation dimming signal to dynamically reduce the duty cycle according to the preset nonlinear dimming attenuation strategy, so as to control the lighting source to gradually reduce from the initial working brightness maintained by the lighting device before the adaptive dimming control process is triggered until it is turned off. In one embodiment of the present invention, the step of dynamically reducing the duty cycle according to a preset nonlinear dimming attenuation strategy to control the lighting source to gradually decrease from the initial working brightness maintained by the lighting device before triggering the adaptive dimming control process until it is turned off includes: Lock the reference duty cycle used by the lighting equipment at the moment the dimming process is triggered, and initialize the dimming run timer; Set the total dimming control cycle, and subdivide the total dimming control cycle into multiple consecutive dimming control steps; Based on the preset human eye sensory illuminance adaptation model, the target pulse width modulation duty cycle corresponding to each adjustment moment is calculated so that the decrease slope of the luminous brightness of the lighting source is relatively steep and rapid in the early stage of dimming, and smooth and gentle fine adjustment in the later stage of dimming. The pulse width modulation duty cycle of the output is updated step by step until the running timer reaches the total dimming control cycle, at which point the duty cycle output is completely turned off.
[0069] Specifically, when the central processing unit detects that the accumulated value of the idle timer has reached the preset idle time, the central processing unit determines that the lighting equipment has met the timeout shutdown condition for being unattended, and immediately and spontaneously breaks away from the normal lighting scheduling loop, jumps to and triggers the adaptive dimming control task thread.
[0070] At this trigger moment, the central processing unit (CPU) first reads the current value in the hardware timer comparison output register and latches it as a reference duty cycle (this value corresponds to the operating brightness of the device before the dimming trigger, i.e., the initial operating brightness, such as the full-load duty cycle corresponding to the high-brightness setting, or the preset partial duty cycle corresponding to the medium-brightness energy-saving setting). Simultaneously, the CPU allocates and resets a dimming timer in memory and loads the preset total dimming control cycle parameter. In the operational embodiment of the lighting equipment, this total dimming control cycle is preferably configured to be between five and fifteen seconds (e.g., preferably eight seconds). This duration design provides a sufficiently noticeable visual dimming process for users who have not yet left, allowing them to perceive it promptly, while avoiding a prolonged and cumbersome turn-off cycle that would lead to energy waste.
[0071] Next, the central processing unit subdivides the total dimming control cycle along the time axis into several high-density discrete time domain intervals, i.e., dimming control step sizes. The time span of each dimming control step size is preferably set to 20 to 50 milliseconds (i.e., corresponding to a dimming update frequency of 20 to 50 times per second). By adopting a dynamic step update mechanism that is much higher than the persistence of vision of the human eye, the stepping sensation, jump sensation, and visible light spot flicker phenomenon that may occur during dimming due to excessively coarse step changes are eliminated.
[0072] Based on this, the central processing unit calls the internally preset human eye sensory illuminance adaptation model to plan the dimming trajectory. Based on physiological optics principles, the human retina exhibits a non-linear compression effect in perceiving the absolute difference in luminous flux under strong light, while in dim light, the pupil dilates and photoreceptor cells are highly sensitive to even the slightest illuminance decay. If a traditional purely linear dimming strategy (i.e., the duty cycle decreases uniformly over time) is used, the human eye can hardly perceive the brightness change in the initial dimming phase, but in the later phase near complete extinguishing, the human eye experiences a jarring visual sensation of the light beam being abruptly cut off. Therefore, the human eye sensory illuminance adaptation model of this invention shapes the decay rate of the pulse width modulation duty cycle into a non-linear characteristic. In the initial dimming phase (i.e., from the start of dimming to the first half of the total cycle), the duty cycle is controlled to decay rapidly with a large negative slope; while in the later dimming phase (i.e., the tail end approaching complete extinguishing), the decay slope of the duty cycle is controlled to gradually and gently converge, approaching zero with minute and delicate steps.
[0073] Furthermore, at the execution level of the specific algorithm, when each dimming control step is reached, the CPU obtains the accumulated running time of the dimming run timer and calculates the real-time normalized proportion of the running time to the total dimming control cycle. Then, the CPU calculates the target pulse width modulation duty cycle using a preset nonlinear square root attenuation formula (i.e., multiplying the arithmetic square root of a value minus the time proportion by the base duty cycle). To eliminate the latency overhead when performing nonlinear floating-point arithmetic square root operations, the CPU employs a preset nonlinear lookup table mechanism in a preferred embodiment: the CPU pre-programs a nonlinear attenuation coefficient lookup table containing 256 or 512 step levels in memory. The CPU only needs to use the running time as a discrete index pointer to directly retrieve the target duty cycle value corresponding to the current step through fixed-point addressing in a single instruction cycle, realizing highly accurate nonlinear attenuation calculation within the interrupt response.
[0074] Finally, the central processing unit (CPU) synchronously updates the target pulse width modulation (PWM) duty cycle calculated or retrieved for each step into the comparator register of the hardware PWM generator. The comparator register directly controls the on-time and off-time ratio of the power MOSFET connected in series with the LED, thereby smoothly reducing the effective operating current and average luminous flux output from the driver circuit to the LED. The lighting equipment exhibits a visual attenuation effect from full brightness to dim light, with a natural initial settling and a gentle blanking before extinguishing. Until the accumulated running time of the dimming timer reaches the total dimming control cycle, the CPU completely resets the PWM output signal to zero and cuts off the power supply to the driver circuit, thus smoothly, anti-glare, and completely silently completing the entire adaptive dimming control process from normal working lighting to complete extinguishing.
[0075] Therefore, this embodiment of the invention triggers an adaptive dimming control process when the static timer accumulates to a preset static duration. Based on the human eye's sensory illuminance adaptation model, it dynamically reduces the pulse width modulation duty cycle according to a nonlinear attenuation strategy of rapid reduction in the early stage and gradual fine adjustment in the later stage. This achieves a high degree of fit with the nonlinear dark adaptation physiological characteristics of the human retina and transforms the natural attenuation of luminous brightness into an intuitive and silent visual warning signal. This completely eliminates the damage to the dark vision and temporary blindness caused by traditional sudden power outages, giving users sufficient time for perception, warning, and rescue operations. It significantly improves visual comfort and human-computer interaction experience in low-light environments.
[0076] Step S60: During the execution of the adaptive dimming control process, the transient discrete differential fluctuation is continuously monitored. If the working state is detected to change from a physically stationary state to a state of large-scale movement or a state of static hand holding before the lighting source is turned off, the adaptive dimming control process is immediately interrupted and the duty cycle of the pulse width modulation dimming signal is quickly restored to the initial working brightness. In one embodiment of the present invention, the step of rapidly restoring the duty cycle of the pulse width modulation dimming signal to its initial operating brightness includes: Capture the instantaneous duty cycle value at the moment of interrupt triggering, and read the system's preset startup recovery duration; The difference between the reference duty cycle and the instantaneous duty cycle corresponding to the initial working brightness is divided into multiple incremental steps; During the startup recovery period, the duty cycle of the pulse width modulation driven by the preset step time base continuously increases from the instantaneous duty cycle to the reference working duty cycle. After the duty cycle is fully restored, the dimming logic is locked within the preset shielding time window, preventing the response to the next dimming trigger signal.
[0077] Specifically, throughout the entire physical time span during which the adaptive dimming control process is triggered and dynamic dimming is executed (i.e., within the several-second transition window during which the lighting source gradually dims from its normal operating brightness until it is completely extinguished), the central processing unit continuously drives the three-axis accelerometer to read the acceleration data of each axis at a preset sampling period and continuously calculates the transient discrete differential fluctuation. At this time, the dimming process itself acts as a visual interactive warning: if the user is still actually near the lighting device and still needs to use the light source, once they perceive the shrinking change in the light spot from bright to dark, their most natural and intuitive reaction will be to reach out and grab the lighting device, shake the lamp, or hold it back in their hand. When the user's hand touches and holds the lighting device again, or performs any macroscopic picking motion, the three-axis accelerometer will capture the acceleration jump in a very short time. When the state recognition module of the central processing unit detects that the transient discrete differential fluctuation crosses the noise floor threshold, triggers large motion characteristics, or falls back into the aforementioned micro-tremor characteristic counting range, it determines that the physical state of the system has instantly switched from the physical static state of being released from the hand to the large motion state or the state of being held still by the hand. The central processing unit immediately generates the highest level internal preemptive hardware interrupt signal to unconditionally interrupt and terminate the ongoing nonlinear dimming control thread.
[0078] Next, at the instant of responding to the interrupt, the CPU calls the underlying comparator register to read the instruction, captures and locks the instantaneous duty cycle value that the hardware is currently outputting at the moment the interrupt is triggered (i.e., records the specific value at which the light is interrupted by an external action when it decays to a certain brightness level, such as exactly 50% or 20% of the original brightness); at the same time, the CPU retrieves the startup recovery duration (i.e., the soft-start smooth recovery duration, set between 100 and 300 milliseconds in a preferred embodiment, its duration strictly limited to an extremely short sub-second range) pre-stored in the system configuration table. The CPU subtracts this instantaneous duty cycle from the previously saved original baseline duty cycle, and calculates the difference to obtain the brightness gap value; subsequently, the CPU divides this brightness gap into several small, incremental steps, either averaged or discretely, and calculates the step time interval corresponding to each step based on the startup recovery duration.
[0079] Furthermore, if the system uses the traditional direct jump recovery method when interrupting the dimming (i.e., abruptly changing the duty cycle from dark to full brightness within zero milliseconds), the sudden burst of intense light will cause strong visual irritation and glare to the retina of workers who have already undergone physiological dark adaptation during the several seconds of dimming transition, potentially leading to temporary blindness. To eliminate this safety hazard, the central processing unit (CPU) performs linear or smooth soft-start brightness control during the recovery period: within a short period of 100 to 300 milliseconds, the CPU drives the pulse width modulation duty cycle at a high frequency and smoothly, with microsecond or millisecond-level time bases, to gradually increase the duty cycle from the aforementioned instantaneous duty cycle along an increasing step, until it seamlessly rebounds to the initial reference working duty cycle. This recovery process is almost equivalent to being instantly and sensitively awakened from a macroscopic perspective, but at the microscopic physiological level, it perfectly avoids the step impact, balancing excellent operational sensitivity with comfortable and anti-glare eye protection characteristics.
[0080] Finally, after the pulse width modulation duty cycle has completely and smoothly recovered to the baseline operating duty cycle, the central processing unit (CPU) immediately performs deep anti-jitter and system state reset: the CPU not only completely resets the previously accumulated static timer to zero, but also forcibly activates a preset duration shielding window in the system (in a preferred embodiment, the duration of the shielding window is set to three to five seconds). During the duration of the shielding window, the CPU activates dimming logic lock protection, completely shielding and intercepting any secondary dimming trigger commands that may be caused by algorithm misjudgment or brief user placement within these few seconds. This shielding mechanism effectively filters out the extremely short pauses that may occur again after the user has just shaken the lighting equipment, eliminating the repeated oscillations and flickering of brightness that may occur in the lighting system near the critical threshold point. Only after the shielding window has completely expired does the system resume normal static accumulation timer monitoring, thus achieving a highly fault-tolerant, accidental touch-proof, and highly user-friendly intelligent dynamic recovery closed loop.
[0081] Therefore, this embodiment of the invention continuously maintains high-sensitivity dynamic monitoring at the underlying level during the dimming control process, and immediately interrupts the dimming process when a change in the working state is detected. It quickly restores the baseline working duty cycle in a step-by-step, smooth-increasing manner according to the preset start-up recovery time, and superimposes a shielding time window locking mechanism. This achieves an extremely agile response with immediate recovery from shaking, while eliminating the glare and stinging sensation caused by sudden strong light to the human eye pupils, and completely isolating the critical state jumps during the action switching process. This effectively prevents the lighting system from experiencing alternating bright and dark oscillations and flickering at the threshold edge, giving operators the freedom to interrupt the lights and quickly restore the working lighting anytime and anywhere with slight movements when the lights are about to be turned off.
[0082] The adaptive dimming control method based on state control provided in this invention has the following beneficial effects: 1. By periodically collecting triaxial acceleration components and calculating transient discrete differential fluctuations based on the discrete changes of each axis component between adjacent sampling points, low-computing-power rapid extraction of dynamic motion changes in three-dimensional space is achieved in the discrete time-series dimension. This effectively eliminates the interference of static components such as constant gravitational acceleration, thereby capturing the minute physical displacement dynamics of the device with extremely low computational overhead.
[0083] 2. By constructing a time-domain sliding window based on a preset number of sampling points and statistically analyzing the characteristic parameters of transient discrete differential fluctuations falling within a preset micro-vibration range, the working state of the lighting equipment is further classified and determined into large-scale motion state, hand-held still state, and physically stationary state. This achieves effective capture and quantification of the minute hand tremors within the time window, overcoming the shortcomings of traditional motion detection that equates relative stillness of the human body with the equipment being idle. It effectively avoids the problem of accidental extinguishing of the lighting equipment when the user is holding it and observing it in a relatively still position, thus improving the accuracy of the working condition determination and the safety of the operation.
[0084] 3. By adaptively controlling the working mode of the stationary timer based on the determined working state, the stationary timer is reset and the current lighting brightness is maintained when the state of large-scale movement or when the hand is stationary, and the stationary timer is incremented when the state of physical stationary state is determined. This achieves dynamic coordination between the lighting control of the lighting equipment and the actual human-machine interaction working conditions. Without changing the user's operating habits, it effectively avoids unnecessary continuous lighting when the equipment is idle, significantly reduces power consumption, and slows down the battery life degradation.
[0085] 4. By triggering the adaptive dimming control process when the static timer accumulates to the preset static duration, and dynamically reducing the duty cycle of the pulse width modulation dimming signal until it is turned off according to the preset nonlinear dimming attenuation strategy, the natural attenuation of the light intensity conforms to the nonlinear light and dark adaptation perception law of the human eye. The dimming process is transformed into an intuitive and silent visual warning signal, eliminating the damage and discomfort to the human eye's dark adaptation vision caused by the traditional sudden power failure, and improving the visual comfort and user-friendliness of the dimming process.
[0086] 5. By continuously monitoring transient discrete differential fluctuations during the execution of the adaptive dimming control process, and immediately interrupting the adaptive dimming control process and quickly restoring the duty cycle to the initial working brightness maintained by the lighting equipment before the lighting source is turned off when the working state is detected to switch to a large movement state or the hand is stationary, the system achieves instantaneous perception and immediate wake-up response to the user's reuse or slight shaking movements. This gives the user the ability to block the lights from turning off and restore the work lighting at any time with a simple action before the equipment is about to be turned off, ensuring the continuity of lighting during critical stages of the work process.
[0087] In summary, this effectively solves the safety hazards caused by the continuous power consumption and heat generation of existing lighting equipment when it is not in use, as well as the problem that existing motion detection can easily misjudge a user's relatively still hand position as if the light is not in use, leading to accidental light turning off.
[0088] Example 2
[0089] Please see Figure 3 This is a schematic diagram of a state-controlled adaptive dimming control system according to a second embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown. The state-controlled adaptive dimming control system in this embodiment of the present invention is applied in lighting equipment, and the system includes: The signal acquisition and differential calculation module 11 is used to periodically acquire triaxial acceleration components and calculate transient discrete differential fluctuations based on the discrete changes of each axis component between adjacent sampling points. The feature statistics extraction module 12 is used to construct a time-domain sliding time window based on a preset number of sampling points, and to statistically analyze the feature parameters of transient discrete differential fluctuations falling within a preset micro-vibration range within the sliding time window. The state classification and determination module 13 is used to classify and determine the working state of the lighting equipment according to the feature statistical parameters. The working state includes a large-scale movement state, a static hand holding state, and a physically static state where the hand is removed. The timing management module 14 is used to control the working mode of the stationary timer according to the determined working state. If it is determined to be a state of large-scale movement or a state of hand holding still, the stationary timer is reset and the current lighting brightness is maintained; if it is determined to be a state of physical stillness after hand release, the stationary timer is incremented. The dimming execution module 15 is used to trigger the adaptive dimming control process when the static timer accumulates to a preset static time. It controls the drive circuit by outputting a pulse width modulation dimming signal to dynamically reduce the duty cycle according to a preset nonlinear dimming attenuation strategy, so as to control the lighting source to gradually reduce from the initial working brightness maintained by the lighting device before the adaptive dimming control process is triggered until it is turned off. Interruption interception and recovery module 16 is used to continuously monitor the transient discrete differential fluctuation during the operation of the dimming execution module. If the system detects that the physical static state of the hand has switched to a large-scale movement state or the hand is still before the lighting source is turned off, the dimming process is immediately interrupted and the duty cycle of the pulse width modulation dimming signal is quickly restored to the initial working brightness.
[0090] Furthermore, in one embodiment of the present invention, the signal acquisition and differential calculation module 11 includes: The clock sampling acquisition unit is used to acquire the triaxial acceleration components at the current sampling moment according to a preset sampling period, and to read the triaxial acceleration components recorded at the previous sampling moment. The first-order difference unit for each axis is used to calculate the absolute value of the first-order difference between the acceleration components at the current sampling time and the previous sampling time in the three-axis directions, so as to obtain the first axial difference component, the second axial difference component and the third axial difference component. The scalar accumulation and summation unit is used to accumulate and sum the first axial difference component, the second axial difference component, and the third axial difference component to obtain the transient discrete differential fluctuation at the current sampling time. The queue update push unit is used to push the calculated transient discrete difference fluctuations into the storage queue in sequence and update the historical difference data.
[0091] Furthermore, in one embodiment of the present invention, the feature statistical extraction module 12 includes: A multi-level threshold configuration unit is used to set a noise floor threshold for filtering out inherent hardware noise, a tremor determination threshold for characterizing the upper limit of human physiological tremors, and a large-amplitude motion threshold for characterizing macroscopic displacement, wherein the noise floor threshold is less than the tremor determination threshold, the tremor determination threshold is less than the large-amplitude motion threshold, and the numerical range greater than the noise floor threshold and less than the tremor determination threshold is defined as the micro-vibration range. The time-domain window maintenance unit is used to maintain a time-domain sliding time window containing a fixed number of sampling points. In each sampling period, the earliest differential data in the window is removed and the latest acquired transient discrete differential fluctuation is pushed in. The micro-vibration feature counting unit is used to traverse the differential data within the sliding time window and count the total number of sampling points whose values fall within the micro-vibration interval, which is then used as the micro-vibration feature count value. The static confidence ratio statistics unit is used to count the total number of sampling points whose values are lower than the noise floor threshold within the sliding time window, and calculate its proportion in the total number of sampling points in the sliding time window as the static confidence ratio.
[0092] Furthermore, in one embodiment of the present invention, the state classification and determination module 13 includes: A large motion decision unit is used to detect whether there is a transient discrete difference fluctuation of at least one sampling point within the sliding time window that is greater than or equal to the large motion threshold, and if so, to determine that the current working state is a large motion state. The threshold interval comparison unit is used to compare the micro-tremor feature count value with the preset effective count lower threshold and count upper threshold of human hand grip when the transient discrete differential fluctuation of all sampling points within the sliding time window is less than the large motion threshold. The hand grip determination unit is used to determine the current working state as a static hand grip state if the micro-tremor feature count value is between the lower count threshold and the upper count threshold. The hands-free static determination unit is used to determine that the current working state is a hands-free physical static state if the micro-tremor feature count value is less than the count lower limit threshold and the static confidence ratio is greater than or equal to a preset static ratio determination threshold.
[0093] Furthermore, in one embodiment of the present invention, the state classification and determination module 13 further includes: The extreme value reversal statistical unit is used to extract the discrete curves formed by the transient discrete difference fluctuations over time within the sliding time window, detect the reversal points of the first derivative sign of the discrete curves that occur continuously within the micro-vibration interval, and count the reversal frequency of alternating peaks and troughs. The characteristic frequency conversion unit is used to calculate the micro-vibration characteristic reversal frequency based on the duration of the sliding time window and the reversal frequency. The physiological frequency band verification unit is used to determine whether the reversal frequency of the micro-vibration feature is within the preset inherent frequency band range of human hand physiological tremor; The feature verification unit is used to confirm that the micro-vibration feature verification has been passed if the reversal frequency of the micro-vibration feature falls within the inherent frequency band of the human hand physiological tremor, and to continue to execute the step of determining the current working state as a static hand gripping state. The feature failure correction unit is used to attenuate or clear the micro-vibration feature count value if the reversal frequency of the micro-vibration feature does not fall within the inherent frequency band of the human hand physiological tremor, so as to determine that the micro-vibration feature is invalid, and return to reclassify and determine based on the corrected micro-vibration feature count value.
[0094] Furthermore, in one embodiment of the present invention, the hands-free rest determination unit 134 includes: The statistical variance calculation subunit is used to calculate the statistical variance of the discrete difference fluctuation of each sampling point within the sliding time window; The autocorrelation harmonic analysis subunit is used to perform autocorrelation analysis on the differential data to detect whether there is a harmonic signal with a fixed period when the static confidence ratio does not reach the preset static ratio judgment threshold, but the statistical variance of the discrete differential fluctuation is continuously less than the preset fluctuation variance threshold. The resonance forced determination subunit is used to determine that the current equipment is in a hands-free physical static state under mechanical resonance interference if a harmonic signal with a fixed period is detected, and to forcibly confirm the working state as the hands-free physical static state.
[0095] Furthermore, in one embodiment of the present invention, the dimming execution module 15 includes: The reference parameter locking unit is used to lock the reference duty cycle used by the lighting equipment at the moment of triggering the dimming process, and to initialize the dimming run timer; A control step size discrete division unit is used to set the total dimming control cycle and subdivide the total dimming control cycle into multiple consecutive dimming control steps. The sensory duty cycle mapping calculation unit is used to calculate the target pulse width modulation duty cycle corresponding to each adjustment moment according to the preset human eye sensory illuminance adaptation model, so that the decrease slope of the luminous brightness of the lighting source is relatively steep and rapid in the early stage of dimming, and smooth and gentle fine adjustment in the later stage of dimming. The progressive update shutdown unit is used to update the output pulse width modulation duty cycle step by step until the running timer reaches the total dimming control cycle, at which point the duty cycle output is completely turned off.
[0096] Furthermore, in one embodiment of the present invention, the interruption interception and recovery module 16 includes: The instantaneous parameter capture unit is used to capture the instantaneous duty cycle value at the moment of interrupt triggering and read the system's preset startup recovery duration; A stepped step size discrete unit is used to divide the difference between the reference working duty cycle corresponding to the initial working brightness and the instantaneous duty cycle into multiple incremental steps; A soft-start smooth increment unit is used to continuously increase the duty cycle from the instantaneous duty cycle to the reference working duty cycle according to the preset step time base drive pulse width modulation duty cycle within the start-up recovery time. The hysteresis anti-shake unit is used to lock the dimming logic within a preset shielding time window after the duty cycle has been restored, preventing the response to the next dimming trigger signal.
[0097] The adaptive dimming control system based on state control provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0098] Example 3
[0099] In another aspect, the present invention also proposes a lighting device, please refer to [link / reference]. Figure 4 The image shows a lighting device according to the third embodiment of the present invention, comprising a lamp housing, a lighting source disposed within the lamp housing, a drive circuit electrically connected to the lighting source, a power management module, a triaxial accelerometer, a memory 20, and a controller 10. The memory 20 stores computer program instructions 30; The controller 10 is electrically connected to the drive circuit, the triaxial accelerometer, and the memory 20. The controller 10 implements the state-based adaptive dimming control method as described in the foregoing method embodiments by calling and executing the computer program instructions 30 on the memory 20.
[0100] Specifically, in terms of mechanical and physical structure and hardware layout, the lighting equipment in this embodiment adopts a highly integrated, explosion-proof, dustproof, and waterproof compact structural design. The lamp body shell is generally cylindrical or flat block-shaped, preferably made of aerospace-grade hard anodized aluminum alloy with high thermal conductivity, or injection molded from engineering plastics with high impact resistance and flame retardant properties. The front end of the lamp body shell has a forward-facing optical window, which is equipped with a focusing lens and a metal reflector. The side wall or tail of the lamp body shell has a non-slip knurled handle for workers to hold by hand. The lamp body shell is also integrally molded or detachably equipped with an elastic buckle bracket, which facilitates the secure and hands-free fixing of the entire machine to the headlamp slot at the front of the mining safety helmet or the work head strap. The interior of the lamp body shell has mutually isolated light source heat dissipation chambers, circuit main control chambers, and rear battery compartments arranged axially. Each chamber joint surface is fitted with a weather-resistant silicone rubber sealing ring to ensure that the equipment achieves a very high dustproof and waterproof sealing level in extremely humid and dusty environments such as underground water mist and dust.
[0101] Inside the heat dissipation cavity of the light source, the lighting source preferably uses one or more high-power white light-emitting diode chips. The back of the chip is tightly attached to the surface of the aluminum-based copper-clad thermally conductive substrate with thermal grease, and forms a direct low thermal resistance heat conduction path with the front heat dissipation fins of the metal lamp housing to ensure that heat can be quickly dissipated during high-power lighting. The forward controlled end of the semiconductor light-emitting diode is electrically connected to the driving circuit in the main control cavity of the circuit through a multi-core high-temperature resistant wire.
[0102] The driving circuit is located in the main circuit area of the printed circuit board and includes at least a high-frequency pulse width modulation control switch (preferably a power MOSFET with low on-resistance), an inductor, a freewheeling diode, and a constant current sampling resistor. It is used to convert the power supply voltage into a high-efficiency constant current output with adjustable waveform according to the logic control signal output by the controller, and to precisely adjust the amplitude of the working current flowing through the semiconductor light-emitting diode and the brightness duty cycle.
[0103] Next, at the level of electronic sensing and intelligent control architecture, a double-layer or multi-layer high vibration-resistant main control circuit board is fixedly assembled in the main control cavity of the circuit.
[0104] The controller is preferably an ultra-low power microcontroller chip, which integrates a computing core, a hardware time base timer, an advanced pulse width modulation signal generator, multiple external hardware interrupt input pins, and a serial peripheral communication bus controller. The triaxial accelerometer uses a high-precision microelectromechanical system (MEMS) triaxial accelerometer chip, which is rigidly soldered to the geometric center of the main control circuit board using a surface mount process. The main control circuit board is then securely locked to the internal rigid support of the lamp housing by multiple fastening screws. This rigid mechanical coupling design is crucial, ensuring that when the lamp housing is subjected to slight shaking or when the user's hand muscles produce physiological tremors, the tiny mechanical waves can be directly transmitted to the micromechanical cantilever beam sensitive element inside the triaxial accelerometer without attenuation or resonance damping. The output data terminal of the triaxial accelerometer is electrically connected to the controller's bus communication interface via an internal two-wire serial bus, and its hardware interrupt alarm pin is rigidly connected to an external wake-up interrupt pin of the controller. The memory includes a non-volatile read-only memory medium integrated inside the controller chip or externally mounted on the main control circuit board, and a high-speed random access memory medium. The non-volatile read-only memory medium contains a set of underlying computer program instructions, a non-linear attenuation step lookup table, and various operating condition judgment thresholds for implementing the above-mentioned adaptive dimming control process. The high-speed random access memory medium is used to open a first-in-first-out memory queue, a time-domain sliding time window array, a static timer, and various operating condition status flags in real time.
[0105] Furthermore, the power management module is installed between the rear battery compartment and the main circuit control cavity, and includes at least a high-energy-density rechargeable lithium-ion battery pack, a dedicated charging management integrated circuit, a battery charge and discharge protection circuit, a low-dropout linear regulator, and a controlled power cut-off electronic switch.
[0106] The DC power output from the rechargeable lithium-ion battery pack is divided into two paths. One path is stepped down and regulated by a low-dropout linear regulator to provide a clean logic operating voltage, specifically for the controller, triaxial accelerometer, and memory, providing continuous microampere-level standby and operating power. The other path is connected to the main power supply circuit input of the LED driver circuit via a controlled power cutoff electronic switch. The enable control terminal of the controlled power cutoff electronic switch is electrically connected to a general-purpose input / output pin of the controller. When the device is completely turned off and enters deep sleep mode, the controller can actively send a shutdown level to this pin, completely blocking the static micro-leakage current on the driver circuit and greatly delaying the self-discharge loss of the battery during long-term idle storage.
[0107] Finally, during system operation, after power-on self-test, the controller calls and executes the computer program instructions in memory to fully drive and coordinate the aforementioned physical modules to perform closed-loop adaptive dimming: The controller first uses a hardware timer to drive the triaxial accelerometer to periodically collect triaxial acceleration components. Its internal logic unit calculates the transient discrete differential fluctuations between adjacent sampling points in random access memory and pushes them into a queue. Next, the controller maintains a time-domain sliding window in memory, extracting the micro-tremor feature count value and the rest confidence ratio. In real time, the controller compares the large-amplitude motion threshold, grip count interval, and rest ratio threshold based on feature statistical parameters to accurately identify large-amplitude motion states, hand-held stillness states, and physically stationary states. Before identifying a hand-held stillness state, the controller calls the extreme value inflection point detection algorithm. The system verifies the inherent frequency band of physiological micro-vibrations in the 8-12 Hz range. When the device is identified as physically stationary after being released from the hand, an autocorrelation algorithm is invoked to filter out mechanical resonance interference with a fixed period. The controller schedules the stationary timer based on the determined working state. When the device is in significant movement or held by a hand, the timer is actively reset and the output duty cycle is locked. When the device is placed flat and stationary after being released from the hand, a positive accumulation timer is started. Once the stationary timer accumulates to the preset stationary duration, the controller automatically initiates an adaptive dimming control process. The nonlinear attenuation dimming waveform is output through a hardware pulse width modulation generator to drive the field-effect transistor, following the steep initial dimming... The illuminance of the LEDs gradually decreases until they are extinguished, following the natural progression of the human eye's adaptation to the dimming process. Throughout this dimming process, the controller maintains a highly sensitive dynamic monitoring state with the triaxial accelerometer. If it detects any external movement or hand contact before the light is turned off, the controller instantly interrupts the dimming process. Within 100 to 300 milliseconds, it drives the drive circuit to quickly restore the initial operating brightness using a smooth, step-by-step soft-start method, and activates the anti-shake shielding window to lock the next dimming trigger. When the light has completely dimmed and there is no interruption throughout the process, the controller actively... Disconnecting the controlled power supply cuts off the electronic switch, cutting off the main power supply line of the drive circuit. At the same time, the triaxial accelerometer is configured to a low-power motion-triggered interrupt mode. Subsequently, the main clock inside the controller is turned off, and the entire unit seamlessly enters a microampere-level deep sleep state. It remains in this state until the user picks up, shakes, or taps the lamp housing again, triggering a hardware level transition on the sensor pins. This instantly wakes up the controller, resets, and restarts the lighting system. Thus, with extremely low hardware material costs, extremely high algorithm robustness, and a highly coordinated mechatronics architecture, highly reliable intelligent lighting that integrates anti-false shutdown, anti-glare, automatic sleep mode, and shake-activated recovery is achieved.
[0108] It should be pointed out that, Figure 4The structure shown does not constitute a limitation on the lighting device. In other embodiments, the lighting device may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0109] This invention also proposes a computer-readable medium storing a program that, when executed by a processor, implements the state-based adaptive dimming control method as described in the foregoing method embodiments.
[0110] Those skilled in the art will understand that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0111] More specific examples of media (a non-exhaustive list) include: electrical connections (electronic devices) with one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0112] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0113] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0114] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the appended claims.
Claims
1. An adaptive dimming control method based on state control, characterized in that, When applied to lighting equipment, the method includes: The triaxial acceleration components are periodically acquired, and the transient discrete differential fluctuation is calculated based on the discrete changes of each axis component between adjacent sampling points. A time-domain sliding time window is constructed based on a preset number of sampling points, and characteristic statistical parameters of transient discrete differential fluctuations falling within a preset micro-vibration range are statistically analyzed. The working state of the lighting equipment is classified and determined according to the aforementioned characteristic statistical parameters. The working state includes a large-scale movement state, a state in which the human hand is holding the equipment still, and a state in which the equipment is physically stationary after being released from the hand. The working mode of the stationary timer is controlled according to the determined working state. If it is determined to be a state of large-scale movement or a state of still hand holding, the stationary timer is reset and the current lighting brightness is maintained; if it is determined to be a state of physical stillness after the hand is removed, the stationary timer is incremented. When the static timer accumulates to the preset static duration, the adaptive dimming control process is triggered. The output pulse width modulation dimming signal controls the drive circuit to dynamically reduce the duty cycle according to the preset nonlinear dimming attenuation strategy, so as to control the lighting source to gradually reduce from the initial working brightness maintained by the lighting device before the adaptive dimming control process is triggered until it is turned off. During the execution of the adaptive dimming control process, the transient discrete differential fluctuation is continuously monitored. If the working state is detected to change from a physically stationary state to a state of large-scale movement or a state of static hand holding before the lighting source is turned off, the adaptive dimming control process is immediately interrupted, and the duty cycle of the pulse width modulation dimming signal is quickly restored to the initial working brightness.
2. The adaptive dimming control method based on state control according to claim 1, characterized in that, The steps of periodically acquiring triaxial acceleration components and calculating transient discrete differential fluctuations based on the discrete changes of each axis component between adjacent sampling points include: The triaxial acceleration components at the current sampling time are obtained according to the preset sampling period, and the triaxial acceleration components recorded at the previous sampling time are read. Calculate the absolute value of the first-order difference between the acceleration components at the current sampling time and the previous sampling time in each of the three axes to obtain the first axial difference component, the second axial difference component, and the third axial difference component; The first axial difference component, the second axial difference component, and the third axial difference component are summed by scalar accumulation to obtain the transient discrete differential fluctuation at the current sampling time. The calculated transient discrete differential fluctuations are sequentially pushed into the storage queue, and the historical differential data is updated.
3. The adaptive dimming control method based on state control according to claim 1, characterized in that, The step of statistically analyzing the characteristic parameters of transient discrete difference fluctuations falling within a preset micro-vibration range within the sliding time window includes: Set a noise floor threshold for filtering out inherent hardware noise, a tremor determination threshold for characterizing the upper limit of human physiological tremors, and a large-amplitude motion threshold for characterizing macroscopic displacement, wherein the noise floor threshold is less than the tremor determination threshold, and the tremor determination threshold is less than the large-amplitude motion threshold. The range of values that is greater than the noise floor threshold and less than the micro-vibration determination threshold is defined as the micro-vibration range; Maintain a time-domain sliding window containing a fixed number of sampling points. In each sampling period, discard the differential data at the earliest moment within the window and push in the latest acquired transient discrete differential fluctuation. Traverse the differential data within the sliding time window, and count the total number of sampling points whose values fall within the micro-vibration interval, using this count as the micro-vibration feature value; The total number of sampling points whose values are lower than the noise floor threshold within the sliding time window is counted, and their proportion in the total number of sampling points in the sliding time window is calculated as the static confidence ratio.
4. The adaptive dimming control method based on state control according to claim 3, characterized in that, The step of classifying and determining the working state of the lighting equipment based on the characteristic statistical parameters includes: Detect whether there exists a transient discrete difference fluctuation at at least one sampling point within the sliding time window that is greater than or equal to the large motion threshold; If so, the current working state is determined to be a state of large-scale movement; If not, the micro-tremor feature count value is compared with the preset effective count lower threshold and count upper threshold of human hand grip; If the micro-tremor feature count value is between the lower and upper count thresholds, the current working state is determined to be a static hand gripping state. If the micro-tremor feature count value is less than the count lower limit threshold, and the static confidence ratio is greater than or equal to the preset static ratio judgment threshold, then the current working state is determined to be a hands-free physical static state.
5. The adaptive dimming control method based on state control according to claim 4, characterized in that, Before the step of determining the current working state as a static hand grip, the method further includes: Extract the discrete curves of each transient discrete difference fluctuation within the sliding time window as a function of time, detect the first derivative sign reversal points that occur continuously within the micro-vibration interval of the discrete curves, and count the reversal frequency of alternating peaks and troughs. The reversal frequency of the micro-vibration feature is calculated based on the duration of the sliding time window and the reversal frequency. Determine whether the reversal frequency of the micro-vibration feature is within the preset inherent frequency band of human hand physiological tremor; If the reversal frequency of the micro-vibration feature falls within the inherent frequency band of the human hand's physiological tremor, then the micro-vibration feature verification is confirmed, and the step of determining the current working state as a static hand gripping state continues. If the reversal frequency of the micro-vibration feature does not fall within the inherent frequency band of the human hand physiological tremor, the micro-tremor feature count value is attenuated or cleared to determine that the micro-tremor feature is invalid, and the classification is re-determined based on the corrected micro-tremor feature count value.
6. The adaptive dimming control method based on state control according to claim 4, characterized in that, In the step of determining that the current working state is a physically stationary state after being released from handling, the method further includes: Calculate the statistical variance of the discrete difference fluctuation at each sampling point within the sliding time window; When the static confidence ratio does not reach the preset static ratio judgment threshold, but the statistical variance of the discrete difference fluctuation is continuously less than the preset fluctuation variance threshold, autocorrelation analysis is performed on the difference data to detect whether there is a harmonic signal with a fixed period. If a harmonic signal with a fixed period is detected, the device is determined to be in a physically stationary state under mechanical resonance interference, and the working state is forcibly confirmed as a physically stationary state.
7. The adaptive dimming control method based on state control according to claim 1, characterized in that, The step of dynamically reducing the duty cycle according to a preset nonlinear dimming attenuation strategy to control the lighting source to gradually decrease from the initial working brightness maintained by the lighting device before triggering the adaptive dimming control process until it is turned off includes: Lock the reference duty cycle used by the lighting equipment at the moment the dimming process is triggered, and initialize the dimming run timer; Set the total dimming control cycle, and subdivide the total dimming control cycle into multiple consecutive dimming control steps; Based on the preset human eye sensory illuminance adaptation model, the target pulse width modulation duty cycle corresponding to each adjustment moment is calculated so that the decrease slope of the luminous brightness of the lighting source is relatively steep and rapid in the early stage of dimming, and smooth and gentle fine adjustment in the later stage of dimming. The pulse width modulation duty cycle of the output is updated step by step until the running timer reaches the total dimming control cycle, at which point the duty cycle output is completely turned off.
8. The adaptive dimming control method based on state control according to claim 1, characterized in that, The step of rapidly restoring the duty cycle of the pulse width modulation dimming signal to the initial operating brightness includes: Capture the instantaneous duty cycle value at the moment of interrupt triggering, and read the system's preset startup recovery duration; The difference between the reference duty cycle corresponding to the initial working brightness and the instantaneous duty cycle is divided into multiple increasing steps; During the startup recovery period, the duty cycle of the drive pulse width modulation is continuously increased from the instantaneous duty cycle to the reference working duty cycle according to the preset step time base; After the duty cycle is fully restored, the dimming logic is locked within the preset shielding time window, preventing the response to the next dimming trigger signal.
9. An adaptive dimming control system based on state control, characterized in that, The system, used in lighting equipment, includes: The signal acquisition and differential calculation module is used to periodically acquire triaxial acceleration components and calculate transient discrete differential fluctuations based on the discrete changes of each axis component between adjacent sampling points. The feature statistics extraction module is used to construct a time-domain sliding time window based on a preset number of sampling points, and to statistically analyze the feature parameters of transient discrete differential fluctuations falling within a preset micro-vibration range within the sliding time window. The state classification and determination module is used to classify and determine the working state of the lighting equipment according to the feature statistical parameters. The working state includes a large-scale movement state, a state in which the human hand is still holding the equipment, and a state in which the hand is removed and the equipment is physically still. The timing management module is used to control the working mode of the stationary timer according to the determined working state. If it is determined to be a state of large-scale movement or a state of hand holding still, the stationary timer is reset and the current lighting brightness is maintained; if it is determined to be a state of physical stillness after the hand is removed, the stationary timer is incremented. The dimming execution module is used to trigger the adaptive dimming control process when the static timer accumulates to a preset static duration. It controls the drive circuit by outputting a pulse width modulation dimming signal to dynamically reduce the duty cycle according to a preset nonlinear dimming attenuation strategy, so as to control the lighting source to gradually decrease from the initial working brightness maintained by the lighting device before the adaptive dimming control process is triggered until it is turned off. The interruption and recovery module is used to continuously monitor the transient discrete differential fluctuation during the operation of the dimming execution module. If the system detects that the physical static state of the hand has switched to a large-scale movement state or the hand is still before the lighting source is turned off, the dimming process is immediately interrupted and the duty cycle of the pulse width modulation dimming signal is quickly restored to the initial working brightness.
10. A lighting device, characterized in that, include: The lamp housing, the lighting source disposed inside the lamp housing, the driving circuit electrically connected to the lighting source, the power management module, the triaxial accelerometer, the memory, and the controller; The memory stores computer program instructions; The controller is electrically connected to the drive circuit, the triaxial accelerometer, and the memory, respectively. The controller implements the state-based adaptive dimming control method as described in any one of claims 1 to 8 by calling and executing computer program instructions on the memory.
