Illumination control method, illumination control device, computer equipment and storage medium

文档序号:1617582 发布日期:2020-01-10 浏览:12次 中文

阅读说明:本技术 照明控制方法、装置、计算机设备和存储介质 (Illumination control method, illumination control device, computer equipment and storage medium ) 是由 周明杰 李展强 于 2019-09-20 设计创作,主要内容包括:本发明实施例公开了一种照明控制方法,包括:获取微波信号,基于所述微波信号获取照明设备的目标区域的运动信息;获取照度传感器采集的所述目标区域的电压信号,并获取与所述电压信号对应的照度系数,将所述电压信号乘以所述照度系数,得到所述目标区域的照度信息,其中,所述照度系数是基于实际电压信号与实际照度信息的对应关系计算得到的;基于所述照度信息和所述运动信息采用预设的策略对所述照明设备进行控制。该照明控制方法能够实现对照明设备的智能化控制,有利于达到节能减排和按需使用照明设备的双重效果。此外,还提出了一种照明控制装置、计算机设备和存储介质。(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.)

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 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.

2. The lighting control method of claim 1, wherein the obtaining of the microwave signal and the obtaining of 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 4, the illuminance information including 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.

6. 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.

7. The lighting control method of claim 6, 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.

8. 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;

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.

9. 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 according to any one of claims 1 to 7 when executing the computer program.

10. 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 7.

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:

step 102, acquiring a microwave signal, and acquiring motion information of a target area of the lighting device based on the microwave signal.

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:

step 106A, if the motion information is no motion, adjusting the illuminance of the lighting device to 0.

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:

step 108A, if the gateway instruction is received, judging whether a heartbeat packet exists in the gateway instruction.

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.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种智能物联网灯控制系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!