Illumination adjustment method, lighting device and computer readable storage medium
By detecting and adjusting the light source power of the desk lamp, the adaptive intelligent adjustment of the desk lamp is realized based on the difference between the preset light intensity and the actual light intensity, the problem of inconvenient adjustment of the existing desk lamp is solved, and the user experience and the intelligence of the lighting equipment is improved. level of transformation.
Patent Information
- Application Number
- CN202011595504.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2040-12-30
AI Technical Summary
Existing desk lamps are difficult to achieve adaptive and intelligent adjustment of illumination, resulting in too dark or too bright light, affecting the user's work and reading efficiency, and may cause damage to the eyes.
By querying the preset lighting intensity of the preset position, detecting the actual lighting intensity, and calculating the power adjustment value based on the angle between the height of the light source and the preset position and the direction of the light source, adjusting the lighting power of the light source to make the actual lighting intensity and the pre-pre- Suppose the light intensity is consistent.
It realizes adaptive and intelligent adjustment of desk lamp brightness, meets lighting needs in different environments, and improves the user experience and the intelligent level of lighting equipment.
Smart Images

Figure CN114698202B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to smart lighting, and more specifically, mainly to an illumination adjustment method, a lighting device and a computer-readable storage medium. Background Art
[0002] In daily life, we often read and work at a desk, and a desk lamp is an indispensable lighting tool. The intensity of light often affects our work and reading. On the one hand, if the light is too dark, people will feel sleepy and reduce our work efficiency; on the other hand, if the light is too strong, it will hurt our eyes and waste electricity resources. Therefore, a desk lamp that can achieve adaptive and intelligent adjustment of illumination is very necessary. Summary of the invention
[0003] In view of this, the present invention proposes an illumination adjustment method, a lighting device and a computer-readable storage medium, which can realize adaptive intelligent adjustment of the brightness of a desk lamp and improve user experience.
[0004] In order to achieve the above object, the present invention proposes the following technical solutions:
[0005] In a first aspect, a method for adjusting illumination is proposed, comprising:
[0006] Query the preset light intensity E0 at the preset position;
[0007] Detecting a first actual light intensity E1 at a preset position;
[0008] Comparing the preset light intensity E0 with the first actual light intensity E1;
[0009] Calculate the power adjustment value according to the comparison result, the height h of the light source and the preset position plane, and the angle β between the light source direction and the vertical direction. as well as
[0010] According to the power adjustment value The lighting power of the light source is adjusted so that the first actual illumination intensity E1 at the preset position is consistent with the preset illumination intensity E0.
[0011] Preferably, the power adjustment value The calculation formula is as follows:
[0012]
[0013] Where E0 is the preset light intensity, E1 is the first actual light intensity, h is the height between the light source and the preset position plane, p0 is the default irradiation power of the light source, k is the luminous efficiency parameter of the light source, and θ is the complementary angle of the angle β between the light source direction and the vertical direction.
[0014] Preferably, before the step of querying the preset light intensity E0 of the preset position, the method further includes:
[0015] The lighting mode of the light source at the preset position is queried, where the lighting mode at least includes a reading mode, a rest mode, a dining mode, and an entertainment mode.
[0016] Preferably, when the lighting mode is a reading mode, the preset light intensity E0 is 600 cd (cd: candela); when the lighting mode is a rest mode, the preset light intensity E0 is 400 cd; when the lighting mode is a dining mode, the preset light intensity E0 is 800 cd; when the lighting mode is an entertainment mode, the preset light intensity E0 is 1000 cd.
[0017] Preferably, the step of comparing the preset light intensity E0 with the first actual light intensity E1 specifically includes:
[0018] Calculating the difference between the preset light intensity E0 and the first actual light intensity E1, and determining whether the difference exceeds a preset threshold;
[0019] If yes, then calculate the power adjustment value Steps;
[0020] If not, the process ends.
[0021] Preferably, when the lighting mode is a reading mode, the preset threshold is ±70 cd; when the lighting mode is a rest mode, the preset threshold is ±50 cd; when the lighting mode is a dining mode, the preset threshold is ±90 cd; when the lighting mode is an entertainment mode, the preset threshold is ±110 cd.
[0022] Preferably, the power adjustment value The step of adjusting the lighting power of the light source so that the first actual illumination intensity E1 of the preset position is consistent with the preset illumination intensity E0 specifically includes:
[0023] According to the power adjustment value Adjust the lighting power of the light source The power value;
[0024] Detecting a second actual light intensity E2 at the preset position;
[0025] Comparing the preset light intensity E0 with the second actual light intensity E2, and determining whether the difference exceeds a preset threshold;
[0026] If yes, the adjusted light source illumination power is adjusted again to a power value of ±0.036p0;
[0027] If not, the process ends.
[0028] Preferably, after the step of adjusting the adjusted light source illumination power to a power value of ±0.036p0 again, the method further comprises:
[0029] Detecting a third actual light intensity E3 at the preset position;
[0030] Comparing the preset light intensity E0 with the second actual light intensity E3, and determining whether the difference exceeds a preset threshold;
[0031] If yes, the adjusted light source lighting power is adjusted again by a power value of ±0.036p0;
[0032] If not, the process ends.
[0033] In a second aspect, a lighting device is proposed, comprising a memory, a processor, and computer program instructions stored in the memory and executable by the processor, wherein when the computer program instructions are executed by the processor, the method described above can be implemented.
[0034] In a third aspect, a computer-readable storage medium is proposed, on which computer program instructions are stored. When the computer program instructions are executed by at least one processor, the method described above can be implemented.
[0035] Beneficial effects of the present invention:
[0036] Compared with the prior art, the illumination adjustment method, lighting device and computer-readable storage medium provided by the present invention compare the light intensity difference between the actual light intensity of the light source and the preset light intensity in a specific lighting mode, and calculate the power value for adjusting the actual light intensity to the preset light intensity through the power-to-light intensity conversion formula, thereby realizing automatic adjustment of the output power of the light source to meet the lighting needs of users in different environments and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope of the present invention.
[0038] Figure 1 Schematic diagram of the hardware architecture of each embodiment of the lighting device according to the present invention;
[0039] Figure 2This is a flow chart of Embodiment 1 of the illumination adjustment method of the present invention;
[0040] Figure 3 A schematic diagram of the light source irradiation of the present invention;
[0041] Figure 4A-4B This is a flow chart of Embodiment 2 of the illumination adjustment method of the present invention;
[0042] Figure 5 This is a flow chart of Embodiment 3 of the illumination adjustment method of the present invention;
[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] Hereinafter, various embodiments of the present invention will be described more fully. The present invention may have various embodiments, and adjustments and changes may be made therein. However, it should be understood that there is no intention to limit the various embodiments of the present invention to the specific embodiments disclosed herein, but the present invention should be understood to cover all adjustments, equivalents and / or alternatives falling within the spirit and scope of the various embodiments of the present invention.
[0045] Hereinafter, the term "include" or "may include" used in various embodiments of the present invention indicates the presence of disclosed functions, operations or elements, and does not limit the addition of one or more functions, operations or elements. In addition, as used in various embodiments of the present invention, the terms "include", "have" and their cognates are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the presence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items.
[0046] In various embodiments of the present invention, the expression "A or / and B" includes any combination or all combinations of the words listed simultaneously, for example, may include A, may include B, or may include both A and B.
[0047] The expressions (such as "first", "second", etc.) used in various embodiments of the present invention may modify the various constituent elements in various embodiments, but may not limit the corresponding constituent elements. For example, the above expressions do not limit the order and / or importance of the elements. The above expressions are only used for the purpose of distinguishing one element from other elements. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, without departing from the scope of various embodiments of the present invention, the first element may be referred to as the second element, and similarly, the second element may also be referred to as the first element.
[0048] It should be noted that in the present invention, unless otherwise clearly specified and defined, the terms such as "installation", "connection", "fixation" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0049] In the present invention, those skilled in the art need to understand that the terms indicating orientation or positional relationship herein are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0050] The terms used in various embodiments of the present invention are only used to describe the purpose of specific embodiments and are not intended to limit the various embodiments of the present invention. Unless otherwise specified, all terms used herein (including technical terms and scientific terms) have the same meaning as the meaning generally understood by those of ordinary skill in the field of various embodiments of the present invention. The terms (such as the terms defined in the dictionary generally used) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning, unless clearly defined in various embodiments of the present invention.
[0051] Please refer to Figure 1 , is a schematic diagram of the hardware architecture of the lighting device 1 described in the present invention.
[0052] In this embodiment, the lighting device 1 may include, but is not limited to, a memory 11, a processor 12, a lighting unit 13, and a communication interface 14 that can be interconnected and communicated via a system bus. It should be noted that: Figure 1A lighting device 1 is shown having various components, but it should be understood that it is not a requirement to implement all of the components shown. More or fewer components may alternatively be implemented. The elements of the lighting device 1 will be described in detail below.
[0053] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the lighting device 1, such as a hard disk or memory of the lighting device 1. In other embodiments, the memory 11 can also be an external storage device of the lighting device 1, such as a plug-in hard disk equipped on the lighting device 1, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Of course, the memory 11 can also include both the internal storage unit of the lighting device 1 and its external storage device. In this embodiment, the memory 11 is generally used to store the operating system and various application software installed in the lighting device 1, such as the computer-readable program code related to illumination adjustment in this embodiment. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
[0054] The processor 12, in some embodiments, may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 12 is generally used to control the overall operation of the lighting device 1. In this embodiment, the processor 12 is used to run the program code stored in the memory 11 or process data, such as running the computer-readable program code related to illumination adjustment.
[0055] The lighting unit 13 can be installed in the lighting device 1. For example, it can be an electric light source, including a thermal radiation type electric light source, a gas discharge type electric light source, etc. In this embodiment, it is preferably an LED electric light source. The lighting unit 13 is mainly used to provide users with lighting services in different lighting modes.
[0056] The communication interface 14 may be a communication interface of a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc. The communication interface 14 is generally used for communication connection between the lighting device 1 and other smart home devices.
[0057] So far, the hardware structure and functions of the relevant devices of the present invention have been described in detail. Next, various embodiments of the present invention will be proposed based on the above hardware structure and functions.
[0058] Firstly, the present invention proposes an illumination adjustment method.
[0059] Please refer to Figure 2 , is a flow chart of the illumination adjustment method embodiment 1 of the present invention. In this embodiment, according to different requirements, Figure 2 The execution order of the steps in the flowchart shown may be changed, and some steps may be omitted.
[0060] In this embodiment, the illumination adjustment method includes:
[0061] Step S110, querying a preset light intensity E0 of a light source at a preset position.
[0062] In this embodiment, the lighting device 1 is used in the user's home, such as a living room, bedroom, study, etc. The device can be a smart lamp such as a desk lamp, ceiling lamp, chandelier, etc., which is mainly used to provide lighting services for users to meet their learning and living needs. The preset position refers to a position frequently used by the user near the lighting device 1, such as a desk in a study, a dressing table in a bedroom, a dining table and a coffee table in a living room, a sofa and a coffee table in an entertainment room, etc.
[0063] Generally, the light sources of the lighting devices 1 at different positions are preset with different preset light intensities E0. Specifically, the lighting modes of the lighting device 1 can be classified and set in advance, and the lighting modes may include, but are not limited to, reading mode, rest mode, dining mode, and entertainment mode. Among them, different lighting modes are preset with different brightness and / or light intensity, and the brightness and / or light intensity are used to meet the user's lighting needs for reading, resting, dining and entertainment respectively. For example, usually, the optimal light intensity for users to read is 600cd (cd: candela), the optimal light intensity for users to rest is 400cd, the optimal light intensity for users to dine is 800cd, and the optimal light intensity for users to entertain is 1000cd. Therefore, in this embodiment, when the lighting mode is a reading mode, the preset light intensity E0 of the lighting device 1 can be set to 600 cd (cd: candela); when the lighting mode is a rest mode, the preset light intensity E0 can be set to 400 cd; when the lighting mode is a dining mode, the preset light intensity E0 can be set to 800 cd; when the lighting mode is an entertainment mode, the preset light intensity E0 can be set to 1000 cd.
[0064] In this embodiment, the lighting device 1 can query the preset light intensity E0 of the light source of the lighting device 1 in real time or at a fixed time. In another embodiment, before querying the preset light intensity E0 of the light source, the lighting device 1 can also query the current lighting mode of the lighting device 1, and the current lighting mode at least includes reading mode, rest mode, dining mode, and entertainment mode; and then query the preset light intensity E0 in the corresponding lighting mode. In addition, in another embodiment, the lighting device 1 can also be connected to a camera, and the above-mentioned steps of querying the current lighting mode of the lighting device 1 and the preset light intensity E0 in the corresponding lighting mode are performed when and only when the camera captures the user image at the preset position.
[0065] Step S120: detecting a first actual light intensity E1 at a preset position.
[0066] As described above, the preset position is a position frequently used by users near the lighting device 1. In this embodiment, at least one light intensity detector, such as a light intensity detector, a light intensity tester, a light illuminance meter, etc., may be arranged at the preset position to detect the actual light intensity at the preset position. The actual light intensity may include the first actual light intensity E1.
[0067] Step S130: comparing the preset light intensity E0 with the first actual light intensity E1.
[0068] In this embodiment, after obtaining the first actual illumination intensity E1 of the preset position, the first actual illumination intensity E1 can be compared with the preset illumination intensity E0 to determine whether the actual illumination intensity of the preset position meets the preset optimal illumination intensity. For example, if the illumination mode of the illumination device 1 is the reading mode, the preset illumination intensity E0 of the illumination device 1 queried above is generally 600cd. At this time, if the first actual illumination intensity E1 detected is 300cd, the embodiment can compare 600cd with 300cd to determine whether the actual illumination intensity of the preset position is consistent with the expected situation. That is, compare whether there is a large difference between the preset illumination intensity E0 and the first actual illumination intensity E1, and whether the two are inconsistent.
[0069] Step S140, calculating a power adjustment value P according to the comparison result, a height h between the light source and the preset position plane, and an angle β between the light source direction and the vertical direction.
[0070] like Figure 3 As shown, it is a schematic diagram of the light source illumination provided in this embodiment. It can be seen from the figure that the plane perpendicular to the illumination direction of the light source of the lighting device 1 is N, and the preset position plane where the user is located is H, the preset light intensity of the preset position is E0, the first actual light intensity is E1, the height of the light source of the lighting device 1 and the preset position plane H is h, the default illumination power of the light source is p0, the luminous efficiency parameter is k, and the angle between the light source direction and the vertical direction is β.
[0071] When the preset light intensity E0 and the first actual light intensity E1 are significantly different and inconsistent, it is necessary to adjust the light source output power of the lighting device 1 to reduce or increase the light intensity at the preset position. In this embodiment, the calculation formula of the power adjustment value P is:
[0072]
[0073] Where E0 is the preset light intensity, E1 is the first actual light intensity, h is the height between the light source and the preset position plane, p0 is the default irradiation power of the light source, k is the luminous efficiency parameter of the light source, and θ is the complementary angle of the angle β between the light source direction and the vertical direction.
[0074] Step S150: adjusting the power value according to the power The lighting power of the light source is adjusted so that the first actual illumination intensity E1 at the preset position is consistent with the preset illumination intensity E0.
[0075] As described above, when the power adjustment value is calculated When the lighting device 1 controls the output power of the light source to adjust, based on the original output power, reduce or increase The output power of the power value, that is, adjust the original output power up or down In other words, if the first actual illumination intensity E1 is less than the preset illumination intensity E0, then the power value P is increased based on the original output power of the lighting device 1. If the first actual illumination intensity E1 is not less than the preset illumination intensity E0, then the power value P is reduced based on the original output power of the lighting device 1. In this way, the first actual illumination intensity E1 at the preset position is as consistent as possible with the preset illumination intensity E0.
[0076] Through the above steps S110-S150, the illumination adjustment method proposed in the present invention detects the actual light intensity at a preset position, and compares the actual light intensity with the preset optimal light intensity, and then calculates the output power adjustment value of the lighting device that needs to be adjusted through a preset light intensity-power conversion formula, thereby realizing automatic adjustment of the output power of the lighting device and improving the intelligence level of the lighting device and user experience.
[0077] Furthermore, based on the above-mentioned embodiment 1 of the present invention, embodiment 2 of the illumination adjustment method described in the present invention is proposed.
[0078] like Figure 4A-4B FIG. 1 is a flow chart of Embodiment 2 of the illumination adjustment method of the present invention. Figure 4A-4B The execution order of the steps in the flowchart shown may be changed, and some steps may be omitted.
[0079] In this embodiment, the step S130 specifically includes:
[0080] Step S131, calculate the difference between the preset light intensity E0 and the first actual light intensity E1, and determine whether the difference exceeds a preset threshold. If yes, execute step S140; if no, end the process.
[0081] In this embodiment, the standard for judging whether the actual light intensity is consistent with the preset light intensity is: whether the difference between the preset light intensity E0 and the first actual light intensity E1 exceeds a preset threshold. The preset threshold refers to a preset floating range value, that is, the actual light intensity can be higher or lower than the preset light intensity, as long as it does not exceed the range, the light intensity of the two is consistent. Furthermore, when the lighting mode of the lighting device 1 is different, the preset threshold value may also be a different floating range value, for example: when the lighting mode of the lighting device 1 is a reading mode, the preset threshold value is ±70cd, that is, E0∈[E0-70cd, E0+70cd]; when the lighting mode is a rest mode, the preset threshold value is ±50cd, that is, E0∈[E0-50cd, E0+50cd]; when the lighting mode is a dining mode, the preset threshold value is ±90cd, that is, E0∈[E0-90cd, E0+90cd]; when the lighting mode is an entertainment mode, the preset threshold value is ±110cd, that is, E0∈[E0-110cd, E0+110cd].
[0082] The step S140 specifically includes:
[0083] Step S141: adjusting the power value according to the Adjust the lighting power of the light source The power value.
[0084] In this embodiment, when the power adjustment value is calculated When the lighting device 1 controls the output power of the light source to adjust, based on the original output power, reduce or increase The output power of the power value, that is, adjust the original output power up or down In other words, if the first actual illumination intensity E1 is less than the preset illumination intensity E0, then the original output power of the lighting device 1 is increased by If the first actual illumination intensity E1 is not less than the preset illumination intensity E0, then the original output power of the lighting device 1 is reduced by Power value.
[0085] Step S142, detecting a second actual illumination intensity E2 at the preset position.
[0086] As described above, after adjusting the output power of the lighting device 1, this embodiment also needs to re-detect the actual light intensity value of the preset position, that is, detect the second actual light intensity E2 of the preset position to verify whether the actual light intensity value of the preset position is consistent with the preset light intensity value E0.
[0087] Step S143, calculating the difference between the preset light intensity E0 and the second actual light intensity E2, and determining whether the difference exceeds a preset threshold; if so, executing step S144; if not, ending the process.
[0088] In this embodiment, the preset threshold is mainly used to measure whether the preset light intensity E0 and the second actual light intensity E2 are consistent. Therefore, the preset threshold can be consistent with the preset threshold in step S131, that is, when the lighting mode of the lighting device 1 is different, the preset threshold can also be a different floating range value. For example: when the lighting mode of the lighting device 1 is a reading mode, the preset threshold is ±70cd, that is, E0∈[E0-70cd, E0+70cd]; when the lighting mode is a rest mode, the preset threshold is ±50cd, that is, E0∈[E0-50cd, E0+50cd]; when the lighting mode is a dining mode, the preset threshold is ±90cd, that is, E0∈[E0-90cd, E0+90cd]; when the lighting mode is an entertainment mode, the preset threshold is ±110cd, that is, E0∈[E0-110cd, E0+110cd].
[0089] Step S144, the adjusted light source illumination power is adjusted again to a power value of ±0.036p0.
[0090] In this embodiment, when the second actual light intensity E2 is inconsistent with the preset light intensity E0, it means that the first adjustment is not in place. However, since a relatively large power adjustment has been made once, it is not appropriate to make a large power adjustment again. In addition, it is found through research that after the first large power adjustment, only a small power adjustment is needed to make the actual light intensity provided by the adjusted lighting device 1 close to or even consistent with the preset light intensity E0.
[0091] Therefore, in this embodiment, when it is found that the second actual illumination intensity E2 is inconsistent with the preset illumination intensity E0, the adjusted light source illumination power can be adjusted again by a power value of ±0.036p0. That is, if the second actual illumination intensity E2 is not less than the preset illumination intensity E0, the power value is reduced by 0.036p0 on the basis of the adjusted output power; if the second actual illumination intensity E2 is less than the preset illumination intensity E0, the power value is increased by 0.036p0 on the basis of the adjusted output power.
[0092] Through the above steps S131-S144, the illumination adjustment method proposed by the present invention compares the difference between the actual illumination intensity and the preset illumination intensity, and only when the difference exceeds the preset threshold value, the power is adjusted according to the comparison result. In addition, after the power adjustment, the difference between the adjusted actual illumination intensity and the preset illumination intensity is checked again, and then a second adjustment is performed. In this way, the actual illumination intensity is made as close as possible to the preset light illumination, and the power adjustment accuracy of the lighting device 1 is improved.
[0093] Furthermore, based on the above-mentioned Embodiment 1 and Embodiment 2 of the illumination adjustment method described in the present invention, Embodiment 3 of the illumination adjustment method described in the present invention is proposed.
[0094] like Figure 5 FIG. 1 is a flow chart of Embodiment 3 of the illumination adjustment method of the present invention. Figure 5 The execution order of the steps in the flowchart shown may be changed, and some steps may be omitted.
[0095] In this embodiment, after step S144, the illumination adjustment method further includes:
[0096] Step S145 , detecting a third actual illumination intensity E3 at the preset position.
[0097] Step S146, calculating the difference between the preset light intensity E0 and the second actual light intensity E3, and determining whether the difference exceeds the preset threshold. If so, executing step S147; if not, ending the process.
[0098] Step S147, the adjusted light source illumination power is adjusted again to a power value of ±0.036p0.
[0099] It should be noted that the above-mentioned third adjustment is only an example. In this embodiment, if the preset light intensity E0 is still inconsistent with the actual light intensity value after this adjustment, the "detection-judgment-adjustment" cycle such as step S145-step S147 can be started again as needed until the preset light intensity E0 is consistent with the actual light intensity value.
[0100] Through the above steps S145-S147, the illumination adjustment method proposed in the present invention compares the actual light intensity after the second power adjustment with the preset light intensity. When the actual light intensity is still inconsistent with the preset light intensity, the power value is fine-tuned again to ensure that the actual light intensity gradually approaches the preset light intensity, thereby further improving the accuracy of the automatic adjustment of the lighting device 1.
[0101] Secondly, the present invention also provides a lighting device 1.
[0102] In this embodiment, the lighting device 1 includes the memory 11, the processor 12, and computer program instructions stored in the memory and executable by the processor. When the computer program instructions are executed by the processor 12, the following steps can be implemented:
[0103] Step S110, querying a preset light intensity E0 of a light source at a preset position.
[0104] In this embodiment, the lighting device 1 is used in the user's home, such as a living room, bedroom, study, etc. The device can be a smart lamp such as a desk lamp, ceiling lamp, chandelier, etc., which is mainly used to provide lighting services for users to meet their learning and living needs. The preset position refers to a position frequently used by the user near the lighting device 1, such as a desk in a study, a dressing table in a bedroom, a dining table and a coffee table in a living room, a sofa and a coffee table in an entertainment room, etc.
[0105] Generally, the light sources of the lighting devices 1 at different positions are preset with different preset light intensities E0. Specifically, the lighting modes of the lighting device 1 can be classified and set in advance, and the lighting modes may include, but are not limited to, reading mode, rest mode, dining mode, and entertainment mode. Among them, different lighting modes are preset with different brightness and / or light intensity, and the brightness and / or light intensity are used to meet the user's lighting needs for reading, resting, dining and entertainment respectively. For example, usually, the optimal light intensity for users to read is 600cd (cd: candela), the optimal light intensity for users to rest is 400cd, the optimal light intensity for users to dine is 800cd, and the optimal light intensity for users to entertain is 1000cd. Therefore, in this embodiment, when the lighting mode is a reading mode, the preset light intensity E0 of the lighting device 1 can be set to 600 cd (cd: candela); when the lighting mode is a rest mode, the preset light intensity E0 can be set to 400 cd; when the lighting mode is a dining mode, the preset light intensity E0 can be set to 800 cd; when the lighting mode is an entertainment mode, the preset light intensity E0 can be set to 1000 cd.
[0106] In this embodiment, the lighting device 1 can query the preset light intensity E0 of the light source of the lighting device 1 in real time or at a fixed time. In another embodiment, before querying the preset light intensity E0 of the light source, the lighting device 1 can also query the current lighting mode of the lighting device 1, and the current lighting mode at least includes reading mode, rest mode, dining mode, and entertainment mode; and then query the preset light intensity E0 in the corresponding lighting mode. In addition, in another embodiment, the lighting device 1 can also be connected to a camera, and the above-mentioned steps of querying the current lighting mode of the lighting device 1 and the preset light intensity E0 in the corresponding lighting mode are performed when and only when the camera captures the user image at the preset position.
[0107] Step S120: detecting a first actual light intensity E1 at a preset position.
[0108] As described above, the preset position is a position frequently used by users near the lighting device 1. In this embodiment, at least one light intensity detector, such as a light intensity detector, a light intensity tester, a light illuminance meter, etc., may be arranged at the preset position to detect the actual light intensity at the preset position. The actual light intensity may include the first actual light intensity E1.
[0109] Step S130: comparing the preset light intensity E0 with the first actual light intensity E1.
[0110] In this embodiment, after obtaining the first actual illumination intensity E1 of the preset position, the first actual illumination intensity E1 can be compared with the preset illumination intensity E0 to determine whether the actual illumination intensity of the preset position meets the preset optimal illumination intensity. For example, if the illumination mode of the illumination device 1 is the reading mode, the preset illumination intensity E0 of the illumination device 1 queried above is generally 600cd. At this time, if the first actual illumination intensity E1 detected is 300cd, the embodiment can compare 600cd with 300cd to determine whether the actual illumination intensity of the preset position is consistent with the expected situation. That is, compare whether there is a large difference between the preset illumination intensity E0 and the first actual illumination intensity E1, and whether the two are inconsistent.
[0111] Step S140, calculating a power adjustment value P according to the comparison result, a height h between the light source and the preset position plane, and an angle β between the light source direction and the vertical direction.
[0112] like Figure 3As shown, it is a schematic diagram of the light source illumination provided in this embodiment. It can be seen from the figure that the plane perpendicular to the illumination direction of the light source of the lighting device 1 is N, and the preset position plane where the user is located is H, the preset light intensity of the preset position is E0, the first actual light intensity is E1, the height of the light source of the lighting device 1 and the preset position plane H is h, the default illumination power of the light source is p0, the luminous efficiency parameter is k, and the angle between the light source direction and the vertical direction is β.
[0113] When the preset light intensity E0 and the first actual light intensity E1 are significantly different and inconsistent, it is necessary to adjust the light source output power of the lighting device 1 to reduce or increase the light intensity at the preset position. In this embodiment, the calculation formula of the power adjustment value P is:
[0114]
[0115] Where E0 is the preset light intensity, E1 is the first actual light intensity, h is the height between the light source and the preset position plane, p0 is the default irradiation power of the light source, k is the luminous efficiency parameter of the light source, and θ is the complementary angle of the angle β between the light source direction and the vertical direction.
[0116] Step S150: adjusting the power value according to the power The lighting power of the light source is adjusted so that the first actual illumination intensity E1 at the preset position is consistent with the preset illumination intensity E0.
[0117] As described above, when the power adjustment value is calculated When the lighting device 1 controls the output power of the light source to adjust, based on the original output power, reduce or increase The output power of the power value, that is, adjust the original output power up or down In other words, if the first actual illumination intensity E1 is less than the preset illumination intensity E0, then the original output power of the lighting device 1 is increased by If the first actual illumination intensity E1 is not less than the preset illumination intensity E0, then the original output power of the lighting device 1 is reduced by In this way, the first actual illumination intensity E1 at the preset position is as consistent as possible with the preset illumination intensity E0.
[0118] Through the above steps S110-S150, the lighting device 1 proposed in the present invention detects the actual light intensity at a preset position, and compares the actual light intensity with the preset optimal light intensity, and then calculates the output power adjustment value of the lighting device that needs to be adjusted through a preset light intensity power conversion formula, thereby realizing automatic adjustment of the output power of the lighting device, and improving the intelligence level of the lighting device and user experience.
[0119] Furthermore, based on the above-mentioned embodiment 1 of the lighting device 1 of the present invention, embodiment 2 of the lighting device 1 of the present invention is proposed.
[0120] In this embodiment, the computer program instructions are executed by the processor 12. When implementing step S130, the following steps may be implemented:
[0121] Step S131, calculate the difference between the preset light intensity E0 and the first actual light intensity E1, and determine whether the difference exceeds a preset threshold. If yes, execute step S140; if no, end the process.
[0122] In this embodiment, the standard for judging whether the actual light intensity is consistent with the preset light intensity is: whether the difference between the preset light intensity E0 and the first actual light intensity E1 exceeds a preset threshold. The preset threshold refers to a preset floating range value, that is, the actual light intensity can be higher or lower than the preset light intensity, as long as it does not exceed the range, the light intensity of the two is consistent. Furthermore, when the lighting mode of the lighting device 1 is different, the preset threshold value may also be a different floating range value, for example: when the lighting mode of the lighting device 1 is a reading mode, the preset threshold value is ±70cd, that is, E0∈[E0-70cd, E0+70cd]; when the lighting mode is a rest mode, the preset threshold value is ±50cd, that is, E0∈[E0-50cd, E0+50cd]; when the lighting mode is a dining mode, the preset threshold value is ±90cd, that is, E0∈[E0-90cd, E0+90cd]; when the lighting mode is an entertainment mode, the preset threshold value is ±110cd, that is, E0∈[E0-110cd, E0+110cd].
[0123] The step S140 specifically includes:
[0124] Step S141: adjusting the power value according to the Adjust the lighting power of the light source The power value.
[0125] In this embodiment, when the power adjustment value P is calculated, the lighting device 1 controls the output power of the light source to adjust, and reduces or increases the output power of the P power value on the basis of the original output power, that is, adjusts the ±P power value above and below the original output power. In other words, if the first actual light intensity E1 is less than the preset light intensity E0, the P power value is increased on the basis of the original output power of the lighting device 1. If the first actual light intensity E1 is not less than the preset light intensity E0, the P power value is reduced on the basis of the original output power of the lighting device 1.
[0126] Step S142, detecting a second actual illumination intensity E2 at the preset position.
[0127] As described above, after adjusting the output power of the lighting device 1, this embodiment also needs to re-detect the actual light intensity value of the preset position, that is, detect the second actual light intensity E2 of the preset position to verify whether the actual light intensity value of the preset position is consistent with the preset light intensity value E0.
[0128] Step S143, calculating the difference between the preset light intensity E0 and the second actual light intensity E2, and determining whether the difference exceeds a preset threshold; if so, executing step S144; if not, ending the process.
[0129] In this embodiment, the preset threshold is mainly used to measure whether the preset light intensity E0 and the second actual light intensity E2 are consistent. Therefore, the preset threshold can be consistent with the preset threshold in step S131, that is, when the lighting mode of the lighting device 1 is different, the preset threshold can also be a different floating range value. For example: when the lighting mode of the lighting device 1 is a reading mode, the preset threshold is ±70cd, that is, E0∈[E0-70cd, E0+70cd]; when the lighting mode is a rest mode, the preset threshold is ±50cd, that is, E0∈[E0-50cd, E0+50cd]; when the lighting mode is a dining mode, the preset threshold is ±90cd, that is, E0∈[E0-90cd, E0+90cd]; when the lighting mode is an entertainment mode, the preset threshold is ±110cd, that is, E0∈[E0-110cd, E0+110cd].
[0130] Step S144, the adjusted light source illumination power is adjusted again to a power value of ±0.036p0.
[0131] In this embodiment, when the second actual light intensity E2 is inconsistent with the preset light intensity E0, it means that the first adjustment is not in place. However, since a relatively large power adjustment has been made once, it is not appropriate to make a large power adjustment again. In addition, it is found through research that after the first large power adjustment, only a small power adjustment is needed to make the actual light intensity provided by the adjusted lighting device 1 close to or even consistent with the preset light intensity E0.
[0132] Therefore, in this embodiment, when it is found that the second actual illumination intensity E2 is inconsistent with the preset illumination intensity E0, the adjusted light source illumination power can be adjusted again by a power value of ±0.036p0. That is, if the second actual illumination intensity E2 is not less than the preset illumination intensity E0, the power value is reduced by 0.036p0 on the basis of the adjusted output power; if the second actual illumination intensity E2 is less than the preset illumination intensity E0, the power value is increased by 0.036p0 on the basis of the adjusted output power.
[0133] Through the above steps S131-S144, the lighting device 1 proposed by the present invention compares the difference between the actual light intensity and the preset light intensity, and only when the difference exceeds the preset threshold value, the power is adjusted according to the comparison result. In addition, after the power adjustment, the difference between the adjusted actual light intensity and the preset light intensity is checked again, and then a second adjustment is performed. In this way, the actual light intensity is made as close as possible to the preset light intensity, and the power adjustment accuracy of the lighting device 1 is improved.
[0134] Furthermore, based on the above-mentioned Embodiment 1 and Embodiment 2 of the lighting device 1 of the present invention, Embodiment 3 of the lighting device 1 of the present invention is proposed.
[0135] In this embodiment, when the computer program instructions are executed by the processor 12, after implementing step S144, the following steps may also be implemented:
[0136] Step S145 , detecting a third actual illumination intensity E3 at the preset position.
[0137] Step S146, calculating the difference between the preset light intensity E0 and the second actual light intensity E3, and determining whether the difference exceeds the preset threshold. If so, executing step S147; if not, ending the process.
[0138] Step S147, the adjusted light source illumination power is adjusted again to a power value of ±0.036p-0.
[0139] It should be noted that the above-mentioned third adjustment is only an example. In this embodiment, if the preset light intensity E0 is still inconsistent with the actual light intensity value after this adjustment, the "detection-judgment-adjustment" cycle such as step S145-step S147 can be started again as needed until the preset light intensity E0 is consistent with the actual light intensity value.
[0140] Through the above steps S145-S147, the lighting device 1 proposed in the present invention compares the actual light intensity after the second power adjustment with the preset light intensity. When the actual light intensity is still inconsistent with the preset light intensity, the power value is fine-tuned again to ensure that the actual light intensity gradually approaches the preset light intensity, thereby further improving the accuracy of the automatic adjustment of the lighting device 1.
[0141] Finally, the present invention also provides a computer-readable storage medium.
[0142] In this embodiment, the computer readable storage medium stores computer program instructions, and when the computer program instructions are executed by at least one processor 12, the illumination adjustment method as described above can be implemented. As the above description has been very detailed, it will not be repeated here.
[0143] Based on all the examples shown and described herein above, any specific values should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.
[0144] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not require further definition and explanation in subsequent drawings.
[0145] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned implementation methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the implementation methods of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the various implementation methods provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0146] The above-described embodiments only express several embodiments of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the scope of protection of the claims of the present invention.
Claims
1. A method for adjusting illumination, characterized in that: include: Query the preset light intensity at the preset position ; Detecting a first actual light intensity at a preset position ; Compare the preset light intensity The actual light intensity ; According to the comparison result, the height of the light source and the preset position plane , the angle β between the light source direction and the vertical direction, calculate the power adjustment value ; as well as According to the power adjustment value , adjust the lighting power of the light source so that the first actual light intensity at the preset position With the preset light intensity Consistency; According to the illumination adjustment method, the power adjustment value The calculation formula is as follows: in, To preset the light intensity, is the first actual light intensity, is the height between the light source and the preset position plane, is the default irradiation power of the light source, is the luminous efficiency parameter of the light source, The complementary angle of the angle β between the light source direction and the vertical direction .
2. The illumination adjustment method according to claim 1, characterized in that: Querying the preset light intensity at the preset location Before the steps, also include: The lighting mode of the light source at the preset position is queried, where the lighting mode at least includes a reading mode, a rest mode, a dining mode, and an entertainment mode.
3. The illumination adjustment method according to claim 2, characterized in that: When the lighting mode is the reading mode, the preset light intensity is 600cd (cd: candela); when the lighting mode is the rest mode, the preset light intensity When the lighting mode is dining mode, the preset light intensity is 400cd. When the lighting mode is entertainment mode, the preset light intensity is 800cd. It is 1000cd.
4. The illumination adjustment method according to claim 3, characterized in that: The comparing the preset light intensity The actual light intensity The steps include: Calculate the preset light intensity The actual light intensity and determining whether the difference exceeds a preset threshold; If yes, then calculate the power adjustment value Steps; If not, the process ends.
5. The illumination adjustment method according to claim 4, characterized in that: When the lighting mode is a reading mode, the preset threshold is ±70 cd; when the lighting mode is a resting mode, the preset threshold is ±50 cd; when the lighting mode is a dining mode, the preset threshold is ±90 cd; when the lighting mode is an entertainment mode, the preset threshold is ±110 cd.
6. The illumination adjustment method according to any one of claims 1 to 5, characterized in that: The power adjustment value , adjust the lighting power of the light source so that the first actual light intensity at the preset position With the preset light intensity The consistent steps include: According to the power adjustment value , adjust the lighting power of the light source to ± The power value; Detecting a second actual light intensity at the preset position ; Calculate the preset light intensity The actual light intensity of the second and determining whether the difference exceeds a preset threshold; If yes, adjust the adjusted light source lighting power again by ±0.036 The power value; If not, the process ends.
7. The illumination adjustment method according to claim 6, characterized in that: After adjusting the light source lighting power, adjust it again by ±0.036 After the power value step, it also includes: Detecting a third actual light intensity at the preset position ; Calculate the preset light intensity The actual light intensity of the second and determining whether the difference exceeds a preset threshold; If yes, adjust the adjusted light source lighting power again by ±0.036 The power value; If not, the process ends.
8. A lighting device, characterized in that: The device comprises a memory, a processor, and computer program instructions stored in the memory and executable by the processor. When the computer program instructions are executed by the processor, the method according to any one of claims 1 to 7 can be implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by at least one processor, the method according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Energy-saving, self-adaptive and intelligent streetlamp system
CN107872911A
Method, a device, a computer device and a storage medium for shooting and supplementing light
CN109040611A