Method for fixing human body through pyroelectric detection

文档序号:679347 发布日期:2021-04-30 浏览:34次 中文

阅读说明:本技术 一种热释电检测固定人体的方法 (Method for fixing human body through pyroelectric detection ) 是由 狄震 于 2021-02-24 设计创作,主要内容包括:本发明涉及人体感应的技术领域,特别是涉及一种热释电检测固定人体的方法,其能够在相对节能减耗且节省成本的条件下检测静止人体;包括:S1:热释电传感器处于待机状态,获取热释电传感器的反馈信号,判定其是否处于高电平状态;S2:对热释电传感器断电,并开始第一次倒计时,对热释电传感器依次进行周期性断电与供电;S3:继续第一次倒计时,并再次获取热释电传感器的反馈信号,判定其是否处于低电平状态;S4:继续第一次倒计时,获取到低电平状态的热释电传感器反馈信号,获取一起始时间,在到达该起始时间时,开始进行第二次倒计时;S5:继续第一次倒计时并同时继续第二次倒计时,三次获取热释电传感器的反馈信号,判定其是否处于低电平状态。(The invention relates to the technical field of human body induction, in particular to a method for detecting a fixed human body by pyroelectric detection, which can detect a static human body under the conditions of relatively saving energy, reducing consumption and saving cost; the method comprises the following steps: s1: the pyroelectric sensor is in a standby state, a feedback signal of the pyroelectric sensor is obtained, and whether the pyroelectric sensor is in a high level state or not is judged; s2: powering off the pyroelectric sensor, starting to count down for the first time, and sequentially carrying out periodic powering off and power supply on the pyroelectric sensor; s3: continuing to count down for the first time, and acquiring a feedback signal of the pyroelectric sensor again to judge whether the pyroelectric sensor is in a low level state; s4: continuing the first countdown, acquiring a feedback signal of the pyroelectric sensor in a low level state, acquiring an initial time, and starting the second countdown when the initial time is reached; s5: and continuing to count down for the first time and continuing to count down for the second time simultaneously, acquiring a feedback signal of the pyroelectric sensor for three times, and judging whether the pyroelectric sensor is in a low level state.)

1. A method of pyroelectric detection of a stationary human body, comprising:

s1: the pyroelectric sensor is in a standby state, a feedback signal of the pyroelectric sensor is obtained, and whether the pyroelectric sensor is in a high level state or not is judged;

s2: acquiring a feedback signal of the pyroelectric sensor in a high level state, powering off the pyroelectric sensor, starting to count down for the first time, and sequentially carrying out periodic power off and power supply on the pyroelectric sensor;

s3: continuing to count down for the first time, and acquiring a feedback signal of the pyroelectric sensor again to judge whether the pyroelectric sensor is in a low level state;

s4: continuing the first countdown, acquiring a feedback signal of the pyroelectric sensor in a low level state, acquiring an initial time, and starting the second countdown when the initial time is reached;

s5: continuing the first countdown and simultaneously continuing the second countdown, obtaining a feedback signal of the pyroelectric sensor for three times, and judging whether the pyroelectric sensor is in a low level state;

s6: and secondly, obtaining a feedback signal of the pyroelectric sensor in a low level state, keeping the initial time unchanged, continuing the first countdown and simultaneously continuing the second countdown, and stopping the first countdown when the second countdown is finished, wherein the pyroelectric sensor is in a standby state.

2. The method for pyroelectric detection of human body as claimed in claim 1, wherein a first fixed period time is preset, the pyroelectric sensor is in standby state, and the step S1 is entered, and step S1, the feedback signal of the pyroelectric sensor is repeatedly obtained according to the first fixed period time.

3. The method for pyroelectric detection of fixed human body as claimed in claim 1, wherein a first countdown time is preset, and periodic countdown is performed according to the first countdown time, in step S2, after the first countdown is first ended, the pyroelectric sensor is powered on, at this time, the second countdown of the first countdown is started, after the second countdown of the first countdown is ended, the pyroelectric sensor is powered off again, the two times of the first countdown are ended into a cycle, and in the cycle, the pyroelectric sensor is powered on and powered off again after the power off.

4. The method for pyroelectric detection of a fixed human body as claimed in claim 1, wherein a second fixed period time is preset, and in step S3, the feedback signal of the pyroelectric sensor is repeatedly acquired according to the second fixed period time, and when the acquired feedback signal of the pyroelectric sensor is in a high level state, the feedback signal of the pyroelectric sensor is continuously and repeatedly acquired.

5. The method of claim 1, wherein a second countdown time is preset, in step S4, a periodic countdown is performed according to the second countdown time, and in step S4, a time when the first time of the pyroelectric sensor feedback signal is at a low level is obtained and set as the start time.

6. The method for pyroelectric detection of human body as claimed in claim 1, wherein a third fixed period time is preset, and in step S5, the feedback signal of the pyroelectric sensor is repeatedly acquired according to the third fixed period time, and in the second countdown period, when the acquired feedback signal of the pyroelectric sensor is in a high level state, the second countdown is stopped, and the step S3 is re-entered.

7. The method for pyroelectric detection of fixed human body as claimed in claim 6, wherein the start time is updated according to the pyroelectric sensor feedback signal obtained in step S5.

Technical Field

The invention relates to the technical field of human body induction, in particular to a method for fixing a human body through pyroelectric detection.

Background

The infrared inductive switch is called as a pyroelectric infrared inductive switch, and any object in the nature always emits infrared radiation outwards as long as the temperature is higher than absolute zero (-273 ℃), the higher the temperature of the object is, the smaller the peak wavelength of the infrared radiation emitted by the object is, the larger the energy of the emitted infrared radiation is, and a human body has a certain body temperature which is usually 36-37 ℃, so that the infrared ray with a specific wavelength can be emitted, and the temperature of the human body is 9. The infrared ray of 5um is enhanced and gathered on the infrared induction source through the Fresnel lens, the infrared induction source usually adopts a pyroelectric infrared sensor, the element loses charge balance when receiving the change of the infrared radiation temperature of a human body, the charge is released outwards, a follow-up circuit can trigger a switch to act after detection processing, and the Fresnel lens is widely used in the field of human body induction detection;

at present, the traditional infrared human body sensor on the market can only detect a moving human body, and can not judge a static human body, and some improved sensors capable of detecting the static human body adopt a mechanical movement device or need to add elements or actively send infrared rays and use a complex judgment algorithm, so that not only can noise and power consumption be increased, but also the production cost can be improved.

Disclosure of Invention

To solve the above technical problems, the present invention provides a method for pyroelectric detection of a stationary human body, which can detect a stationary human body with relatively low energy consumption and low cost.

The invention discloses a method for fixing a human body by pyroelectric detection, which comprises the following steps:

s1: the pyroelectric sensor is in a standby state, a feedback signal of the pyroelectric sensor is obtained, and whether the pyroelectric sensor is in a high level state or not is judged;

s2: acquiring a feedback signal of the pyroelectric sensor in a high level state, powering off the pyroelectric sensor, starting to count down for the first time, and sequentially carrying out periodic power off and power supply on the pyroelectric sensor;

s3: continuing to count down for the first time, and acquiring a feedback signal of the pyroelectric sensor again to judge whether the pyroelectric sensor is in a low level state;

s4: continuing the first countdown, acquiring a feedback signal of the pyroelectric sensor in a low level state, acquiring an initial time, and starting the second countdown when the initial time is reached;

s5: continuing the first countdown and simultaneously continuing the second countdown, obtaining a feedback signal of the pyroelectric sensor for three times, and judging whether the pyroelectric sensor is in a low level state;

s6: and secondly, obtaining a feedback signal of the pyroelectric sensor in a low level state, keeping the initial time unchanged, continuing the first countdown and simultaneously continuing the second countdown, and stopping the first countdown when the second countdown is finished, wherein the pyroelectric sensor is in a standby state.

Preferably, a first fixed cycle time is preset, the pyroelectric sensor enters step S1 when in a standby state, and in step S1, the feedback signal of the pyroelectric sensor is repeatedly acquired according to the first fixed cycle time.

Preferably, a first countdown time is preset, periodic countdown is performed according to the first countdown time, in step S2, after the first countdown is first ended, the pyroelectric sensor is powered on, at this time, secondary countdown of the first countdown is started, after the secondary countdown of the first countdown is ended, the pyroelectric sensor is powered off again, the two times of the first countdown are ended into a period, and in the period, the pyroelectric sensor is powered on and powered off again after the power off.

Preferably, a second fixed period of time is preset, and in step S3, the feedback signal of the pyroelectric sensor is repeatedly acquired according to the second fixed period of time, and when the acquired feedback signal of the pyroelectric sensor is in a high level state, the feedback signal of the pyroelectric sensor continues to be repeatedly acquired.

Preferably, the second countdown time is preset, in step S4, periodic countdown is performed according to the second countdown time, and in step S4, the time when the first time of the pyroelectric sensor feedback signal is at the low level is obtained and set as the start time.

Preferably, a third fixed cycle time is preset, in step S5, the feedback signal of the pyroelectric sensor is repeatedly acquired according to the third fixed cycle time, and in the second countdown time, when the acquired feedback signal of the pyroelectric sensor is in a high level state, the second countdown is stopped, and step S3 is re-entered.

Preferably, the start time is updated at all times according to the pyroelectric sensor feedback signal acquired in step S5.

Compared with the prior art, the invention has the beneficial effects that: the pyroelectric sensor can be subjected to cross dynamic monitoring by powering off and powering on the pyroelectric sensor, and can be in standby in time when no person exists, so that detection errors existing when the person is still are reduced, a static human body is detected under the conditions of relatively saving energy and reducing consumption and saving cost, and it needs to be stated that when the pyroelectric sensor is in the standby state, the pyroelectric sensor cannot acquire a level state, when no level state indicates that the pyroelectric sensor is in the standby state or the shutdown state, when the feedback is a low level state, the pyroelectric sensor does not detect a human body infrared signal, and when the feedback is a high level state, the pyroelectric sensor detects a human body infrared signal.

Drawings

FIG. 1 is a flow chart of the steps of the present invention.

Detailed Description

The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.

As shown in fig. 1, a method for pyroelectric detection of a fixed human body of the present invention comprises:

s1: the pyroelectric sensor is in a standby state, a feedback signal of the pyroelectric sensor is obtained, and whether the pyroelectric sensor is in a high level state or not is judged;

in the embodiment of the invention, a first fixed period of time is preset, the pyroelectric sensor enters a step S1 when being in a standby state, and in the step S1, a feedback signal of the pyroelectric sensor is repeatedly acquired according to the first fixed period of time;

for example, in a specific embodiment, the first fixed period is preset to be 3S, the pyroelectric sensor is turned on, and the pyroelectric sensor is in a standby state, step S1 is entered, and in step S1, the feedback signal of the pyroelectric sensor is repeatedly acquired every 3S;

for example, in another specific embodiment, after step S6 is finished, the preset first fixed period time is 3S, and at this time, the pyroelectric sensor is in a standby state, step S1 is entered, and in step S1, the feedback signal of the pyroelectric sensor is repeatedly acquired every 3S;

when the obtained feedback signal of the pyroelectric sensor is in a high level state, the pyroelectric sensor is in normal detection and detects a human body infrared signal, the operation enters S2, when the feedback signal of the pyroelectric sensor is not obtained, the pyroelectric sensor is still in a standby state, and the feedback signal of the pyroelectric sensor is continuously and repeatedly obtained according to the first fixed period time.

S2: acquiring a feedback signal of the pyroelectric sensor in a high level state, powering off the pyroelectric sensor, starting to count down for the first time, and sequentially carrying out periodic power off and power supply on the pyroelectric sensor;

in the embodiment of the invention, a first countdown time is preset, periodic countdown is carried out according to the first countdown time, in step S2, after the first countdown is firstly finished, power is supplied to the pyroelectric sensor, at the moment, secondary countdown of the first countdown is started, after the secondary countdown of the first countdown is finished, the pyroelectric sensor is powered off again, two times of the first countdown are finished to form a period, and in the period, the pyroelectric sensor is started and powered off again after power off;

for example, in a specific embodiment, the first countdown time is preset to 2S, periodic countdown is performed according to 2S, in step S2, after the first 2S countdown is finished, the pyroelectric sensor which is powered off is powered again, and meanwhile, the second 2S countdown is started, after the second 2S countdown is finished, the pyroelectric sensor which is powered off is powered again, the 2S countdown operation is repeated, and the periodic operation of powering on or powering off the pyroelectric sensor is accompanied;

the power supply and power off operations of the pyroelectric sensor are performed alternately, and the operations accompanied by the first count-down operations of two adjacent times are opposite;

the process proceeds to step S3.

S3: continuing to count down for the first time, and acquiring a feedback signal of the pyroelectric sensor again to judge whether the pyroelectric sensor is in a low level state;

in the embodiment of the present invention, a second fixed period of time is preset, and in step S3, the feedback signal of the pyroelectric sensor is repeatedly acquired according to the second fixed period of time, and when the acquired feedback signal of the pyroelectric sensor is in a high level state, the feedback signal of the pyroelectric sensor is continuously and repeatedly acquired

For example, in a specific embodiment, when the first countdown is continued, the preset second fixed period time is 3S, and in step S3, the feedback signal of the pyroelectric sensor is repeatedly acquired every 3S;

when the obtained pyroelectric sensor feedback signal is in a high level state, it indicates that the pyroelectric sensor is detecting normally and a human body infrared signal is detected, the pyroelectric sensor feedback signal in the step S3 is continuously obtained repeatedly, and when the obtained pyroelectric sensor feedback signal is in a low level state, it indicates that the pyroelectric sensor is detecting normally and a human body infrared signal is not detected, the operation proceeds to S4.

S4: continuing the first countdown, acquiring a feedback signal of the pyroelectric sensor in a low level state, acquiring an initial time, and starting the second countdown when the initial time is reached;

in the embodiment of the present invention, a second countdown time is preset, in step S4, periodic countdown is performed according to the second countdown time, and in step S4, a time when the first time of the pyroelectric sensor feedback signal is at a low level is obtained and set as an initial time;

for example, in a specific embodiment, the first countdown is continued, and the preset second countdown time is 30S, the first time t1 of the low level pyroelectric sensor feedback signal acquired in step S3 is set as the starting time, and the countdown is performed for 30S;

the process proceeds to step S5.

S5: continuing the first countdown and simultaneously continuing the second countdown, obtaining a feedback signal of the pyroelectric sensor for three times, and judging whether the pyroelectric sensor is in a low level state;

in the embodiment of the present invention, a third fixed cycle time is preset, in step S5, a feedback signal of the pyroelectric sensor is repeatedly acquired according to the third fixed cycle time, and in the second countdown time, when the acquired feedback signal of the pyroelectric sensor is in a high level state, the second countdown is stopped, and step S3 is re-entered;

for example, in a specific embodiment, the first countdown is continued and the second countdown is continued at the same time, the preset third fixed period time is 3S, and in step S5, the feedback signal of the pyroelectric sensor is repeatedly acquired every 3S;

when the acquired pyroelectric sensor feedback signal is in a high level state, it indicates that the pyroelectric sensor detects an abnormal condition and makes a misjudgment or detects a new human body infrared signal again, and the human body infrared signal is detected, the second countdown is stopped, the step S3 is re-entered, the pyroelectric sensor feedback signal in the step S3 is continuously and repeatedly acquired, when the acquired pyroelectric sensor feedback signal is in a low level state, it indicates that the pyroelectric sensor is detecting normally and does not detect a human body infrared signal, the pyroelectric sensor feedback signal is repeatedly acquired every 3S, the initial time is unchanged, the second countdown is continuously performed, and the step S6 is entered.

S6: secondly, acquiring a feedback signal of the pyroelectric sensor in a low level state, keeping the initial time unchanged, continuing the first countdown and simultaneously continuing the second countdown, and stopping the first countdown when the second countdown is finished, wherein the pyroelectric sensor is in a standby state;

in an embodiment of the present invention, for example, in a specific embodiment, the third fixed period time preset in step S5 is 3S, when the obtained pyroelectric sensor feedback signal is in a low level state, it indicates that the pyroelectric sensor is detecting normally and no human body infrared signal is detected, the feedback signal of the pyroelectric sensor is repeatedly obtained every 3S, and the start time is not changed, the second countdown is continued, and when the second countdown is finished, the first countdown is stopped, and the pyroelectric sensor is in a standby state;

it should be noted that, when the step S6 is performed, the step S5 is still performed, and when the pyroelectric sensor feedback signal obtained in the step S5 is again in the high level state within the time of the second countdown, the step S6 is contrary to the step S5, at which time the step S6 is stopped, that is, the second countdown is stopped, and the process is resumed to the step S3, and when the pyroelectric sensor feedback signal obtained in the step S5 is always in the low level state within the time of the second countdown, the step S6 is not contrary to the step S5, at which time the second countdown is continued, and when the second countdown is completed, the first countdown is stopped, and the pyroelectric sensor is in the standby state.

The starting time is updated all the time according to the pyroelectric sensor feedback signal obtained in the step S5; when returning from step S5 to step S3, the start time needs to be recalculated.

In the method for pyroelectric detection of a fixed human body of the present invention, in the case where no contrary explanation is made, the ordinal terms "first", "second" and "third" do not denote any particular quantity or order, but are merely used for name differentiation, and the terms "comprise", "comprise" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but also other elements not explicitly listed, or further includes elements inherent to such process, method, article, or apparatus.

The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:面源黑体

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!