Night lamp control method based on living room

文档序号:213154 发布日期:2021-11-05 浏览:11次 中文

阅读说明:本技术 一种基于客厅的夜灯控制方法 (Night lamp control method based on living room ) 是由 狄震 于 2021-08-16 设计创作,主要内容包括:本发明涉及夜灯控制的技术领域,特别是涉及一种基于客厅的夜灯控制方法,其能够自动开关,增加控制方式以及使用方式,且关灯后灯光在确认无人时再消失,使得用户能够方便进行正常活动,提高智能化程度,从而降低整体使用局限性;包括:S1:灯具进入夜灯模式,开启的灯具缓灭至微光;S2:获取人体传感器的反馈信号,并判定其是否处于未触发状态;S3:获取到处于未触发状态的人体传感器反馈信号,获取一起始时间并进行倒计时,与此同时仍然重复获取人体传感器的反馈信号;S4:倒计时结束,灯具关闭,人体传感器处于待机状态;S5:接收到处于触发状态的人体传感器反馈信号,获取光线传感器的反馈信号,并判定其是否处于触发状态。(The invention relates to the technical field of night lamp control, in particular to a night lamp control method based on a living room, which can be automatically switched on and off, and the control mode and the use mode are increased, and the light disappears after the lamp is turned off when no person is confirmed, so that a user can conveniently carry out normal activities, the intelligent degree is improved, and the integral use limitation is reduced; the method comprises the following steps: s1: the lamp enters a night lamp mode, and the started lamp is slowly extinguished to dim light; s2: acquiring a feedback signal of the human body sensor, and judging whether the feedback signal is in an un-triggered state; s3: acquiring a feedback signal of the human body sensor in an un-triggered state, acquiring an initial time and counting down, and meanwhile, repeatedly acquiring the feedback signal of the human body sensor; s4: after the countdown is finished, the lamp is turned off, and the human body sensor is in a standby state; s5: and receiving a feedback signal of the human body sensor in a triggering state, acquiring the feedback signal of the light sensor, and judging whether the feedback signal is in the triggering state.)

1. A night lamp control method based on a living room is characterized by comprising the following steps:

s1: the lamp enters a night lamp mode, and the started lamp is slowly extinguished to dim light;

s2: acquiring a feedback signal of the human body sensor, and judging whether the feedback signal is in an un-triggered state;

s3: acquiring a feedback signal of the human body sensor in an un-triggered state, acquiring an initial time and counting down, and meanwhile, repeatedly acquiring the feedback signal of the human body sensor;

s4: after the countdown is finished, the lamp is turned off, and the human body sensor is in a standby state;

s5: receiving a feedback signal of the human body sensor in a triggering state, acquiring the feedback signal of the light sensor, and judging whether the feedback signal is in the triggering state;

s6: and when a feedback signal of the light sensor in a trigger state is obtained, the lamp is turned off and no feedback signal of the human body sensor is received.

2. The method of claim 1, wherein in step S2, when the feedback signal of the human body sensor is in the activated state, the step S2 is repeated until the feedback signal of the human body sensor is in the deactivated state.

3. The method for controlling a night light based on a living room of claim 1, wherein a fixed time is preset and the countdown is performed according to the fixed time in step S3.

4. The method as claimed in claim 3, wherein in step S3, if the feedback signal of the human body sensor is always in an inactive state within a predetermined time, the method proceeds to step S4; if the motion sensor is triggered within a predetermined time, the countdown is stopped, and the process returns to step S2.

5. The method as claimed in claim 1, wherein in step S4, if the trigger-based motion sensor feedback signal is not received, the method stays in step S4 and does not proceed to step S5.

6. The method as claimed in claim 1, wherein in step S5, if the feedback signal of the light sensor is not triggered, the method returns to step S1.

Technical Field

The invention relates to the technical field of night lamp control, in particular to a night lamp control method based on a living room.

Background

As is well known, a lamp is an auxiliary device used in daily life to illuminate the current environment when the environment is dim, so as to facilitate the user to better live in daily life, and is widely used in the field of environmental illumination; most of existing lamp control methods are manual lamp turning-off, the control mode and the use mode are single, light disappears immediately after the lamp is turned off, users cannot conveniently conduct normal activities in a dark environment, the intelligent degree is low, and therefore the whole use limitation is high.

Disclosure of Invention

In order to solve the technical problems, the invention provides a night light control method based on a living room, which can be automatically switched on and off, and the control mode and the use mode are increased, and the light disappears after the light is turned off when no person is confirmed, so that a user can conveniently perform normal activities, the intelligent degree is improved, and the integral use limitation is reduced.

The invention discloses a night lamp control method based on a living room, which comprises the following steps:

s1: the lamp enters a night lamp mode, and the started lamp is slowly extinguished to dim light;

s2: acquiring a feedback signal of the human body sensor, and judging whether the feedback signal is in an un-triggered state;

s3: acquiring a feedback signal of the human body sensor in an un-triggered state, acquiring an initial time and counting down, and meanwhile, repeatedly acquiring the feedback signal of the human body sensor;

s4: after the countdown is finished, the lamp is turned off, and the human body sensor is in a standby state;

s5: receiving a feedback signal of the human body sensor in a triggering state, acquiring the feedback signal of the light sensor, and judging whether the feedback signal is in the triggering state;

s6: and when a feedback signal of the light sensor in a trigger state is obtained, the lamp is turned off and no feedback signal of the human body sensor is received.

Preferably, in step S2, when the feedback signal of the motion sensor is in the triggered state, step S2 is repeated until the feedback signal of the motion sensor is in the non-triggered state.

Preferably, in step S3, a fixed time is preset, and the countdown is performed according to the fixed time.

Preferably, in step S3, if the feedback signal of the motion sensor is always in an unfired state within a predetermined time, the process proceeds to step S4; if the motion sensor is triggered within a predetermined time, the countdown is stopped, and the process returns to step S2.

Preferably, if the motion sensor feedback signal in the trigger state is not received in step S4, the process remains in step S4, and the process does not proceed to step S5.

Preferably, in step S5, if the feedback signal of the light sensor is in an unfired state, the process returns to step S1.

Compared with the prior art, the invention has the beneficial effects that: this application judges whether the user is present through human body sensor's feedback signal to carry out self-closing to lamps and lanterns when the user is not present, meanwhile, when the user is present again, luminance carries out the switch under the automatic combination, it can automatic switch, increase control mode and user mode, and turn off light after the lamp and disappear again when confirming nobody, make the user conveniently carry out normal activity, improve intelligent degree, thereby reduce whole use limitation.

Drawings

Fig. 1 is a schematic structural view 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 controlling a night light based on a living room according to the present invention includes:

s1: the lamp enters a night lamp mode, and the started lamp is slowly extinguished to dim light;

in an embodiment of the present invention, for example, in a specific embodiment, an on signal is sent to the turned-on lamp, so that the turned-on lamp is turned off slowly to dim light to reach a night light mode, and then the step S2 is proceeded;

s2: acquiring a feedback signal of the human body sensor, and judging whether the feedback signal is in an un-triggered state;

in the embodiment of the invention, when the feedback signal of the human body sensor is in the triggered state, the step S2 is repeated until the feedback signal of the human body sensor is in the non-triggered state;

for example, in a specific embodiment, the acquired feedback signal of the human body sensor is analyzed, when it is determined that the human body sensor is not triggered after the analysis, it indicates that no human body is sensed, the step S3 is performed, when it is determined that the human body sensor is a trigger signal after the analysis, it indicates that a human body is sensed, that is, the human body is in an active state, and the acquisition of the feedback signal of the human body sensor is repeated until the current state of the feedback signal feedback is in an un-triggered state.

S3: acquiring a feedback signal of the human body sensor in an un-triggered state, acquiring an initial time and counting down, and meanwhile, repeatedly acquiring the feedback signal of the human body sensor;

in the embodiment of the present invention, a fixed time is preset, and the countdown is performed according to the fixed time, and if the feedback signal of the human body sensor is always in an unfired state within the fixed time, the process proceeds to step S4; if the human body sensor is triggered within a fixed time, stopping counting down, and returning to the step S2;

for example, in a specific embodiment, the preset fixed time is 5min, when the feedback signal of the human body sensor in the non-triggered state is acquired, counting down for 5min is started, and within 5min, the feedback signal of the human body sensor is still repeatedly acquired, and when the feedback signal of the human body sensor is always in the non-triggered state and the human body is not sensed, the step S4 is performed; when the presence of the human body sensor is triggered, it indicates that the presence of a human body is sensed, that is, the human body is in an active state, the countdown is stopped, and the process returns to step S2.

S4: after the countdown is finished, the lamp is turned off, and the human body sensor is in a standby state;

in the embodiment of the invention, if the feedback signal of the human body sensor in the triggering state is not received, the operation is still stopped in the step S4, and the operation does not enter the step S5;

for example, in one embodiment, the presence of a human body is not sensed during the countdown, and at the end of the countdown, the light is turned off, and at the same time, the human body sensor is placed in a standby state, and the process proceeds to step S5 only when the human body sensor is triggered, and stays in step S4 when the human body sensor is not triggered all the time.

S5: receiving a feedback signal of the human body sensor in a triggering state, acquiring the feedback signal of the light sensor, and judging whether the feedback signal is in the triggering state;

in the embodiment of the present invention, if the obtained feedback signal of the light sensor is in an unfired state, the process returns to step S1;

for example, in a specific embodiment, after the body sensor is triggered, the acquired feedback signal of the light sensor is analyzed, when it is determined that the light sensor is triggered after the analysis, it indicates that light is sensed to be present, and the step S6 is performed, and when it is determined that the light sensor is not triggered after the analysis, it indicates that light is not sensed to be present, i.e., a body is present in a dim environment, and the step S1 is performed again.

S6: acquiring a feedback signal of the light sensor in a trigger state, and turning off the lamp and not receiving the feedback signal of the human body sensor any more;

in an embodiment of the present invention, for example, in a specific embodiment, when it is determined that the light sensor is triggered, it indicates that light is sensed, that is, a human body exists in a bright environment, at this time, the lamp does not need to be turned on again, and meanwhile, the feedback signal of the human body sensor is not received until the lamp enters a night light mode again manually or automatically.

A hall-based night light control method of the present invention, the numerical terms "first", "second", and "third", etc. do not denote any particular quantity or order, but are merely used for identification of names, and the terms "include", or any other variations thereof are intended to cover non-exclusive inclusions, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed or 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.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种直流照明供电中应对线路漏电的处理系统及处理方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!