Control method and device of lighting device and lighting control system
By calculating and automatically adjusting the target color temperature of the lighting device, the problem in the existing technology that users manually adjust the color temperature is solved, the lighting effect is coordinated with the ambient light, and the user experience is improved.
Patent Information
- Application Number
- CN202411750154.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-01-21
AI Technical Summary
In existing lighting systems, users need to manually adjust the color temperature, which is cumbersome and difficult to coordinate the lighting effect with ambient light during different time periods or weather conditions, resulting in poor user experience.
By obtaining the ambient light intensity and color temperature, as well as the light intensity and color temperature input by the user, the target color temperature of the lighting device is calculated, and the color temperature of the lighting device is automatically adjusted based on the target color temperature.
It realizes the automatic adjustment of the color temperature of the lighting device, is easy to operate, and can coordinate the lighting effect and ambient light under different time periods or weather conditions, improving the user experience.
Smart Images

Figure CN119342662A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of lighting control technology, and in particular, relates to a lighting device control method, device and lighting control system. Background Art
[0002] In modern lighting systems, users expect lighting devices to automatically adjust color temperature to improve user comfort and ensure user visual health. In the related art, there is a method for users to manually adjust color temperature, but this method has few color temperature adjustment levels, the operation is cumbersome, and it is easy to cause the lighting effect to be inconsistent with the ambient light in different time periods or under different weather conditions, which cannot meet the user's needs for a dynamic lighting environment and the user experience is poor. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes a control method, device and lighting control system for a lighting device, which can automatically adjust the color temperature of the lighting device according to environmental conditions, without the need for repeated manual adjustments, and is easy to operate. It can also achieve the coordination of lighting effects and ambient light in different time periods or under different weather conditions, meet the user's needs for a dynamic lighting environment, and improve the user's experience.
[0004] In a first aspect, the present application provides a method for controlling a lighting device, the method comprising:
[0005] Obtaining at least one of the ambient light intensity and the ambient color temperature in the environment where the lighting device is located;
[0006] Based on at least one of the ambient light intensity and the ambient color temperature, and at least one of the first light intensity and the first color temperature input by a user, acquiring a target color temperature corresponding to the lighting device;
[0007] Based on the target color temperature, the lighting device is controlled.
[0008] According to the control method of the lighting device provided in the embodiment of the present application, by collecting the environmental condition parameters of the current environment, combined with the user's preferences and needs in the current environment, the target color temperature corresponding to the lighting device is calculated, and the lighting device is controlled based on the target color temperature. The color temperature of the lighting device can be automatically adjusted according to the environmental conditions without the need for repeated manual adjustments. The operation is convenient and the lighting effect can be coordinated with the ambient light in different time periods or under different weather conditions, thereby meeting the user's needs for a dynamic lighting environment and improving the user's usage experience.
[0009] A method for controlling a lighting device according to an embodiment of the present application, wherein the lighting device includes at least one light strip; and controlling the lighting device based on the target color temperature includes:
[0010] Based on the target color temperature, the brightness corresponding to each of the light strips is calculated;
[0011] Based on the brightness corresponding to each of the light strips, the color temperature of the lighting device is controlled.
[0012] In a control method for a lighting device according to an embodiment of the present application, the at least one light strip includes a warm-color light strip and a cool-color light strip; and the step of calculating the brightness corresponding to each of the light strips based on the target color temperature includes:
[0013] Based on the target color temperature, a first output ratio corresponding to the warm color light strip and a second output ratio corresponding to the cool color light strip are calculated; the sum of the first output ratio and the second output ratio is 1;
[0014] Based on the first output ratio, the brightness of the warm-color light strip is determined; based on the second output ratio, the brightness of the cool-color light strip is determined.
[0015] A method for controlling a lighting device according to an embodiment of the present application, wherein the method controls the lighting device based on the target color temperature, including:
[0016] When the target color temperature is not within the color temperature adjustment range, the lighting device is controlled to keep the current color temperature unchanged.
[0017] A method for controlling a lighting device according to an embodiment of the present application, wherein the method of obtaining a target color temperature corresponding to the lighting device based on at least one of the ambient light intensity and the ambient color temperature and at least one of the first light intensity and the first color temperature input by a user comprises:
[0018] Based on a first weight corresponding to the ambient light intensity, a second weight corresponding to the ambient color temperature, a third weight corresponding to the first light intensity, and a fourth weight corresponding to the first color temperature, a weighted summation process is performed on the ambient light intensity, the ambient color temperature, the first light intensity, and the first color temperature to obtain a target color temperature corresponding to the lighting device.
[0019] A method for controlling a lighting device according to an embodiment of the present application, wherein the method of obtaining a target color temperature corresponding to the lighting device based on at least one of the ambient light intensity and the ambient color temperature and at least one of the first light intensity and the first color temperature input by a user comprises:
[0020] Based on the environment in which the lighting device is located, obtaining at least one of a first light intensity and a first color temperature corresponding to the environment from at least one first light intensity and at least one first color temperature input by a user;
[0021] Based on at least one of the ambient light intensity and the ambient color temperature, and at least one of a first light intensity and a first color temperature corresponding to the environment, a target color temperature corresponding to the lighting device is acquired.
[0022] In a second aspect, the present application provides a control device for a lighting device, comprising:
[0023] A first processing module, used to obtain at least one of the ambient light intensity and the ambient color temperature in the environment where the lighting device is located;
[0024] A second processing module, configured to obtain a target color temperature corresponding to the lighting device based on at least one of the ambient light intensity and the ambient color temperature and at least one of the first light intensity and the first color temperature input by a user;
[0025] The third processing module is used to control the lighting device based on the target color temperature.
[0026] According to the control device of the lighting device provided in the embodiment of the present application, by collecting the environmental condition parameters of the current environment, combined with the user's preferences and needs in the current environment, etc., the target color temperature corresponding to the lighting device is calculated, and the lighting device is controlled based on the target color temperature. The color temperature of the lighting device can be automatically adjusted according to the environmental conditions without the need for repeated manual adjustments. The operation is convenient, and the lighting effect can be coordinated with the ambient light in different time periods or under different weather conditions, thereby meeting the user's needs for a dynamic lighting environment and improving the user's usage experience.
[0027] In a third aspect, the present application provides a lighting control system based on the lighting device control method according to the first aspect, comprising:
[0028] Ambient light sensor;
[0029] An input module, wherein the input module is used to receive user input;
[0030] A central processing unit, the central processing unit is connected to the ambient light sensor and the input module respectively, and the central processing unit is used to calculate and obtain the target color temperature;
[0031] A color temperature adjustment module, the color temperature adjustment module is connected to the central processing unit, and the color temperature adjustment module is used to control the lighting device based on the target color temperature.
[0032] According to the lighting control system provided in the embodiment of the present application, by collecting the environmental condition parameters of the current environment, combined with the user's preferences and needs in the current environment, the target color temperature corresponding to the lighting device is calculated, and the lighting device is controlled based on the target color temperature. The color temperature of the lighting device can be automatically adjusted according to the environmental conditions without the need for repeated manual adjustments. The operation is convenient and the lighting effect can be coordinated with the ambient light in different time periods or under different weather conditions, thereby meeting the user's needs for a dynamic lighting environment and improving the user's usage experience.
[0033] In a fourth aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for controlling the lighting device as described in the first aspect above is implemented.
[0034] In a fifth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the control method of the lighting device as described in the first aspect above is implemented.
[0035] In a sixth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the control method of the lighting device as described in the first aspect above.
[0036] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:
[0037] By collecting the environmental condition parameters of the current environment and combining them with the user's preferences and needs in the current environment, the target color temperature corresponding to the lighting device is calculated, and the lighting device is controlled based on the target color temperature. The color temperature of the lighting device can be automatically adjusted according to the environmental conditions without the need for repeated manual adjustments. The operation is convenient and can achieve coordination between lighting effects and ambient light in different time periods or under different weather conditions, thus meeting the user's needs for a dynamic lighting environment and improving the user's experience.
[0038] Furthermore, the brightness of each light strip is calculated based on the target color temperature, and the lighting device is controlled based on the brightness of each light strip, which can intelligently adapt to different environments and user needs and provide a more comfortable and personalized lighting experience.
[0039] Furthermore, through the target color temperature requirements, the brightness ratio of warm-colored light strips and cool-colored light strips can be intelligently adjusted, thereby achieving continuous adjustment of color temperature. At the same time, it enables the lighting system to adapt to environmental changes more intelligently and provide a more comfortable and personalized lighting experience.
[0040] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0042] Figure 1 This is one of the flow charts of the control method of the lighting device provided in the embodiment of the present application;
[0043] Figure 2 This is a second flow chart of the control method of the lighting device provided in the embodiment of the present application;
[0044] Figure 3 is a schematic diagram of the structure of a control device for a lighting device provided in an embodiment of the present application;
[0045] Figure 4 is a schematic diagram of the structure of a lighting control system provided in an embodiment of the present application;
[0046] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0048] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0049] In conjunction with the accompanying drawings, the control method of the lighting device, the control device of the lighting device, the electronic device and the readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0050] The control method of the lighting device may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.
[0051] The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad). It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad).
[0052] In the following various embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse and a joystick.
[0053] The control method of the lighting device provided in the embodiment of the present application may be executed by a lighting control system or an electronic device, or a functional module or functional entity in the lighting control system or the electronic device that can implement the control method of the lighting device. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, and wearable devices. The control method of the lighting device provided in the embodiment of the present application is described below using the electronic device as an example of the execution subject.
[0054] like Figure 1 As shown, the control method of the lighting device includes: step 110, step 120 and step 130.
[0055] Step 110: Obtain at least one of the ambient light intensity and the ambient color temperature in the environment where the lighting device is located;
[0056] In this step, the lighting device may include indoor lighting devices, automotive lighting devices, other lighting devices, and the like.
[0057] For example, the lighting device may include a wall lamp, a table lamp, or a ceiling light in a car.
[0058] The ambient light intensity and ambient color temperature of the environment in which the lighting device is located can be acquired based on the ambient light sensor.
[0059] The ambient light sensor may be installed near the lighting device or integrated inside the lighting device, and the photosensitive module of the ambient light sensor is in direct contact with the external environment.
[0060] Ambient light intensity is used to characterize the brightness or intensity of light in an environment and is usually measured in lux (Lx).
[0061] Ambient color temperature is used to characterize the color of light, such as warm light or cold light, and is usually expressed in Kelvin (K).
[0062] The environment in which the lighting device is located may include sunny days, cloudy days, mornings, afternoons, and evenings, etc.
[0063] Step 120: acquiring a target color temperature corresponding to the lighting device based on at least one of the ambient light intensity and the ambient color temperature and at least one of the first light intensity and the first color temperature input by a user;
[0064] In this step, the first light intensity and the first color temperature are used to characterize the user's light demand.
[0065] The first illumination intensity is a desired illumination intensity set by a user.
[0066] The first color temperature is a desired color temperature set by a user.
[0067] In some embodiments, a first input from a user may be received;
[0068] In response to the first input, a target color temperature is obtained.
[0069] In this embodiment, the first input is used to input at least one of a first light intensity and a first color temperature.
[0070] The first input may be in at least one of the following ways:
[0071] First, the first input may be a touch operation, including but not limited to a click operation, a slide operation, and a press operation.
[0072] In this implementation, receiving the first input from the user may be receiving a touch operation of the user in the display area of the terminal display screen.
[0073] In order to reduce the user error rate, the effective area of the first input can be limited to a specific area, such as the upper middle area of the input interface of the lighting device; or when the interface of the input preference setting is displayed, the target control is displayed on the current interface, and the first input can be achieved by touching the target control; or the first input can be set to a continuous multiple tapping operation on the display area within a target time interval.
[0074] Secondly, the first input may be a physical key input.
[0075] In this embodiment, the terminal body is provided with physical buttons corresponding to the preferred light intensity and the preferred color temperature. Receiving the user's first input can be receiving the operation of the user pressing the corresponding physical button; the first input can also be a combined operation of pressing multiple physical buttons at the same time.
[0076] Third, the first input may be voice input.
[0077] In this implementation, when the terminal receives a voice message such as "adjust the color temperature of the desk lamp to warm light", it can trigger the display of an interface for adjusting the color temperature of the lighting device to warm light.
[0078] Of course, in other embodiments, the first input may also be in other forms, including but not limited to character input, etc., which can be determined according to actual needs and is not limited in this embodiment of the present application.
[0079] The target color temperature is the optimal color temperature that the lighting device should achieve, calculated based on environmental conditions and user needs.
[0080] The ambient light intensity, the ambient color temperature, the first light intensity and the first color temperature may be weighted based on the weights corresponding to the ambient light intensity, the ambient color temperature, the first light intensity and the first color temperature to obtain the target color temperature.
[0081] Alternatively, a lookup table containing target color temperature values under different combinations of ambient color temperatures, user color temperature preferences, ambient light intensities, and user light intensity preferences may be prepared in advance.
[0082] In actual implementation, the corresponding target color temperature value can be found in the lookup table according to the current environment and user preference.
[0083] When the resolution of the lookup table is not enough or a more flexible calculation method is required, the target color temperature can also be calculated using interpolation.
[0084] For example, interpolation calculations may be performed based on known data points to obtain a more accurate target color temperature value.
[0085] Step 130: Control the lighting device based on the target color temperature.
[0086] In this step, the color temperature setting of the lighting device can be adjusted to ensure that the light it emits matches the target color temperature.
[0087] For example, the lighting output of a lighting device can be changed by adjusting parameters of the lighting device (such as color temperature or brightness).
[0088] According to the control method of the lighting device provided in the embodiment of the present application, by collecting the environmental condition parameters of the current environment, combined with the user's preferences and needs in the current environment, the target color temperature corresponding to the lighting device is calculated, and the lighting device is controlled based on the target color temperature. The color temperature of the lighting device can be automatically adjusted according to the environmental conditions without the need for repeated manual adjustments. The operation is convenient and the lighting effect can be coordinated with the ambient light in different time periods or under different weather conditions, thereby meeting the user's needs for a dynamic lighting environment and improving the user's usage experience.
[0089] In some embodiments, step 130 may include:
[0090] Based on the target color temperature, the brightness of each light strip is calculated;
[0091] Based on the brightness of each light strip, the color temperature of the lighting device is controlled.
[0092] In this embodiment, the lighting device may include at least one light strip.
[0093] The brightness of each light strip can be adjusted separately.
[0094] Each light strip has a corresponding color temperature range and brightness range.
[0095] The color temperature of the lighting device can be adjusted by adjusting the brightness value of the light strip.
[0096] The brightness value corresponding to the target color temperature can be found in a preset color temperature-brightness mapping table.
[0097] The brightness of different light strips is combined to achieve the target color temperature of the lighting device.
[0098] For example, the lighting device includes multiple light strips with different color temperatures (such as warm light strips and cold light strips). When the target color temperature is warmer, the brightness of the warm light strip can be increased; when the target color temperature is colder, the brightness of the cold light strip can be increased. At the same time, the mutual influence between the light strips can be considered to ensure the accuracy and consistency of the overall color temperature.
[0099] According to the brightness value of each light strip, the actual brightness output of each light strip in the lighting device can be adjusted to adjust the color temperature of the lighting device.
[0100] For example, the calculated brightness values corresponding to each light strip can be converted into a control signal (such as a PWM (Pulse Width Modulation) signal or an analog voltage, etc.), and then sent to a controller or driver of each light strip. The controller or driver can adjust the brightness output of the light strip according to the received control signal to adjust the color temperature of the lighting device.
[0101] In the actual implementation process, the lighting system can recalculate and adjust the brightness value of each light strip in real time according to changes in ambient lighting conditions or changes in user needs to maintain the stability and accuracy of the color temperature of the lighting device.
[0102] According to the control method of the lighting device provided in the embodiment of the present application, the brightness of each light strip is calculated based on the target color temperature, and the lighting device is controlled based on the brightness of each light strip. This can intelligently adapt to different environments and user needs, providing a more comfortable and personalized lighting experience.
[0103] like Figure 2As shown, in some embodiments, based on the target color temperature, the brightness corresponding to each light strip is calculated, including:
[0104] Based on the target color temperature, a first output ratio corresponding to the warm color light strip and a second output ratio corresponding to the cool color light strip are calculated;
[0105] Based on the first output ratio, the brightness of the warm-color light strip is determined; based on the second output ratio, the brightness of the cool-color light strip is determined.
[0106] In this embodiment, the at least one light strip includes a warm-color light strip and a cool-color light strip.
[0107] The warm-color light strip may include one or more light strips, and the cool-color light strip may include one or more light strips.
[0108] In order to control the color temperature of the lighting device to reach the target color temperature, it can be calculated what proportion of light the warm-color light strip and the cool-color light strip should output respectively.
[0109] For example, the target color temperature is T, the color temperature range of the warm color light strip is Tw to Th (where Tw is warmer, Th is cooler than Tw but still belongs to the warm color system), and the color temperature range of the cool color light strip is Tc to Tb (where Tc is cooler, Tb is warmer than Tc but still belongs to the cool color system).
[0110] According to the relationship between T and Tw, Th, Tc, and Tb, the first output ratio P1 of the warm color light strip and the second output ratio P2 of the cool color light strip can be calculated by interpolation, table lookup or other methods.
[0111] The sum of the first output ratio and the second output ratio is 1. When the brightness of one light strip increases, the brightness of the other light strip must be reduced accordingly to keep the total brightness unchanged or fluctuate within a smaller range, while achieving color temperature adjustment.
[0112] Assuming that the maximum brightness of the warm color light strip is Lw_max and the maximum brightness of the cold color light strip is Lc_max, the actual brightness Lw of the warm color light strip can be calculated by multiplying P1 by Lw_max (i.e., Lw=P1*Lw_max). Similarly, the actual brightness Lc of the cold color light strip can be calculated by multiplying P2 by Lc_max (i.e., Lc=P2*Lc_max).
[0113] In actual implementation, the lighting device (such as an LED lamp) includes two light strips, namely a warm color light strip A (low color temperature) and a cool color light strip B (high color temperature). The two light strips can generate various color temperatures from warm to cool by mixing different brightness ratios.
[0114] The color temperature of the lighting device can be adjusted using PWM technology, where PWM is a method of adjusting the average power (and thus controlling the brightness) by changing the duty cycle of a pulse signal (ie, the ratio of pulse width to period).
[0115] The PWM outputs of the two light strips can be controlled by ambient light perception, and PWMA+PWMB=1, where PWMA and PWMB represent the PWM duty cycles of the warm-color light strip A and the cool-color light strip B, respectively.
[0116] According to the control method of the lighting device provided in the embodiment of the present application, the brightness ratio of the warm-color light strips and the cool-color light strips can be intelligently adjusted through the target color temperature requirements, thereby achieving continuous adjustment of the color temperature. At the same time, the lighting system can adapt to environmental changes more intelligently and provide a more comfortable and personalized lighting experience.
[0117] Continue to refer Figure 2 In some embodiments, step 130 may include:
[0118] When the target color temperature is not within the color temperature adjustment range, the lighting device is controlled to keep the current color temperature unchanged.
[0119] In this embodiment, the lighting device may have a preset color temperature adjustment range, which is usually determined based on the hardware characteristics of the lighting device itself (such as the color temperature range of the LED light source and the accuracy of the color temperature adjustment module, etc.).
[0120] It can be determined whether the target color temperature falls within a preset color temperature adjustment range. For example, the target color temperature value can be compared with the upper and lower limits of the color temperature adjustment range. If the target color temperature is not within the adjustment range, it can be determined not to change the current color temperature of the lighting device according to a preset strategy.
[0121] That is, the lighting device will continue to operate at the current color temperature until the target color temperature obtained by the next update is within the color temperature adjustment range, or the system receives other instructions to change the color temperature.
[0122] In some embodiments, before controlling the lighting device to maintain the current color temperature unchanged, the method may further include: outputting a prompt message, where the prompt message is used to prompt the user that the target color temperature exceeds the adjustment range.
[0123] In this embodiment, the prompt information may include an interface prompt or a sound warning, etc.
[0124] In some embodiments, when the target color temperature is not within the color temperature adjustment range, the color temperature of the lighting device may be adjusted to a color temperature value that is within the color temperature adjustment range and closest to the target color temperature.
[0125] In some embodiments, step 120 may include:
[0126] Based on a first weight corresponding to the ambient light intensity, a second weight corresponding to the ambient color temperature, a third weight corresponding to the first light intensity, and a fourth weight corresponding to the first color temperature, a weighted summation process is performed on the ambient light intensity, the ambient color temperature, the first light intensity, and the first color temperature to obtain a target color temperature corresponding to the lighting device.
[0127] In this embodiment, the importance of each parameter can be balanced by adjusting the weight coefficient. The first weight, the second weight, the third weight and the fourth weight can be adjusted and customized based on the actual application scenario and user preferences, and this application does not limit this.
[0128] For example, when the first color temperature (ie, the user's preferred color temperature) is more important, the fourth weight may be set to a larger value; if it is desired to reduce the color temperature when the ambient light intensity is high, the first weight may be set to a negative value.
[0129] For example, the target color temperature corresponding to the lighting device can be calculated according to the formula:
[0130] T target =ω 1 I+ω 2 ·T+ω 3 I P +ω 4 ·T P , where T is the ambient color temperature, T P is the first color temperature, I is the ambient light intensity, I P is the first light intensity, T target is the target color temperature, ω 1 is the first weight, ω 2 is the second weight, ω 3 is the third weight, ω 4 The fourth weight.
[0131] In some embodiments, step 120 may include:
[0132] The ambient light intensity, the ambient color temperature, the first light intensity and the first color temperature are input into the target prediction model to obtain the target color temperature corresponding to the lighting device output by the target prediction model.
[0133] In this embodiment, the target prediction model can be obtained by training through machine learning or deep learning technology.
[0134] The target prediction model is trained using sample data from a variety of environments, including sample ambient light intensity, sample ambient color temperature, sample user light intensity and sample user color temperature, as well as the sample adjusted color temperature corresponding to these parameters (i.e., the actual output color temperature corresponding to the lighting device).
[0135] The sample data can be input into the target prediction model to obtain the predicted color temperature output by the target prediction model, and the target prediction model can be trained based on the difference between the predicted color temperature and the sample adjusted color temperature until the difference between the predicted color temperature and the sample adjusted color temperature meets the preset conditions. The trained target prediction model can be used as the final prediction model.
[0136] Sample data can be collected through experiments, user feedback, or simulations.
[0137] In some embodiments, step 120 may include:
[0138] Based on the environment in which the lighting device is located, obtaining at least one of the first light intensity and the first color temperature corresponding to the environment from at least one first light intensity and at least one first color temperature input by a user;
[0139] Based on at least one of the ambient light intensity and the ambient color temperature, and at least one of the first light intensity and the first color temperature corresponding to the environment, a target color temperature corresponding to the lighting device is acquired.
[0140] In this embodiment, the user can input preference settings corresponding to different environmental conditions. For example, the user can input light intensity preference and color temperature preference under cloudy, sunny, morning, afternoon or evening environments.
[0141] Or you can enter preference settings for different scene modes. For example, users can enter light intensity and color temperature preferences for reading, relaxing, or working modes.
[0142] Based on the environment in which the lighting device is located, the preference settings input by the user in the environment can be obtained. For example, when the environment in which the lighting device is located is morning, the first light intensity and first color temperature corresponding to the morning input by the user can be obtained.
[0143] The control device of the lighting device provided in the present application is described below. The control device of the lighting device described below and the control method of the lighting device described above can be referenced to each other.
[0144] The control method of the lighting device provided in the embodiment of the present application can be executed by the control device of the lighting device. In the embodiment of the present application, the control device of the lighting device performing the control method of the lighting device is taken as an example to illustrate the control device of the lighting device provided in the embodiment of the present application.
[0145] An embodiment of the present application also provides a control device for a lighting device.
[0146] like Figure 3 As shown, the control device of the lighting device includes: a first processing module 310 , a second processing module 320 and a third processing module 330 .
[0147] The first processing module 310 is used to obtain at least one of the ambient light intensity and the ambient color temperature in the environment where the lighting device is located;
[0148] A second processing module 320, configured to obtain a target color temperature corresponding to the lighting device based on at least one of the ambient light intensity and the ambient color temperature, and at least one of the first light intensity and the first color temperature input by a user;
[0149] The third processing module 330 is used to control the lighting device based on the target color temperature.
[0150] According to the control device of the lighting device provided in the embodiment of the present application, by collecting the environmental condition parameters of the current environment, combined with the user's preferences and needs in the current environment, etc., the target color temperature corresponding to the lighting device is calculated, and the lighting device is controlled based on the target color temperature. The color temperature of the lighting device can be automatically adjusted according to the environmental conditions without the need for repeated manual adjustments. The operation is convenient, and the lighting effect can be coordinated with the ambient light in different time periods or under different weather conditions, thereby meeting the user's needs for a dynamic lighting environment and improving the user's usage experience.
[0151] In some embodiments, the lighting device includes at least one light strip; the third processing module 330 may also be used for:
[0152] Based on the target color temperature, the brightness of each light strip is calculated;
[0153] Based on the brightness of each light strip, the color temperature of the lighting device is controlled.
[0154] In some embodiments, the at least one light strip includes a warm color light strip and a cool color light strip; the third processing module 330 may also be used for:
[0155] Based on the target color temperature, a first output ratio corresponding to the warm color light strip and a second output ratio corresponding to the cool color light strip are calculated; the sum of the first output ratio and the second output ratio is 1;
[0156] Based on the first output ratio, the brightness of the warm-color light strip is determined; based on the second output ratio, the brightness of the cool-color light strip is determined.
[0157] In some embodiments, the third processing module 330 may also be used to:
[0158] When the target color temperature is not within the color temperature adjustment range, the lighting device is controlled to keep the current color temperature unchanged.
[0159] In some embodiments, the second processing module 320 may also be used to:
[0160] Based on a first weight corresponding to the ambient light intensity, a second weight corresponding to the ambient color temperature, a third weight corresponding to the first light intensity, and a fourth weight corresponding to the first color temperature, a weighted summation process is performed on the ambient light intensity, the ambient color temperature, the first light intensity, and the first color temperature to obtain a target color temperature corresponding to the lighting device.
[0161] In some embodiments, the second processing module 320 may also be used to:
[0162] Based on the environment in which the lighting device is located, obtaining at least one of the first light intensity and the first color temperature corresponding to the environment from at least one first light intensity and at least one first color temperature input by a user;
[0163] Based on at least one of the ambient light intensity and the ambient color temperature, and at least one of the first light intensity and the first color temperature corresponding to the environment, a target color temperature corresponding to the lighting device is acquired.
[0164] The control device of the lighting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0165] The control device of the lighting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0166] The control device of the lighting device provided in the embodiment of the present application can achieve Figure 1 to Figure 2 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0167] like Figure 4 As shown, in some embodiments, the present application also provides a lighting control system 400 , including: an ambient light sensor 410 , an input module 420 , a central processing unit 430 and a color temperature adjustment module 440 .
[0168] In this embodiment, the lighting control system 400 can control the lighting device based on the lighting device control method described in any of the above embodiments.
[0169] The ambient light sensor 410 may be installed near the lighting device or integrated inside the lighting device, and the photosensitive module of the ambient light sensor 410 is in direct contact with the external environment.
[0170] The ambient light sensor 410 is used to detect the ambient light intensity and color temperature. The sensor can capture light of different wavelengths and convert the optical signal into an electrical signal for subsequent processing.
[0171] The input module 420 is used to receive user input.
[0172] The input module 420 may include a touch screen, a physical key device, or a voice device.
[0173] For example, the input module 420 may be a touch screen of plastic or glass to provide a durable and responsive interactive experience.
[0174] The input module 420 is used for the user to set preference parameters and manually adjust color temperature, etc.
[0175] The central processing unit 430 is connected to the ambient light sensor 410 and the input module 420 respectively, and is used for calculating the target color temperature based on the received ambient light intensity and ambient color temperature, and the first light intensity and the first color temperature.
[0176] The CPU 430 may include a microcontroller or a digital signal processor, etc., for performing complex calculations and control logic.
[0177] The central processing unit 430 may be a circuit board, and the central processing unit 430 may be embedded in a control box of the lighting device. The material of the central processing unit 430 may be a standard semiconductor material, such as silicon.
[0178] The color temperature adjustment module 440 is connected to the central processing unit 430 , and the color temperature adjustment module 440 is used to control the lighting device based on the target color temperature.
[0179] The central processing unit 430 may send an adjustment instruction to the color temperature adjustment module 440 . After receiving the adjustment instruction, the color temperature adjustment module 440 may adjust the color temperature of the lighting device based on the adjustment instruction.
[0180] The color temperature adjustment module 440 may be integrated into the lighting device, and the material of the color temperature adjustment module 440 may be semiconductor material and thermal conductive material to ensure effective thermal management.
[0181] The color temperature adjustment module 440 may include an LED lamp with adjustable color temperature and a corresponding driving circuit. The LED lamp includes two light strips (a warm color light strip A and a cool color light strip B). The PWM output of the two light strips can be controlled by ambient light perception, and PWMA+PWMB=1. The color temperature of the lighting device can be adjusted by adjusting the ratio of PWMA and PWMB.
[0182] According to the lighting control system 400 provided in the embodiment of the present application, by collecting the environmental condition parameters of the current environment, combined with the user's preferences and needs in the current environment, etc., the target color temperature corresponding to the lighting device is calculated, and the lighting device is controlled based on the target color temperature. The color temperature of the lighting device can be automatically adjusted according to the environmental conditions without the need for repeated manual adjustments. The operation is convenient, and the lighting effect can be coordinated with the ambient light in different time periods or under different weather conditions, thereby meeting the user's needs for a dynamic lighting environment and improving the user's experience.
[0183] In some embodiments, Figure 5 As shown, an embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501. When the program is executed by the processor 501, each process of the control method embodiment of the above-mentioned lighting device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0184] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0185] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the various processes of the above-mentioned lighting device control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0186] On the other hand, the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is implemented to perform the various processes of the above-mentioned lighting device control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0187] On the other hand, an embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned lighting device control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0188] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0189] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0190] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution can be essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for controlling a lighting device, characterized in that: include: Obtaining at least one of the ambient light intensity and the ambient color temperature in the environment where the lighting device is located; Based on at least one of the ambient light intensity and the ambient color temperature, and at least one of the first light intensity and the first color temperature input by a user, acquiring a target color temperature corresponding to the lighting device; Based on the target color temperature, the lighting device is controlled.
2. The control method of the lighting device according to claim 1, characterized in that: The lighting device includes at least one light strip; and controlling the lighting device based on the target color temperature includes: Based on the target color temperature, the brightness corresponding to each of the light strips is calculated; Based on the brightness corresponding to each of the light strips, the color temperature of the lighting device is controlled.
3. The control method of the lighting device according to claim 2, characterized in that: The at least one light strip comprises a warm color light strip and a cool color light strip; The calculating, based on the target color temperature, the brightness corresponding to each of the light strips includes: Based on the target color temperature, a first output ratio corresponding to the warm color light strip and a second output ratio corresponding to the cool color light strip are calculated; the sum of the first output ratio and the second output ratio is 1; Based on the first output ratio, the brightness of the warm-color light strip is determined; based on the second output ratio, the brightness of the cool-color light strip is determined.
4. The control method of the lighting device according to any one of claims 1 to 3, characterized in that: The step of controlling the lighting device based on the target color temperature includes: When the target color temperature is not within the color temperature adjustment range, the lighting device is controlled to keep the current color temperature unchanged.
5. The control method of the lighting device according to any one of claims 1 to 3, characterized in that: The acquiring a target color temperature corresponding to the lighting device based on at least one of the ambient light intensity and the ambient color temperature and at least one of the first light intensity and the first color temperature input by a user includes: Based on a first weight corresponding to the ambient light intensity, a second weight corresponding to the ambient color temperature, a third weight corresponding to the first light intensity, and a fourth weight corresponding to the first color temperature, a weighted summation process is performed on the ambient light intensity, the ambient color temperature, the first light intensity, and the first color temperature to obtain a target color temperature corresponding to the lighting device.
6. The method for controlling a lighting device according to any one of claims 1 to 3, characterized in that: The acquiring a target color temperature corresponding to the lighting device based on at least one of the ambient light intensity and the ambient color temperature and at least one of the first light intensity and the first color temperature input by a user includes: Based on the environment in which the lighting device is located, obtaining at least one of a first light intensity and a first color temperature corresponding to the environment from at least one first light intensity and at least one first color temperature input by a user; Based on at least one of the ambient light intensity and the ambient color temperature, and at least one of a first light intensity and a first color temperature corresponding to the environment, a target color temperature corresponding to the lighting device is acquired.
7. A control device for a lighting device, characterized in that: include: A first processing module, used to obtain at least one of the ambient light intensity and the ambient color temperature in the environment where the lighting device is located; A second processing module, configured to obtain a target color temperature corresponding to the lighting device based on at least one of the ambient light intensity and the ambient color temperature and at least one of the first light intensity and the first color temperature input by a user; The third processing module is used to control the lighting device based on the target color temperature.
8. A lighting control system based on the lighting device control method according to any one of claims 1 to 6, characterized in that: include: Ambient light sensor; An input module, the input module is used to receive user input; A central processing unit, the central processing unit is connected to the ambient light sensor and the input module respectively, and the central processing unit is used to calculate and obtain the target color temperature; A color temperature adjustment module, the color temperature adjustment module is connected to the central processing unit, and the color temperature adjustment module is used to control the lighting device based on the target color temperature.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the control method of the lighting device according to any one of claims 1 to 6 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of the lighting device according to any one of claims 1 to 6 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the control method of the lighting device according to any one of claims 1 to 6 is implemented.