Light effect adjustment method, lighting device and controller thereof
By inserting an intermediate speed setting during the switching of lighting effect speed levels and controlling the pause update of the work cycle, the problem of drastic fluctuations in lighting effect status is solved, achieving smooth lighting effect transitions and improved visual effects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN QIANYAN TECH LTD
- Filing Date
- 2026-05-14
- Publication Date
- 2026-06-16
AI Technical Summary
When switching between different lighting speed levels, the speed at which the lighting effect changes fluctuates drastically, resulting in a deterioration in visual quality.
By determining the number of intermediate speed levels between the speed levels before and after the switch, the number of work cycles required to update the lighting effect status is calculated, and the update is paused during some work cycles to ensure a smooth transition of the lighting effect status.
It eliminates the abrupt changes in lighting effects and improves the visual impact of the lighting effects.
Smart Images

Figure CN122227467A_ABST
Abstract
Claims
1. A method for adjusting lighting effects, characterized in that, The lighting effect adjustment method includes: In response to the switching event of the lighting effect speed level, determine the number of intermediate speed levels between the first speed level before the switch and the second speed level after the switch; Based on the number of intermediate speed levels, determine the first number of work cycles that require updating the lighting effect status, where the first number is the number of intermediate speed levels plus one. Based on the speed difference between the target speed level and the first speed level, a second number of work cycles for pausing the lighting effect status update is determined, wherein the target speed level is one of the intermediate speed levels; Within a cycle consisting of the first number of working cycles, the lighting effect status of the target lighting device is updated for the first number minus the second number of working cycles, and the lighting effect status of the target lighting device remains unchanged during the second number of working cycles.
2. The lighting effect adjustment method as described in claim 1, characterized in that, Within a cycle consisting of the first number of working cycles, the step of updating the lighting effect status of the target lighting device by subtracting the second number of working cycles from the first number includes: Determine the lighting effect frame data to be displayed by the target lighting device in the first number minus the second number of working cycles; In each working cycle, the corresponding lighting effect frame data is used sequentially to control the display of the target lighting device in order to update the lighting effect status of the target lighting device; In each of the aforementioned working cycles, the target lighting device displays different lighting effect frame data, and each lighting effect frame data corresponds to a different lighting effect state.
3. The lighting effect adjustment method as described in claim 2, characterized in that, The step of determining the lighting effect frame data to be displayed by the target lighting device in the first number minus the second number of working cycles includes: Obtain the lighting effect scene currently set by the target lighting device, wherein the lighting effect scene includes a moving lighting effect scene or a gradual lighting effect scene; Based on the lighting effect scene and the mapping relationship between the preset lighting effect scene and the preset lighting effect frame data of the target lighting device, the lighting effect frame data to be displayed by the target lighting device in each working cycle under the lighting effect scene is obtained.
4. The lighting effect adjustment method as described in claim 3, characterized in that, In the moving lighting scene, there are at least two target lighting devices. The lighting effect frame data to be displayed is generated according to the preset color value and preset display order corresponding to each target lighting device.
5. The lighting effect adjustment method as described in claim 3, characterized in that, In the scene of the light effect gradient, there is one target lighting device. The light effect frame data to be displayed is generated according to the preset color value corresponding to the target lighting device.
6. The lighting effect adjustment method according to any one of claims 1-5, characterized in that, The first speed gear is greater than the second speed gear, the number of intermediate speed gears is N, and the second number of working cycles for pausing the lighting effect status update is n; The step of updating the lighting effect state of the target lighting device within a cycle consisting of the first number of working cycles minus the second number of working cycles, and maintaining the lighting effect state of the target lighting device unchanged during the second number of working cycles, includes: Initialize frame counter i = 0; Control the lighting effect to operate at the first speed setting; Determine if frame counter i is less than n: If i < n, pause for one frame without updating, then execute i = i + 1, and return to the step of controlling the lighting effect to work at the first speed level; if i ≥ n, proceed to the next judgment step: Determine if frame counter i is less than N: If i < N, execute i = i + 1 and return to the step of controlling the lighting effect to work at the first speed level; if i ≥ N, clear frame counter i to zero and return to the step of controlling the lighting effect to work at the first speed level.
7. The lighting effect adjustment method according to any one of claims 1-5, characterized in that, The step of updating the lighting effect state of the target lighting device within a cycle consisting of the first number of working cycles minus the second number of working cycles, and maintaining the lighting effect state of the target lighting device unchanged during the second number of working cycles, includes: Initialize frame counter i=1, and the current lighting effect state is the state corresponding to the first speed level; The following steps are executed in stages until the lighting effect state corresponding to the second speed level is reached: When 1≤i≤n, the lighting effect is kept in its current state and not updated; the frame counter i=i+1 after each frame is completed; when n<i≤M, the lighting effect state is updated frame by frame according to the preset speed gradient; i=i+1 after each frame is completed; where M is the first quantity and n is the second quantity; and Reset the frame counter and wait for the next gear shift command.
8. The lighting effect adjustment method according to any one of claims 1-5, characterized in that, The step of updating the lighting effect state of the target lighting device within a cycle consisting of the first number of working cycles minus the second number of working cycles, and maintaining the lighting effect state of the target lighting device unchanged during the second number of working cycles, includes: Calculate the ratio of the first quantity to the second quantity to obtain the interval step size; Initialize frame counter i=1, keep frame counter j=1, and the current lighting effect state is the state corresponding to the first speed level; The following steps are executed repeatedly until the lighting effect state corresponding to the second speed level is reached: when i satisfies i=j*interval step size and j≤n, the hold frame logic that does not update the lighting effect state is executed, and j=j+1, i=i+1; otherwise, the update frame logic that updates the lighting effect state is executed, and i=i+1.
9. A controller for a lighting device, characterized in that, include: The memory and the processor, the processor being configured to invoke and run a computer program stored in the memory to perform the lighting effect adjustment method as described in any one of claims 1 to 8.
10. A lighting device, characterized in that, It includes a controller and at least one light-emitting unit, wherein the at least one light-emitting unit is connected to the controller, and the controller is used to perform the lighting effect adjustment method as described in any one of claims 1 to 8.