Light source control method, controller of light emitting device, and light emitting device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-13
- Publication Date
- 2026-08-11
AI Technical Summary
尽管这种色温曲线能够在一定程度上模拟自然光的色温变化,然而,其在实际应用中仍然存在显著的不足
[0008]相对于现有技术,本申请提供的光源控制方法中,基于指定光谱曲线使用标准差和主波长控制光谱分布,从而避免了传统色温曲线的缺陷。具体而言,标准差和主波长能够精确控制色温调节过程中的颜色变化和平滑过渡。
Smart Images

Figure CN122555022A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of light source control, and more specifically, to a light source control method, a controller for a light-emitting device, and a light-emitting device. Background Technology
[0002] In existing color temperature adjustment technologies, fixed color temperature curves are commonly used to control the color temperature of light sources. These traditional color temperature curves are usually based on the Planck blackbody radiation color temperature curve, which describes the spectral distribution of blackbody radiation at different temperatures and is widely used in light-emitting devices such as LED lighting, displays, and projectors. Although this color temperature curve can simulate the color temperature changes of natural light to some extent, it still has significant shortcomings in practical applications.
[0003] For example, traditional color temperature curves exhibit uneven color temperature distribution. In high color temperature regions (such as cooler colors), the color temperature points are too densely packed, but the color change is not obvious; while in low color temperature regions (such as warmer colors), the color temperature points are too sparsely distributed, resulting in overly drastic color changes. This uneven distribution makes it impossible to achieve a smooth transition between high and low color temperature regions when adjusting the color temperature of the light source. For instance, when adjusting the color temperature from cool white light (high color temperature) to warm white light (low color temperature), existing technologies often cause abrupt color changes in warm-toned areas, lacking a delicate transition effect. Summary of the Invention
[0004] In view of this, this application proposes a light source control method, a controller for a light-emitting device, and a light-emitting device.
[0005] In a first aspect, this application provides a light source control method, comprising: determining a specified spectral curve corresponding to a given standard deviation; the specified spectral curve being used to describe the relationship between the dominant wavelength and chromaticity coordinates of light under the given standard deviation, wherein the specified spectral curve is a spectral curve formed by mapping points of multiple Gaussian light intensity curves calculated based on multiple different specified dominant wavelengths and multiple different standard deviations; obtaining a target dominant wavelength; determining the emission parameters corresponding to the target dominant wavelength based on the specified spectral curve and a preset mapping relationship; wherein the mapping relationship is used to describe the correspondence between the chromaticity coordinates corresponding to the dominant wavelength and the emission parameters; and generating a control signal for the light source based on the emission parameters.
[0006] Secondly, this application also provides a controller for a light-emitting device, including a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the above-described light source control method.
[0007] Thirdly, this application also provides a light-emitting device, including a light source and a controller for the light-emitting device, wherein the light source and the controller are electrically connected.
[0008] Compared to existing technologies, the light source control method provided in this application controls the spectral distribution based on a specified spectral curve using standard deviation and dominant wavelength, thereby avoiding the shortcomings of traditional color temperature curves. Specifically, the standard deviation and dominant wavelength can precisely control color changes and smooth transitions during color temperature adjustment.
[0009] In Gaussian functions, the standard deviation controls the width of the spectrum. The magnitude of the standard deviation directly affects the smoothness and width of the spectral curve, thus controlling the range of color variations. When the standard deviation is small, the specified spectral curve becomes steeper, with spectral variations concentrated near the dominant wavelength, resulting in more vibrant colors within a narrower range. Conversely, when the standard deviation is large, the curve becomes flatter. Therefore, an increased standard deviation leads to a contraction of the color gamut, a reduction in saturation, and a smoother color transition, resulting in a more natural transition during color adjustment and avoiding sudden jumps or abrupt changes in color. Thus, by adjusting the standard deviation, the smoothness and range of color temperature transitions can be finely adjusted, from highly saturated vibrant colors to low-saturation soft colors.
[0010] The dominant wavelength determines the center position of a given spectral curve, i.e., the primary color of the light source. As the dominant wavelength changes, the peak position of the given spectral curve shifts, thus altering the hue of the light source. Combining the dominant wavelength with the standard deviation makes the color of the light source more precisely controllable, and by controlling the width of the spectral distribution through the standard deviation, a smooth color transition can be achieved. Therefore, the dominant wavelength precisely controls the color of the light source, while the standard deviation determines the range of color variation. By adjusting the dominant wavelength and the standard deviation, a precise transition from one color to another can be achieved, resulting in an ideal color temperature adjustment effect.
[0011] In summary, this application utilizes a specified spectral curve and precisely adjusts the dominant wavelength and standard deviation to achieve controllable and flexible color changes in the light source. By combining the mapping relationship between color coordinates and luminescence parameters, the light source control method provided by this application offers accurate color output and can achieve smooth and natural transitions between different color temperature ranges, thus adapting to various application scenarios and providing more refined and natural light source control. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1This is a schematic diagram of the light-emitting device provided in the embodiments of this application.
[0014] Figure 2 This is a flowchart illustrating a light source control method provided in an embodiment of this application.
[0015] Figure 3 This is a flowchart illustrating another light source control method provided in an embodiment of this application.
[0016] Figure 4 yes Figure 3 In the light source control method shown, the standard deviation A schematic diagram of the specified spectral curve at that time.
[0017] Figure 5 yes Figure 3 In the light source control method shown, the standard deviation A schematic diagram of the specified spectral curve at that time.
[0018] Figure 6 yes Figure 3 In the light source control method shown, the standard deviation A schematic diagram of the specified spectral curve at that time.
[0019] Figure 7 yes Figure 3 In the light source control method shown, the standard deviation A schematic diagram of the specified spectral curve at that time.
[0020] Figure 8 This is a schematic diagram of the functional modules of the control device provided in the embodiments of this application.
[0021] Figure 9 This is a block diagram of a controller for a light-emitting device used to perform a light source control method according to an embodiment of this application. Detailed Implementation
[0022] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0023] To enable those skilled in the art to better understand the solutions of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0024] To facilitate a detailed explanation of the present application, the application environment of the light source control method provided in the embodiments of this application will be described below with reference to the accompanying drawings. The light source control method of the embodiments of this application is applied to a light source, which can be a light source in a home lighting device, a light source in a professional photography light, stage light, etc., a light source in a display device such as a monitor or projector, or a light source in an automotive ambient light or lighting fixture. Therefore, it can be considered that the light source provided in the embodiments of this application is used as a light-emitting device, or that the light source can be applied in a light-emitting device, which can include at least one of the following devices: home lighting devices, photography lights, stage lights, monitors, projectors, automotive ambient lights, automotive lighting fixtures, etc.
[0025] Please see Figure 1 This diagram illustrates the application environment of the light source control method provided in this embodiment. As an example, the light source control method is applied to a light-emitting device 500, which may include a controller 501 and a light source 503. The controller 501 and the light source 503 are electrically connected. The controller 501 acts as the controller for the light-emitting device 500, controlling the operation of the light source 503 according to the light source control method provided in this embodiment. The light source 503 is exemplified by a smart bulb (such as an RGB LED light), which supports color temperature and / or color adjustment. Accordingly, the user can achieve the above-mentioned adjustment function through a control device. The control device can be a smart home control system or other control devices, such as a smart home gateway, a central controller, a remote control, or control software on a portable electronic device. The controller 501 may include a central processing unit, and the controller 501 may be built into the aforementioned control device. The controller 501 integrates the light source control method provided in this embodiment and communicates with the light source 503 to transmit control commands. In some examples, the light-emitting device 500 may also include a communication module 505, and the communication connection and / or electrical connection between the controller 501 and the light source 503 may be implemented based on the communication module 505. The communication module 505 may include at least one of the following transmission devices: a communication wire, a Wi-Fi transmission module, a Zigbee transmission module, and a Bluetooth transmission module.
[0026] As an application example, a user sets the desired color temperature range and / or color using a remote control or other control device, such as selecting cool white light or warm white light. The controller 501 in the control device then sets the corresponding standard deviation and dominant wavelength according to the user's needs to determine the specified spectral curve and the emission parameters corresponding to the dominant wavelength. Based on these emission parameters, a dimming signal is generated and transmitted to each color channel (red, green, blue) of the light source 503. The light source 503 then adjusts the RGB color values of the light-emitting chip according to the received dimming signal, thereby changing the color and / or brightness of the light.
[0027] Please see Figure 2 Specifically, the light source control method provided in the first embodiment of this application is applied to a light source or an electronic device having a light source, such as the light source 503 or the light-emitting device 500 mentioned above. Specifically, the light source control method in this embodiment may include the following steps S101 to S105.
[0028] Step S101: Determine the specified spectral curve corresponding to the given standard deviation.
[0029] In this embodiment, a specified spectral curve is used to describe the relationship between the dominant wavelength and chromaticity coordinates of light under a given standard deviation. This specified spectral curve is calculated based on a Gaussian function. Specifically, the specified spectral curve is a spectral curve formed by mapping points from multiple Gaussian light intensity curves calculated based on multiple different specified dominant wavelengths and multiple different standard deviations. The Gaussian function is the basis for calculating the specified spectral curve in this embodiment. Through the mathematical model of the Gaussian function, the light intensity distribution of the light source at different wavelengths can be obtained, thus providing a basis for accurately controlling the color and color temperature of the light source.
[0030] Specifically, the standard form of the Gaussian function is as follows (1): (1) in: A is the amplitude of the Gaussian function (usually the normalization coefficient), which determines... The maximum value; The mean of the Gaussian distribution controls the peak position of the Gaussian curve.
[0031] σ is the standard deviation, which controls the width of the Gaussian curve.
[0032] The standard deviation given in this embodiment is the standard deviation in expression (1) above. When the above Gaussian function is used to describe the spectral curve, the standard deviation can be used to control the width of the Gaussian curve, and the standard deviation is used to control the width of the Gaussian curve. The Gaussian function can represent the dominant wavelength or the center position, i.e., the center wavelength position of the spectrum. Therefore, when the Gaussian function is used to describe the spectral curve, μ is the dominant wavelength of the spectral curve, which determines the main color of the light source. Thus, this embodiment uses the Gaussian function as the basis for calculating the specified spectral curve to describe the spectral distribution. This allows for precise control of the light source's color, especially when adjusting the color temperature, color saturation, and transition effects. It can precisely adjust the color temperature and color change range of the light source according to specific application scenarios, thereby achieving flexible control of the light source's color.
[0033] In this embodiment, the given standard deviation value is set by the user or automatically selected and determined by the controller. The standard deviation is a key parameter of the specified spectral curve, controlling the width of the spectral distribution. Therefore, selecting different standard deviations in different application scenarios can precisely adjust the range of color temperature changes. The magnitude of the standard deviation directly affects the range of color temperature changes and the smoothness of color transitions. When the standard deviation is small, the specified spectral curve is relatively steep, mainly concentrated near the dominant wavelength. Adjusting the dominant wavelength in this case results in a very concentrated spectral change and vivid color changes. When the standard deviation is large, the specified spectral curve is relatively flat, causing the color gamut to shrink and saturation to decrease. Adjusting the dominant wavelength in this case results in a softer color transition in the spectrum. As the standard deviation increases, the color temperature transition becomes smoother, and the transition from cool white light to warm white light becomes more natural.
[0034] As an example, when a user needs to adjust the color temperature of a smart light source, the user can determine a given standard deviation from several selectable standard deviations. For example, the user can select a suitable standard deviation through the light source's control panel or remote control. Specifically, taking the remote control or the light source's control panel as an example, the remote control can provide multiple preset values. For example, the remote control's menu may present options such as "Vivid," "Soft," and "Neutral," corresponding to "Larger Standard Deviation," "Smaller Standard Deviation," and "Moderate Standard Deviation," respectively. The controller obtains the given standard deviation through the user's operation of the menu. The standard deviation can be greater than or equal to 10nm and less than or equal to 600nm. The specific values of the aforementioned "Larger Standard Deviation," "Smaller Standard Deviation," and "Moderate Standard Deviation" can be preset in the controller. For example, the standard deviation corresponding to "Larger Standard Deviation" can be 110nm, the standard deviation corresponding to "Smaller Standard Deviation" can be 20nm, and the standard deviation corresponding to "Moderate Standard Deviation" can be 80nm. This embodiment does not impose any limitations on this. The user can select the corresponding option through the menu on the remote control, and the controller generates or selects the corresponding specified spectral curve based on the standard deviation selected by the user.
[0035] Since a specified spectral curve describes the relationship between the dominant wavelength and chromaticity coordinates of light at a given standard deviation, once the dominant wavelength and standard deviation are determined, the chromaticity coordinates corresponding to that dominant wavelength can be obtained from the specified spectral curve, thereby controlling the light source to display the desired color. In this embodiment, the chromaticity coordinates can be calculated using a chromaticity function (e.g., the CIE 15:2018 chromaticity function), which is based on the human eye's perception of different wavelengths of light and can map the light intensity distribution (e.g., a Gaussian light intensity curve) to a chromaticity coordinate space. The chromaticity coordinate system can adopt the CIE 1931 chromaticity coordinate system (CIE xy), which represents color using two coordinate values (x and y). Through the chromaticity function, the controller can convert the light intensity of different wavelengths into chromaticity coordinates (e.g., CIE xy), enabling the controller to quantitatively describe the color corresponding to each wavelength.
[0036] In some embodiments, mapping from a specified spectral curve to a color gamut space may include the following steps: obtaining a Gaussian-based light intensity distribution curve by calculating the light intensity at each wavelength using a Gaussian function, the light intensity distribution curve describing the light intensity f(λ) at each wavelength (λ); using a chromaticity function (e.g., the CIE 15:2018 chromaticity function) to perform a weighted integral on the light intensity at each wavelength to obtain the corresponding chromaticity coordinate values; and fitting the chromaticity coordinates of multiple dominant wavelengths to obtain the final specified spectral curve, which accurately describes the relationship between the dominant wavelength and the chromaticity coordinates under a given standard deviation. The above execution process will be described in detail below.
[0037] Step S103: Obtain the target dominant wavelength.
[0038] In this embodiment, "obtaining the target dominant wavelength" refers to determining the dominant wavelength corresponding to the color of the light source based on the user's needs, application scenario, or control system requirements. The dominant wavelength determines the primary color of the light source, that is, the main color presented by the light source.
[0039] As discussed above, when the specified spectral curve is calculated based on a Gaussian function, or when a Gaussian function is used to describe the spectral curve distribution, the dominant wavelength represents the center wavelength of the specified spectral curve. Therefore, the dominant wavelength determines the primary color of the light source. Once the target dominant wavelength is determined, the basic color of the light source can be determined, and subsequent color temperature adjustments can be made based on this color.
[0040] In different application scenarios, users' needs for light source color may vary. For example, in lighting equipment, users may want to adjust the range from cool light (high color temperature, usually blue-toned) to warm light (low color temperature, usually red-toned). In monitors or projectors, users may want to set specific hues (such as the main hue for document processing, the hue for watching movies, etc.) to suit different visual effects and scene requirements.
[0041] As an example, when adjusting the hue of a smart light source, the user can determine a target dominant wavelength from multiple selectable dominant wavelengths using a control device (such as a remote control or a light source control panel), thereby determining the desired hue. For instance, taking a remote control or a light source control panel as an example, the remote control can provide multiple preset values, such as options like "Warm Scene," "Work Scene," and "Daily Scene" on the remote control's menu, corresponding to "Yellowish Tone," "Bluish Tone," and "Moderate Hue," respectively. The user determines the target dominant wavelength through menu selection or button operation. The controller of the light-emitting device then obtains the target dominant wavelength through the user's operation. The target dominant wavelength can be greater than or equal to 380nm and less than or equal to 780nm. The specific values for "Yellowish Tone," "Bluish Tone," and "Moderate Hue" can be preset in the controller of the light-emitting device. For example, the target dominant wavelength corresponding to "Yellowish Tone" could be 700nm, the dominant wavelength corresponding to "Bluish Tone" could be 400nm, and the dominant wavelength for "Moderate Hue" could be 550nm. This embodiment does not impose any limitations on this. In this embodiment, the target dominant wavelength ranges from 380nm to 780nm, and the user can select the desired dominant wavelength within this range according to actual needs. This value can be preset in the controller of the light-emitting device, and the user can determine the corresponding dominant wavelength by selecting different scenarios.
[0042] Step S105: Based on the specified spectral curve and the preset mapping relationship, determine the emission parameters corresponding to the target dominant wavelength.
[0043] In this embodiment, the mapping relationship is used to describe the correspondence between the chromatic coordinates corresponding to the dominant wavelength and the emission parameters. Before step S105, after knowing the standard deviation (σ) and the target dominant wavelength (λ0), the controller, based on the specified spectral curve, can determine the chromatic coordinates corresponding to the given standard deviation and the target dominant wavelength, and directly convert the chromatic coordinates into the corresponding emission parameters through the preset mapping relationship. In this embodiment, the preset mapping relationship can be pre-stored in the memory of the controller of the light-emitting device. For example, the preset mapping relationship can be pre-written into the memory of the light-emitting device before it leaves the factory, or it can be pre-calculated and stored by the controller based on the specified spectral curve, chromaticity function, and chromaticity transformation matrix. After determining the target chromatic coordinates corresponding to the target dominant wavelength, the controller can read the preset mapping relationship from the memory and convert the target chromatic coordinates into the corresponding emission parameters based on the preset mapping relationship. As another example, the preset mapping relationship can also be pre-calculated by the controller of the light-emitting device based on the specified spectral curve, chromaticity function, and chromaticity transformation matrix, and stored in the memory of the controller for direct retrieval when controlling the light source later. As another example, the preset mapping relationship can also be sent to the controller by an electronic device, cloud server or external control terminal that communicates with the light-emitting device, and then stored or temporarily called by the controller.
[0044] In some embodiments, the emission parameters of the light source can be RGB values, and the aforementioned mapping relationship can be preset in the controller of the light source or emission device. Since color coordinates are a standardized way of describing color, and RGB values are emission parameters / color channel target values, serving as control signal parameters for the light source, a mapping relationship exists between the two. To achieve color control and adjustment, this embodiment sets a preset mapping relationship between the two, that is, establishing a fixed conversion rule between color coordinates and RGB values, so that after obtaining the color coordinates, the RGB values or other emission parameters can be directly obtained through mapping.
[0045] As an example, the preset mapping relationship in this embodiment can be a functional relationship, such as using mathematical transformation formulas or chromaticity matrices to achieve the mapping conversion between chromaticity coordinates and RGB values. For example, CIE 1931 chromaticity coordinates (CIExy) can be converted to RGB values using specific transformation formulas. These formulas typically involve linear transformations or color space conversions, and precise conversion between chromaticity coordinates and RGB values can be achieved through matrix operations. In this embodiment, using the RGB color space and the CIE 1931 chromaticity coordinate system, chromaticity coordinates can be converted to RGB values using the following transformation formula:
[0046]
[0047]
[0048] Where M is the transformation matrix, and x, y, z are the values of the color coordinates.
[0049] As another example, the preset mapping relationship in this embodiment can be a preset correspondence table. For example, in the controller of the light-emitting device, a lookup table of the relationship between color coordinates and RGB values can be preset, mapping each possible color coordinate (CIE xy) to a corresponding RGB value. After calculating the color coordinates, the corresponding RGB value can be quickly obtained through the lookup table. This method is efficient and fast, and is suitable for fixed mappings between color coordinates and RGB values.
[0050] In other embodiments, the light emission parameters can be other than RGB values.
[0051] As an example, the luminous parameters can be HSL / HSV (hue, saturation, brightness) values. The controller can precisely control the color of the light source by controlling the hue (H), saturation (S), and brightness (L / V). Specifically, after obtaining the color coordinates in the aforementioned steps, the controller calculates the hue (H), saturation (S), and brightness (L / V) based on the color coordinates. The calculation from the color coordinates to HSL / HSV can be performed using existing formulas, which will not be elaborated in this specification.
[0052] As another example, emission parameters can include color temperature parameters (CCT), which the controller can use to adjust the color temperature of the light source. In this case, the controller can calculate the corresponding color temperature value based on the color coordinates, and then adjust the color temperature of the light source. The core of color temperature adjustment is to select a suitable dominant wavelength (λ0) and standard deviation (σ) to control the spectral distribution, thereby achieving a transition from cool white light to warm white light, and adjusting the color temperature through a dimming control signal (such as PWM).
[0053] As another example, after obtaining the color coordinates, the color coordinates can be used directly as a reference for the emission parameters without needing to convert them to RGB values.
[0054] Therefore, in this embodiment, a specified spectral curve can be determined by the given standard deviation, and the specified spectral curve describes the relationship between the dominant wavelength and the color coordinates. After further determining the target dominant wavelength, the color coordinates corresponding to the target dominant wavelength can be determined based on the specified spectral curve. The controller can determine "target dominant wavelength - corresponding color coordinates - corresponding emission parameters" based on the preset mapping relationship, such as RGB values or other color control parameters (such as HSL / HSV values or color temperature (CCT)). This enables precise control of the color adjustment of the light source and its transition effect, thereby adapting to different application requirements.
[0055] Step S107: Generate a control signal for the light source based on the light emission parameters.
[0056] In this embodiment, after determining the color coordinates and emission parameters based on the standard deviation and dominant wavelength, the controller can obtain the corresponding color coordinates and emission parameters. Based on the obtained emission parameters, the controller generates a corresponding control signal, which is used to adjust the color and brightness of the light source.
[0057] In some embodiments, the light emission parameters include RGB values. After acquiring the RGB values, the controller generates three independent parameters based on the RGB signals, which are used to control the current of the red (R), green (G), and blue (B) channels of the light source, respectively. The intensity of each signal represents the brightness of the corresponding color channel. For example, RGB=(255, 180, 80) indicates that the brightness of the red channel is maximum (255), the green channel is medium brightness (180), and the blue channel is low brightness (80). In this embodiment, the control signal can be a PWM signal corresponding to the light emission parameters, and the controller generates a PWM signal corresponding to each color channel (red, green, blue). Specifically, for each color channel (red, green, blue), the controller calculates the corresponding PWM duty cycle based on the range of RGB values (e.g., 0 to 255). The PWM duty cycle determines the current passage time of that color channel, i.e., the brightness.
[0058] For example, when RGB=(255, 180, 80), the controller generates the following PWM signal: Red channel: Duty cycle is 100% (fully lit); Green: Duty cycle 70.6% (medium brightness); Blue: Duty cycle 31.4% (lower brightness).
[0059] The PWM signal generated by the controller is sent to the drive circuit of the light source to adjust the current of each color channel of the light source, thereby precisely controlling the color output of the light source.
[0060] In other embodiments, the emission parameters may include a color temperature (CCT) value. After acquiring the CCT value, the controller generates a corresponding PWM control signal to adjust the color temperature of the light source. During the color temperature adjustment process, the controller achieves a smooth transition from warm light (low color temperature) to cool light (high color temperature) by adjusting the relative brightness of the red and blue channels. For example, when a lower color temperature is required, the controller increases the current of the red channel and decreases the current of the blue channel; when a higher color temperature is required, the controller increases the current of the blue channel and decreases the current of the red channel. In this embodiment, by adjusting the duty cycle of the PWM signal, the controller precisely adjusts the brightness of each color channel, thereby smoothly transitioning the color temperature.
[0061] In some embodiments, the emission parameters may include HSL / HSV (hue, saturation, brightness) values, and the controller generates corresponding PWM signals using the hue (H), saturation (S), and brightness / lightness (L / V) parameters. Specifically, the controller is used to: adjust the RGB values according to the hue angle (e.g., from 0° to 360°) and control the output ratio of each color channel through the PWM signal; adjust the brightness of each color channel according to the saturation value to control the vividness of the color, where high saturation (S close to 1) means the color is more vivid, and low saturation (S close to 0) means the color becomes dull; and adjust the brightness control signal of the light source according to the brightness or lightness value, such as by adjusting the PWM duty cycle to control the brightness of the light source.
[0062] The control signal in the above embodiment is illustrated using a PWM signal as an example. In other embodiments, the control signal may include at least one of the following signals: a PWM signal, a digital signal, and an analog signal. The signal generated by the controller is transmitted to the driving circuit of the light source. The driving circuit adjusts the current of each color channel according to the received signal, ultimately controlling the color, brightness, and color temperature of the light source.
[0063] As an example, if the control signal includes a digital signal, the controller generates the corresponding digital signal based on the emission parameters (such as RGB values, color temperature, etc.). For instance, for controlling RGB parameters, the controller converts the color intensity (typically within the range of 0 to 255) of the target's red, green, and blue channels into corresponding digital signals. The generated digital signals are transmitted to the light source driver circuit via a bus protocol (such as I2C, SPI, or DALI). In the light source driver circuit, the digital signals are decoded and used to control the current of the corresponding color channel, thereby adjusting the color and brightness of the light source.
[0064] As another example, if the control signal includes an analog signal, the controller generates a corresponding analog signal based on the light emission parameters (such as RGB values, color temperature, etc.). For example, for controlling color temperature or brightness parameters, the controller generates a corresponding analog voltage signal based on the brightness or color temperature value; for color temperature adjustment, the controller generates a voltage signal of 0 to 10V based on the set color temperature (CCT), representing the transition from cool light to warm light. By adjusting the analog signal, the controller controls the brightness and color temperature of the light source, thereby affecting the RGB output of the light source.
[0065] Therefore, compared to existing technologies, the light source control method provided in this application controls the spectral distribution by specifying the spectral curve and using the standard deviation and dominant wavelength, thereby avoiding the defects of traditional color temperature curves. Specifically, the standard deviation and dominant wavelength can precisely control the color changes and smooth transitions during the color temperature adjustment process.
[0066] In Gaussian functions, the standard deviation controls the width of the spectrum. The magnitude of the standard deviation directly affects the smoothness and width of the spectral curve, thus controlling the range of color variations. When the standard deviation is small, the specified spectral curve becomes steeper, with spectral variations concentrated near the dominant wavelength, resulting in more vivid colors with a narrower range. Conversely, when the standard deviation is large, the curve becomes flatter, the range of color variations increases, and the transition is smoother, thus avoiding sudden jumps or abrupt changes in color. Therefore, by adjusting the standard deviation, the range of color variations from a light source can be flexibly controlled, finely adjusting the smoothness and range of color temperature transitions from highly saturated, vibrant colors to low-saturation, soft colors.
[0067] The dominant wavelength determines the center position of a given spectral curve, i.e., the primary color of the light source. As the dominant wavelength changes, the peak position of the given spectral curve shifts, thus altering the hue of the light source. Combining the dominant wavelength with the standard deviation makes the color of the light source more precisely controllable, and by controlling the width of the spectral distribution through the standard deviation, a smooth color transition can be achieved. Therefore, the dominant wavelength precisely controls the color of the light source, while the standard deviation determines the range of color variation. By adjusting the dominant wavelength and the standard deviation, a precise transition from one color to another can be achieved, resulting in an ideal color temperature adjustment effect.
[0068] In summary, this application utilizes a specified spectral curve and precisely adjusts the dominant wavelength and standard deviation to achieve controllable and flexible color changes in the light source. By combining the mapping relationship between color coordinates and luminescence parameters, the light source control method provided by this application offers accurate color output and can achieve smooth and natural transitions between different color temperature ranges, thus adapting to various application scenarios and providing more refined and natural light source control.
[0069] Please see Figure 3 This illustrates a light source control method provided in the second embodiment of this application. This light source control method is applied to a light source or to an electronic device having a light source, such as the light source 503 or the light-emitting device 500 mentioned above. Specifically, the light source control method in this embodiment may include steps S200 to S205.
[0070] Step S200: Obtain the given standard deviation.
[0071] In this embodiment, the standard deviation is set by the user and serves as the basis for subsequent calculation of the specified spectral curve and color temperature adjustment. For example, the user can operate it via a remote control or other control device. The controller built into the control device, upon receiving user input, processes the selected standard deviation and uses this value as the basis for subsequent calculations of the specified spectral curve and color temperature adjustment to control the color adjustment process of the light source. Specifically, the user can directly select or input the desired standard deviation through different input devices (such as a remote control, touchscreen control panel, or smartphone application) to adjust the color or color temperature transition effect of the light source. When adjusting the color temperature or color transition of the light source, the user can select different standard deviations to control the color saturation and transition effect. For example, a smaller standard deviation (such as 10nm) is suitable for highly saturated colors, such as cool light or blue light; while a larger standard deviation (such as 150nm) is suitable for low-saturation colors, such as warm light or red light, resulting in a smoother color temperature transition effect.
[0072] As an example, in a scenario where a remote control is used as the control device, when the user selects a "warm scene," the controller within the control device automatically sets a standard deviation of 50nm; when the user selects a "cool light scene," the controller within the control device will correspondingly set a standard deviation of 150nm. These standard deviation settings help to achieve light source adjustment for different color temperatures and saturations.
[0073] As another example, in scenarios where smart devices (such as smart home control panels or mobile phones) are used as control devices, the controller within the control device can provide an advanced user mode, allowing users to directly input the desired standard deviation (σ) value through the interface. For example, if a user sets the standard deviation to 50nm through the smart device, this value will serve as the basis for the controller to adjust the color temperature and color of the light source.
[0074] In other embodiments, the standard deviation (σ) can be set based on the controller's automation capabilities. For example, the controller can automatically select a suitable standard deviation based on changes in ambient light, requirements at different times of day, or user preferences. By integrating sensor data, the controller can monitor environmental changes in real time and automatically adjust the standard deviation (σ) to achieve precise matching with the light source's color temperature requirements, ensuring optimal lighting for users regardless of whether it is daytime, nighttime, or different lighting scenarios.
[0075] Step S201: Determine the specified spectral curve corresponding to the given standard deviation.
[0076] For a detailed description of the implementation of step S201, please refer to the specific description of step S101 in the above embodiment of the specification, where the selection of standard deviation and the calculation method of the specified spectral curve are explained in detail, and will not be repeated here.
[0077] In some embodiments, a specified spectral curve can be preset in the controller of the light-emitting device. For example, the controller can store multiple specified spectral curves through a preset table or database for quick lookup and application. After determining the standard deviation, the controller can obtain the spectral curve corresponding to that standard deviation through a lookup method. The preset specified spectral curves can be pre-generated by the controller based on multiple standard deviations and stored in its memory. In other embodiments, the controller can calculate the corresponding specified spectral curve in real time based on the obtained standard deviation and a Gaussian function.
[0078] Therefore, in some embodiments of this application, whether pre-generated or calculated in real time, the controller can also be used to calculate a specified spectral curve based on a Gaussian function. The calculation process of the specified spectral curve may include steps SB01 to SB07, as described below.
[0079] Step SB01: Determine the Gaussian light intensity curve based on the Gaussian function according to the specific dominant wavelength and standard deviation.
[0080] In this embodiment, the Gaussian light intensity curve is used to describe the relationship between the dominant wavelength, standard deviation, and light intensity. Essentially, it is the light intensity at each wavelength calculated using a Gaussian function. The Gaussian function is a common mathematical function, and its standard expression is as follows:
[0081] When the Gaussian function is applied in this embodiment to calculate the light intensity at each wavelength, the Gaussian light intensity curve is shown. The expression is as follows: (1) f( ) indicates in Light intensity at wavelength; A is the amplitude, also known as the normalization coefficient, which is usually 1 to ensure that the integral value of the curve is constant, representing the maximum value of the light intensity; It is the independent variable of the light intensity curve, representing wavelength. The value range is 380nm~780nm in the visible light band; λ0 is the mean of the Gaussian distribution, representing the center position of the light intensity curve, which is also the dominant wavelength of the light source. The value range of the dominant wavelength is also the visible light band 380nm~780nm. σ is the standard deviation, which is used to control the width of the spectrum, and thus affects the range of color changes.
[0082] In this embodiment, the primary color of the light source is determined by the dominant wavelength (λ0). The center position of the Gaussian function (i.e., μ) represents the dominant wavelength (λ0) of the Gaussian light intensity curve, thus determining the hue of the light source. The standard deviation (σ) controls the width of the Gaussian light intensity curve, i.e., the spectral distribution range, and directly affects the color temperature and color transition effect of the light source. A smaller standard deviation (smaller σ value) means a steeper curve and more concentrated color changes; a larger standard deviation (larger σ value) means a smoother curve and softer color changes.
[0083] In this step, the dominant wavelength (λ0) and standard deviation (σ) are known input parameters—that is, specified parameters—from which the Gaussian light intensity curve is determined. The specified parameters can be autonomously selected and determined by the controller, as will be explained below. The Gaussian light intensity curve describes the relationship between the wavelength and light intensity distribution of the spectrum. Therefore, it reflects the spectral distribution of the light source at the specified dominant wavelength and standard deviation, thus affecting the color of the light source. Therefore, the Gaussian light intensity curve is used to describe the light intensity at each wavelength, and its calculation is based on the aforementioned Gaussian function. The specific steps are as follows: Set the dominant wavelength (λ0) as the center wavelength of the Gaussian light intensity curve, and set the standard deviation (σ) to control the width of the spectrum. For each wavelength value... The wavelength value was calculated based on the Gaussian function. Light intensity at For example, assuming the dominant wavelength (λ0) = 500 nm and the standard deviation (σ) = 50 nm, the calculation process is as follows:
[0084] This will generate a light intensity value (f(λ)) for each wavelength value (λ) under the set dominant wavelength (λ0) and standard deviation (σ). When wavelength (λ) is used as the independent variable, a Gaussian light intensity curve is obtained. In some embodiments, obtaining the above-mentioned Gaussian light intensity curve expression is an intermediate step. After obtaining the above-mentioned Gaussian light intensity curve expression, the controller can continue to calculate or plot the specific shape of the Gaussian light intensity curve, or it can directly proceed to the next step without plotting, that is, directly map the Gaussian light intensity curve to the specified spectral curve.
[0085] Step SB03: Determine multiple Gaussian light intensity curves based on different dominant wavelengths and different standard deviations.
[0086] In step SB01, given the set dominant wavelength (λ0) and standard deviation (σ), a Gaussian light intensity curve with wavelength (λ) as the independent variable can be obtained. Furthermore, in this embodiment, based on The controller generates multiple Gaussian light intensity curves based on combinations of multiple dominant wavelengths (λ0) and multiple standard deviations (σ). Each combination of dominant wavelength (λ0) and standard deviation (σ) corresponds to an independent Gaussian light intensity curve, which describes the spectral distribution of different light source colors. The dominant wavelength (λ0) determines the hue of the light source, while the standard deviation (σ) determines the width of the spectrum, thus affecting the range of color temperature variation and transition effects.
[0087] The dominant wavelength (λ0) refers to the center wavelength of the spectral distribution, i.e., the primary color of the light source. Different dominant wavelengths correspond to different color tones, and their values range from 380 nm or greater to 780 nm or less. For example, λ0 = 480 nm may correspond to blue light; λ0 = 650 nm may correspond to red light. Changes in the dominant wavelength determine the hue of the light source and affect the presentation of its color. Therefore, when different dominant wavelengths (λ0) are selected, the peak positions of the generated light intensity curve or Gaussian light intensity curve will also change accordingly, resulting in different colors of the light source.
[0088] The standard deviation (σ) determines the width of the spectrum and affects the saturation and transition of colors. In this embodiment, the standard deviation (σ) ranges from 10 nm to 600 nm. By changing the standard deviation (σ), fine-tuning of colors can be achieved, making the transition of light source colors smoother or more vivid. Therefore, different standard deviations will generate different Gaussian light intensity curves.
[0089] The controller generates multiple Gaussian light intensity curves based on various combinations of dominant wavelengths (λ0) and standard deviations (σ). Each combination of dominant wavelength (λ0) and standard deviation (σ) corresponds to an independent Gaussian light intensity curve. Therefore, by adjusting the dominant wavelength and standard deviation, multiple different Gaussian light intensity curves can be obtained, each curve corresponding to a specific light source color distribution. By adjusting these two parameters, the controller can obtain curves with different spectral characteristics, thereby meeting the needs of different application scenarios. Each generated Gaussian light intensity curve has a different peak position and width, reflecting the specific influence of the dominant wavelength (λ0) and standard deviation (σ) on the spectrum.
[0090] For example, choosing the combination of dominant wavelength (λ0) = 480nm and standard deviation (σ) = 50nm generates a Gaussian light intensity curve that represents a relatively concentrated light intensity distribution of the blue spectrum; while choosing the combination of dominant wavelength (λ0) = 650nm and standard deviation (σ) = 150nm generates a Gaussian light intensity curve that represents a broader light intensity distribution of the warm spectrum.
[0091] Therefore, in this embodiment, each Gaussian light intensity curve describes the light intensity distribution at a specific wavelength. By using different dominant wavelengths (λ0) and standard deviations (σ), it is beneficial to subsequently control the color and color temperature of the light source precisely. These curves provide a basis for adjusting the color temperature and color transition of the light source, ensuring flexible adjustment of the light source's color temperature and a smoother, more natural transition from cool light to warm light.
[0092] Furthermore, in a specific example, determining multiple Gaussian light intensity curves based on different dominant wavelengths and different standard deviations does not mean that a corresponding Gaussian light intensity curve is determined for every dominant wavelength (λ0) and standard deviation (σ) within the range of values. For the values of dominant wavelength (λ0) and standard deviation (σ), continuous values can be taken from their respective ranges and arranged in combination to determine the corresponding Gaussian light intensity curve, thereby obtaining multiple Gaussian light intensity curves; or, discrete values can be taken from their respective ranges and arranged in combination to obtain multiple Gaussian light intensity curves. Among these, the discrete values can follow certain rules, such as taking discrete dominant wavelengths (λ0) at intervals of a certain value (e.g., intervals of 10nm or 5nm) and taking discrete standard deviations (σ) at intervals of a certain value (e.g., intervals of 50nm) to arrange and combine, thereby determining the corresponding Gaussian light intensity curve.
[0093] In some embodiments, the selection intervals of discrete dominant wavelengths under different standard deviations can be the same or different. As an example, in order to facilitate the establishment of a unified lookup table and simplify the query process of the controller, the controller can select discrete dominant wavelengths according to the same dominant wavelength value interval under multiple different standard deviations, for example, selecting discrete dominant wavelengths at intervals of 5nm, 10nm, 20nm or 50nm.
[0094] As another example, to balance color control accuracy and data storage, the controller can also use different dominant wavelength value intervals under different standard deviations. Specifically, when the standard deviation is small, the width of the Gaussian light intensity curve is narrow, and the change in dominant wavelength has a more significant impact on the color coordinates. Therefore, a smaller dominant wavelength value interval can be used to improve color control accuracy. When the standard deviation is large, the width of the Gaussian light intensity curve is wide, and the change in color coordinates corresponding to the change in dominant wavelength is relatively gradual. Therefore, a larger dominant wavelength value interval can be used to reduce the amount of data in the Gaussian light intensity curve, color coordinate points, or correspondence tables. Thus, when selecting discrete dominant wavelengths under different standard deviations, the value interval of the dominant wavelength can be determined based on at least one of the following factors: standard deviation, color control accuracy, storage capacity, or computational complexity. This embodiment does not impose any restrictions on this.
[0095] As a specific example, the controller determines multiple Gaussian light intensity curves based on different dominant wavelengths and standard deviations. This process generates corresponding Gaussian light intensity curves sequentially by discretely selecting multiple standard deviations and dominant wavelengths. Specific steps may include steps SC01 to SC07, as detailed below.
[0096] Step SC01: Select multiple discrete standard deviations within a preset standard deviation range.
[0097] As an example, the controller selects multiple discrete standard deviations based on a preset standard deviation range (e.g., 10nm to 600nm). These standard deviations are used to describe different color temperature ranges and color transition effects. Selecting multiple discrete standard deviations within this range ensures coverage of different spectral widths and color variation requirements. For example, the controller might select multiple standard deviations such as 10nm, 50nm, and 100nm.
[0098] Step SC03: Based on one of the selected standard deviations, select multiple discrete main wavelengths within a preset main wavelength range; Based on a pre-selected standard deviation, the controller further selects multiple discrete dominant wavelengths within a preset dominant wavelength range. The choice of dominant wavelength determines the color and hue of the light source; different dominant wavelengths correspond to different color effects. For example, cool light (high color temperature) typically corresponds to a smaller λ0, while warm light (low color temperature) typically corresponds to a larger λ0. The dominant wavelength is usually located in the visible light band from 380nm to 780nm; the specific range selected depends on the actual needs of the light source. Within this range, the controller selects multiple discrete dominant wavelengths, such as 400nm, 500nm, and 600nm.
[0099] Step SC05: Determine the corresponding Gaussian light intensity curve for each dominant wavelength and the selected standard deviation.
[0100] The Gaussian light intensity curve is calculated using a Gaussian function and describes the light intensity distribution at a specified wavelength. Specifically, the controller calculates based on the Gaussian function expression to ensure that the expression of the Gaussian light intensity curve satisfies: ;in, A is the normalization coefficient; This refers to the wavelength value; Main wavelength; σ is the standard deviation; This represents the light intensity at wavelength λ. Using the Gaussian function described above, the light intensity distribution corresponding to each combination of dominant wavelength and standard deviation is calculated, generating a corresponding Gaussian light intensity curve. These curves describe the specific shape of the spectral distribution and are the basis for controlling the color and color temperature transition of the light source.
[0101] Step SC07, repeat steps SC03 and SC05 until multiple Gaussian light intensity curves corresponding to multiple discrete standard deviations are obtained.
[0102] Specifically, through multiple iterations, the controller executes steps SC03 and SC05 for each discrete standard deviation (σ) and dominant wavelength (λ0) to calculate the corresponding light intensity distribution, thereby generating a corresponding Gaussian light intensity curve for each combination of standard deviation and dominant wavelength. Each Gaussian light intensity curve corresponds to a specific spectral distribution, which allows the controller to precisely control the color, color temperature, and saturation of the light source by adjusting the standard deviation and dominant wavelength. Therefore, in this way, the controller can generate multiple different light intensity distribution curves to meet the needs of subsequent adjustments to different light source colors.
[0103] Step SB05 maps multiple Gaussian light intensity curves to multiple corresponding color coordinate points.
[0104] In step SB05, multiple Gaussian light intensity curves are converted into corresponding color coordinate points, which are the mapping points in step S101. Multiple Gaussian light intensity curves have already been generated in the preceding steps, each curve describing the light intensity distribution under different combinations of dominant wavelength (λ0) and standard deviation (σ). In this embodiment, the color of the light source depends not only on the light intensity but also on the conversion of the light intensity into a perceptible color using a chromaticity function. Therefore, in this embodiment, the light intensity distribution values are converted using a chromaticity function to obtain the corresponding color coordinates. The chromaticity function converts the light intensity into standardized color coordinate values based on the human eye's perception characteristics of different wavelengths of light. Color coordinates are a standardized way of describing color, typically represented using a chromaticity diagram (such as the CIE 1931 chromaticity coordinate system (CIE xy)). In this embodiment, to associate the Gaussian light intensity curves with the color of the light source, the light intensity distribution data needs to be converted into corresponding color coordinate points.
[0105] A chromaticity function is a mathematical tool used to convert the intensity of light at different wavelengths into perceptible colors. In this embodiment, the CIE 15:2018 Colorimetry chromaticity function can be used to convert the light intensity distribution f(λ) into corresponding color coordinates based on the human eye's perception of different wavelengths of light. In this embodiment, the step of mapping Gaussian light intensity curves to corresponding color coordinate points may include: for each Gaussian light intensity curve, based on the dominant wavelength in each Gaussian light intensity curve and the CIE 15:2018 Colorimetry standard, calculating the CIE xy color coordinates for each dominant wavelength using the chromaticity function, so that each Gaussian light intensity curve is mapped to a corresponding CIE xy color coordinate point. In this embodiment, the CIE xy color coordinates are absolute chromaticity coordinates calculated based on the CIE 1931 standard chromaticity system. The CIE xy color coordinates are used as input to the chromaticity transformation matrix, which is used to convert the CIE xy color coordinates into RGB values corresponding to a preset color space. Specifically, for example, in some embodiments, the conversion between CIE xy color coordinates and RGB values can be achieved through a chromaticity transformation matrix. Specifically, the controller can first calculate the corresponding CIE xy color coordinates based on the light intensity distribution represented by the Gaussian light intensity curve and the chromaticity function in the CIE 15:2018 Colorimetry standard. These CIE xy color coordinates can be understood as absolute chromaticity coordinates obtained based on the CIE 1931 standard chromaticity system, used to describe the position of the light source color in the standard chromaticity space. Further, the controller can use the CIE xy color coordinates as input to a chromaticity transformation matrix, and convert the CIE xy color coordinates into RGB values corresponding to a preset RGB color space through the chromaticity transformation matrix. The preset RGB color space can include the sRGB color space, Adobe RGB color space, Display P3 color space, or the device RGB color space corresponding to the light-emitting device. Different preset RGB color spaces can correspond to different chromaticity transformation matrices; this embodiment does not impose any limitations on this.
[0106] As can be seen, in this embodiment, the light intensity distribution f(λ) of each Gaussian light intensity curve at each wavelength has been obtained through the Gaussian function. Then, the light intensity at each wavelength λ is weighted and integrated using the chromaticity function to obtain the corresponding chromaticity coordinates (CIE xy). The specific process may include: 1) Calculate the light intensity distribution: For each combination of dominant wavelength (λ0) and standard deviation (σ), first calculate the corresponding Gaussian light intensity distribution curve f(λ), which describes the light intensity distribution of the light source at different wavelengths.
[0107] 2) Calculate chromatic coordinates using chromaticity functions: For each wavelength λ, apply a chromaticity function (such as CIE 15:2018) to calculate its corresponding chromatic coordinates (CIE xy). The chromaticity function weights the light intensity of each wavelength and converts it into chromatic coordinate values x and y.
[0108] 3) Generate color coordinates: Map the wavelengths in each Gaussian light intensity curve to their corresponding color coordinates. After mapping multiple Gaussian light intensity curves, a set of color coordinates is obtained. These color coordinates represent the color of the light source at different wavelengths.
[0109] In summary, in this embodiment, the controller generates multiple Gaussian light intensity curves based on different combinations of the dominant wavelength (λ0) and standard deviation (σ). Each curve corresponds to a specific chromaticity coordinate point, enabling precise control of the color and color temperature transition effects of the light source. In this way, under a defined standard deviation (σ), different dominant wavelengths (λ0) can obtain a set of chromaticity coordinate points (also known as a chromaticity coordinate point set). Each point in a chromaticity coordinate point set describes the color of the light source under specific spectral conditions, and the curve formed by fitting multiple points in a chromaticity coordinate point set is a specified spectral curve under a defined standard deviation (σ).
[0110] For example, when the standard deviation (σ) is 50 nm, the controller sequentially selects multiple discrete dominant wavelengths (λ0) (such as 400 nm, 500 nm, 600 nm, etc.) within the visible light band from 380 nm to 780 nm. Each selected dominant wavelength is combined with the 50 nm standard deviation to generate a corresponding Gaussian light intensity curve, thus obtaining multiple color coordinate points—that is, a set of color coordinate points. The multiple points in a set of color coordinate points are finally fitted to form a specified spectral curve under the 50 nm standard deviation. Following the same steps, color coordinate point sets under different standard deviations (σ) are calculated. The color coordinates in each set of color coordinate points describe the color change starting from that standard deviation (σ). Similarly, by adjusting different standard deviations, different sets of color coordinate points are obtained. These sets of points reflect the variation of the light source color with the standard deviation and dominant wavelength.
[0111] Of course, in practical applications, the controller can calculate the color coordinate point set based on the set standard deviation (σ). When calculating the color coordinate point set for each determined standard deviation (σ), multiple discrete dominant wavelength (λ0) values can be used. The selection of discrete values can follow certain rules (e.g., selecting a dominant wavelength λ0 every 50nm). In other cases, the controller can also use continuous dominant wavelengths for calculation, depending on the application requirements of the light source.
[0112] Step SB07: Based on multiple chromatic coordinate points, fit and form a specified spectral curve, so that each specified spectral curve is used to describe the mapping relationship between the dominant wavelength and the chromatic coordinate points under a specified standard deviation.
[0113] In this embodiment, the controller fits a relatively complete specified spectral curve based on multiple obtained color coordinate points. This curve describes the mapping relationship between the dominant wavelength (λ0) and the color coordinates at a specific standard deviation (σ). Specifically, the controller fits a smooth specified spectral curve based on the set of color coordinate points at each standard deviation (σ) obtained in the previous steps using mathematical fitting methods (such as least squares, spline interpolation, etc.). For multiple standard deviations (σ), the controller fits multiple specified spectral curves for adjusting different color temperatures and color transition effects. In this embodiment, each fitted specified spectral curve describes the precise relationship between the dominant wavelength (λ0) and the color coordinates. When the user or the controller determines the dominant wavelength (λ0), the controller can query the corresponding color coordinates based on the specified spectral curve.
[0114] In some embodiments, the color coordinate points are fitted to form a specified spectral curve. The controller may use the least squares method for fitting, minimizing the error between the color coordinate points and the fitted curve to ensure that the fitted spectral curve accurately represents the color changes of the light source. In other embodiments, the controller may also use Bézier curves or spline interpolation for fitting. This interpolation method can be used to smoothly connect multiple color coordinate points to form a smooth and continuous spectral curve.
[0115] For details, please refer to [link / reference]. Figure 4 Figure 7 When the standard deviation At times, such as Figure 4 As shown, each black dot in the figure is a Gaussian spectral color coordinate point of a different dominant wavelength (within the range of 380nm~780nm, discrete dominant wavelengths are taken at 5nm intervals, for a total of 81 points). These points are fitted together to form a specified spectral curve. Each point on this curve is a color with relatively high saturation. The point represented by the central square in the figure is the equal-energy white point, with a corresponding RGB value of (0.3333, 0.3333).
[0116] When standard deviation At times, such as Figure 5 As shown, each black dot in the figure is a Gaussian spectral color coordinate point with a different dominant wavelength (in the range of 380nm~780nm, discrete dominant wavelengths are taken at 10nm intervals, for a total of 41 points). These points are fitted together to form a specified spectral curve, and each point on this curve is a color with relatively low saturation.
[0117] When standard deviation At times, such as Figure 6As shown, each black dot in the figure is a Gaussian spectral color coordinate point with a different dominant wavelength (in the range of 380nm~780nm, discrete dominant wavelengths are taken at 10nm intervals, for a total of 41 points). These points are fitted together to form a specified spectral curve. This curve passes near the central white dot and is quite similar to the color temperature curve. The distribution of color coordinate points on this curve is also relatively uniform.
[0118] When standard deviation At times, such as Figure 7 As shown, each black dot in the figure represents a Gaussian spectral coordinate point with a different dominant wavelength (9 points in total, taken at 50nm intervals within the range of 380nm to 780nm). These points are fitted together to form a specified spectral curve. Due to the large standard deviation, the specified spectral curve fitted by these points basically converges to the vicinity of the equal-energy white point (0.3333, 0.3333). As the standard deviation further increases, these points will gradually converge to the equal-energy white point (0.3333, 0.3333).
[0119] Therefore, in this embodiment, the specified spectral curve provides the mathematical basis for adjusting the color of the light source. It is generated by fitting multiple color coordinate points and has a smooth curve shape, ensuring that the transition of the light source color is natural and flexible. By specifying the spectral curve, the controller can calculate the corresponding color coordinates based on the target dominant wavelength (λ0) and standard deviation (σ), and further convert the color coordinates into emission parameters (such as RGB values, HSL / HSV values, or CCT, etc.) for precise control of the light source color.
[0120] In this embodiment, the specified spectral curve obtained by fitting multiple color coordinate points is smooth and continuous, ensuring a natural transition from cool to warm light. Furthermore, the controller can precisely adjust the color temperature and color transition effect of the light source using different combinations of standard deviations and dominant wavelengths. This fitting process provides an accurate color description for subsequent light source control, ensuring that color temperature adjustment, color transition, and the conversion between color coordinates and luminous parameters can be achieved with high precision, thus improving the adjustability and flexibility of the light source.
[0121] Step S203: Obtain the target dominant wavelength.
[0122] As mentioned above, in this embodiment, the dominant wavelength determines the hue and primary color of the light source. By adjusting the dominant wavelength, the controller can regulate the color performance of the light source, such as the transition from cool light (blue tone) to warm light (red tone).
[0123] The target dominant wavelength typically ranges from 380nm to 780nm. It is determined based on user input. Control devices such as remote controls and control panels process the selected target dominant wavelength after receiving user input, using this value as the basis for subsequent calculations of the specified spectral curve and color temperature adjustment. Specifically, users can set the target dominant wavelength through input devices such as remote controls, touchscreen control panels, or smartphone applications. When adjusting the color of the light source, users can select a suitable target dominant wavelength. For example, a dominant wavelength λ0 = 480nm corresponds to blue light; a dominant wavelength λ0 = 650nm corresponds to red light.
[0124] As an example, the controller of the light-emitting device obtains the target dominant wavelength through user-operated devices (such as remote controls, control panels, smartphone applications, etc.). For instance, control devices such as remote controls and control panels provide menus, allowing users to select the target dominant wavelength from multiple preset options. For example, the remote control may have options such as "cool light mode" (e.g., corresponding to λ0=480nm), "warm light mode" (e.g., corresponding to λ0=650nm), or "natural light mode" (e.g., corresponding to λ0=550nm). After the user selects the corresponding menu on the control device, the controller generates the target dominant wavelength based on the menu.
[0125] As another example, in scenarios where smart devices (such as smart home control panels or mobile phones) are used as control devices, these devices can provide an advanced user mode, allowing users to directly input the specific value of the desired target dominant wavelength through the interface. For example, if a user sets the target dominant wavelength to 480nm through a smart device, this value will serve as the basis for the controller of the light-emitting device to adjust the color temperature and color of the light source.
[0126] In other embodiments, the target dominant wavelength can be automatically set based on the controller's functionality. For example, the controller can automatically select a suitable target dominant wavelength based on changes in ambient light, requirements at different times of day, or user-defined preferences. By integrating sensor data, the controller can monitor environmental changes in real time and automatically adjust the target dominant wavelength. The controller automatically adjusts the target dominant wavelength (λ0) based on sensor data to adapt to different color or scene requirements.
[0127] Step S205: Based on the specified spectral curve and the preset mapping relationship, determine the emission parameters corresponding to the target dominant wavelength.
[0128] Specifically, for some specific implementations of steps S201, S203, and S205 in this embodiment, please refer to the detailed description of steps S101, S103, and S105 in the above embodiment of the specification, which will not be repeated here.
[0129] Furthermore, in this embodiment, step S205 may include: determining the target color coordinates corresponding to the target dominant wavelength based on a specified spectral curve; and determining the luminescence parameters corresponding to the target color coordinates based on the target color coordinates and a preset mapping relationship.
[0130] Before step S205, after the standard deviation (σ) and target dominant wavelength (λ0) are known, the controller can calculate or find the target color coordinates corresponding to the given standard deviation and target dominant wavelength based on the specified spectral curve, and directly convert the color coordinates into the corresponding luminescence parameters through a preset mapping relationship.
[0131] As an example, the preset mapping relationship between color coordinate values and emission parameters can be a functional relationship, which can be a specific conversion matrix. A specific example of this has been described in the first embodiment and will not be repeated here. In this case, the controller calculates the corresponding RGB value based on the target color coordinates (x, y) using the conversion matrix. For example, if the target color coordinates (x, y) = (0.35, 0.25), the controller can obtain the corresponding RGB value = (255, 180, 80) using the conversion matrix, where the RGB value represents the intensity of the red, green, and blue channels of the light source.
[0132] As another example, the preset mapping relationship between color coordinate values and emission parameters can be a preset correspondence table. Taking RGB values as an example, the controller has a preset CIE xy color coordinate to RGB value lookup table. In this case, the controller looks up the corresponding RGB value based on the target color coordinates (x, y). For example, if the target color coordinates (x, y) = (0.35, 0.25), the controller can obtain the corresponding RGB value = (255, 180, 80) through the lookup table algorithm. Therefore, in this embodiment, the mapping relationship includes a correspondence table between color coordinates and RGB values under a given standard deviation. The specific steps for determining the emission parameters corresponding to the target color coordinates based on the target color coordinates and the preset mapping relationship can include: looking up the correspondence table between color coordinates and RGB values according to the target color coordinates to obtain the RGB value corresponding to the target color coordinates; and determining the emission parameters of the light source as RGB values.
[0133] Specifically, the controller can pre-set a lookup table corresponding to color coordinates and RGB values, with each color coordinate (such as CIE 1931 xy color coordinates) corresponding to a fixed RGB value. This lookup table provides a direct mapping between color coordinates (x, y) and their corresponding RGB values. The controller matches the obtained target color coordinates (x, y) with the pre-set lookup table. The controller retrieves the corresponding RGB value by finding the entry closest to the target color coordinates. For example, the RGB value corresponding to color coordinates (x=0.35, y=0.25) is (255, 180, 80), and the controller returns this RGB value. Once the RGB values are determined, the controller uses these values as the emission parameters of the light source and adjusts the color output of the light source. Specifically, the controller uses the RGB values as input signals and transmits them to the light source's driving circuit.
[0134] In some embodiments, the controller may pre-establish and store a correspondence table between color coordinates and RGB values. The process of establishing the correspondence table between color coordinates and RGB values may include the following steps: among a preset number of discrete standard deviations, for each discrete standard deviation, determine a corresponding specified spectral curve, wherein each specified spectral curve describes the relationship between the dominant wavelength and color coordinates under that discrete standard deviation; according to the chromaticity transformation matrix, for each specified spectral curve, convert the multiple color coordinates corresponding to multiple dominant wavelengths into one-to-one corresponding RGB values; establish multiple correspondence tables, each corresponding to the RGB values corresponding to different dominant wavelengths under a discrete standard deviation.
[0135] Specifically, this step requires determining a series of specified spectral curves corresponding to a set of standard deviations (σ). Each specified spectral curve describes the relationship between the dominant wavelength (λ0) and the chromatic coordinates at a specific standard deviation (σ).
[0136] First, the controller generates a specified spectral curve for each discrete standard deviation. This curve describes the spectral distribution at that discrete standard deviation and represents the mapping relationship between the dominant wavelength and the chromaticity coordinates.
[0137] Then, the controller, based on the chromaticity transformation matrix, converts the multiple chromatic coordinates corresponding to multiple dominant wavelengths under discrete standard deviations into one-to-one RGB values. In this process, the controller uses the chromaticity transformation matrix to convert the chromatic coordinates (x, y) generated by the specified spectral curve into RGB values. The chromaticity transformation matrix is a mathematical tool used to convert chromatic coordinates (x, y) into RGB values. Common chromaticity transformation matrices can convert chromatic coordinates of the CIE 1931 xy chromaticity system into values in the RGB color space. The controller can use linear transformation algorithms or matrix operations to complete this conversion. The specific conversion process may include the following steps: For each specified spectral curve, the controller, based on the chromatic coordinates (x, y) corresponding to each dominant wavelength (λ0) in the curve, uses the chromaticity transformation matrix to convert the chromatic coordinates (x, y) into the corresponding RGB values according to the following formula: ;
[0138]
[0139] Where M is the transformation matrix, x, y, z are CIE xy color coordinates, and the resulting R, G, B are the corresponding RGB values. RGB values represent the brightness of the red, green, and blue channels and are key parameters for controlling the color of the light source. Through this transformation, the controller can generate corresponding RGB values based on different discrete standard deviations (σ) and dominant wavelengths (λ0), thereby controlling the color of the light source.
[0140] Finally, the controller can establish multiple mapping tables, each representing the RGB values corresponding to different dominant wavelengths at a specific discrete standard deviation. In this process, the controller stores the color coordinates (x, y) and RGB values corresponding to the dominant wavelength (λ0) at each discrete standard deviation (σ) in the mapping tables. Each table represents the RGB values corresponding to different dominant wavelengths at a discrete standard deviation, as shown in the example below.
[0141] Example table: Mapping table of partial discrete standard deviations and dominant wavelengths to corresponding RGB values
[0142] In this embodiment, the controller pre-establishes multiple lookup tables, each corresponding to a discrete standard deviation (σ). These tables list the chromatic coordinates (x, y) and RGB values corresponding to different dominant wavelengths (λ0) under that discrete standard deviation. Through these lookup tables, the controller can accurately convert the dominant wavelength and standard deviation described by a specified spectral curve into RGB values, thereby achieving precise adjustment of the light source color. This process, through the combination of a chromaticity transformation matrix and a lookup table, ensures both high efficiency and accuracy in color control. Therefore, the lookup tables in this embodiment significantly improve the system response speed, enabling users to quickly obtain the ideal light source color effect.
[0143] Based on the foregoing steps, this embodiment provides a mapping relationship between standard deviation, dominant wavelength, and a specified spectral curve, as well as a mapping relationship between the specified spectral curve and color coordinates, and between color coordinates and emission parameters. These mapping relationships can be pre-stored in the controller. When the controller obtains the standard deviation and the target dominant wavelength, it can sequentially query the mapping relationships and determine the corresponding emission parameters. In other embodiments, the controller can combine the above three mapping relationships to form a mapping relationship table between standard deviation, dominant wavelength, and emission parameters. This table is pre-stored in the controller, and when the controller obtains the standard deviation and the target dominant wavelength, it can determine the corresponding emission parameters by querying this mapping relationship table.
[0144] Therefore, this embodiment utilizes a pre-defined mapping table, enabling the controller to quickly respond to user input without complex calculations. The user only needs to select the standard deviation and dominant wavelength, and the controller can rapidly obtain the corresponding emission parameters. By using a lookup table instead of real-time calculation, the system reduces computational complexity, improves performance and response speed, adapts to real-time changing light source control needs, and thus significantly enhances the user experience.
[0145] Step S207: Generate a control signal for the light source based on the light emission parameters.
[0146] In some embodiments, the light source is an LED light source, which may include a red channel, a blue channel, and a green channel. The controller is further configured to determine the corresponding channel control signals for the red, blue, and green channels based on the RGB values. These channel control signals instruct the light source to operate according to the corresponding RGB values. The channel control signals include at least one of the following signals: a PWM signal, a digital signal, and an analog signal. Specific examples can be found in step S107 of the first embodiment, and will not be repeated here.
[0147] Based on the above, this application provides a light source control method that utilizes a specified spectral curve to achieve controllability and flexibility in light source color changes by precisely adjusting the dominant wavelength and standard deviation. By combining the mapping relationship between color coordinates and luminous parameters, the light source control method provided by this application offers accurate color output and can achieve smooth and natural transitions between different color temperature ranges, thereby adapting to various application scenarios and providing more refined and natural light source control.
[0148] As a specific application, such as in smart lighting devices, users select the hue (corresponding to the target dominant wavelength) and color temperature (corresponding to the standard deviation) through operating devices (such as remote controls or control panels). The controller obtains the specified spectral curve based on the target dominant wavelength and standard deviation selected by the user on the control device, and calculates or finds the color coordinates of the corresponding light source based on the specified spectral curve and chromaticity function. Subsequently, the controller converts the color coordinates into RGB values (or other light emission parameters) according to a preset mapping relationship for precise control of the color output of the light source. Finally, the controller generates appropriate control signals (such as PWM signals, digital signals, or analog signals) based on the obtained light emission parameters, and controls the current of the three color channels (red, green, and blue) of the light source through the drive circuit, ultimately achieving the light source color effect required by the user.
[0149] In summary, this solution provides a flexible and precise light source control method that combines a specified spectral curve and standard deviation to control the color temperature and color transition of the light source. Through user operation, different color temperatures and color modes can be easily selected. The controller automatically calculates and adjusts the RGB values or color temperature parameters of the light source based on the user's selection, ultimately generating a control signal to adjust the brightness and color of the light source. This solution not only improves upon the shortcomings of traditional color temperature adjustment, providing a smooth transition effect, but also adapts to different application scenarios, meeting users' needs for comfortable and natural lighting.
[0150] Please see Figure 8 Based on the light source control method provided in the above embodiments, this application provides a control device 300. Figure 8 A structural block diagram of the control device 300 is shown. The control device 300 operates as follows: Figure 1 The light-emitting device 500 shown is used to execute the light source control method described above. In this embodiment, the control device 300 is stored in the memory of the controller 501 of the light-emitting device 500 and is configured to be executed by one or more processors of the controller 501.
[0151] In this embodiment, the control device 300 includes a specified spectral curve determination module 310, a dominant wavelength acquisition module 330, a light emission parameter determination module 350, and a control module 370. The specified spectral curve determination module 310 determines a specified spectral curve corresponding to a given standard deviation. The specified spectral curve describes the relationship between the dominant wavelength and chromaticity coordinates of light under the given standard deviation, and is calculated based on a Gaussian function. The dominant wavelength acquisition module 330 acquires the target dominant wavelength. The light emission parameter determination module 350 determines the light emission parameters corresponding to the target dominant wavelength based on the specified spectral curve and a preset mapping relationship; the mapping relationship describes the correspondence between the chromaticity coordinates corresponding to the dominant wavelength and the light emission parameters. The control module 370 generates a control signal for the light source based on the light emission parameters.
[0152] In some embodiments, the emission parameter determination module 350 is specifically used to determine the target color coordinates corresponding to the target dominant wavelength based on a specified spectral curve; and to determine the emission parameters corresponding to the target color coordinates based on the target color coordinates and a preset mapping relationship. For example, the light source includes a red channel, a blue channel, and a green channel, the emission parameters include the RGB values of the light source, and the mapping relationship includes a correspondence table between color coordinates and RGB values under standard deviation. The emission parameter determination module 350 is specifically used to look up the correspondence table between color coordinates and RGB values according to the target color coordinates to obtain the RGB values corresponding to the target color coordinates; and to determine the emission parameters of the light source as RGB values.
[0153] In some embodiments, the light emission parameter determination module 350 is further configured to establish a correspondence table between color coordinates and RGB values. For example, the light emission parameter determination module 350 is specifically configured to: determine a corresponding specified spectral curve for each standard deviation, wherein each specified spectral curve describes the relationship between the dominant wavelength and color coordinates under that standard deviation; convert the multiple color coordinates corresponding to multiple dominant wavelengths into one-to-one corresponding RGB values for each specified spectral curve according to the chromaticity transformation matrix; and establish multiple correspondence tables, each corresponding to the RGB values corresponding to different dominant wavelengths under one standard deviation.
[0154] In some embodiments, the control module 370 is specifically used to determine the channel control signals corresponding to the red channel, blue channel and green channel according to the RGB values. The channel control signals are used to instruct the light source to work according to the corresponding RGB values. The channel control signals include at least one of the following signals: PWM signal, digital signal and analog signal.
[0155] In some embodiments, the specified spectral curve determination module 310 can also be used to obtain a given standard deviation, which is obtained based on user operations.
[0156] In some embodiments, the specified spectral curve determination module 310 can also be used to calculate a specified spectral curve. For example, the specified spectral curve determination module 310 is specifically used to determine a Gaussian light intensity curve based on a Gaussian function according to a specified dominant wavelength and standard deviation, the Gaussian light intensity curve being used to describe the relationship between the dominant wavelength, standard deviation, and light intensity; determine multiple Gaussian light intensity curves according to different dominant wavelengths and different standard deviations; map the multiple Gaussian light intensity curves to multiple corresponding chromaticity coordinate points; and fit a specified spectral curve according to the multiple chromaticity coordinate points, so that each specified spectral curve is used to describe the mapping relationship between the dominant wavelength and the chromaticity coordinate points under a specific standard deviation. The specific process can be referred to the specific embodiments described above, and will not be repeated here.
[0157] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0158] In the several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or other forms.
[0159] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0160] Please see Figure 9 Based on the above-described light source control method, this application embodiment also provides a controller 501 for a light-emitting device. The controller 501 may include one or more central processing units 510 and a memory 520. The central processing unit 510 is used to invoke a computer program stored in the memory 520 to execute the steps of any of the light source control methods described in the above embodiments. As a specific example, one or more application programs are stored in the memory 520 and configured to be executed by one or more central processing units 510. These one or more application programs are configured to execute the methods described in the above embodiments.
[0161] The central processing unit 510 may include one or more processing cores. The central processing unit 510 executes various functions of the controller 501 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 520, and by calling data stored in the memory 520. Optionally, the central processing unit 510 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
[0162] The memory 520 may include random access memory (RAM) or read-only memory (ROM). The memory 520 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 520 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the light-emitting device 500 during use.
[0163] This application also provides a computer-readable storage medium storing computer program instructions that can be invoked by a processor to execute the methods described in the above embodiments.
[0164] Computer-readable storage media can be, for example, flash memory, electrically erasable programmable read-only memory (EEPROM), electrically programmable read-only memory (EPROM), hard disk, or read-only memory (ROM). Optionally, computer-readable storage media includes non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for computer program instructions that perform any of the method steps described above. These computer program instructions can be read from or written to one or more computer program products.
[0165] In this application, "multiple" refers to two or more.
[0166] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it includes one or a combination of the steps of the method embodiments. Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0167] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A light source control method, characterized in that, include: Based on a given standard deviation, a specified spectral curve corresponding to the standard deviation is determined; the specified spectral curve is used to describe the relationship between the dominant wavelength and chromaticity coordinates of light under the given standard deviation, wherein the specified spectral curve is: a spectral curve formed by mapping points of multiple Gaussian light intensity curves calculated based on multiple different specified dominant wavelengths and multiple different standard deviations. Obtain the target dominant wavelength; Based on the specified spectral curve and the preset mapping relationship, the emission parameters corresponding to the target dominant wavelength are determined; The mapping relationship described above is used to describe the correspondence between the color coordinates corresponding to the dominant wavelength and the emission parameters; Based on the light emission parameters, a control signal for the light source is generated.
2. The method according to claim 1, characterized in that, The step of determining the emission parameters corresponding to the target dominant wavelength based on the specified spectral curve and the preset mapping relationship includes: Based on the specified spectral curve, determine the target color coordinates corresponding to the target dominant wavelength; Based on the target color coordinates and the preset mapping relationship, the luminescence parameters corresponding to the target color coordinates are determined.
3. The method according to claim 2, characterized in that, The light source includes a red channel, a blue channel, and a green channel. The emission parameters include the RGB values of the light source. The mapping relationship includes a correspondence table between color coordinates and RGB values under the standard deviation. Determining the emission parameters corresponding to the target color coordinates based on the target color coordinates and the preset mapping relationship includes: Based on the target color coordinates, look up the correspondence table between the color coordinates and RGB values to obtain the RGB value corresponding to the target color coordinates; The light emission parameters of the light source are determined as the RGB values.
4. The method according to claim 3, characterized in that, The step of generating a control signal for the light source based on the light emission parameters includes: Based on the RGB values, channel control signals are determined for the red channel, the blue channel, and the green channel, respectively. The channel control signals are used to instruct the light source to operate according to the corresponding RGB values. The channel control signals include at least one of the following signals: PWM signal, digital signal, and analog signal.
5. The method according to claim 3, characterized in that, The process of establishing the correspondence table between color coordinates and RGB values includes: Among a plurality of preset discrete standard deviations, a corresponding specified spectral curve is determined for each discrete standard deviation, wherein each specified spectral curve describes the relationship between the dominant wavelength and the chromaticity coordinates under that discrete standard deviation. Based on the chromaticity transformation matrix, for each specified spectral curve, the multiple color coordinates corresponding to the multiple dominant wavelengths are converted into one-to-one corresponding RGB values; Multiple correspondence tables are established, each of which represents the RGB values corresponding to different dominant wavelengths under a given discrete standard deviation.
6. The method according to any one of claims 1 to 5, characterized in that, The calculation process for the specified spectral curve includes: Based on the specified dominant wavelength and standard deviation, a Gaussian light intensity curve is determined using a Gaussian function. The Gaussian light intensity curve is used to describe the relationship between the dominant wavelength, standard deviation, and light intensity. Multiple Gaussian light intensity curves were determined based on different dominant wavelengths and different standard deviations; The multiple Gaussian light intensity curves are mapped to a one-to-one correspondence of multiple chromatic coordinate points, and the chromatic coordinate points are the mapping points; Based on multiple chromatic coordinate points, a specified spectral curve is fitted to form such that each specified spectral curve is used to describe the mapping relationship between the dominant wavelength and the chromatic coordinate points at a specific standard deviation.
7. The method according to claim 6, characterized in that, The determination of multiple Gaussian light intensity curves based on different dominant wavelengths and different standard deviations includes: Step SC01: Select multiple discrete standard deviations within a preset standard deviation range; Step SC03: Based on one of the selected standard deviations, select multiple discrete main wavelengths within a preset main wavelength range; Step SC05: Based on each discrete dominant wavelength and the selected standard deviation, determine the corresponding Gaussian light intensity curve, wherein the expression of the Gaussian light intensity curve satisfies: ;in, A is the normalization coefficient; This refers to the wavelength value. Main wavelength; σ is the standard deviation; This represents the light intensity at wavelength λ. Step SC07: Repeat steps SC03 and SC05 until multiple Gaussian light intensity curves corresponding to multiple discrete standard deviations are obtained.
8. The method according to claim 6, characterized in that, The step of mapping the multiple Gaussian light intensity curves to a one-to-one corresponding set of color coordinate points includes: For each Gaussian light intensity curve, based on the dominant wavelength in each Gaussian light intensity curve and the CIE15:2018 Colorimetry standard, the CIE xy color coordinates at each dominant wavelength are calculated using a chromaticity function, so that each Gaussian light intensity curve is mapped to a corresponding CIE xy color coordinate point. The CIE xy color coordinates are absolute chromaticity coordinates calculated based on the CIE1931 standard colorimetry system. The CIE xy color coordinates are used as input to the chromaticity transformation matrix, which is used to convert the CIE xy color coordinates into RGB values corresponding to a preset color space.
9. The method according to any one of claims 1 to 5, characterized in that, The target dominant wavelength is obtained based on user operation. Before determining the specified spectral curve corresponding to the given standard deviation, the method further includes: obtaining the given standard deviation, which is obtained based on user operation.
10. A controller for a light-emitting device, characterized in that, It includes a central processing unit and a memory, wherein the central processing unit is used to invoke and run a computer program stored in the memory to perform the steps of the light source control method as described in any one of claims 1 to 9.
11. A light-emitting device, characterized in that, It includes a light source and a controller for the light-emitting device as described in claim 10, wherein the light source and the controller are electrically connected.