A method, device, terminal and readable storage medium for controlling the brightness of a lamp

By obtaining and utilizing preset models in different environments, calculating the current desktop illumination value and adjusting the brightness of the lamp, the problem that traditional lighting solutions cannot effectively cope with light changes, and achieving stable lighting and energy consumption saving effects.

CN115226281BActive Publication Date: 2025-04-04ジャン州立達信光電子科技有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110431997.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-21
Publication Date
2025-04-04
Estimated Expiration
2041-04-21

AI Technical Summary

Technical Problem

When adjusting the brightness of the lamp, traditional indoor lighting solutions cannot effectively deal with changes in the desktop illumination value caused by different reflectivity of artificial light and natural light, causing discomfort in human eyes.

Method used

By obtaining the preset model in dark room environment and pure sunlight environment, combining the ambient illuminance value read by the sensor and the current output brightness value of the lamp, the current desktop illuminance value is calculated, and the lighting brightness is adjusted according to the difference to maintain the preset desktop illuminance value.

Benefits of technology

It realizes that when the outdoor lighting intensity changes, the brightness of the lamp is automatically adjusted to maintain the stable illumination of the desktop, ensure sufficient working lighting, save energy consumption, and avoid discomfort in human eyes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115226281B_ABST
    Figure CN115226281B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of smart home technology, and mainly provides a method, device, terminal and readable storage medium for controlling the brightness of a lamp. The present application obtains a first preset model, a second preset model and a third preset model, and based on the ambient illumination value currently read by the sensor and the current output brightness value of the lamp, uses the first preset model, the second preset model and the third preset model to calculate the current desktop illumination value, and then calculates the target brightness value of the lamp according to the difference between the current desktop illumination value and the preset desktop illumination value, and then controls the brightness value output by the lamp to be equal to the target brightness value, thereby achieving that by adjusting the brightness value of the lamp, the desktop illumination value can be maintained at the preset desktop illumination value as the intensity of light entering from the outdoors changes, rather than maintaining the illumination value read by the sensor at the preset illumination value, thereby saving energy while ensuring sufficient working lighting, and without causing discomfort to the human eye.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of smart home technology, and in particular, relates to a method, device, terminal and readable storage medium for controlling the brightness of a lamp. Background Art

[0002] At present, the traditional indoor lighting solution is to maintain the ambient illumination value read by the sensor at a certain set value to adjust the brightness value of the lamp and save energy.

[0003] However, due to the difference in reflectivity between artificial light and natural light, the ambient illumination value read by the sensor may be similar, but the actual illumination value of the desktop may vary greatly, causing discomfort to the human eye. Summary of the invention

[0004] The purpose of the present application is to provide a method, device, terminal and readable storage medium for outputting the brightness value of a lamp, which can adjust the brightness value of the lamp as the intensity of light entering from outdoors changes, so that the illuminance value of the desktop can be maintained at a set illuminance value, while ensuring sufficient working lighting, saving energy and not causing discomfort to the human eye.

[0005] A first aspect of an embodiment of the present application provides a method for controlling the brightness value of a lamp, the method comprising:

[0006] Obtain a first preset model, a second preset model, and a third preset model; the first preset model is a relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value of the desktop; the second preset model is a relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value read by the sensor; the third preset model is a relationship model between the illuminance value read by the sensor corresponding to the space where the lamp is currently located in a pure daylight environment and the illuminance value of the desktop;

[0007] Obtaining the ambient illumination value currently read by the sensor and the current output brightness value of the lamp;

[0008] Calculate the current desktop illumination value according to the ambient illumination value currently read by the sensor, the current output brightness value of the lamp, and the first preset model, the second preset model, and the third preset model;

[0009] Calculate the target brightness value of the lamp according to the difference between the current desktop illumination value and the preset desktop illumination value, and the first preset model;

[0010] The brightness value output by the lamp is controlled to be equal to the target brightness value.

[0011] Optionally, in a first possible implementation of the present application, the current desktop illumination value is calculated based on the ambient illumination value currently read by the sensor, the current output brightness value of the lamp, and the first preset model, the second preset model, and the third preset model, including:

[0012] According to the current output brightness value x1 of the lamp and the first preset model, the desktop illumination value y1 corresponding to the current output brightness value of the lamp is calculated;

[0013] According to the current output brightness value x1 of the lamp and the second preset model, the sensor read illumination value y2 corresponding to the current output brightness value of the lamp is calculated;

[0014] Calculate the desktop illumination value y4 corresponding to the current daylight according to the difference between the ambient illumination value y3 currently read by the sensor and the illumination value y2 read by the sensor corresponding to the current output brightness value of the lamp, and the third preset model;

[0015] According to the desktop illumination value y1 corresponding to the current output brightness value of the lamp and the desktop illumination value y4 corresponding to the current daylight, the current desktop illumination value y5=y1+y4 is calculated.

[0016] Optionally, in a second possible implementation of the present application, the obtaining of the first preset model and the second preset model includes:

[0017] In a plurality of building spaces in a darkroom environment, first desktop illuminance value sample data corresponding to each output brightness value of a lamp and first illuminance value sample data read by a corresponding sensor are respectively collected;

[0018] Performing linear fitting on the first desktop illumination value sample data in each building space and the first illumination value sample data read by the sensor to obtain an initial first preset model and an initial second preset model;

[0019] When the space where the lamp is currently located is in a dark room environment, the desktop illumination value corresponding to the preset output brightness value of the lamp and the illumination value read by the corresponding sensor are collected;

[0020] The desktop illuminance value corresponding to the preset output brightness value of the lamp is input into the initial first preset model, and the illuminance value read by the sensor corresponding to the preset output brightness value of the lamp is input into the initial second preset model, so as to obtain the model parameters of the initial first preset model and the initial second preset model, and obtain the first preset model and the second preset model.

[0021] Optionally, in a third possible implementation manner of the present application, the obtaining of the first preset model and the second preset model includes:

[0022] When the space where the lamp is currently located is in a darkroom environment, collecting second desktop illumination value sample data corresponding to each output brightness value of the lamp and second illumination value sample data read by the corresponding sensor;

[0023] Linear fitting is performed on the second desktop illumination value sample data and the second illumination value sample data read by the sensor respectively to obtain the first preset model and the second preset model.

[0024] Optionally, in a fourth possible implementation of the present application, the acquiring the third preset model includes:

[0025] The relationship model between the illuminance value read by the sensor and the illuminance value of the desktop in a pure daylight environment is set as follows: the illuminance value read by the sensor in a pure daylight environment is equal to the illuminance value of the desktop.

[0026] A second aspect of the embodiment of the present application further provides a device for controlling the brightness value of a lamp, comprising:

[0027] A first acquisition unit is used to acquire a first preset model, a second preset model, and a third preset model; the first preset model is a relationship model between a lamp brightness value corresponding to a space where the lamp is currently located in a darkroom environment and a desktop illuminance value; the second preset model is a relationship model between a lamp brightness value corresponding to a space where the lamp is currently located in a darkroom environment and an illuminance value read by a sensor; and the third preset model is a relationship model between an illuminance value read by a sensor corresponding to a space where the lamp is currently located in a pure daylight environment and a desktop illuminance value;

[0028] A second acquisition unit, used to acquire the ambient illumination value currently read by the sensor and the current output brightness value of the lamp;

[0029] A first calculation unit, configured to calculate a current desktop illumination value according to an ambient illumination value currently read by the sensor, a current output brightness value of the lamp, and the first preset model, the second preset model, and the third preset model;

[0030] A second calculation unit, configured to calculate a target brightness value of the lamp according to a difference between the current desktop illumination value and a preset desktop illumination value and the first preset model;

[0031] A brightness control unit is used to control the brightness value output by the lamp to be equal to the target brightness value.

[0032] A third aspect of an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method for controlling the brightness value of a lamp as described in the first aspect are implemented.

[0033] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for controlling the brightness value of a lamp described in the first aspect are implemented.

[0034] In the embodiment of the present application, by obtaining the relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value of the desktop, the relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value read by the sensor, and the relationship model between the illuminance value read by the sensor and the illuminance value of the desktop in a pure daylight environment, that is, the first preset model, the second preset model and the third preset model, and based on the ambient illuminance value currently read by the sensor and the current output brightness value of the lamp, the current desktop illuminance value is calculated using the first preset model, the second preset model and the third preset model, and then the target brightness value of the lamp is calculated according to the difference between the current desktop illuminance value and the preset desktop illuminance value, and then the brightness value output by the lamp is controlled to be equal to the target brightness value, so that the desktop illuminance value can be maintained at the preset desktop illuminance value as the intensity of light entering from the outdoors changes by adjusting the brightness value of the lamp, instead of maintaining the illuminance value read by the sensor at the preset illuminance value, thereby saving energy while ensuring sufficient working lighting, and without causing discomfort to the human eye. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a schematic diagram of a first implementation flow of a method for controlling lamp brightness provided in an embodiment of the present application.

[0036] Figure 2 This is a schematic diagram of a first specific implementation flow of step 101 of the method for controlling the brightness of a lamp provided in an embodiment of the present application.

[0037] Figure 3 This is a schematic diagram of a second specific implementation flow of step 101 of the method for controlling the brightness of a lamp provided in an embodiment of the present application.

[0038] Figure 4 This is a schematic diagram of a specific implementation flow of step 103 of the method for controlling the brightness of a lamp provided in an embodiment of the present application.

[0039] Figure 5 A schematic diagram of the structure of a device for controlling the brightness value of a lamp provided in an embodiment of the present application.

[0040] Figure 6 A schematic diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] At present, the traditional indoor lighting solution is to maintain the ambient illumination value read by the sensor at a certain set value to adjust the brightness value of the lamp and save energy, but does not take into account the change of the desktop illumination value.

[0043] However, due to the difference in reflectivity between artificial light and natural light, the ambient illumination values ​​read by the sensor in different environments may be similar, but the actual illumination values ​​of the desktop may vary greatly, causing discomfort to the human eye.

[0044] Based on this, the embodiments of the present application provide a method, device, terminal and readable storage medium for controlling the brightness of a lamp, which can adjust the brightness value of the lamp as the intensity of light entering from outdoors changes, so that the illuminance value of the desktop can be maintained at the set illuminance value, while ensuring sufficient working lighting, saving energy and not causing discomfort to the human eye.

[0045] like Figure 1 , which is a schematic diagram of the implementation flow of a method for controlling the brightness value of a lamp provided in an embodiment of the present application, and which can be executed by a device for controlling the brightness value of a lamp configured on a terminal. Moreover, the terminal can be a smart home device such as a smart lamp.

[0046] Specifically, the method for controlling the brightness value of a lamp provided in the embodiment of the present application may include steps 101 to 104, which are described in detail as follows:

[0047] Step 101, obtaining a first preset model, a second preset model and a third preset model.

[0048] Among them, the above-mentioned first preset model is a relationship model between the lamp brightness value corresponding to the current space where the lamp is located in a darkroom environment and the desktop illuminance value, the second preset model is a relationship model between the lamp brightness value corresponding to the current space where the lamp is located in a darkroom environment and the illuminance value read by the sensor, and the third preset model is a relationship model between the sensor-read illuminance value corresponding to the current space where the lamp is located in a pure daylight environment and the desktop illuminance value.

[0049] Optionally, in some embodiments of the present application, Figure 2 As shown, the above-mentioned acquisition of the first preset model and the second preset model may include the following steps 201 to 204.

[0050] Step 201 : In a plurality of building spaces in a darkroom environment, first desktop illuminance value sample data corresponding to each output brightness value of a lamp and first illuminance value sample data read by a corresponding sensor are respectively collected.

[0051] For example, in each building space in a darkroom environment, when the brightness of the lamp is adjusted to a preset brightness value of 100%, the desktop illumination value read by the illuminance meter and the illumination value read by the sensor are used as the first desktop illumination value sample data corresponding to the 100% brightness value of the lamp, and the corresponding first illumination value sample data read by the sensor; when the brightness of the lamp is adjusted to a 50% brightness value, the desktop illumination value read by the illuminance meter and the illumination value read by the sensor are used as the first desktop illumination value sample data corresponding to the 50% brightness value of the lamp, and the first illumination value sample data read by the sensor; and so on, the first desktop illumination value sample data corresponding to each output brightness value of the lamp in multiple building spaces, and the corresponding first illumination value sample data read by the sensor are obtained.

[0052] Step 202 , linear fitting is performed on the first desktop illumination value sample data in each building space and the first illumination value sample data read by the sensor to obtain an initial first preset model and an initial second preset model.

[0053] Since linear fitting is performed using the first desktop illuminance value sample data corresponding to each output brightness value of lamps in different building spaces and the first illuminance value sample data read by the corresponding sensor, the structure of the model should be the same except that the parameters of the model may be different. Therefore, in the result of linear fitting, the initial first preset model with the largest proportion is the final initial first preset model, and the initial second preset model with the largest proportion is the final initial second preset model.

[0054] For example, in the linear fitting results of different building spaces, the initial first preset model Y=KX accounts for the largest proportion, so the initial first preset model can be set to Y=K1X, where X is the brightness value of the lamp, Y is the illuminance value of the desktop, and K1 is the model parameter.

[0055] For another example, in the linear fitting results of different building spaces, the initial second preset model M=KX accounts for the largest proportion, so the initial second preset model can also be set to M=K2X, where X is the brightness value of the lamp, M is the illumination value read by the sensor, and K2 is the model parameter.

[0056] Step 203, when the space where the lamp is currently located is in a darkroom environment, collect the desktop illumination value corresponding to the preset output brightness value of the lamp and the illumination value read by the corresponding sensor.

[0057] Step 204, input the desktop illuminance value corresponding to the preset output brightness value of the lamp into the initial first preset model, and input the illuminance value read by the sensor corresponding to the preset output brightness value of the lamp into the initial second preset model, obtain the model parameters of the first preset model and the second preset model, and obtain the first preset model and the second preset model.

[0058] In an embodiment of the present application, by collecting the desktop illuminance value corresponding to the preset output brightness value of the lamp and the corresponding illuminance value read by the sensor in a dark room environment, substituting them into the above-mentioned initial first preset model and the initial second preset model, the model parameters of the first preset model and the second preset model are obtained, and then the first preset model and the second preset model are obtained, thereby realizing the calibration of the brightness of the space where the lamp is currently located.

[0059] For example, the first preset model obtained is that the brightness value of the lamp in the darkroom environment is 5 times that of the desktop illumination value; the second preset model obtained is that the brightness value of the lamp in the darkroom environment is equal to the illumination value read by the sensor.

[0060] It should be noted that the preset output brightness value of the lamp in the above step 203 may be the maximum output brightness value of the lamp, or other output brightness values, and the present application does not impose any limitation on this.

[0061] The model acquisition method in this embodiment first establishes an initial first preset model and an initial second preset model, so that in actual use, it is only necessary to collect a set of desktop illuminance values ​​corresponding to the output brightness values ​​of the lamps in the current environment of the lamps, and the corresponding illuminance values ​​read by the sensor, so as to realize the calibration of the brightness values ​​in the current environment of the lamps, realize the establishment of the first preset model and the second preset model, which is conducive to the establishment of models adapted to different environments.

[0062] Optionally, in some embodiments of the present application, when obtaining the first preset model and the second preset model, it is also possible not to obtain the initial first preset model and the initial second preset model in advance, but to directly model the lamp in the space where the lamp is currently located to obtain the first preset model and the second preset model. Specifically, Figure 3 As shown, the following steps 301 to 302 may also be included.

[0063] Step 301 : when the space where the lamp is currently located is in a darkroom environment, collect second desktop illumination value sample data corresponding to each output brightness value of the lamp and second illumination value sample data read by the corresponding sensor.

[0064] For example, when the brightness of the lamp is adjusted to a preset brightness value of 100%, the desktop illuminance value read by the illuminance meter and the illuminance value read by the sensor are used as the second desktop illuminance value sample data corresponding to the 100% brightness value of the lamp, and the corresponding second illuminance value sample data read by the sensor; when the brightness of the lamp is adjusted to a 50% brightness value, the desktop illuminance value read by the illuminance meter and the illuminance value read by the sensor are used as the second desktop illuminance value sample data corresponding to the 50% brightness value of the lamp, and the corresponding second illuminance value sample data read by the sensor; and so on, the second desktop illuminance value sample data corresponding to each output brightness value of the lamp and the second illuminance value sample data read by the sensor are obtained.

[0065] Step 302 , linearly fitting the second desktop illumination value sample data and the second illumination value sample data read by the sensor respectively to obtain the first preset model and the second preset model.

[0066] In an embodiment of the present application, after obtaining the second desktop illuminance value sample data corresponding to each output brightness value of the lamp and the second illuminance value sample data read by the sensor, linear fitting is performed on the second desktop illuminance value sample data and the second illuminance value sample data read by the sensor respectively to obtain the first preset model and the second preset model.

[0067] For example, the first preset model obtained is that the brightness value of the lamp in the darkroom environment is 5 times that of the desktop illumination value; the second preset model obtained is that the brightness value of the lamp in the darkroom environment is equal to the illumination value read by the sensor.

[0068] Since the relationship between the illuminance value read by the sensor in a pure daylight environment and the illuminance value of the desktop is greatly affected by factors such as weather and season, they can be converted in a 1:1 relationship to ensure that the final adjusted desktop illuminance value is not too low, that is, the relationship model between the illuminance value read by the sensor in a pure daylight environment and the illuminance value of the desktop can be set to: the illuminance value read by the sensor in a pure daylight environment is equal to the illuminance value of the desktop.

[0069] Optionally, in some embodiments of the present application, the above-mentioned first preset model and the second preset model can also be pre-set to Y=K1X, and M=K2X; then, by collecting the desktop illuminance value sample data corresponding to each output brightness value of the lamp and the illuminance value sample data read by the sensor in a dark room environment, and substituting each output brightness value and the desktop illuminance value sample data corresponding to each output brightness value into Y=KX, the value k1 of K1 is obtained, and then the first preset model Y=k1X is obtained; and the output brightness value and the illuminance value sample data read by the sensor corresponding to each output brightness value are substituted into M=K2X, the value k2 of K2 is obtained, and then the second preset model M=k2X is obtained, so as to calibrate the brightness of the current space.

[0070] Among them, X is the brightness value of the lamp, Y is the illuminance value of the desktop, and M is the illuminance value read by the sensor.

[0071] Step 102, obtaining the ambient illumination value currently read by the sensor and the current output brightness value of the lamp.

[0072] In the embodiment of the present application, the sensor may be located on the lamp, or at a preset position in the space where the lamp is currently located, and the position is the same as the position of the sensor when acquiring the second preset model and the third preset model.

[0073] The ambient illuminance value currently read by the sensor may be an illuminance value generated by a lamp and an illuminance value generated by daylight collected by the sensor in real time.

[0074] Optionally, the current output brightness value of the above-mentioned lamp can be calculated according to the current output power of the lamp.

[0075] Step 103, calculating the current desktop illumination value according to the ambient illumination value, the current output brightness value of the lamp, and the first preset model, the second preset model and the third preset model.

[0076] Optional, such as Figure 4 As shown, in some embodiments of the present application, when the current desktop illumination value is calculated according to the ambient illumination value, the current output brightness value of the lamp, and the first preset model, the second preset model and the third preset model, the following steps 401 to 404 can be used to implement it.

[0077] Step 401 : According to the current output brightness value x1 of the lamp and the first preset model, the desktop illumination value y1 corresponding to the current output brightness value of the lamp is calculated.

[0078] For example, the current output brightness value of the lamp is x1=100, and the first preset model is that the brightness value of the lamp that is 5 times that of the dark room environment is equal to the desktop illumination value, that is, Y1=5*X1. Then, substitute the current output brightness value of the lamp x1=100 into Y1=5*X1, and you can get the desktop illumination value y1=500 corresponding to the current output brightness value of the lamp.

[0079] Step 402: According to the current output brightness value x1 of the lamp and the second preset model, the sensor-read illumination value y2 corresponding to the current output brightness value of the lamp is calculated.

[0080] Based on the above example, if the current output brightness value of the lamp is x1=100, and the second preset model is that the brightness value of the lamp in the dark room is equal to the illuminance value read by the sensor, then the sensor read illuminance value y2=100 corresponding to the current output brightness value of the lamp.

[0081] Step 403, according to the difference between the ambient illuminance value y3 currently read by the sensor and the illuminance value y2 read by the sensor corresponding to the current output brightness value of the lamp, and the third preset model, calculate the desktop illuminance value y4 corresponding to the current daylight.

[0082] Based on the above example, if the ambient illuminance value y3 currently read by the sensor is 350, then the difference between the ambient illuminance value y3 currently read by the sensor and the sensor-read illuminance value y2 corresponding to the current output brightness value of the lamp is 350-100=250, which is the illuminance value read by the sensor provided by daylight; then when the third preset model is: the illuminance value read by the sensor in a pure daylight environment is equal to the desktop illuminance value, then y4=250.

[0083] Step 404 , according to the desktop illumination value y1 corresponding to the current output brightness value of the lamp and the desktop illumination value y4 corresponding to the current daylight, the current desktop illumination value y5=y1+y4 is calculated.

[0084] Based on the above example, we can obtain y5=500+250=750.

[0085] Step 104, calculating a target brightness value of the lamp according to the difference between the current desktop illumination value and the preset desktop illumination value and the first preset model, and controlling the brightness value output by the lamp to be equal to the target brightness value.

[0086] For example, the preset desktop illumination value is 500. Based on the above example, the difference between the current desktop illumination value and the preset desktop illumination value is 750-500=250, and the target brightness value of the lamp is 250 / 5=50.

[0087] It should be noted that the unit of the illumination value in the above example is lux, and the unit of the above brightness value is candela / square meter (cd / m2).

[0088] In the embodiment of the present application, by obtaining the relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value of the desktop, the relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value read by the sensor, and the relationship model between the illuminance value read by the sensor and the illuminance value of the desktop in a pure daylight environment, that is, the first preset model, the second preset model and the third preset model, and based on the ambient illuminance value currently read by the sensor and the current output brightness value of the lamp, the current desktop illuminance value is calculated using the first preset model, the second preset model and the third preset model, and then the target brightness value of the lamp is calculated according to the difference between the current desktop illuminance value and the preset desktop illuminance value, and then the brightness value output by the lamp is controlled to be equal to the target brightness value, so that the desktop illuminance value can be maintained at the preset desktop illuminance value as the intensity of light entering from the outdoors changes by adjusting the brightness value of the lamp, instead of maintaining the illuminance value read by the sensor at the preset illuminance value, thereby saving energy while ensuring sufficient working lighting, and without causing discomfort to the human eye.

[0089] It should be understood that, for the sake of simplicity of description, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited to the described order of actions, because according to the present invention, certain steps may be performed in other orders.

[0090] like Figure 5 As shown, it is a schematic diagram of the structure of the control device of the brightness value of a lamp provided in an embodiment of the present application. The control device of the brightness value of a lamp may include: a first acquisition unit 501, a second acquisition unit 502, a first calculation unit 503, a second calculation unit 504 and a brightness control unit 505.

[0091] The first acquisition unit 501 is used to acquire a first preset model, a second preset model, and a third preset model; the first preset model is a relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value of the desktop; the second preset model is a relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value read by the sensor; the third preset model is a relationship model between the illuminance value read by the sensor corresponding to the space where the lamp is currently located in a pure daylight environment and the illuminance value of the desktop;

[0092] A second acquisition unit 502 is used to acquire the ambient illumination value currently read by the sensor and the current output brightness value of the lamp;

[0093] A first calculation unit 503, configured to calculate a current desktop illumination value according to the ambient illumination value currently read by the sensor, the current output brightness value of the lamp, and the first preset model, the second preset model, and the third preset model;

[0094] A second calculation unit 504, configured to calculate a target brightness value of the lamp according to a difference between the current desktop illumination value and a preset desktop illumination value and the first preset model;

[0095] The brightness control unit 505 is used to control the brightness value output by the lamp to be equal to the target brightness value.

[0096] Optionally, in some implementations of the present application, the first calculation unit 503 is further specifically configured to:

[0097] According to the current output brightness value x1 of the lamp and the first preset model, the desktop illumination value y1 corresponding to the current output brightness value of the lamp is calculated;

[0098] According to the current output brightness value x1 of the lamp and the second preset model, the sensor read illumination value y2 corresponding to the current output brightness value of the lamp is calculated;

[0099] Calculate the desktop illumination value y4 corresponding to the current daylight according to the difference between the ambient illumination value y3 currently read by the sensor and the illumination value y2 read by the sensor corresponding to the current output brightness value of the lamp, and the third preset model;

[0100] According to the desktop illumination value y1 corresponding to the current output brightness value of the lamp and the desktop illumination value y4 corresponding to the current daylight, the current desktop illumination value y5=y1+y4 is calculated.

[0101] Optionally, in some implementation modes of the present application, the first acquisition unit 501 is further specifically configured to:

[0102] In a plurality of building spaces in a darkroom environment, first desktop illuminance value sample data corresponding to each output brightness value of a lamp and first illuminance value sample data read by a corresponding sensor are respectively collected;

[0103] Performing linear fitting on the first desktop illumination value sample data in each building space and the first illumination value sample data read by the sensor to obtain an initial first preset model and an initial second preset model;

[0104] When the space where the lamp is currently located is in a dark room environment, the desktop illumination value corresponding to the preset output brightness value of the lamp and the illumination value read by the corresponding sensor are collected;

[0105] The desktop illuminance value corresponding to the preset output brightness value of the lamp is input into the initial first preset model, and the illuminance value read by the sensor corresponding to the preset output brightness value of the lamp is input into the initial second preset model, so as to obtain the model parameters of the initial first preset model and the initial second preset model, and obtain the first preset model and the second preset model.

[0106] Optionally, in some implementation modes of the present application, the first acquisition unit 501 is further specifically configured to:

[0107] When the space where the lamp is currently located is in a darkroom environment, collecting second desktop illumination value sample data corresponding to each output brightness value of the lamp and second illumination value sample data read by the corresponding sensor;

[0108] Linear fitting is performed on the second desktop illumination value sample data and the second illumination value sample data read by the sensor respectively to obtain the first preset model and the second preset model.

[0109] Optionally, in some implementation modes of the present application, the first acquisition unit 501 is further specifically configured to:

[0110] The third preset model is set to: the illuminance value read by the sensor in a pure daylight environment is equal to the illuminance value of the desktop.

[0111] It should be noted that, for the convenience and simplicity of description, the specific working process of the above-described lamp brightness control device can refer to the above-mentioned Figures 1 to 4 The description of the control method of the brightness value of the lamp is not repeated here. In addition, it should be noted that the above-mentioned various embodiments can be combined with each other to obtain a variety of different embodiments, all of which belong to the protection scope of this application.

[0112] like Figure 6 As shown, the embodiment of the present application further provides a terminal. The terminal can be configured with the control device of the brightness value of the lamp shown in the above embodiments, and the terminal can be a smart home device such as the above lamp.

[0113] like Figure 6 As shown, the terminal 6 may include: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, the steps in the above-mentioned control method for the brightness value of each lamp are implemented, for example, Figure 1 Steps 101 to 104 are shown.

[0114] The processor 60 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0115] The memory 61 may be an internal storage unit of the terminal 6, such as a hard disk or a memory. The memory 61 may also be an external storage device for the terminal 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal 6. Further, the memory 61 may also include both an internal storage unit of the terminal 6 and an external storage device. The memory 61 is used to store the above-mentioned computer program and other programs and data required by the terminal.

[0116] The above-mentioned computer program can be divided into one or more modules / units, and the above-mentioned one or more modules / units are stored in the above-mentioned memory 61 and executed by the above-mentioned processor 60 to complete the present application. The above-mentioned one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the above-mentioned computer program in the above-mentioned terminal for user care. For example, the above-mentioned computer program can be divided into: a first acquisition unit, a second acquisition unit, a first calculation unit, a second calculation unit and a brightness control unit, and the specific functions are as follows:

[0117] A first acquisition unit is used to acquire a first preset model, a second preset model, and a third preset model; the first preset model is a relationship model between a lamp brightness value corresponding to a space where the lamp is currently located in a darkroom environment and a desktop illuminance value; the second preset model is a relationship model between a lamp brightness value corresponding to a space where the lamp is currently located in a darkroom environment and an illuminance value read by a sensor; and the third preset model is a relationship model between an illuminance value read by a sensor corresponding to a space where the lamp is currently located in a pure daylight environment and a desktop illuminance value;

[0118] A second acquisition unit, used to acquire the ambient illumination value currently read by the sensor and the current output brightness value of the lamp;

[0119] A first calculation unit, configured to calculate a current desktop illumination value according to an ambient illumination value currently read by the sensor, a current output brightness value of the lamp, and the first preset model, the second preset model, and the third preset model;

[0120] A second calculation unit, configured to calculate a target brightness value of the lamp according to a difference between the current desktop illumination value and a preset desktop illumination value and the first preset model;

[0121] A brightness control unit is used to control the brightness value output by the lamp to be equal to the target brightness value.

[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0125] In the embodiments provided in the present application, it should be understood that the disclosed terminals and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic. For example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0127] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0128] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0129] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. 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. 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, and should all be included in the protection scope of the present application.

Claims

1. A method for controlling the brightness of a lamp, characterized in that: include: Obtain a first preset model, a second preset model, and a third preset model; the first preset model is a relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value of the desktop; the second preset model is a relationship model between the brightness value of the lamp corresponding to the space where the lamp is currently located in a darkroom environment and the illuminance value read by the sensor; the third preset model is a relationship model between the illuminance value read by the sensor corresponding to the space where the lamp is currently located in a pure daylight environment and the illuminance value of the desktop; Obtaining the ambient illumination value currently read by the sensor and the current output brightness value of the lamp; Calculate the current desktop illumination value according to the ambient illumination value currently read by the sensor, the current output brightness value of the lamp, and the first preset model, the second preset model, and the third preset model; Calculate the target brightness value of the lamp according to the difference between the current desktop illumination value and the preset desktop illumination value, and the first preset model; Controlling the brightness value output by the lamp to be equal to the target brightness value; Acquiring the first preset model and the second preset model includes: In a plurality of building spaces in a darkroom environment, first desktop illuminance value sample data corresponding to each output brightness value of a lamp and first illuminance value sample data read by a corresponding sensor are respectively collected; Performing linear fitting on the first desktop illumination value sample data in each building space and the first illumination value sample data read by the sensor to obtain an initial first preset model and an initial second preset model; When the space where the lamp is currently located is in a dark room environment, the desktop illumination value corresponding to the preset output brightness value of the lamp and the illumination value read by the corresponding sensor are collected; The desktop illuminance value corresponding to the preset output brightness value of the lamp is input into the initial first preset model, and the illuminance value read by the sensor corresponding to the preset output brightness value of the lamp is input into the initial second preset model, so as to obtain the model parameters of the initial first preset model and the initial second preset model, and obtain the first preset model and the second preset model.

2. The method for controlling the brightness of a lamp as claimed in claim 1, characterized in that: The current desktop illumination value is calculated based on the ambient illumination value currently read by the sensor, the current output brightness value of the lamp, and the first preset model, the second preset model, and the third preset model, including: According to the current output brightness value x1 of the lamp and the first preset model, the desktop illumination value y1 corresponding to the current output brightness value of the lamp is calculated; According to the current output brightness value x1 of the lamp and the second preset model, the sensor read illumination value y2 corresponding to the current output brightness value of the lamp is calculated; Calculate the desktop illumination value y4 corresponding to the current daylight according to the difference between the ambient illumination value y3 currently read by the sensor and the illumination value y2 read by the sensor corresponding to the current output brightness value of the lamp, and the third preset model; According to the desktop illumination value y1 corresponding to the current output brightness value of the lamp and the desktop illumination value y4 corresponding to the current daylight, the current desktop illumination value y5=y1+y4 is calculated.

3. The method for controlling the brightness of a lamp as claimed in claim 1 or 2, characterized in that: Acquiring the first preset model and the second preset model includes: When the space where the lamp is currently located is in a darkroom environment, collecting second desktop illumination value sample data corresponding to each output brightness value of the lamp and second illumination value sample data read by the corresponding sensor; Linear fitting is performed on the second desktop illumination value sample data and the second illumination value sample data read by the sensor respectively to obtain the first preset model and the second preset model.

4. The method for controlling the brightness of a lamp as claimed in claim 1 or 2, characterized in that: Acquiring the third preset model includes: The third preset model is set to: the illuminance value read by the sensor in a pure daylight environment is equal to the desktop illuminance value.

5. A device for controlling the brightness of a lamp, characterized in that: include: A first acquisition unit is used to acquire a first preset model, a second preset model, and a third preset model; the first preset model is a relationship model between a lamp brightness value corresponding to a space where the lamp is currently located in a darkroom environment and a desktop illuminance value; the second preset model is a relationship model between a lamp brightness value corresponding to a space where the lamp is currently located in a darkroom environment and an illuminance value read by a sensor; and the third preset model is a relationship model between an illuminance value read by a sensor corresponding to a space where the lamp is currently located in a pure daylight environment and a desktop illuminance value; A second acquisition unit, used to acquire the ambient illumination value currently read by the sensor and the current output brightness value of the lamp; A first calculation unit, configured to calculate a current desktop illumination value according to an ambient illumination value currently read by the sensor, a current output brightness value of the lamp, and the first preset model, the second preset model, and the third preset model; A second calculation unit, configured to calculate a target brightness value of the lamp according to a difference between the current desktop illumination value and a preset desktop illumination value and the first preset model; A brightness control unit, used to control the brightness value output by the lamp to be equal to the target brightness value; The first acquisition unit is further used for: In a plurality of building spaces in a darkroom environment, first desktop illuminance value sample data corresponding to each output brightness value of a lamp and first illuminance value sample data read by a corresponding sensor are respectively collected; Performing linear fitting on the first desktop illumination value sample data in each building space and the first illumination value sample data read by the sensor to obtain an initial first preset model and an initial second preset model; When the space where the lamp is currently located is in a dark room environment, the desktop illumination value corresponding to the preset output brightness value of the lamp and the illumination value read by the corresponding sensor are collected; The desktop illuminance value corresponding to the preset output brightness value of the lamp is input into the initial first preset model, and the illuminance value read by the sensor corresponding to the preset output brightness value of the lamp is input into the initial second preset model, so as to obtain the model parameters of the initial first preset model and the initial second preset model, and obtain the first preset model and the second preset model.

6. The device for controlling the brightness of a lamp as claimed in claim 5, characterized in that: The first computing unit is further configured to: According to the current output brightness value x1 of the lamp and the first preset model, the desktop illumination value y1 corresponding to the current output brightness value of the lamp is calculated; According to the current output brightness value x1 of the lamp and the second preset model, the sensor read illumination value y2 corresponding to the current output brightness value of the lamp is calculated; Calculate the desktop illumination value y4 corresponding to the current daylight according to the difference between the ambient illumination value y3 currently read by the sensor and the illumination value y2 read by the sensor corresponding to the current output brightness value of the lamp, and the third preset model; According to the desktop illumination value y1 corresponding to the current output brightness value of the lamp and the desktop illumination value y4 corresponding to the current daylight, the current desktop illumination value y5=y1+y4 is calculated.

7. A terminal 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 computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Lamp inductor

    CN111770619A