A method, device, terminal equipment and storage medium for controlling lamp bead brightness
By acquiring and comparing photosensitive data in the lighting system, setting saturation values and controlling the light switch, the error shutdown problem caused by the photosensitive element's inability to recognize its own lights is solved, and the maximum fill light effect is achieved.
Patent Information
- Application Number
- CN202210549185.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-20
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2042-05-20
AI Technical Summary
The photosensitive elements in the prior art cannot recognize their own lights well in the lighting system, resulting in abnormal working state in which the lights are turned off in a light environment, and the maximum filling light cannot be achieved.
By acquiring the first photosensitive data and the preset startup value, a light-on signal is sent if it is less than the startup value; after acquiring the second photosensitive data and meeting the preset conditions, a saturation value is set based on the second photosensitive data; by acquiring the third photosensitive data and a saturation value, a light-off signal is sent if it is greater than the saturation value.
This avoids the abnormal flashing state in which the light is constantly activated in the dark environment, ensuring that the system does not turn off the light accidentally in the bright environment, and achieves the maximum fill light effect.
Smart Images

Figure CN114828357B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent lamps, and in particular to a method, device, terminal equipment and storage medium for controlling the brightness of lamp beads. Background Art
[0002] With the development of electronic technology, lighting has become more and more intelligent. Current automatic energy-saving lighting equipment uses photosensitive elements to better distinguish the brightness of light on site and start system lighting in a targeted manner to achieve the most efficient use of energy.
[0003] However, when the photosensitive element in the prior art works in the lighting system, it is often unable to identify its own light well, and the light is often turned off by mistake in an abnormal working state, and the maximum fill light cannot be achieved.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a method, device, terminal equipment and storage medium for controlling the brightness of lamp beads, aiming to solve the problem in the prior art that the system cannot identify its own lights well, resulting in an abnormal working state in which the lights are mistakenly turned off in a bright environment, and the maximum fill light cannot be achieved.
[0006] The technical solution of the present invention is as follows: A method for controlling the brightness of a lamp bead comprises the following steps:
[0007] Acquire the first light-sensing data and compare it with the preset start-up value, and send a light-on signal if the first light-sensing data is less than the start-up value;
[0008] Acquire the second photosensitive data, and after the preset condition is met, set the saturation value according to the second photosensitive data;
[0009] The third light-sensing data is obtained and compared with the saturation value. If the third light-sensing data is greater than the saturation value, a light-off signal is sent.
[0010] In some embodiments, the step of acquiring the second light-sensing data and setting the saturation value according to the second light-sensing data after a preset condition is met specifically includes:
[0011] Acquire the second light-sensitive data, and compare it with the preset intermediate value;
[0012] If the second photosensitive data is less than the middle value, the second photosensitive data is set to a saturation value.
[0013] In some embodiments, the step of acquiring the second light-sensing data and, after a preset condition is met, setting the saturation value according to the second light-sensing data specifically further includes:
[0014] Acquire second light-sensing data and a preset first constant;
[0015] The sum of the second photosensitive data and the first constant is set as a saturation value.
[0016] In some embodiments, the steps are further included:
[0017] After processing the light-off signal, the fourth light-sensing data is obtained, and it is determined whether the lamp bead is in the on state. If it is determined to be yes, the fourth light-sensing data is compared with the saturation value. If the fourth light-sensing data is greater than the saturation value, a light-off signal is sent.
[0018] In some embodiments, the steps are further included:
[0019] After processing the light-off signal, the fourth photosensitive data is obtained, and it is determined whether the lamp bead is in the on state. If it is determined to be no, the fourth photosensitive data is compared with the start-up value. If the fourth photosensitive data is less than the start-up value, a light-on signal is sent, and the fifth photosensitive data is obtained. The fifth photosensitive data is compared with the saturation value. If the fifth photosensitive data is greater than the saturation value, return to obtain the fourth photosensitive data again.
[0020] In some embodiments, the steps are further included:
[0021] After processing the light-off signal, the fourth light-sensing data is obtained, and it is determined whether the lamp bead is in the on state. If it is determined to be no, the fourth light-sensing data is compared with the start-up value. If the fourth light-sensing data is greater than the start-up value, a light-off signal is sent.
[0022] In some embodiments, the steps are further included:
[0023] After processing the light-off signal, the fourth photosensitive data is obtained, and it is determined whether the lamp bead is in the on state. If it is judged to be no, the fourth photosensitive data is compared with the start-up value. If the fourth photosensitive data is less than the start-up value, a light-on signal is sent, and the fifth photosensitive data is obtained. The fifth photosensitive data is compared with the saturation value. If the fifth photosensitive data is less than the saturation value, the light brightness is adjusted, and the fifth photosensitive data is returned to be obtained again.
[0024] A device for controlling the brightness of a lamp bead, using the above-mentioned method for controlling the brightness of a lamp bead, the device comprises the following components: a power supply module, a processor, a lighting module, a photosensitive module and a dimming module;
[0025] The power supply module is respectively connected to the dimming module, the processor and the photosensitive module; the dimming module is respectively connected to the power supply module, the lighting module and the processor; the processor is respectively connected to the power supply module, the lighting module and the dimming module; the photosensitive module is respectively connected to the power supply module and the processor; the lighting module is connected to the dimming module;
[0026] The photosensitive module senses the light intensity of the lighting module and the outside world and transmits it to the processor. The processor transmits a control signal to the dimming module, so that the dimming module adjusts the lighting module switch.
[0027] A terminal device comprises a memory, a processor and a lamp bead brightness control program stored in the memory and executable on the processor, wherein when the processor executes the lamp bead brightness control program, the steps of the lamp bead brightness control method as described above are implemented.
[0028] A computer-readable storage medium stores a control program for lamp bead brightness. When the control program for lamp bead brightness is executed by a processor, the steps of the method for controlling lamp bead brightness as described above are implemented.
[0029] In this way, the present invention proposes a method, device, terminal equipment and storage medium for controlling the brightness of lamp beads, which obtains the first photosensitive data and compares it with the preset starting value. If the first photosensitive data is less than the starting value, a light-on signal is sent; the second photosensitive data is obtained, and after the preset conditions are met, a saturation value is set according to the second photosensitive data; the third photosensitive data is obtained and compared with the saturation value. If the third photosensitive data is greater than the saturation value, a light-off signal is sent, which can avoid the system from having an abnormal flashing working state in which the lights are constantly started in a dark environment, and solves the problem in the prior art that the lights are mistakenly turned off in a bright environment due to the inability to identify the lights well, and the maximum fill light cannot be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is an overall flow chart of a control method, device, terminal device and storage medium embodiment of a lamp bead brightness control method of the present invention;
[0031] Figure 2 This is a process of a method for controlling the brightness of a lamp bead of the present invention. Figure 1 ;
[0032] Figure 3 This is a process of a method for controlling the brightness of a lamp bead of the present invention. Figure 2 ;
[0033] Figure 4 This is a process of a method for controlling the brightness of a lamp bead of the present invention. Figure 3 ;
[0034] Figure 5 It is a circuit connection diagram of a device for controlling the brightness of a lamp bead according to the present invention;
[0035] Figure 6 It is a system connection diagram of a device for controlling the brightness of a lamp bead of the present invention;
[0036] Explanation of the accompanying drawings: 1. Power supply module; 2. Processor; 3. Lighting module; 4. Photosensitive module; 5. Dimming module. DETAILED DESCRIPTION
[0037] The present invention provides a method, device, terminal device and storage medium for controlling the brightness of a lamp bead. In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is described in detail in some embodiments with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0038] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0039] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0040] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" 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 connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0041] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0042] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "upper", "lower", "left", "right" and similar expressions used herein are for illustrative purposes only and are not intended to be the only implementation method.
[0043] With the development of electronic technology, lighting has become more and more intelligent. Current automatic energy-saving lighting equipment uses photosensitive elements to better distinguish the brightness of the light on site and start the system lighting in a targeted manner to achieve the most efficient use of energy. However, when the photosensitive elements in the prior art work in the lighting system, they often cannot identify their own lights well, and often appear in abnormal working states where the lights are turned off by mistake, and cannot achieve maximum fill light.
[0044] In order to solve the above technical problems, the present invention proposes a control method, device, terminal equipment and storage medium for the brightness of lamp beads, which solves the problem in the prior art that the system cannot recognize its own light well, resulting in an abnormal working state in which the light is mistakenly turned off in a bright environment and cannot achieve maximum fill light. In specific implementation, the first photosensitive data is obtained and compared with the preset start value. If the first photosensitive data is less than the start value, a light-on signal is sent; the second photosensitive data is obtained, and after the preset conditions are met, a saturation value is set according to the second photosensitive data; the third photosensitive data is obtained and compared with the saturation value. If the third photosensitive data is greater than the saturation value, a light-off signal is sent. The present invention obtains first photosensitive data of ambient light and compares it with the start-up value. If the first photosensitive data is less than the start-up value, a light-on signal is sent to turn on the light in time. The second photosensitive data of the light itself is obtained, and after the preset conditions are met, a saturation value is set according to the second photosensitive data to adjust the brightness of the light. The third photosensitive data of the light itself is obtained and compared with the saturation value. If the third photosensitive data is greater than the saturation value, a light-off signal is sent. This can not only avoid the abnormal flashing working state of the light being continuously started in the dark environment, but also can well identify the light itself, avoid the abnormal working state of the light being mistakenly turned off in the bright environment, and achieve the problem of maximum fill light.
[0045] In the above scheme, by obtaining the first photosensitive data and comparing it with the preset start-up value, if the first photosensitive data is less than the start-up value, a light-on signal is sent; the second photosensitive data is obtained, and after the preset conditions are met, a saturation value is set according to the second photosensitive data; the third photosensitive data is obtained and compared with the saturation value, if the third photosensitive data is greater than the saturation value, a light-off signal is sent, which can avoid the system from having an abnormal flashing working state in which the lights are constantly started in a dark environment, and solves the problem in the prior art that the lights are mistakenly turned off in a bright environment due to the inability to identify the lights well, and the maximum fill light cannot be achieved.
[0046] Exemplary Methods
[0047] In some embodiments, a method for controlling the brightness of a lamp bead proposed in this application can be applied to a lighting system. In this embodiment, Figure 1 and Figure 2 As shown, the method for controlling the brightness of the lamp beads specifically includes the following steps:
[0048] S100, obtaining first light-sensing data and comparing it with a preset start-up value, and sending a light-on signal if the first light-sensing data is less than the start-up value.
[0049] During specific implementation, a starting value is pre-set according to the indoor light conditions, the first photosensitive data is obtained, and compared with the starting value. If it is less than the starting value, it is judged as yes and the light-on action is executed to ensure that when the environment is in a low light state, the lamp beads are turned on in time to supplement the light.
[0050] Step S100 further includes step S110:
[0051] S110: If the first light-sensing data is greater than the start value, return to obtain the first light-sensing data again.
[0052] In specific implementation, if it is greater than the start value, it is judged as no, and the process returns to obtain the first photosensitive data and executes the above cycle, so that the light state that requires turning on the light can be detected at any time, and the light-on action can be performed in time, so that when the ambient light is relatively sufficient, there is no need to turn on the lamp beads, and the real-time acquisition of the first photosensitive data is sufficient.
[0053] S200, acquiring second light-sensing data, and after a preset condition is met, setting a saturation value according to the second light-sensing data.
[0054] In specific implementation, after turning on the light, the lamp bead emits light, and the second photosensitive data of the light emitted by the lamp bead is obtained to determine whether the preset conditions are met. After the preset conditions are met, the saturation value is set according to the second photosensitive data, and the saturation value is assigned to facilitate subsequent judgment on whether the light needs to be turned off.
[0055] Step S200 includes the following steps S210, S220, and S230:
[0056] S210, obtaining second light-sensing data, and comparing the data with a preset intermediate value.
[0057] S220: If the second photosensitive data is less than the middle value, set the second photosensitive data to a saturation value.
[0058] S230: If the second light-sensing data is not less than the middle value, adjust the brightness of the lamp beads, and return to obtain the second light-sensing data again.
[0059] When implementing it, Figure 2 As shown, an intermediate value is set in advance, the second photosensitive data A is obtained, and compared with the preset intermediate value. If the second photosensitive data is less than the intermediate value, it is judged as yes, and the second photosensitive data is set to the saturation value B; if the second photosensitive data is not less than the intermediate value, it is judged as no, the brightness of the lamp bead is adjusted, and the second photosensitive data is obtained again to facilitate subsequent judgment on whether the light needs to be turned off.
[0060] S300, obtaining third light-sensing data and comparing it with the saturation value, and sending a light-off signal if the third light-sensing data is greater than the saturation value.
[0061] In the specific implementation, the saturation value in step S200 is obtained, the third photosensitive data is obtained, and the third photosensitive data is compared with the saturation value. If it is greater than the saturation value, it is judged as yes, and a light-off signal is sent to execute the light-off action, so that the light can be turned off in time to save energy.
[0062] After step S300, the method further includes step S310:
[0063] S310: If the third light-sensing data is not greater than the saturation value, return to obtain the third light-sensing data again.
[0064] In specific implementation, the saturation value in step S200 is obtained, the third photosensitive data is obtained, and the third photosensitive data is compared with the saturation value. If it is not greater than the saturation value, return to obtain the third photosensitive data again to promptly determine whether the light needs to be turned off so that the light can be turned off in time.
[0065] This application also proposes another implementation method, such as Figure 3 As shown, in the case where step S200 does not use steps S210, S220 and S230, step S200 further includes the following steps S240, S250
[0066] S240, obtaining second light-sensing data and a preset first constant.
[0067] S250: Set the sum of the second photosensitive data and the first constant as a saturation value.
[0068] In specific implementation, according to the actual conditions and lighting requirements of the scene, the first constant M is pre-set, the second photosensitive data A and the first constant M are obtained, and the sum of the second photosensitive data A and the first constant M is set to the saturation value B for subsequent judgment of the light-off condition.
[0069] This application also proposes another implementation method, such as Figure 4 As shown, the method for controlling the brightness of the lamp beads also includes the following steps:
[0070] S400, after processing the light-off signal, obtain the fourth light-sensing data and determine whether the lamp bead is in the on state. If it is determined to be yes, compare the fourth light-sensing data with the saturation value. If the fourth light-sensing data is greater than the saturation value, send a light-off signal.
[0071] During specific implementation, after processing the light-off signal, that is, after the lamp bead is turned off, the fourth photosensitive data C is obtained in real time, and it is determined whether the lamp bead is in the on state. If it is determined to be yes, the fourth photosensitive data C is compared with the saturation value B. If the fourth photosensitive data C is greater than the saturation value B, a light-off signal is sent. When the light is turned on manually, it can be determined whether the light needs to be turned on in the place where the lamp bead is used based on the light signal emitted by the lamp bead, so as to ensure that the light is turned off in time when it is not needed, thereby saving electricity.
[0072] or includes step S500
[0073] S500, after processing the light-off signal, obtain the fourth photosensitive data and determine whether the lamp bead is in the on state. If it is determined to be yes, compare the fourth photosensitive data with the saturation value. If the fourth photosensitive data is not greater than the saturation value, return to obtain the fourth photosensitive data again.
[0074] During specific implementation, after processing the light-off signal, that is, after the lamp bead is turned off, the fourth photosensitive data C is obtained in real time, and it is determined whether the lamp bead is in the on state. If it is determined to be yes, the fourth photosensitive data C is compared with the saturation value B. If the fourth photosensitive data C is not greater than the saturation value B, it returns to obtain the fourth photosensitive data C again. When the light needs to be turned on, the light can be maintained in the on state, and the fourth photosensitive data C can be continuously obtained in real time to determine whether it is greater than the saturation value B in real time, so as to determine whether to maintain the light on or off state according to the ambient brightness.
[0075] or includes step S600
[0076] S600, after processing the light-off signal, obtain the fourth photosensitive data and determine whether the lamp bead is in the on state. If it is determined to be no, compare the fourth photosensitive data with the start-up value. If the fourth photosensitive data is less than the start-up value, send a light-on signal and obtain the fifth photosensitive data. Compare the fifth photosensitive data with the saturation value. If the fifth photosensitive data is greater than the saturation value, return to obtain the fourth photosensitive data again.
[0077] In specific implementation, after processing the light-off signal, that is, after the lamp bead is turned off, the fourth photosensitive data C is obtained in real time, and it is determined whether the lamp bead is in the on state. If it is determined to be no, the fourth photosensitive data C is compared with the start value E. If the fourth photosensitive data C is less than the start value E, a light-on signal is sent to ensure that the light is turned on in time, and the fifth photosensitive data D is obtained, and the fifth photosensitive data D is compared with the saturation value B. If the fifth photosensitive data D is greater than the saturation value B, it returns to obtain the fourth photosensitive data C again. After obtaining the fourth photosensitive data C again, the action can be continuously cyclically performed in steps S400-S800 according to the judgment of each step, which is not only convenient for timely adjusting the brightness of the lamp bead, but also can turn off the light in time when the brightness of the light is greater than the saturation value.
[0078] or including step S700
[0079] S700, after processing the light-off signal, obtain the fourth light-sensing data and determine whether the lamp bead is in the on state. If it is not, compare the fourth light-sensing data with the start-up value. If the fourth light-sensing data is greater than the start-up value, send a light-off signal.
[0080] During specific implementation, after processing the light-off signal, that is, after the lamp beads are turned off, the fourth photosensitive data C is obtained in real time, and it is determined whether the lamp beads are in the on state. If it is judged to be no, the fourth photosensitive data C is compared with the start value E. If the fourth photosensitive data C is greater than the start value E, it means that there is sufficient light and the lamp beads are not needed temporarily, so a light-off signal is sent to turn off the lamp beads.
[0081] Or including step S800
[0082] S800, after processing the light-off signal, obtain the fourth photosensitive data and determine whether the lamp bead is in the on state. If it is judged as no, compare the fourth photosensitive data with the start-up value. If the fourth photosensitive data is less than the start-up value, send a light-on signal and obtain the fifth photosensitive data. Compare the fifth photosensitive data with the saturation value. If the fifth photosensitive data is less than the saturation value, adjust the light brightness and return to obtain the fifth photosensitive data again.
[0083] During specific implementation, after processing the light-off signal, that is, after the lamp bead is turned off, the fourth photosensitive data C is obtained in real time, and it is determined whether the lamp bead is in the on state. If it is determined to be no, the fourth photosensitive data C is compared with the start value E. If the fourth photosensitive data C is less than the start value, a light-on signal is sent, and the fifth photosensitive data D is obtained. The fifth photosensitive data D is compared with the saturation value B. If the fifth photosensitive data D is less than the saturation value B, it indicates that the light is not sufficient, and the light brightness is adjusted. Then, the fifth photosensitive data D is obtained again, and then it is determined whether the fifth photosensitive data D is greater than the saturation value B again based on the obtained fifth photosensitive data D.
[0084] Exemplary Devices
[0085] like Figure 5 and 6 As shown, the present embodiment also provides a device for controlling the brightness of lamp beads, the device comprising the following components: a power supply module 1, a processor 2, a lighting module 3, a photosensitive module 4 and a dimming module 5; the power supply module is respectively connected to the dimming module, the processor and the photosensitive module; the dimming module is respectively connected to the power supply module, the lighting module and the processor; the processor is respectively connected to the power supply module, the lighting module and the dimming module; the photosensitive module is respectively connected to the power supply module and the processor; the lighting module is connected to the dimming module; the photosensitive module senses the light intensity of the lighting module and the outside world and transmits it to the processor, and the processor transmits the control signal to the dimming module, so that the dimming module adjusts the switch of the lighting module.
[0086] Based on the above embodiments, the present invention also provides a terminal device, which includes a memory, a processor, and a lamp bead brightness control program stored in the memory and runnable on the processor. When the processor executes the lamp bead brightness control program, the steps of the above-mentioned lamp bead brightness control method are implemented.
[0087] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant 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 embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an 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).
[0088] In summary, the present invention proposes a method, device, terminal equipment and storage medium for controlling the brightness of lamp beads, which obtains first photosensitive data and compares it with a preset start-up value. If the first photosensitive data is less than the start-up value, a light-on signal is sent; the second photosensitive data is obtained, and after the preset conditions are met, a saturation value is set according to the second photosensitive data; the third photosensitive data is obtained and compared with the saturation value. If the third photosensitive data is greater than the saturation value, a light-off signal is sent, which can avoid the system from having an abnormal flashing working state in which the lights are constantly started in a dark environment, and solves the problem in the prior art that the lights are mistakenly turned off in a bright environment due to the inability to identify the lights themselves, and the maximum fill light cannot be achieved.
[0089] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for controlling the brightness of a lamp bead, characterized in that: Includes steps: Acquire the first light-sensing data and compare it with the preset start-up value. If the first light-sensing data is less than the start-up value, send a light-on signal. If the first light-sensing data is greater than the start-up value, return to acquire the first light-sensing data again. Acquire the second photosensitive data, and after the preset condition is met, set the saturation value according to the second photosensitive data; The step of acquiring the second photosensitive data and setting the saturation value according to the second photosensitive data after the preset condition is met specifically includes: Acquire the second light-sensitive data, and compare it with the preset intermediate value; If the second photosensitive data is less than the middle value, setting the second photosensitive data to a saturation value; If the second light-sensing data is not less than the middle value, adjust the brightness of the lamp beads, and return to obtain the second light-sensing data again; Acquire the third light-sensing data and compare it with the saturation value. If the third light-sensing data is greater than the saturation value, send a light-off signal. If the third light-sensing data is not greater than the saturation value, return to acquire the third light-sensing data again. After processing the light-off signal, the fourth light-sensing data is obtained, and it is determined whether the lamp bead is in the on state. If it is determined to be yes, the fourth light-sensing data is compared with the saturation value. If the fourth light-sensing data is greater than the saturation value, a light-off signal is sent; After processing the light-off signal, the fourth light-sensing data is obtained, and it is determined whether the lamp bead is in the on state. If it is determined to be not, the fourth light-sensing data is compared with the start value. If the fourth light-sensing data is less than the start value, a light-on signal is sent, and the fifth light-sensing data is obtained. The fifth light-sensing data is compared with the saturation value. If the fifth light-sensing data is greater than the saturation value, it returns to obtain the fourth light-sensing data again; After processing the light-off signal, the fourth light-sensing data is obtained, and it is determined whether the lamp bead is in the on state. If it is determined to be not, the fourth light-sensing data is compared with the start value. If the fourth light-sensing data is greater than the start value, the light-off signal is sent; After processing the light-off signal, the fourth photosensitive data is obtained, and it is determined whether the lamp bead is in the on state. If it is judged to be no, the fourth photosensitive data is compared with the start-up value. If the fourth photosensitive data is less than the start-up value, a light-on signal is sent, and the fifth photosensitive data is obtained. The fifth photosensitive data is compared with the saturation value. If the fifth photosensitive data is less than the saturation value, the light brightness is adjusted, and the fifth photosensitive data is returned to be obtained again.
2. The method for controlling the brightness of a lamp bead according to claim 1, characterized in that: The step of acquiring the second light-sensing data and, after the preset conditions are met, setting the saturation value according to the second light-sensing data specifically further includes: Acquire second light-sensing data and a preset first constant; The sum of the second photosensitive data and the first constant is set as a saturation value.
3. A device for controlling the brightness of a lamp bead, characterized in that: The method for controlling the brightness of a lamp bead as described in any one of claims 1 to 2 is applied, wherein the device comprises the following components: a power supply module, a processor, a lighting module, a photosensitive module and a dimming module; The power supply module is respectively connected to the dimming module, the processor and the photosensitive module; the dimming module is respectively connected to the power supply module, the lighting module and the processor; the processor is respectively connected to the power supply module, the lighting module and the dimming module; the photosensitive module is respectively connected to the power supply module and the processor; the lighting module is connected to the dimming module; The photosensitive module senses the light intensity of the lighting module and the outside world and transmits it to the processor. The processor transmits a control signal to the dimming module, so that the dimming module adjusts the lighting module switch.
4. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a lamp bead brightness control program stored in the memory and runnable on the processor. When the processor executes the lamp bead brightness control program, the steps of the lamp bead brightness control method as described in any one of claims 1-2 are implemented.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a control program for the brightness of the lamp beads. When the control program for the brightness of the lamp beads is executed by the processor, the steps of the method for controlling the brightness of the lamp beads as described in any one of claims 1-2 are implemented.
Citation Information
Patent Citations
Method and sensor for detecting ambient illumination in lamp
WO2018064834A1