A platform-based method and system for controlling in-vehicle ambient lighting with customizable dynamic effects.
By using a platform-based method for controlling in-vehicle ambient lighting, and by employing a time-series motion effect table and a task scheduler, the problem of long development cycles and low degree of freedom in existing technologies for in-vehicle ambient lighting has been solved. This method enables rapid adaptation and highly flexible lighting control, thereby enhancing the cabin interaction experience.
Patent Information
- Application Number
- CN202611323052.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-17
AI Technical Summary
The existing dynamic lighting effect logic of in-vehicle ambient lighting is deeply coupled with the microcontroller control code. This results in the need for code refactoring, unit testing, vehicle matching testing, and compatibility verification when modifying or adding dynamic lighting effects. This leads to a large development workload, long iteration cycles, and low freedom of dynamic lighting control.
The system adopts a platform-based method for controlling in-vehicle ambient lighting. By numbering the LED beads and defining static state parameters, a timing effect table is generated and converted into a binary file that can be recognized by a microcontroller and stored in Flash. The task scheduler reads and outputs control commands at timestamp intervals, supporting multi-scene linkage and customization of lighting effects.
It enables rapid adaptation to different vehicle models, reduces development and adaptation costs, improves the freedom and stability of lighting control, and enhances the diversity of cockpit interaction experience and lighting effects.
Smart Images

Figure CN123124182A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of vehicle lighting control technology. Specifically, this invention relates to a platform-based vehicle ambient lighting control method and system with customizable dynamic effects. Background Technology
[0002] Ambient lighting in vehicles is a lighting device used inside cars. It typically adjusts color and brightness according to user preferences and environmental changes to create different atmospheres, aiming to enhance the visual appeal and comfort of the vehicle's interior. Through software programming control, ambient lighting can achieve not only static effects but also dynamic effects such as gradients, rhythms, and breathing lights, creating diverse ambiance and enhancing the visual experience inside the car.
[0003] Chinese Patent 210579395U provides a vehicle ambient lighting control system, comprising: a power circuit connected to ambient lights, a handle external touch sensor, a seat gravity sensor, and a vehicle speed sensor; the ambient lights include door panel ambient lights, driver's seat ambient lights, passenger seat ambient lights, cup holder ambient lights, and ceiling ambient lights; the door panel ambient lights and / or ceiling ambient lights are electrically connected to the handle external touch sensor; the driver's seat ambient lights and passenger seat ambient lights are connected to the seat gravity sensor circuit; at least one of the door panel ambient lights, driver's seat ambient lights, passenger seat ambient lights, cup holder ambient lights, and ceiling ambient lights is electrically connected to the vehicle speed sensor.
[0004] The existing lighting dynamic effect logic is deeply coupled with the microcontroller control code. If the lighting dynamic effect needs to be modified or added, it is equivalent to software version iteration. It requires the completion of a whole process of code refactoring, unit testing, vehicle matching testing, and compatibility verification. The development workload is large, the iteration cycle is long, and the freedom of lighting dynamic control is low. Summary of the Invention
[0005] The present invention aims to provide a platform-based method and system for controlling in-vehicle ambient lighting with customizable dynamic effects, so as to reduce the workload and cycle of lighting program development and improve the freedom of in-vehicle lighting control.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0007] This invention provides a platform-based method for controlling in-vehicle ambient lighting with customizable dynamic effects, comprising the following steps:
[0008] Step 1: Number the vehicle ambient lights participating in the lighting effects according to their positions, define the static state parameters of each LED at each moment, the static state parameters include RGB color values and luminous intensity values, and generate a time-series animation table;
[0009] Step 2: Convert the timing animation table into a binary file that the microcontroller can recognize, and store it in the microcontroller's Flash memory;
[0010] Step 3: The microcontroller reads the timing parameters stored in the Flash memory at timestamp intervals through the built-in task scheduler, and outputs RGB color and brightness control instructions for each LED to drive the ambient light to run.
[0011] The static state parameter consists of four bytes, where the first three bytes correspond to the three color components of the RGB color value, and the last byte corresponds to the luminous intensity component.
[0012] When the value of the luminous intensity component is 0, the corresponding LED does not light up.
[0013] In step two, the timing effect table is converted into a binary file in Hex format and then burned into the flash memory of the microcontroller using a programmer.
[0014] In step three, the microcontroller drives the ambient lights at each location by outputting PWM control signals.
[0015] The task scheduler supports two operating modes: single execution and loop execution. By switching modes, timing parameters are invoked to execute the corresponding lighting effects.
[0016] It also includes multi-scene linkage triggering steps: the microcontroller collects the vehicle status signals and external control commands in real time, matches the signals and commands and calls the corresponding timing animation files to trigger the corresponding lighting effects.
[0017] The number of LEDs in the timing animation table is adjusted horizontally to match the ambient lighting layout and quantity for different car models.
[0018] This invention provides a system for applying a platform-based in-vehicle ambient lighting control method with customizable dynamic effects, comprising:
[0019] The timing definition module is used to number the vehicle ambient lights, define the static state parameters of each lamp at each moment, including RGB color values and luminous intensity values, and generate a standardized timing animation table.
[0020] The compilation and conversion module is used to convert the timing animation table into a binary file that can be recognized by the microcontroller;
[0021] The storage module is a Flash memory built into the microcontroller, used to store the binary file.
[0022] The control module has a built-in task scheduler, which reads timing parameters from the Flash memory at timestamp intervals and outputs control commands to drive the ambient lights one by one.
[0023] The technical effects of this invention are as follows:
[0024] (1) The platform adaptability of the present invention is strong, and it can quickly achieve compatibility with multiple vehicle models. For the differences in ambient light layout and number of LEDs of different vehicle models, it is only necessary to horizontally trim or expand the number of columns of the timing effect table to match the total number of LEDs of the target vehicle model. There is no need to change the underlying structure and parameter definition rules of the table, which greatly reduces the adaptation cycle of ambient light schemes for different vehicle models and effectively reduces the platform development and adaptation cost of vehicle ambient light.
[0025] (2) The present invention has a high degree of freedom in customizing motion effects and strong expressive power in lighting effects. By adopting a time-series motion effect table definition scheme, the RGB color components and luminous intensity values of each LED bead at any time node can be accurately defined; it can achieve a static constant lighting effect through constant parameters, or achieve various customized dynamic lighting effects such as gradient, breathing, rhythm, and follow-up through continuous time-series frame-by-frame output, fully meeting the diverse needs of cockpit visual design.
[0026] (3) The present invention has excellent operating efficiency and stability. The timing effect table is converted into a Hex format binary file that can be recognized by the microcontroller and stored in the built-in Flash. During operation, the microcontroller’s built-in task scheduler directly reads the timing parameters and outputs control commands at preset timestamp intervals. There is no need for the main control chip to perform complex motion effect calculations in real time, which significantly reduces the microcontroller’s resource consumption and ensures the smoothness and stability of the lighting effect.
[0027] (4) The present invention has outstanding multi-scenario linkage capability and excellent cockpit interaction experience. It supports real-time collection of vehicle status signals such as vehicle speed, driving mode, turn signal status, door status, music rhythm, ambient light perception, and voice interaction commands. At the same time, it can receive control commands issued by the vehicle system and physical buttons, and can automatically match and call the corresponding time-series animation files to trigger the corresponding lighting effects, so as to realize the deep linkage between ambient lighting and vehicle conditions and user operations, and enhance the immersive and intelligent experience of cockpit interaction.
[0028] (5) The present invention has fine control precision and rich adjustment levels. The static state parameters are defined by four-byte encoding. The three color components of RGB and the luminous intensity component all support a continuous adjustment range of 0-255 levels. With the PWM drive control method, fine color transition and brightness step adjustment can be realized. At the same time, the lamp bead can be turned off independently by the zero value of the luminous intensity component. The control logic is clear and flexible, and the lighting effect is more refined.
[0029] (6) The present invention is easy to deploy and maintain, and adaptable to a variety of usage scenarios. The timing animation file can be solidified to the microcontroller by the programmer after being converted to a standardized format. Mass production programming and subsequent effect updates are simple and efficient. The task scheduler supports both single execution and loop execution modes, which can be adapted to single trigger scenarios such as welcome reminders and fault warnings, as well as loop display scenarios such as static atmosphere and dynamic rhythm, covering more usage needs. Attached Figure Description
[0030] This manual includes the following figures, which illustrate the following:
[0031] Figure 1 The flowchart shows a platform-based vehicle ambient lighting control method and system with customizable dynamic effects according to the present invention.
[0032] Figure 2 This invention provides a timing effect table for a platform-based vehicle ambient lighting control method and system with customizable dynamic effects. Detailed Implementation
[0033] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings, in order to help those skilled in the art to have a more complete, accurate and in-depth understanding of the inventive concept and technical solution of the present invention, and to facilitate its implementation.
[0034] This invention provides a platform-based method for controlling in-vehicle ambient lighting with customizable dynamic effects, comprising the following steps:
[0035] Step 1: Number the vehicle ambient lights participating in the lighting effects according to their positions, define the static state parameters of each LED at each moment, including RGB color values and luminous intensity values, and generate a time-series animation table;
[0036] Step 2: Convert the timing animation table into a binary file that the microcontroller can recognize, and store it in the microcontroller's Flash memory;
[0037] Step 3: The microcontroller reads the timing parameters stored in the Flash memory at timestamp intervals through the built-in task scheduler, and outputs RGB color and brightness control instructions for each LED to drive the ambient light to run.
[0038] The static state parameter consists of four bytes, with the first three bytes corresponding to the three color components of the RGB color value, and the last byte corresponding to the luminous intensity component.
[0039] When the value of the luminous intensity component is 0, the corresponding LED does not light up.
[0040] In step two, the timing effect table is converted into a binary file in Hex format and then burned into the flash memory of the microcontroller using a programmer.
[0041] In step three, the microcontroller drives the ambient lights at each location by outputting PWM control signals.
[0042] The task scheduler supports two running modes: single execution and loop execution. By switching modes, timing parameters are invoked to execute the corresponding lighting effects.
[0043] It also includes multi-scene linkage triggering steps: the microcontroller collects the vehicle status signals and external control commands in real time, matches the signals and commands and calls the corresponding timing animation files to trigger the corresponding lighting effects.
[0044] The number of LEDs in the timing animation table is adjusted horizontally to match the ambient lighting layout and quantity for different car models.
[0045] This invention provides a system for applying a platform-based in-vehicle ambient lighting control method with customizable dynamic effects, comprising:
[0046] The timing definition module is used to number the vehicle ambient lights, define the static state parameters of each lamp at each moment, including RGB color values and luminous intensity values, and generate a standardized timing animation table.
[0047] The compilation and conversion module is used to convert the timing animation table into a binary file that can be recognized by the microcontroller;
[0048] The storage module is the built-in Flash memory of the microcontroller, used to store binary files.
[0049] The control module has a built-in task scheduler, which reads timing parameters from the Flash memory at timestamp intervals and outputs control commands to drive the ambient lights one by one.
[0050] The present invention will now be described in detail.
[0051] First, the ambient lighting elements participating in the dynamic effects are numbered according to the actual vehicle model, starting from 0 and increasing sequentially, corresponding to LEDs in different locations such as the doors, center console, footwell, headliner, and armrest. To adapt to multiple vehicle models and multi-zone control, the LED numbers can be segmented by physical zone. For example, numbers 0-7 correspond to the left door zone, 8-15 to the right door zone, 16-23 to the center console zone, 24-31 to the footwell zone, and 32-39 to the headliner zone. The number of LEDs in each zone can be freely increased or decreased according to the vehicle model configuration, and the number of columns in the corresponding timing table increases or decreases accordingly without adjusting the table's definition rules and data format.
[0052] Define the static state at each moment to generate a timing animation table. The static state includes the color (RGB) and intensity (I) of the LED at each moment. The static definition value consists of four bytes. The first three bytes represent the RGB (red, green, blue) value of the color, and the last byte represents the luminous intensity (I). The variable range of each of the three color components (R, G, B) is 0-255. The variable range of luminous intensity (I) is 0-255, which can realize the step brightness adjustment from off to on.
[0053] For example, "10203006" represents the color of this ambient light in RGB (10, 20, 30) format, and 06 represents the luminous intensity of this LED. Specifically, when the value is "xxxxxx00", meaning the luminous intensity is 0, it means that regardless of the color value, this ambient light will not be lit; that is, this ambient light does not participate in the static or dynamic effects of the ambient light. Dynamic effects can be achieved by continuously controlling the static state. In the embodiments of this invention, the static states of each LED at different times are defined as follows: Figure 2 The timing animation table shows that the rows correspond to time scales in milliseconds (ms), and the time interval can be set according to the smoothness requirements of the animation, such as a 20ms interval. The columns correspond to ambient lights with different numbers, and each cell stores the four-byte static state parameter of the corresponding light bulb at that moment. By continuously outputting the static states of different moments in chronological order, dynamic lighting effects can be achieved. To address the differences in the number of light bulbs across different car models, the timing animation table can be directly cropped or expanded horizontally to adjust the number of columns to match the total number of light bulbs for the target car model, without needing to adjust the table structure or defined rules, thus achieving rapid adaptation to multiple car models.
[0054] The timing animation table is converted into a binary file that the microcontroller can recognize and then stored in the microcontroller's Flash memory. Specifically, the timing animation table is converted into a binary file that the microcontroller can recognize and then stored in the microcontroller's Flash memory. Figure 2 The static state values of each LED at different times are converted into a specific binary format (Hex format) that the microcontroller can program. This binary file is then programmed into the microcontroller using a programmer and stored in Flash memory. When the microcontroller runs, it can read the RGB color and luminous intensity of each LED at each moment according to the task scheduler, thereby controlling the color and luminous intensity of each LED to achieve dynamic effects such as gradients, rhythms, and breathing lights. The design logic for a typical effect is as follows:
[0055] Breathing light effect: The R, G, and B values of all LEDs remain constant, while the I value linearly increases from 0 to 255 and then linearly decreases back to 0, repeating this cycle to achieve a uniform breathing effect of light transitioning from dark to bright and then back to dark. A colored breathing effect can also be achieved by adjusting the RGB values to change synchronously with the brightness.
[0056] Color gradient effect: The R, G, and B values change gradually over time to achieve a smooth color transition, such as from warm yellow to ice blue. This can be achieved by setting the target RGB values at the start and end frames and performing linear interpolation in the middle frames.
[0057] Musical rhythm effect: The brightness of the LED beads changes with the rhythm of the music. The I value is adjusted according to the beat and volume of the audio to achieve linkage between the light and the music. It can be designed as overall synchronous rhythm or zoned alternating rhythm.
[0058] Water flow effect: Following the LED bead numbering sequence, the I value of each LED bead is sequentially increased from 0 to 255 and then decreased to 0. The brightness changes of adjacent LED beads have a fixed time difference, creating the effect of light flowing in a fixed direction. Adjusting the time difference changes the water flow speed, and adjusting the I value curve changes the gradation effect of the water flow.
[0059] Specifically, if the values in the table are the same at any given time, it means that the color and intensity values remain unchanged, thus achieving static control of the ambient light.
[0060] The microcontroller drives the ambient lights at each position by outputting PWM control signals. The microcontroller has a built-in task scheduler that reads the timing parameters stored in Flash memory sequentially at timestamp intervals and outputs RGB color and brightness instructions to each LED; it supports both single-execution and loop execution modes.
[0061] This invention supports multi-scenario linkage triggering. The microcontroller collects vehicle signals in real time (vehicle speed, driving mode, turn signals, door status, incoming calls, music rhythm, ambient light sensor, voice interaction commands), receives control commands from the vehicle system and physical buttons, and automatically matches and calls the corresponding timing animation files.
[0062] The beneficial effects of the present invention are described in detail below.
[0063] This invention boasts strong platform adaptability, enabling rapid compatibility across multiple vehicle models. Addressing the differences in ambient lighting layout and LED count across various vehicle models, only horizontal cropping or column expansion of the timing animation table is needed to match the total number of LEDs for the target model. No changes to the table's underlying structure or parameter definition rules are required, significantly reducing the adaptation cycle for ambient lighting solutions across different vehicle models and effectively lowering the platform development and adaptation costs for in-vehicle ambient lighting.
[0064] This invention offers a high degree of freedom in customizing motion effects and strong expressive power in lighting effects. Employing a time-series motion effect table definition scheme, it can precisely define the RGB color components and luminous intensity values of each LED at any given time point. It can achieve static, constant-on effects through constant parameters, or it can achieve various customized dynamic lighting effects such as gradients, breathing, rhythmic movements, and follow-up motion through continuous, frame-by-frame output, fully meeting diverse cockpit visual design needs.
[0065] This invention exhibits excellent operational efficiency and stability. The timing effect table is converted into a Hex format binary file recognizable by the microcontroller and stored in the built-in Flash memory. During runtime, the microcontroller's built-in task scheduler directly reads the timing parameters and outputs control commands at preset timestamp intervals. This eliminates the need for the main control chip to perform complex motion effect calculations in real time, significantly reducing the microcontroller's resource consumption and ensuring the smoothness and stability of the lighting effects.
[0066] This invention boasts outstanding multi-scenario linkage capabilities and an excellent cockpit interaction experience. It supports real-time acquisition of vehicle status signals such as vehicle speed, driving mode, turn signal status, door status, music rhythm, ambient light perception, and voice interaction commands. Simultaneously, it can receive control commands issued by the vehicle's infotainment system and physical buttons, automatically matching and calling corresponding time-series animation files to trigger corresponding lighting effects. This achieves deep linkage between ambient lighting, vehicle operating conditions, and user operations, enhancing the immersive and intelligent experience of cockpit interaction.
[0067] This invention offers precise control and a rich set of adjustment levels. Static state parameters are defined using four-byte encoding, and all three RGB color components and the luminous intensity component support a continuous adjustment range of 0-255 levels. Combined with PWM drive control, it can achieve delicate color transitions and brightness step adjustments. Furthermore, the zero value of the luminous intensity component can be used to independently control the LED's off state, resulting in clear and flexible control logic and a higher level of precision in lighting effects.
[0068] This invention offers convenient deployment and maintenance, adapting to diverse usage scenarios. The time-series animation files, after being converted to a standardized format, can be burned into the microcontroller via a programmer, making mass production burning and subsequent effect updates simple and efficient. The task scheduler simultaneously supports both single-execution and loop execution modes, adapting to single-trigger scenarios such as welcome reminders and fault warnings, as well as loop display scenarios such as static atmospheres and dynamic rhythms, covering a wider range of usage needs.
[0069] The present invention has been described above by way of example with reference to the accompanying drawings. Obviously, the specific implementation of the present invention is not limited to the above-described manner. Any non-substantial improvements made using the inventive concept and technical solution; or the direct application of the inventive concept and technical solution to other situations without modification, are all within the protection scope of the present invention.
Claims
1. A platform-based in-vehicle ambient lighting control method with customizable dynamic effects, characterized in that, Includes the following steps: Step 1: Number the vehicle ambient lights participating in the lighting effects according to their positions, define the static state parameters of each LED at each moment, the static state parameters include RGB color values and luminous intensity values, and generate a time-series animation table; Step 2: Convert the timing animation table into a binary file that the microcontroller can recognize, and store it in the microcontroller's Flash memory; Step 3: The microcontroller reads the timing parameters stored in the Flash memory at timestamp intervals through the built-in task scheduler, and outputs RGB color and brightness control instructions for each LED to drive the ambient light to run.
2. The platform-based vehicle ambient lighting control method with customizable dynamic effects as described in claim 1, characterized in that: The static state parameter consists of four bytes, where the first three bytes correspond to the three color components of the RGB color value, and the last byte corresponds to the luminous intensity component.
3. The platform-based vehicle ambient lighting control method with customizable dynamic effects as described in claim 2, characterized in that: When the value of the luminous intensity component is 0, the corresponding LED does not light up.
4. The platform-based vehicle ambient lighting control method with customizable dynamic effects as described in claim 1, characterized in that: In step two, the timing effect table is converted into a binary file in Hex format and then burned into the flash memory of the microcontroller using a programmer.
5. The platform-based vehicle ambient lighting control method with customizable dynamic effects as described in claim 1, characterized in that: In step three, the microcontroller drives the ambient lights at each location by outputting PWM control signals.
6. The platform-based vehicle ambient lighting control method with customizable dynamic effects as described in claim 1, characterized in that: The task scheduler supports two operating modes: single execution and loop execution. By switching modes, timing parameters are invoked to execute the corresponding lighting effects.
7. The platform-based vehicle ambient lighting control method with customizable dynamic effects as described in claim 1, characterized in that: It also includes multi-scene linkage triggering steps: the microcontroller collects the vehicle status signals and external control commands in real time, matches the signals and commands and calls the corresponding timing animation files to trigger the corresponding lighting effects.
8. A platform-based in-vehicle ambient lighting control method with customizable dynamic effects as described in claim 1, characterized in that: The number of LEDs in the timing animation table is adjusted horizontally to match the ambient lighting layout and quantity for different car models.
9. A system for applying the platform-based vehicle ambient lighting control method with customizable dynamic effects as described in any one of claims 1-8, characterized in that, include: The timing definition module is used to number the vehicle ambient lights, define the static state parameters of each lamp at each moment, including RGB color values and luminous intensity values, and generate a standardized timing animation table. The compilation and conversion module is used to convert the timing animation table into a binary file that can be recognized by the microcontroller; The storage module is a Flash memory built into the microcontroller, used to store the binary file. The control module has a built-in task scheduler, which reads timing parameters from the Flash memory at timestamp intervals and outputs control commands to drive the ambient lights one by one.
Citation Information
Patent Citations
Vehicle-mounted atmosphere lamp control system
CN210579395U
