Light effect control method and apparatus, lighting device, electronic device, and storage medium

By acquiring lighting status data through sensors and dynamically adjusting the color values ​​of the lamp units, the problem of limited lighting effect control is solved, resulting in rich lighting effect variations and a better user experience.

CN116419457BActive Publication Date: 2026-07-21SHENZHEN INTELLIROCKS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN INTELLIROCKS TECH CO LTD
Filing Date
2021-12-29
Publication Date
2026-07-21

Smart Images

  • Figure CN116419457B_ABST
    Figure CN116419457B_ABST
Patent Text Reader

Abstract

The application discloses a lamp effect control method and device, a lighting device, an electronic device and a storage medium. The lamp effect control method is applied to a controller. The controller is connected with a plurality of lamp units and a detection sensor. The method comprises the following steps: determining a lamp state; if the lamp state is a motion state, determining a target color region according to detection data of the detection sensor, determining a target color value corresponding to each lamp unit according to the target color region, and controlling each lamp unit to display the corresponding target color value, so that the target color value displayed by each lamp unit is dynamically adjusted according to the change control of the lamp state and the detection data, and the control mode of the lamp effect is enriched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lighting control technology, and more specifically, to a lighting effect control method, device, lighting equipment, electronic equipment, and storage medium. Background Technology

[0002] Most current lighting products have fixed lighting effect levels, each with corresponding control effects. When a user selects a specific level, the lighting product displays the corresponding control effect. However, this method of controlling lighting effects with fixed effects for specific levels results in limited variation and fails to meet the growing needs of users. Summary of the Invention

[0003] In view of the above problems, the present invention proposes a lighting effect control method, device, lighting equipment, electronic equipment and storage medium to improve the above problems.

[0004] In a first aspect, embodiments of this application provide a lighting effect control method. The method is applied to a controller, which is connected to multiple lamp units and a detection sensor. The method includes: determining the state of the lamp; if the state of the lamp is in motion, determining a target color area based on the detection data of the detection sensor; determining a target color value corresponding to each lamp unit based on the target color area; and controlling each lamp unit to display the corresponding target color value.

[0005] Secondly, embodiments of this application also provide a lighting device, which includes: a controller, multiple lamps, and a detection sensor. The controller is connected to the multiple lamp units and the detection sensor respectively, and the controller is used to execute the lighting effect control method described in the first aspect.

[0006] Thirdly, this application also provides a lighting effect control device, which is applied to a controller, and the controller is connected to multiple lamp units and detection sensors. The device includes: a state determination module, a target color area determination module, a target color value determination module, and a control module. The state determination module is used to determine the state of the lamp. The target color area determination module is used to determine the target color area based on the detection data from the detection sensors if the lamp is in motion. The target color value determination module is used to determine the target color value corresponding to each lamp unit based on the target color area. The control module is used to control each lamp unit to display the corresponding target color value.

[0007] Fourthly, embodiments of this application also provide an electronic device, which includes one or more processors, a memory, and one or more application programs. The one or more application programs are stored in the memory and configured to be executed by the one or more processors, and are configured to perform the lighting effect control method as described in the first aspect above.

[0008] Fifthly, embodiments of this application also provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the lighting effect control method as described in the first aspect above.

[0009] This application provides a lighting effect control method, device, lighting equipment, electronic equipment, and storage medium. The lighting effect control method is applied to a controller, which is connected to multiple lamp units and detection sensors. The method includes: determining the state of the lamp; if the lamp is in motion, determining a target color area based on the detection data from the detection sensors; determining a target color value corresponding to each lamp unit based on the target color area; controlling each lamp unit to display the corresponding target color value; thereby dynamically adjusting the target color value displayed by each lamp unit according to changes in the lamp state and detection data, enriching the lighting effect control methods. Attached Figure Description

[0010] 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 drawings described below are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments and drawings obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0011] Figure 1 A schematic diagram of the structure of a lighting device according to an embodiment of this application is shown.

[0012] Figure 2 A schematic diagram of another lighting device involved in an embodiment of this application is shown.

[0013] Figure 3 A schematic diagram of another lighting device according to an embodiment of this application is shown.

[0014] Figure 4 A schematic flowchart of a lighting effect control method proposed in an embodiment of this application is shown.

[0015] Figure 5 The diagram illustrates the process of determining the target color area in step S220 of the lighting effect control method proposed in the embodiments of this application.

[0016] Figure 6 A schematic diagram of the Lab color space is shown in an embodiment of this application.

[0017] Figure 7 This illustration shows a schematic diagram of determining a target color region in the Lab color space according to an embodiment of this application.

[0018] Figure 8 for Figure 7 A schematic diagram of the corresponding target color area.

[0019] Figure 9 A structural block diagram of a lighting effect control device according to an embodiment of this application is shown.

[0020] Figure 10 A structural block diagram of an electronic device according to an embodiment of this application is shown.

[0021] Figure 11 A structural block diagram of a computer-readable storage medium according to an embodiment of this application is shown. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0023] Most current lighting products have fixed preset lighting effect levels, each with corresponding control effects. When a user selects a specific level, the lighting product displays the corresponding control effect. For example, a lighting product can be set to three different lighting effect levels: a first level, a second level, and a third level. When the user selects the first level, the lighting product displays the first effect; when the user selects the second level, the lighting product displays the second effect. If the user does not adjust the selected lighting effect level, the displayed lighting effect usually remains unchanged.

[0024] However, the fixed lighting effects corresponding to specific settings result in monotonous lighting effects that cannot meet the growing needs of users.

[0025] To address the aforementioned technical problems, the inventors of this application have proposed a lighting effect control method, device, lighting equipment, electronic equipment, and storage medium. This lighting effect control method is applied to a controller, which is connected to multiple lamp units and detection sensors. The method includes: determining the lamp state; if the lamp state is in motion, determining a target color area based on detection data from the detection sensors; determining a target color value corresponding to each lamp unit based on the target color area; and controlling each lamp unit to display the corresponding target color value. This dynamically adjusts the target color value displayed by each lamp unit according to changes in the lamp state and detection data, enriching the lighting effect control methods.

[0026] The lighting control device for lighting effects provided in the embodiments of the present invention will be described below.

[0027] Please see Figure 1 , Figure 1 An embodiment of this application illustrates a lighting device 100, which includes a controller 110, a plurality of lamp units 120, and a detection sensor 130. The controller 110 is connected to the plurality of lamp units 120 and the detection sensor 130.

[0028] In the embodiments of this application, the detection sensor 130 is used to collect detection data. The detection sensor 130 may include, but is not limited to, an accelerometer, a velocity sensor, a pressure sensor, etc. The detection sensor 130 has a corresponding measurement range and can be used to detect data within that range. In actual use, the required measurement range can be selected as needed. For example, the accelerometer can be selected with a measurement range of ±2g, ±4g, ±8g, ±16g, etc., where g is the acceleration due to gravity.

[0029] In some implementations, the detection data includes first detection data in a first direction, second detection data in a second direction, and third detection data in a third direction. The first direction, second direction, and third direction are perpendicular to each other.

[0030] In the embodiments of this application, the controller 110 can acquire the detection data collected by the detection sensor 130, determine the target color area based on the detection data, and then control the lighting effect of the corresponding lamp unit 120, which will be described in detail in the following embodiments.

[0031] In some embodiments, the lighting fixture 100 may include a plurality of lamp units 120, which may display different color values ​​under the control of the controller 110.

[0032] In some embodiments, the lighting fixture 100 may also include one or more detection sensors 130.

[0033] Optionally, when the lighting fixture 100 includes a detection sensor 130, the controller 110 can control all lamp units 120 to display the corresponding color value based on the detection data collected by the detection sensor 130.

[0034] Optionally, when the lighting fixture 100 includes multiple detection sensors 130, the types of the multiple detection sensors 130 can be different. The controller 110 can control the corresponding lamp unit 120 to display the corresponding color value according to the detection data collected by each detection sensor 130. For example, the lighting fixture 100 includes a first detection sensor and a second detection sensor, and the lighting fixture 100 includes a first lamp unit, a second lamp unit, a third lamp unit, and a fourth lamp unit. The first detection sensor corresponds to the first lamp unit and the second lamp unit, and the second detection sensor corresponds to the third lamp unit and the fourth lamp unit. The first detection sensor can be an acceleration sensor, and the second detection sensor can be a velocity sensor. The controller 110 can control the first lamp unit and / or the second lamp unit to display the corresponding color value according to the first detection data collected by the first detection sensor. The controller can control the third lamp unit and / or the fourth lamp unit according to the second detection data collected by the second detection sensor.

[0035] In some implementations, multiple lamp units 120 may also be integrated to form one or more lamp strips.

[0036] In some implementations, the controller 110 can establish a wired or wireless connection with multiple lamp units 120 and detection sensors 130.

[0037] Please see Figure 2 , Figure 2 A lighting device M according to another embodiment of this application is shown. The lighting device M includes a controller N1, a plurality of lamp units N2, and a detection sensor N3. The controller N1 is connected to the plurality of lamp units N2 and the detection sensor N3.

[0038] In some implementations, such as Figure 3 As shown, the lighting equipment 100 may also include a power module 140, which is connected to multiple lamp units 120, controllers 110 and other modules that require power supply, thereby providing power support for the lamp units 120, controllers 110 and other modules.

[0039] In some embodiments, the lighting device 100 may further include a wireless communication module 150. The wireless communication module 150 may include, but is not limited to, a Bluetooth module, a Wi-Fi module, an antenna module, etc. The wireless communication module 150 of the lighting device 100 can establish a communication connection with a terminal device via a network. The network is typically the Internet, but can also be any other network, including but not limited to any combination of Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, wired or wireless networks, private networks or virtual private networks, etc. In some embodiments, the wireless communication module 150 and the terminal device can communicate and transmit data via a specific communication protocol, including but not limited to BLE (Bluetooth Low Energy), WLAN (Wireless Local Area Network), Bluetooth, ZigBee, or Wi-Fi (Wireless Fidelity), etc.

[0040] Optionally, the user can send control commands to the wireless communication module 150 via a terminal device, so that the controller 110 can enter different lighting effect control modes according to the control commands. The terminal device includes, but is not limited to, mobile phones, tablets, wearable devices, etc., and this application does not limit it.

[0041] In some implementations, such as Figure 3 As shown, the lighting device 100 may also include a button module 160. The button module 160 is connected to the controller 110, and the user can input different control commands to the controller 110 by selecting different buttons.

[0042] In some implementations, such as Figure 3 As shown, the lighting device 100 may also include an audio acquisition module 170. The audio acquisition module 170 may be, for example, a microphone, a microphone array, etc. The audio acquisition module 170 can acquire analog audio signals from the environment, such as user voice commands.

[0043] The controller of the lighting fixture 100 in this application embodiment can be used to execute the lighting effect control method, which will be described below in conjunction with specific embodiments.

[0044] Please see Figure 4 This application provides a lighting effect control method, which can be applied to a controller. The lighting effect control method of this application embodiment may include steps 210 to 240.

[0045] Step 210: Determine the status of the lighting fixtures.

[0046] In the embodiments of this application, the controller can determine the lamp state based on the detection data from the detection sensor. Optionally, depending on whether the lighting fixture is moving, the lamp state can include: a moving state and a stationary state. Optionally, depending on the movement of the lighting fixture, the lamp state can also include: an accelerating state, a decelerating state, a constant speed state, etc. Specifically, the lamp state can be determined based on the detection data from the detection sensor. The following describes how to determine the lamp state using a specific implementation method.

[0047] Specifically, taking the state of a lamp as an example, which includes both moving and stationary states, the state of the lamp can be determined according to the following steps.

[0048] (1) Obtain the detection data from the detection sensor.

[0049] In the embodiments of this application, the controller can acquire detection data from the detection sensor. Optionally, the controller can periodically collect detection data from the detection sensor according to a preset detection interval. The specific value of the detection interval can be set according to actual needs, and this application does not limit it.

[0050] In some implementations, the detection sensor is an accelerometer. The detection data from the sensor may include components in multiple directions. For example, the detection data may include first detection data in a first direction, second detection data in a second direction, and third detection data in a third direction.

[0051] (2) If the detection data is greater than the preset detection threshold, the lamp status is in motion.

[0052] In the embodiments of this application, when the user moves the lighting fixture, that is, when the lighting fixture is in motion, the detection data is greater than the preset detection threshold.

[0053] Optionally, the preset detection threshold can be zero. When the lighting fixture is stationary, the detection data collected by the sensor is zero. When the user moves the lighting fixture, the detection data collected by the sensor is greater than zero.

[0054] Optionally, to prevent changes in the state of the lighting fixture caused by minor vibrations, such as slight vibrations caused by minor impacts (in which the user has not actually controlled the movement of the lighting fixture), and to filter out misjudgments of the lighting fixture state caused by non-user control, in some embodiments, the value of the preset detection threshold can be greater than zero. The specific value of the preset detection threshold can be set according to actual usage needs, and this application does not impose any restrictions on it.

[0055] (3) Otherwise, the lamp is in a stationary state.

[0056] In the embodiments of this application, if the detection data is less than or equal to a preset detection threshold, the lamp is in a static state.

[0057] Different lighting effects can be controlled in different states, which will be explained in detail below.

[0058] Step 220: If the lamp is in motion, determine the target color area based on the detection data from the detection sensor.

[0059] In the embodiments of this application, the controller can determine the target color area based on the detection data of the detection sensor. Different target color areas result in different color values ​​for controlling the lamp unit, thereby enriching the ways in which the lighting effect changes.

[0060] In some implementations, such as Figure 5 As shown, step 220 may include steps 221 to 222.

[0061] Step 221: If the lamp is in motion, determine the color pointing vector based on the detection data from the sensor.

[0062] In the embodiments of this application, the components of the detection data in different directions can be mapped to the components of the color space in different dimensions to determine the color pointing vector.

[0063] In some implementations, the detection data may include first detection data in a first direction, second detection data in a second direction, and third detection data in a third direction. The first direction, second direction, and third direction are perpendicular to each other.

[0064] In the embodiments of this application, each point in the preset color space can represent a corresponding color value. The preset color space may include, but is not limited to, the LAB (Lab Color Space); RGB (Red; Green; Blue) color space; HSV (Hue; Saturation; Value) color space; YUV (Y-lightness; U and V-chromaticity) color space, etc.

[0065] In some implementations, a preset color space may include multiple components of different dimensions. For example, the LAB color space includes L, A, and B components. The RGB color space includes R, G, and B components. The HSV color space includes H, S, and V components. The YUV color space includes Y, U, and V components, and so on.

[0066] In the embodiments of this application, each component of the color space can be determined by detecting the component in one direction of the detection data, thereby determining each component of the color space and subsequently determining the color pointing vector. Taking the Lab color space as an example, the Lab color space includes an L component, an a component, and a b component. The L component can be determined using the first detection data in the first direction, the a component can be determined using the second detection data in the second direction, and the b component can be determined using the third detection data in the third direction. The specific settings can be configured according to actual usage needs, and this application does not impose any limitations on this. Thus, the color pointing vector is determined based on the detection data to adjust the target color region used for control.

[0067] In some implementations, step 221 may include:

[0068] (1) Determine the color components based on the detection data from the detection sensor.

[0069] In the embodiments of this application, taking an acceleration sensor as an example, the detection data of the detection sensor may include first detection data in a first direction, second detection data in a second direction, and third detection data in a third direction.

[0070] In embodiments of this application, a color component may include multiple color components of different dimensions. For example, a color component may include a first color component, a second color component, and a third color component. The first color component is a color component of a first dimension of a preset space. The second color component is a color component of a second dimension of a preset space. The third color component is a color component of a third dimension of a preset space.

[0071] In some implementations, color components can be determined based on detection data from a detection sensor. For example, a first color component can be determined based on first detection data; a second color component can be determined based on second detection data; and a third color component can be determined based on third detection data.

[0072] If the selected accelerometer has detection ranges of ±10g in different directions: ±10g in the first direction, ±10g in the second direction, and ±10g in the third direction, and the selected color space is taken as the LAB color space (e.g., the LAB color space has a range of 0-100 for the luminance component (L component), +127--128 for the first chromaticity component on the green-red axis, and +127-128 for the second chromaticity component on the blue-yellow axis), then the detection ranges in the corresponding directions can be converted to color components in the color space. For example, the detection range of ±10g in the first direction corresponds to the range of 0-100 for the L component; the detection range of ±10g in the second direction corresponds to the first chromaticity component of +127--128 on the green-red axis; and the detection range in the third direction corresponds to the second chromaticity component of +127-128 on the blue-yellow axis.

[0073] Specifically, the corresponding L component can be obtained according to Formula 1, that is:

[0074]

[0075] The corresponding 'a' component can be obtained according to Formula 2, that is:

[0076]

[0077] The corresponding b component can be obtained according to Formula 3, that is:

[0078]

[0079] Therefore, if the detection data of the lamp in the first direction is 5g, then according to Formula 1, the L component is 75; if the detection data in the second direction is 5g, then according to Formula 2, the a component is 64; if the detection data in the third direction is 5g, then according to Formula 3, the b component is 64.

[0080] It is understandable that when choosing other color spaces, the color components of those color spaces can be obtained in the same way as in the example above.

[0081] (2) Determine the color pointing vector based on the color components.

[0082] In embodiments of this application, the controller can further determine the target color region for color control based on the color components. Specifically, a color pointing vector can be determined based on the color components, thereby determining the target color region based on the color pointing vector.

[0083] Optionally, the color pointing vector can be a composite vector of color components. Taking the Lab color space as an example, it includes L components, a components, and b components. The L components, a components, and b components can be combined to obtain a composite vector, which can then be used as the color pointing vector.

[0084] Step 222: Determine the target color region based on the color pointing vector and the initial color region.

[0085] In the embodiments of this application, when the lamp is in motion, the initial color area is the color area used for color control of the lamp unit before the detection data of the detection sensor changes.

[0086] In some implementations, if the luminaire changes from a static state to a dynamic state, the initial color region can be a first color region pre-defined in a color space. The initial color region includes multiple color sub-regions, with each luminaire unit corresponding to one of these sub-regions. Taking the Lab color space as an example... Figure 6 A schematic diagram of the Lab color space model is shown. The first color region can control the colors displayed by multiple lamp units based on the color values ​​corresponding to the surface of a spherical region with a radius of a preset threshold, originating from the center of the Lab color space model. It is understood that the preset threshold value can be set according to actual needs; for example, the preset threshold value can be between 5 and 10. Different preset thresholds correspond to different color values, and this application does not impose any limitations on this.

[0087] In some implementations, if the luminaire is in motion and the detection data of the sensor changes, the initial color area can be the target color area before the change in detection data.

[0088] For example, if the lamp changes from a stationary state to a first moving state and the detection sensor detects the first detection data, then the color area corresponding to the lamp in the stationary state is the first color area, and the initial color area corresponding to the lamp in the first moving state is the first color area. Based on the first color area and the first detection data, the second color area is determined as the target color area of ​​the lamp in the first moving state.

[0089] For example, if the luminaire continues to change from the first motion state to the second motion state, and the detection sensor detects the second detection data, then the initial color area corresponding to the luminaire in the second motion state is the second color area, that is, the target color area in the first motion state. Based on the second color area and the second detection data, the third color area is determined as the target color area of ​​the luminaire in the second motion state.

[0090] To ensure complete control over the color of the lamp units, in some implementations, the number of color sub-regions in the initial color region is no less than the number of lamp units.

[0091] Optionally, the shape of the initial color area corresponds to the shape of the multiple lamp units. For example, if the multiple lamp units are distributed to form a sphere, then the shape of the initial color area can be the corresponding sphere. If the multiple lamp units are distributed to form a cylinder, then the shape of the initial color area can also be the corresponding cylinder, and so on.

[0092] Furthermore, in the color space, the target color area can be determined based on the initial color area and the color pointing vector. That is, the color area in the color space used to control the color of the lamp unit is adjusted according to the change of the detection data.

[0093] Reference Figure 7 , Figure 8 As shown, for example, if the color pointing vector is determined based on the detection data as (L * a * b * If we shift each point in the initial color region A by L1 components along the L-axis, a1 components along the a-axis, and b1 components along the b-axis, the resulting region will be the target color region B. For example... Figure 8 In the initial color region A, point O(0, 0, 0) is determined by the color pointing vector. The point O'(L) in the target color region B is moved and transformed. * a * b * Point k1(L) in the initial color region A k1 a k1 b k1 ), based on the color pointer vector The point O'(L) in the target color region B is moved and transformed. k1 +L*,a k1 +a*,b k1 +b*), similarly, other points on the initial color region A are determined by the color pointing vector. (L * a * b * Move the object to obtain the target color region B.

[0094] Step 230: Determine the target color value corresponding to each lamp unit based on the target color area.

[0095] In some implementations, the target color area includes multiple color sub-regions, with each lamp unit corresponding to one of these sub-regions. Specifically, the controller can determine the target color value for each lamp unit based on its corresponding color sub-region, thereby displaying different color values ​​according to different detection data, further enriching the ways in which the lighting effects change and enhancing the user experience.

[0096] In the embodiments of this application, if there are multiple color values ​​corresponding to a color sub-region, the target color value can be determined from the multiple color values ​​corresponding to the color sub-region.

[0097] Optionally, the controller can use the color value corresponding to the midpoint of the color sub-region as the target color value of the lamp unit.

[0098] Optionally, the controller can also use the average of all color values ​​in the color sub-region as the target color value for the lamp unit.

[0099] In some implementations, the target color value can be represented using a specific target color space. For example, the target color space can be represented using the RGB color space, which includes red, green, and blue components. Furthermore, if the detection data is converted to components in other non-target color spaces, in order to obtain the target color value, it is necessary to further convert the obtained components in those other color spaces to the corresponding components in the target color space. For example, after obtaining the Lab color component of a point in the Lab color space based on the detection data, the Lab color component can be further converted to the RGB color component in the RGB color space to obtain the target color value.

[0100] Step 240: Control each lamp unit to display the corresponding target color value.

[0101] In the embodiments of this application, the lamp units are controlled according to the target color value corresponding to each lamp unit determined by the aforementioned method, so that each lamp unit displays the corresponding target color value. The target color value of the lamp unit is also adjusted according to the change of the detection data, thereby displaying the lighting effect corresponding to the movement state of the lamp and improving the user experience.

[0102] The following specific embodiment illustrates the detailed process of the lighting effect control method of this application.

[0103] In this embodiment, the user accelerates the stationary lamp from point Q1 to point Q2, and then decelerates the lamp from point Q2 to point Q3. Therefore, the state of the lamp from point Q1 to Q3 is as follows:

[0104] State 1: The lamp is at the starting point Q1 and is in a stationary state.

[0105] At time t1, the luminaire is at the starting point Q1 and is in a stationary state. In this stationary state, the luminaire controls multiple lamp units to display a static lighting effect. In this embodiment, the static lighting effect is achieved by the luminaire controlling each lamp unit to control the target color value of each lamp unit according to the initial color area.

[0106] If the initial color area is the first color area when the lamp is stationary, then at time t1, the lamp can determine the target color value of each lamp unit based on the first color area, thereby controlling each lamp unit to display the corresponding target color value.

[0107] State 2: The lamp moves from the starting point Q1 to point Q2. The lamp is in motion and is accelerating.

[0108] Between times t2 and t3, the luminaire accelerates from point Q1 to point Q2, and is in motion. While in motion, the luminaire determines the target color region based on the data detected by the accelerometer, and then determines the target color value corresponding to each lamp unit based on the target color region.

[0109] At time t2, the first reading from the accelerometer of the lamp is 0.5 m / s². 2 At this point, the initial color area is the first color area, based on the first color area and the first detection data of 0.5 m / s. 2 The second color region is determined as the target color region for the luminaire at time t2. Therefore, at time t2, the luminaire can determine the target color value for each lamp unit based on the second color region, thereby controlling each lamp unit to display the corresponding target color value.

[0110] At time t3, the second detection data from the accelerometer of the lamp is 1 m / s². 2 At this point, the initial color region is the second color region, based on the second color region and the second detection data of 1m / s. 2 The third color region is determined as the target color region for the luminaire at time t3. Therefore, at time t3, the luminaire can control the target color value of each lamp unit according to the third color region, thereby controlling each lamp unit to display the corresponding target color value.

[0111] State 3: Moving from point Q2 to endpoint Q3: The lamp is in motion and decelerating.

[0112] Between times t4 and t5, the luminaire decelerates from point Q2 to point Q3, and is in motion. While in motion, the luminaire determines the target color region based on the data from the accelerometer, and then determines the target color value for each lamp unit based on the target color region.

[0113] At time t4, the third reading from the accelerometer of the lamp is -2 m / s². 2 At this point, the initial color region is the third color region, based on the third color region and the third detection data -2m / s 2The fourth color region is determined as the target color region for the luminaire at time t4. Therefore, at time t4, the luminaire can control the target color value of each lamp unit according to the fourth color region, thereby controlling each lamp unit to display the corresponding target color value.

[0114] At time t5, the fourth reading from the accelerometer of the lamp is -1.5 m / s². 2 At this point, the initial color region is the fourth color region, based on the fourth color region and the fourth detection data -1.5m / s 2 The fourth color region is determined as the target color region for the luminaire at time t4. Therefore, at time t5, the luminaire can control the target color value of each lamp unit according to the fourth color region, thereby controlling each lamp unit to display the corresponding target color value.

[0115] State 4: The lamp stops moving at the endpoint Q4, at which point the lamp is stationary.

[0116] At time t6, the luminaire is at endpoint Q1 and is in a stationary state. In this stationary state, the luminaire controls multiple lamp units to display a stationary lighting effect. In this embodiment, the stationary lighting effect is achieved by the luminaire controlling each lamp unit to control the target color value of each lamp unit according to the initial color area. In this embodiment, the initial color area is the first color area in the stationary state.

[0117] Therefore, at time t6, the luminaire can determine the target color value of each lamp unit based on the first color region, thereby controlling the target color value displayed by each lamp unit.

[0118] It is understandable that the luminaires are in a stationary state at both time t6 and t1. Therefore, the luminaires have the same effect at both time t6 and t1, and the luminaires' effect is controlled according to the first color area.

[0119] In some embodiments, the lighting effect control method of this application may further include: if the lighting fixture is in a static state, then controlling multiple lamp units to display static lighting effects.

[0120] In the embodiments of this application, if the detection data is less than or equal to a preset detection threshold, the lamp is in a static state. A static lighting effect corresponding to the static state can be preset so that multiple lamp units can be controlled to display a static lighting effect when the lamp is in a static state.

[0121] Optionally, static lighting effects can be achieved by controlling the lighting fixtures to display colors based on an initial color area. Specifically, the initial color area can be a preset area within a color space. Taking the Lab color space as an example, such as... Figure 6 As shown, Figure 6A schematic diagram of the Lab color space model is shown. The preset region can be the surface area of ​​a sphere with a radius of a preset threshold, starting from the center of the Lab color space model. This allows control of the colors displayed by multiple lamp units based on the color values ​​corresponding to the initial color region. It is understood that the preset threshold value can be set according to actual needs; for example, the preset threshold value can be between 5 and 10. Different preset thresholds correspond to different color values, and this application does not impose any limitations on this.

[0122] In some embodiments, before step 210, the lighting effect control method of this application embodiment may further include: entering the lighting effect control mode in response to a lighting effect control mode selection operation. Step 210: Determining the lighting fixture status may include: determining the lighting fixture status in the lighting effect control mode.

[0123] Optionally, users can select the desired lighting effect mode via the button module, and the button module will send the corresponding mode selection command to the controller according to the user's selection.

[0124] Optionally, the user can also send a mode selection command to the wireless communication module via the terminal device. For example, the user can select the desired lighting effect mode through an application on the terminal device. Based on the user's selection, the terminal device sends the mode selection command to the wireless communication module, which then sends the received mode selection command to the controller.

[0125] Optionally, users can also select the desired lighting effect mode via voice commands. The audio acquisition module collects the user's voice commands and sends them to the controller.

[0126] Optionally, the lighting fixture may also include a touch screen connected to the controller. Users can select the desired lighting effect mode on the mode selection interface displayed on the touch screen. After receiving the user's touch operation, the touch screen will transmit the instruction corresponding to the selected lighting effect mode to the controller.

[0127] Understandably, different lighting effect modes and corresponding control methods can be set according to actual usage needs. For example, in normal mode, multiple light units can be controlled to display the same color value. In night mode, multiple light units can be controlled to display different color or brightness values ​​based on the time of day. Thus, by setting different lighting effect modes, various user needs in different scenarios can be met, improving the user experience.

[0128] This application provides a lighting effect control method that determines the state of the lighting fixture; if the lighting fixture is in motion, a target color area is determined based on the detection data of the detection sensor, and a target color value corresponding to each lamp unit is determined based on the target color area. Each lamp unit is then controlled to display the corresponding target color value, thereby controlling each lamp unit to display a variety of target color values ​​based on the lighting fixture state and detection data, further enriching the lighting effect control methods.

[0129] Please see Figure 9 This application provides a lighting effect control device 400, which is applied to a controller. The controller is connected to multiple lamp units and detection sensors. The lighting effect control device 400 includes: a state determination module 410, a target color area determination module 420, a target color value determination module 430, and a control module 430.

[0130] Specifically, the status determination module 410 is used to determine the status of the lighting fixture.

[0131] The target color area determination module 420 is used to determine the target color area based on the detection data of the detection sensor if the lamp is in motion.

[0132] The target color value determination module 430 is used to determine the target color value corresponding to each lamp unit based on the target color area.

[0133] The control module 430 is used to control the target light unit to display the corresponding target color value.

[0134] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For device embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to in the descriptions of the method embodiments. Any processing method described in the method embodiments can be implemented in the device embodiments through corresponding processing modules, and will not be elaborated upon further in the device embodiments.

[0135] Please see Figure 10 This application provides an electronic device 500, which can be a smartphone, tablet computer, e-reader, touch screen, or other electronic device capable of running applications. The electronic device in this application may include one or more of the following components: a processor 510, a memory 520, and an application program. One or more applications may be stored in the memory 520 and configured to be executed by one or more processors 510. The one or more applications are configured to perform the lighting effect control method as described in the foregoing method embodiments.

[0136] The processor 510 may include one or more processing cores. The processor 510 connects to various parts of the electronic device through various interfaces and lines, and performs various functions and processes data of the electronic device 500 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 processor 510 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 510 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor and may be implemented separately through a communication chip.

[0137] 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 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 (such as a lamp status determination function, a lighting effect control function, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the terminal during use (such as lamp status, target color value, lamp unit pointing information, etc.).

[0138] Please refer to Figure 11 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 600 stores program code 610, which can be called by a processor to execute the lighting effect control method described in the above method embodiments.

[0139] Computer-readable storage medium 600 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage medium 610 includes a non-transitory computer-readable storage medium. Computer-readable storage medium 610 has storage space for program code that performs any of the method steps described above. This program code 610 can be read from or written to one or more computer program products. The program code may, for example, be compressed in a suitable form.

[0140] This application also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the lighting effect control method described in the various optional implementations above.

[0141] In summary, the embodiments of this application provide a lighting effect control method, device, lighting equipment, electronic equipment, and storage medium. The lighting effect control method is applied to a controller, which is connected to multiple lamp units and detection sensors. The method includes: determining the state of the lamp; if the lamp is in motion, determining a target color area based on the detection data of the detection sensor, determining a target color value corresponding to each lamp unit based on the target color area, and controlling each lamp unit to display the corresponding target color value. This dynamically adjusts the target color value displayed by each lamp unit according to changes in the lamp state and detection data, enriching the lighting effect control methods.

[0142] 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 lighting effect control method, characterized in that, The method is applied to a controller, which is connected to multiple lamp units and detection sensors, and the method includes: Determine the status of the lighting fixtures; If the lamp is in motion, the color component is determined based on the detection data from the detection sensor. Determine the color pointing vector based on the color components; The target color region is determined based on the color pointing vector and the initial color region; The target color value corresponding to each lamp unit is determined based on the target color region; Control each of the lamp units to display the corresponding target color value; The detection data includes first detection data in a first direction, second detection data in a second direction, and third detection data in a third direction. Determining the color components based on the detection data from the detection sensor includes: A first color component is determined based on the first detection data; the first color component is the color component of the first dimension of a preset color space. The second color component is determined based on the second detection data; the second color component is the color component of the second dimension of the preset color space. The third color component is determined based on the third detection data; the third color component is the color component of the third dimension of the preset color space.

2. The method according to claim 1, characterized in that, The target color region includes multiple color sub-regions, and each lamp unit corresponds to one of the color sub-regions; Determining the target color value corresponding to each lamp unit based on the target color region includes: The target color value corresponding to each lamp unit is determined based on the color sub-region corresponding to each lamp unit.

3. The method according to claim 1, characterized in that, The method further includes: If the lamp is in a static state, then control the multiple lamp units to display a static lighting effect.

4. The method according to any one of claims 1 to 3, characterized in that, Before determining the state of the luminaire, the method further includes: In response to the lighting effect control mode selection operation, enter the lighting effect control mode; Determining the status of the lighting fixtures includes: In the lighting effect control mode, the status of the lighting fixtures is determined.

5. The method according to any one of claims 1 to 3, characterized in that, Determining the status of the lighting fixtures includes: Acquire the detection data from the detection sensor; If the detected data is greater than the preset detection threshold, then the lamp is in motion. Otherwise, the lamp is in a stationary state.

6. A lighting device, characterized in that, The lighting device includes: a controller, multiple lamp units, and a detection sensor. The controller is connected to the multiple lamp units and the detection sensor respectively. The controller is used to execute the lighting effect control method according to any one of claims 1 to 5.

7. A lighting effect control device, characterized in that, The device is applied to a controller, which is connected to multiple lamp units and detection sensors. The device includes: Status determination module, used to determine the status of the lighting fixture; A target color region determination module is used to determine color components based on detection data from the detection sensor if the lamp is in motion; determine a color pointing vector based on the color components; and determine a target color region based on the color pointing vector and an initial color region. The detection data includes first detection data in a first direction, second detection data in a second direction, and third detection data in a third direction. Determining the color components based on the detection data from the detection sensor includes: determining a first color component based on the first detection data; the first color component is a color component of a first dimension of a preset color space; determining a second color component based on the second detection data; the second color component is a color component of a second dimension of the preset color space; and determining a third color component based on the third detection data; the third color component is a color component of a third dimension of the preset color space. The target color value determination module is used to determine the target color value corresponding to each lamp unit based on the target color region. A control module is used to control each of the lamp units to display the target color value.

8. An electronic device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the lighting effect control method as described in any one of claims 1-5.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code, which can be called by a processor to execute the lighting effect control method as described in any one of claims 1-5.