CN110677962B - Illumination control method, illumination control device, computer equipment and storage medium - Google Patents
Illumination control method, illumination control device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110677962B CN110677962B CN201910891783.XA CN201910891783A CN110677962B CN 110677962 B CN110677962 B CN 110677962B CN 201910891783 A CN201910891783 A CN 201910891783A CN 110677962 B CN110677962 B CN 110677962B
- Authority
- CN
- China
- Prior art keywords
- illumination
- information
- illuminance
- voltage signal
- coefficient
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The embodiment of the invention discloses an illumination control method, which comprises the following steps: acquiring a microwave signal, and acquiring motion information of a target area of the lighting equipment based on the microwave signal; acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information; and controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information. The illumination control method can realize intelligent control of the illumination equipment, and is beneficial to achieving the dual effects of energy conservation and emission reduction and using the illumination equipment as required. Furthermore, a lighting control apparatus, a computer device and a storage medium are proposed.
Description
Technical Field
The invention relates to the technical field of intelligent illumination, in particular to an illumination control method, an illumination control device, computer equipment and a storage medium.
Background
With the development of intelligent lighting technology, in order to reduce light pollution and respond to green and environment protection, the range of light radiation of moving objects around the lighting lamp is usually detected, and then the lighting system is automatically controlled according to the detection result, so that the purpose of energy conservation is achieved. However, on one hand, the camera is currently used to monitor the movement of the object, which needs to be determined according to the movement position of the human body, and the process is complex and the accuracy is low. On the other hand, on the aspect of detecting the illumination of the lamp light, the illumination is directly determined through a voltage signal generated by the illumination sensor, the illumination range is very limited, the detection efficiency is reduced, and the intelligent degree of illumination is influenced.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a lighting control method, a lighting control apparatus, a computer device, and a storage medium, which can implement intelligent control of a lighting system.
A lighting control method, characterized in that the method comprises:
acquiring a microwave signal, and acquiring motion information of a target area of the lighting equipment based on the microwave signal;
acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information;
and controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information.
A lighting control apparatus, the apparatus comprising:
the motion information acquisition module is used for acquiring a microwave signal and acquiring motion information of a target area of the lighting equipment based on the microwave signal;
the illuminance information acquisition module is used for acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is obtained by calculation based on a corresponding relation between an actual voltage signal and actual illuminance information;
and the control module is used for controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring a microwave signal, and acquiring motion information of a target area of the lighting equipment based on the microwave signal;
acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information;
and controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a microwave signal, and acquiring motion information of a target area of the lighting equipment based on the microwave signal;
acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information;
and controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information.
According to the illumination control method, the illumination control device, the computer equipment and the storage medium, the microwave signal is obtained, and the motion information of the target area of the illumination equipment is obtained based on the microwave signal; acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information; and controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information. The illumination control method can realize intelligent control of the illumination equipment, and is beneficial to achieving the dual effects of energy conservation and emission reduction and using the illumination equipment as required.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram of a lighting control method in one embodiment;
FIG. 2 is a flow diagram of a method for obtaining athletic information in one embodiment;
FIG. 3 is a flow chart of a method of obtaining motion information in another embodiment;
FIG. 4 is a flow chart of a lighting control method in another embodiment;
FIG. 5 is a flow chart of a lighting control method in yet another embodiment;
FIG. 6 is a flow chart of a lighting control method in yet another embodiment;
FIG. 7 is a block diagram showing the structure of a lighting control device according to an embodiment;
FIG. 8 is a block diagram of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, in an embodiment, a lighting control method is provided, where the lighting control method is applicable to both a terminal and a server, and specifically includes the following steps:
The microwave signal is a signal generated by a microwave sensor based on a microwave induction technology, and is used for detecting whether motion information exists in a target area of the lighting equipment, and a sine wave is generated when the motion signal is detected, wherein the higher the motion speed is, the larger the amplitude of the sine wave is, so that the motion information of the target area can be determined according to the microwave signal. The target area refers to an area which is close to the area where the lighting device is located, and exemplarily, the maximum area which can be radiated by the lighting device can be tested as the target area. The motion information is information indicating whether a person or an object moves in the target area, and is used as a basis for controlling the illumination of the illumination device at the server side.
And 104, acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information.
The voltage information is a voltage signal of the illuminance sensor in the surrounding environment of the lighting device, i.e., the target area, and is used for determining the illuminance information of the target area. The illuminance coefficient is an index reflecting a conversion relationship between the illuminance information and the illuminance signal, and is calculated based on a correspondence relationship between the actual voltage signal and the actual illuminance information.
It should be noted that, because the voltage signal is collected by the single chip microcomputer in the illuminance sensor, and the interval range of the voltage signal value that can be read by the single chip microcomputer is 0 to 3.3V, the illuminance value collected by the corresponding illuminance sensor is 0 to 20Wlux (lux), that is, it is difficult to collect illuminance information of more than 20Wlux by using the illuminance sensor under normal conditions. Therefore, in the present embodiment, two chips, namely, LM2904 and CD4051 are used, wherein the CD4051 chip implements channel selection, and the chip outputs one of pins C0-C7 by controlling three pins ABC. The resistors with different resistance values are connected to the pins C0-C7, voltage signals output by the sensor are weak, the voltage signals are amplified by selecting different resistance values according to the principle of voltage division, corresponding resistors are selected by comparing the voltage signal values, and then different amplifying circuits are controlled, so that the illumination sensor can detect illumination intensity in a larger range.
Furthermore, in the process of calculating the illumination coefficient, a plurality of gears are divided according to the actual value of the illumination information and the actual value of the voltage signal, that is, one voltage signal range corresponds to one illumination information range, that is, one gear, and the gear in which the voltage signal value is located is judged, and then the voltage signal value is collected according to the amplification factor corresponding to the amplification circuit of the current gear. The actual illumination information and the actual voltage signal value are detected for multiple times by the amplifying circuit method, the illumination coefficient of each time is respectively calculated, the average value of each illumination coefficient is used as the illumination coefficient in the embodiment, and understandably, the voltage signal is multiplied by the illumination coefficient to obtain the illumination information of the target area, so that the range of the illumination information is increased, and the accuracy of the illumination information is improved, so that the illumination control can be more accurately performed on the basis of the illumination information.
And 106, controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information.
The preset strategy refers to a lighting control circuit of the device in advance, and includes adjusting illumination information of the lighting device, turning off the lighting device and the like. Specifically, the server judges whether a judgment condition corresponding to a preset strategy is reached or not according to the illumination information and the motion information of the target area, and controls the lighting equipment, so that the lighting equipment is intelligently controlled, and dual effects of energy conservation and emission reduction and use of the lighting equipment as required are favorably achieved.
According to the illumination control method, the microwave signal is obtained, and the motion information of the target area of the illumination equipment is obtained based on the microwave signal; acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information; and controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information. The illumination control method can realize intelligent control of the illumination equipment, and is beneficial to achieving the dual effects of energy conservation and emission reduction and using the illumination equipment as required.
As shown in fig. 2, in one embodiment, acquiring a microwave signal, and acquiring motion information of a target area of an illumination device based on the microwave signal, includes:
and step 102A, acquiring microwave signals of the target area acquired by the microwave sensor in a periodic sampling mode.
Specifically, by adopting a periodic sampling mode to collect microwave signals, the motion of a human body or an object is continuous, the microwave signals collected by corresponding microwave sensors can generate continuous waveforms, and since the clutter is irregular and discrete, the microwave signals collected by corresponding microwave sensors are sampled at intervals for a plurality of times within a period of time, namely, in a periodic adoption mode, if continuous waveforms generated by the motion exist, the continuous waveforms can be sampled for a plurality of times, the probability of the clutter being sampled continuously is extremely low, exemplarily, the motion is detected every 1 millisecond, when the motion is detected for the first time, the motion is waited for 10 milliseconds, and whether the motion exists is judged by judging the number of times of triggering within 10 milliseconds. Through the method of time-delay multiple detection, clutter collected by the microwave sensor can be effectively filtered out, so that the motion information of the target area can be further processed on the basis of the microwave information.
And step 102B, filtering the microwave signal, and normalizing the microwave signal after the filtering to obtain a microwave waveform.
The filtering process is a data preprocessing process for removing noise, such as a smoothing filtering method, a mean filtering method, or a gaussian filtering method. Normalization refers to the process of analyzing the distribution of useful information in a microwave signal. The microwave waveform is an expression form capable of reflecting the degree of motion of data corresponding to the microwave signal. It can be understood that the microwave waveform is obtained by filtering the microwave signal and normalizing the filtered microwave signal, so that the motion information of the target area is identified by the microwave signal.
And step 102C, judging whether the target area moves according to the amplitude of the microwave waveform, and taking the judgment result as the motion information.
Specifically, the amplitude of the microwave waveform can reflect the movement speed of the object or the human body, so that whether the target area moves or not is judged according to the amplitude of the microwave waveform, and the judgment result is used as movement information, wherein the movement information comprises movement and no movement. Understandably, due to the fact that the microwave information is preprocessed in the steps 102A to 102B, clutter is filtered, the microwave waveform of the microwave signal is determined, and then the motion of the object or the human body can be rapidly and accurately identified according to the microwave information, so that the motion information is prevented from being determined through the camera, and compared with the camera, the cost is reduced, and the efficiency of obtaining the motion information is improved.
In the above embodiment, first, the microwave signal of the target area acquired by the microwave sensor is acquired in a periodic sampling manner; then, filtering the microwave signal, and normalizing the filtered microwave signal to obtain a microwave waveform; and finally, judging whether the target area moves or not according to the amplitude of the microwave waveform, and taking the judgment result as the motion information, thereby improving the efficiency of obtaining the motion information.
As shown in fig. 3, in an embodiment, determining whether the target area has motion according to the amplitude of the microwave waveform, and using the determination result as the motion information includes:
step 102C1, if the amplitude of the microwave waveform is greater than a preset detection threshold, the motion information is motion.
The preset detection threshold is a critical value used for judging whether the amplitude of the microwave waveform moves or not. When the amplitude of the microwave waveform is larger than a preset detection threshold value, a motion signal exists, and therefore the motion information is determined to be motion.
Step 102C2, if the amplitude of the microwave waveform is less than or equal to a preset detection threshold, the motion information is no motion.
Specifically, when the amplitude of the microwave waveform is less than or equal to the preset detection threshold, that is, there is no motion signal, the motion information is determined to be no motion.
By comparing the amplitude of the microwave waveform with the preset detection threshold, the motion information can be quickly determined according to the microwave information.
As shown in fig. 4, in one embodiment, the preset strategy includes adjusting the illuminance of the lighting device;
the controlling the lighting device by adopting a preset strategy based on the illumination information and the motion information includes:
Specifically, when the motion information is no motion, that is, no moving object or human body exists in the target area, at this time, the illuminance of the lighting device is adjusted to 0, that is, the lighting device is turned off, so that an energy-saving effect is achieved, and light pollution is reduced.
And step 106B, if the motion information indicates that motion exists, adjusting the illumination intensity of the lighting equipment according to the illumination information.
Specifically, when the motion information indicates that there is motion, that is, there is a moving object or human body in the target area, the illuminance of the lighting device is adjusted according to the illumination information, so that the lighting device is used as needed, and an effect of intelligently controlling the lighting device is achieved.
In the above embodiment, if the motion information is no motion, the illuminance of the lighting device is adjusted to 0, so that the effect of energy saving is achieved, and light pollution is reduced; if the motion information is motion, the illumination intensity of the lighting equipment is adjusted according to the illumination information, so that the lighting equipment can be used as required, and the effect of intelligently controlling the lighting equipment is achieved.
As shown in fig. 5, in one embodiment, the illuminance information includes first illuminance information of a lighting device of the target area and second illuminance information of a current environment of the target area.
The first illuminance information refers to illuminance information of an illumination device of the target area, and the second illuminance information refers to illumination information of a current environment of the target area.
The adjusting the illuminance of the lighting device according to the illumination information includes:
step 106B1, comparing the first illuminance information with the second illuminance information, and keeping the illuminance of the illuminance device unchanged when the difference between the first illuminance information and the second illuminance information is within a preset illuminance range.
Specifically, the first illuminance information and the second illuminance information are compared, and when a difference value between the first illuminance information and the second illuminance information is within a preset illuminance range, that is, illuminance values of the first illuminance information and the second illuminance information are relatively close to each other, the illuminance of the illuminance device is kept unchanged.
Step 106B2, when the difference is not within the preset illumination range and the first illumination information is greater than the second illumination information, adjusting the illumination of the illumination device to an illumination corresponding to the second illumination information.
Specifically, when the difference is not within the preset illumination range, that is, the difference between the illumination values of the first illumination information and the second illumination information is large, and the first illumination information is greater than the second illumination information, in order to reduce the unnecessary illumination of the lighting apparatus, the illumination of the lighting apparatus is reduced to the illumination corresponding to the second illumination information, so that the illumination of the lighting apparatus is close to the illumination of the current environment, and the energy saving effect is achieved.
Step 106B3, when the difference is not within the preset illumination range and the first illumination information is smaller than the second illumination information, increasing the illumination of the illumination device to the illumination corresponding to the second illumination information.
Specifically, when the difference is not within the preset illumination range, that is, the difference between the illumination values of the first illumination information and the second illumination information is large, and the first illumination information is smaller than the second illumination information, in order to better achieve the illumination effect of the illumination device, the illumination intensity of the illumination device is increased to the illumination intensity corresponding to the second illumination information, so that the illumination intensity of the illumination device is close to the illumination intensity of the current environment, so that the user can use the illumination device better as needed, and the intelligent control of the illumination device is achieved.
The illuminance of the lighting equipment is adjusted according to the illumination information, so that the intelligent degree of the control of the lighting equipment is improved.
In one embodiment, after the controlling the lighting device by using the preset strategy based on the illuminance information and the motion information, the method further includes:
and sending the preset strategy to an explosion-proof detector connected with the lighting equipment in a gateway mode.
The gateway is a network transmission protocol, and is used for transmitting data of the server, namely a preset policy. Specifically, a preset strategy can be sent to the explosion-proof detector connected with the lighting device through the RF433 protocol, so that the explosion-proof detector controls the lighting device according to the preset strategy, and the transmission efficiency and the operation efficiency of the explosion-proof detector are improved.
The process of sending the preset strategy to the explosion-proof detector connected with the lighting equipment in a gateway mode improves transmission efficiency and operation efficiency.
As shown in fig. 6, in an embodiment, sending the preset policy to an explosion-proof detector connected to a lighting device by means of a gateway includes:
The heartbeat packet is a self-defined command word which is used for regularly informing the self state of the other side between the client side and the server. And the server side judges whether a heartbeat packet exists or not by receiving the gateway instruction.
And 108B, when a heartbeat packet exists, responding to the heartbeat packet to enable the explosion-proof detector to control the lighting equipment according to the preset strategy.
Specifically, when a heartbeat packet exists, the server responds to the heartbeat packet, so that the explosion-proof detector can store a preset strategy, the control on the lighting equipment is realized according to the preset strategy, the gateway pressure is reduced, and the control efficiency on the lighting equipment is improved.
In the above embodiment, if a gateway instruction is received, it is determined whether a heartbeat packet exists in the gateway instruction; and when the heartbeat package exists, responding to the heartbeat package so that the explosion-proof detector controls the lighting equipment according to the preset strategy, thereby reducing the gateway pressure and improving the control efficiency of the lighting equipment.
As shown in fig. 7, in one embodiment, a lighting control device is presented, the device comprising:
a motion information obtaining module 702, configured to obtain a microwave signal, and obtain motion information of a target area of the lighting device based on the microwave signal;
an illuminance information obtaining module 704, configured to obtain a voltage signal of the target area acquired by an illuminance sensor, obtain an illuminance coefficient corresponding to the voltage signal, and multiply the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, where the illuminance coefficient is calculated based on a correspondence between an actual voltage signal and actual illuminance information;
a control module 706, configured to control the lighting device by using a preset policy based on the illuminance information and the motion information.
In one embodiment, the motion information acquisition module comprises a microwave signal acquisition unit, a signal preprocessing unit and a motion information determination unit.
The microwave signal acquisition unit is used for acquiring the microwave signal of the target area acquired by the microwave sensor in a periodic sampling mode;
the signal preprocessing unit is used for filtering the microwave signals and normalizing the filtered microwave signals to obtain microwave waveforms;
and the motion information determining unit is used for determining whether the target area has motion according to the amplitude of the microwave waveform and taking the determination result as the motion information.
In an embodiment, the motion information determination unit comprises a first motion determination subunit and a second motion determination subunit.
The first motion determining subunit is used for determining that motion exists in the motion information if the amplitude of the microwave waveform is greater than a preset detection threshold;
and the second motion determining subunit is configured to determine that the motion information is no motion if the amplitude of the microwave waveform is less than or equal to a preset detection threshold.
In one embodiment, the preset strategy comprises adjusting the illuminance of the lighting device;
the control module comprises a first control unit, a second control unit and a third control unit.
The first control unit is used for comparing the first illumination information with the second illumination information, and keeping the illumination intensity of the illumination device unchanged when the difference value of the first illumination information and the second illumination information is within a preset illumination intensity range;
the second control unit is used for adjusting the illuminance of the illuminance device to be lower than the illuminance corresponding to the second illuminance information when the difference value is not within a preset illuminance range and the first illuminance information is greater than the second illuminance information;
and the third control unit is used for increasing the illuminance of the illuminance device to the illuminance corresponding to the second illuminance information when the difference value is not within the preset illuminance range and the first illuminance information is smaller than the second illuminance information.
In one embodiment, the lighting control apparatus further includes a policy sending module, configured to send the preset policy to an explosion-proof detector connected to the lighting device by means of a gateway.
In one embodiment, the policy sending module includes a heartbeat packet determining unit and a control unit.
The heartbeat packet judging unit is used for judging whether a heartbeat packet exists in the gateway instruction or not if the gateway instruction is received;
and the control unit is used for responding to the heartbeat package when the heartbeat package exists so as to enable the explosion-proof detector to control the lighting equipment according to the preset strategy.
FIG. 8 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may particularly be a lighting device, and the server includes, but is not limited to, a high performance computer and a cluster of high performance computers. As shown in fig. 8, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the lighting control method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform the lighting control method. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the lighting control method provided by the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 8. The memory of the computer device may store therein the respective program templates constituting the lighting control apparatus. Such as a motion information acquisition module 702, an illumination information acquisition module 704, and a control module 706.
A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a microwave signal, and acquiring motion information of a target area of the lighting equipment based on the microwave signal; acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information; and controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information.
In one embodiment, acquiring a microwave signal, acquiring motion information of a target area of a lighting device based on the microwave signal, comprises: acquiring microwave signals of the target area acquired by a microwave sensor in a periodic sampling mode; filtering the microwave signal, and normalizing the microwave signal after filtering to obtain a microwave waveform; and judging whether the target area moves according to the amplitude of the microwave waveform, and taking the judgment result as the motion information.
In one embodiment, determining whether the target area has motion according to the amplitude of the microwave waveform, and using the determination result as the motion information includes: if the amplitude of the microwave waveform is larger than a preset detection threshold value, the motion information is motion; and if the amplitude of the microwave waveform is less than or equal to a preset detection threshold value, the motion information is no motion.
In one embodiment, the preset strategy comprises adjusting the illuminance of the lighting device; the controlling the lighting device by adopting a preset strategy based on the illumination information and the motion information includes: if the motion information is no motion, adjusting the illuminance of the lighting equipment to be 0; and if the motion information indicates that motion exists, adjusting the illumination intensity of the lighting equipment according to the illumination information.
In one embodiment, the illuminance information includes first illuminance information of a lighting device of the target area and second illuminance information of a current environment of the target area; the adjusting the illuminance of the lighting device according to the illumination information includes: comparing the first illumination information with the second illumination information, and keeping the illumination intensity of the illumination device unchanged when the difference value of the first illumination information and the second illumination information is within a preset illumination intensity range; when the difference value is not within a preset illumination range and the first illumination information is larger than the second illumination information, adjusting the illumination intensity of the illumination device to be lower than the illumination intensity corresponding to the second illumination information; and when the difference value is not within a preset illumination range and the first illumination information is smaller than the second illumination information, increasing the illumination of the illumination device to the illumination corresponding to the second illumination information.
In one embodiment, after the controlling the lighting device by using the preset strategy based on the illuminance information and the motion information, the method further includes: and sending the preset strategy to an explosion-proof detector connected with the lighting equipment in a gateway mode.
In one embodiment, the sending the preset strategy to an explosion-proof detector connected with a lighting device by means of a gateway includes: if the gateway instruction is received, judging whether a heartbeat packet exists in the gateway instruction; and when the heartbeat package exists, responding to the heartbeat package so that the explosion-proof detector controls the lighting equipment according to the preset strategy.
A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing the steps of: acquiring a microwave signal, and acquiring motion information of a target area of the lighting equipment based on the microwave signal; acquiring a voltage signal of the target area acquired by an illuminance sensor, acquiring an illuminance coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, wherein the illuminance coefficient is calculated based on a corresponding relation between an actual voltage signal and actual illuminance information; and controlling the lighting equipment by adopting a preset strategy based on the illumination information and the motion information.
In one embodiment, acquiring a microwave signal, acquiring motion information of a target area of a lighting device based on the microwave signal, comprises: acquiring microwave signals of the target area acquired by a microwave sensor in a periodic sampling mode; filtering the microwave signal, and normalizing the microwave signal after filtering to obtain a microwave waveform; and judging whether the target area moves according to the amplitude of the microwave waveform, and taking the judgment result as the motion information.
In one embodiment, determining whether the target area has motion according to the amplitude of the microwave waveform, and using the determination result as the motion information includes: if the amplitude of the microwave waveform is larger than a preset detection threshold value, the motion information is motion; and if the amplitude of the microwave waveform is less than or equal to a preset detection threshold value, the motion information is no motion.
In one embodiment, the preset strategy comprises adjusting the illuminance of the lighting device; the controlling the lighting device by adopting a preset strategy based on the illumination information and the motion information includes: if the motion information is no motion, adjusting the illuminance of the lighting equipment to be 0; and if the motion information indicates that motion exists, adjusting the illumination intensity of the lighting equipment according to the illumination information.
In one embodiment, the illuminance information includes first illuminance information of a lighting device of the target area and second illuminance information of a current environment of the target area; the adjusting the illuminance of the lighting device according to the illumination information includes: comparing the first illumination information with the second illumination information, and keeping the illumination intensity of the illumination device unchanged when the difference value of the first illumination information and the second illumination information is within a preset illumination intensity range; when the difference value is not within a preset illumination range and the first illumination information is larger than the second illumination information, adjusting the illumination intensity of the illumination device to be lower than the illumination intensity corresponding to the second illumination information; and when the difference value is not within a preset illumination range and the first illumination information is smaller than the second illumination information, increasing the illumination of the illumination device to the illumination corresponding to the second illumination information.
In one embodiment, after the controlling the lighting device by using the preset strategy based on the illuminance information and the motion information, the method further includes: and sending the preset strategy to an explosion-proof detector connected with the lighting equipment in a gateway mode.
In one embodiment, the sending the preset strategy to an explosion-proof detector connected with a lighting device by means of a gateway includes: if the gateway instruction is received, judging whether a heartbeat packet exists in the gateway instruction; and when the heartbeat package exists, responding to the heartbeat package so that the explosion-proof detector controls the lighting equipment according to the preset strategy.
It should be noted that the lighting control method, the lighting control apparatus, the computer device and the computer readable storage medium described above belong to one general inventive concept, and the contents in the embodiments of the lighting control method, the lighting control apparatus, the computer device and the computer readable storage medium may be mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. 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. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (9)
1. A lighting control method, comprising:
acquiring a microwave signal, and acquiring motion information of a target area of the lighting equipment based on the microwave signal;
acquiring a voltage signal of the target area acquired by an illumination sensor, acquiring an illumination coefficient corresponding to the voltage signal, and multiplying the voltage signal by the illumination coefficient to acquire illumination information of the target area, wherein the illumination coefficient is calculated based on a corresponding relation between an actual voltage signal and the actual illumination information, the illumination sensor comprises two chips, namely, an LM2904 chip and a CD4051 chip, the CD4051 chip realizes channel selection, one of C0-C7 pins is output by the CD4051 chip by controlling three pins, resistors with different resistance values are connected to the C0-C7 pins, the voltage signal is amplified by a voltage division principle, the corresponding resistor is selected by comparing voltage signal values, the voltage signal corresponding to the resistor is acquired, and the actual illumination information and the actual voltage signal value are detected for multiple times by a method of amplifying the voltage signal, respectively calculating the illumination coefficient of each time, and taking the average value of each illumination coefficient as the illumination coefficient;
controlling the lighting device by adopting a preset strategy based on the illumination information and the motion information, wherein the preset strategy comprises adjusting the illumination intensity of the lighting device;
the method of amplifying the voltage signal detects actual illuminance information and an actual voltage signal value for multiple times, calculates an illuminance coefficient for each time, and uses an average value of the illuminance coefficients as the illuminance coefficient, and the method further includes:
acquiring a plurality of gears divided based on actual illumination information and actual voltage signals, wherein one gear comprises a voltage signal range and an illumination information range;
judging which gear the current voltage signal is located in to obtain a current gear;
acquiring according to the corresponding amplification factor of the amplification circuit of the current gear to obtain current illumination information;
detecting actual illumination information and an actual voltage signal value for multiple times by a voltage signal amplifying method, respectively calculating an illumination coefficient of each time, and taking the average value of each illumination coefficient as the illumination coefficient;
the illuminance information includes first illuminance information of a lighting device of the target area and second illuminance information of a current environment of the target area; the adjusting the illuminance of the lighting device according to the illumination information includes:
comparing the first illumination information with the second illumination information, and keeping the illumination intensity of the lighting equipment unchanged when the difference value of the first illumination information and the second illumination information is within a preset illumination intensity range;
when the difference value is not within a preset illumination range and the first illumination information is larger than the second illumination information, adjusting the illumination intensity of the lighting equipment to be lower than the illumination intensity corresponding to the second illumination information;
and when the difference value is not within a preset illumination range and the first illumination information is smaller than the second illumination information, increasing the illumination of the lighting equipment to the illumination corresponding to the second illumination information.
2. The lighting control method of claim 1, wherein the obtaining the microwave signal and the obtaining the motion information of the target area of the lighting device based on the microwave signal comprise:
acquiring microwave signals of the target area acquired by a microwave sensor in a periodic sampling mode;
filtering the microwave signal, and normalizing the microwave signal after filtering to obtain a microwave waveform;
and judging whether the target area moves according to the amplitude of the microwave waveform, and taking the judgment result as the motion information.
3. The lighting control method according to claim 2, wherein the determining whether the target area has motion according to the amplitude of the microwave waveform, and using the determination result as the motion information includes:
if the amplitude of the microwave waveform is larger than a preset detection threshold value, the motion information is motion;
and if the amplitude of the microwave waveform is less than or equal to a preset detection threshold value, the motion information is no motion.
4. The lighting control method according to claim 3, wherein the preset strategy includes adjusting the illuminance of the lighting device;
the controlling the lighting device by adopting a preset strategy based on the illumination information and the motion information includes:
if the motion information is no motion, adjusting the illuminance of the lighting equipment to be 0;
and if the motion information indicates that motion exists, adjusting the illumination intensity of the lighting equipment according to the illumination information.
5. The lighting control method according to claim 1, further comprising, after the controlling the lighting device with a preset policy based on the illuminance information and the motion information:
and sending the preset strategy to an explosion-proof detector connected with the lighting equipment in a gateway mode.
6. The lighting control method of claim 5, wherein the sending the preset strategy to an explosion-proof detector connected with a lighting device by means of a gateway comprises:
if the gateway instruction is received, judging whether a heartbeat packet exists in the gateway instruction;
and when the heartbeat package exists, responding to the heartbeat package so that the explosion-proof detector controls the lighting equipment according to the preset strategy.
7. A lighting control device, characterized in that the lighting control device comprises:
the motion information acquisition module is used for acquiring a microwave signal and acquiring motion information of a target area of the lighting equipment based on the microwave signal;
an illuminance information acquisition module, configured to acquire a voltage signal of the target area acquired by an illuminance sensor, acquire an illuminance coefficient corresponding to the voltage signal, and multiply the voltage signal by the illuminance coefficient to obtain illuminance information of the target area, where the illuminance coefficient is calculated based on a correspondence between an actual voltage signal and the actual illuminance information, the illuminance sensor includes two chips, namely, an LM2904 chip and a CD4051 chip, and the CD4051 chip implements channel selection, and controls three pins, namely, ABC, so that the CD4051 chip outputs one of pins, namely, C0-C7, and the pins, namely, C0-C7, are connected with resistors with different resistance values, amplify the voltage signal according to a voltage division principle, select a corresponding resistor by comparing voltage signal values, acquire the voltage signal corresponding to the resistor, and detect actual illuminance information and an actual voltage signal value for multiple times by a method of amplifying the voltage signal, respectively calculating the illumination coefficient of each time, and taking the average value of each illumination coefficient as the illumination coefficient; the method of amplifying the voltage signal detects actual illuminance information and an actual voltage signal value for multiple times, calculates an illuminance coefficient for each time, and uses an average value of the illuminance coefficients as the illuminance coefficient, and the method further includes: acquiring a plurality of gears divided based on actual illumination information and actual voltage signals, wherein one gear comprises a voltage signal range and an illumination information range; judging which gear the current voltage signal is located in to obtain a current gear; acquiring according to the corresponding amplification factor of the amplification circuit of the current gear to obtain current illumination information; detecting actual illumination information and an actual voltage signal value for multiple times by a voltage signal amplifying method, respectively calculating an illumination coefficient of each time, and taking the average value of each illumination coefficient as the illumination coefficient;
a control module, configured to control the lighting device by using a preset strategy based on the illuminance information and the motion information, where the preset strategy includes adjusting illuminance of the lighting device, and the illuminance information includes first illuminance information of the lighting device in a target area and second illuminance information of a current environment in the target area; the adjusting the illuminance of the lighting device according to the illumination information includes: comparing the first illumination information with the second illumination information, and keeping the illumination intensity of the lighting equipment unchanged when the difference value of the first illumination information and the second illumination information is within a preset illumination intensity range; when the difference value is not within a preset illumination range and the first illumination information is larger than the second illumination information, adjusting the illumination intensity of the lighting equipment to be lower than the illumination intensity corresponding to the second illumination information; and when the difference value is not within a preset illumination range and the first illumination information is smaller than the second illumination information, increasing the illumination of the lighting equipment to the illumination corresponding to the second illumination information.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the lighting control method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the lighting control method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910891783.XA CN110677962B (en) | 2019-09-20 | 2019-09-20 | Illumination control method, illumination control device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910891783.XA CN110677962B (en) | 2019-09-20 | 2019-09-20 | Illumination control method, illumination control device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110677962A CN110677962A (en) | 2020-01-10 |
CN110677962B true CN110677962B (en) | 2022-03-04 |
Family
ID=69078434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910891783.XA Active CN110677962B (en) | 2019-09-20 | 2019-09-20 | Illumination control method, illumination control device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110677962B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113225881A (en) * | 2020-02-06 | 2021-08-06 | 北京字节跳动网络技术有限公司 | Method, apparatus, device and medium for controlling lighting apparatus |
CN112333877A (en) * | 2020-07-23 | 2021-02-05 | 深圳市海洋王照明工程有限公司 | Illumination control method, system, computer device and storage medium |
CN113271701B (en) * | 2021-06-02 | 2022-04-29 | 连云港瑞普森照明科技有限公司 | Automatic illumination system and method for LED module |
CN114363105B (en) * | 2022-01-17 | 2024-08-20 | 深圳市海曼科技股份有限公司 | Intelligent equipment control method based on voice recognition |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106609948A (en) * | 2015-10-15 | 2017-05-03 | 海洋王照明科技股份有限公司 | An explosion-proof platform lamp |
CN106658920A (en) * | 2017-01-10 | 2017-05-10 | 齐鲁工业大学 | Intelligent control illumination method and device |
CN106686845A (en) * | 2015-11-06 | 2017-05-17 | 海洋王(东莞)照明科技有限公司 | Microwave sensing dimming circuit with emergency mode, and lamp |
CN106922056A (en) * | 2017-04-26 | 2017-07-04 | 北京同步科技有限公司 | The Intelligent closed-loop control system and its control method of light |
US9743357B2 (en) * | 2011-12-16 | 2017-08-22 | Joseph Akwo Tabe | Energy harvesting computer device in association with a communication device configured with apparatus for boosting signal reception |
CN107529262A (en) * | 2016-06-22 | 2017-12-29 | 莱特福克斯有限公司 | Lighting apparatus control device, Optimizing Control System and the method for controlling energy consumption |
CN108029185A (en) * | 2015-09-24 | 2018-05-11 | 松下知识产权经营株式会社 | Illumination acquisition device, Lighting Control Assembly and program |
CN109413802A (en) * | 2018-12-06 | 2019-03-01 | 中国科学院苏州生物医学工程技术研究所 | A kind of light-source system, control method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201438508A (en) * | 2013-03-18 | 2014-10-01 | Genesis Photonics Inc | Illumination system |
CN109462919B (en) * | 2017-09-06 | 2021-04-20 | 深圳市海洋王照明工程有限公司 | Illumination control circuit and lighting equipment |
CN109740112B (en) * | 2018-12-28 | 2020-02-18 | 广州市番禺奥莱照明电器有限公司 | Lighting device control method and device, storage medium and lighting device |
-
2019
- 2019-09-20 CN CN201910891783.XA patent/CN110677962B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9743357B2 (en) * | 2011-12-16 | 2017-08-22 | Joseph Akwo Tabe | Energy harvesting computer device in association with a communication device configured with apparatus for boosting signal reception |
CN108029185A (en) * | 2015-09-24 | 2018-05-11 | 松下知识产权经营株式会社 | Illumination acquisition device, Lighting Control Assembly and program |
CN106609948A (en) * | 2015-10-15 | 2017-05-03 | 海洋王照明科技股份有限公司 | An explosion-proof platform lamp |
CN106686845A (en) * | 2015-11-06 | 2017-05-17 | 海洋王(东莞)照明科技有限公司 | Microwave sensing dimming circuit with emergency mode, and lamp |
CN107529262A (en) * | 2016-06-22 | 2017-12-29 | 莱特福克斯有限公司 | Lighting apparatus control device, Optimizing Control System and the method for controlling energy consumption |
CN106658920A (en) * | 2017-01-10 | 2017-05-10 | 齐鲁工业大学 | Intelligent control illumination method and device |
CN106922056A (en) * | 2017-04-26 | 2017-07-04 | 北京同步科技有限公司 | The Intelligent closed-loop control system and its control method of light |
CN109413802A (en) * | 2018-12-06 | 2019-03-01 | 中国科学院苏州生物医学工程技术研究所 | A kind of light-source system, control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110677962A (en) | 2020-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110677962B (en) | Illumination control method, illumination control device, computer equipment and storage medium | |
US20200379545A1 (en) | Method and apparatus for detecting wearing state of smart wearable device | |
EP1741384A2 (en) | A system for adjusting power employed by a medical device | |
CN108564179B (en) | Wear detection system, method, electronic terminal, and computer-readable storage medium | |
CN110118509B (en) | Energy-saving control method and system for cooling tower fan | |
CN109996377B (en) | Street lamp control method and device and electronic equipment | |
CN118051858B (en) | Intelligent electricity saving method and system based on abnormal electricity consumption data | |
CN112924950A (en) | Static figure distinguishing method and device and terminal equipment | |
CN115199483A (en) | Health state monitoring method based on laser clearance radar | |
CN112401900A (en) | Signal processing method, signal processing device, electronic equipment and computer readable storage medium | |
CN111383435B (en) | Induction method, equipment and device based on infrared signals | |
CN105848392A (en) | Human body induction single-chip microcomputer control system and control method for lamp | |
WO2023193452A1 (en) | Maximum power tracking method and apparatus for photovoltaic module, and energy storage device | |
CN108169094B (en) | Filter screen cleanliness detection method, sensor and air treatment equipment | |
KR102712456B1 (en) | Valve assembly for automation of drainage and degassing devices, drainage or degassing system and drainage or degassing method | |
CN112333877A (en) | Illumination control method, system, computer device and storage medium | |
CN116503919A (en) | Finger palm vein collection equipment and method based on TOF ranging sensor | |
CN107682409A (en) | A kind of pre- telescopic method of cluster resource and device | |
CN112953476A (en) | Photoelectric sensor hysteresis control device and method thereof | |
CN109541710B (en) | Motion detection method and motion detection device | |
CN118762715B (en) | Transformer voiceprint fault monitoring method and device, computer equipment and storage medium | |
CN115014513A (en) | Sampling method, proximity sensing system and electronic device | |
CN114295993B (en) | Battery SOC determination method and device, vehicle and storage medium | |
CN118338499A (en) | Navigation lighting method, device, equipment and medium based on LED driving power supply | |
CN111160376B (en) | Information processing method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |