Control method and device for story accompanying lamp, story accompanying lamp and storage medium

文档序号:1580170 发布日期:2020-01-31 浏览:24次 中文

阅读说明:本技术 故事陪伴灯的控制方法、装置、故事陪伴灯及存储介质 (Control method and device for story accompanying lamp, story accompanying lamp and storage medium ) 是由 贺爱文 荆倩 于 2019-10-31 设计创作,主要内容包括:本发明公开了一种故事陪伴灯的控制方法、装置、故事陪伴灯及存储介质,该方法包括:启动第一睡眠模式,并控制灯光亮度和播放音量逐渐减弱;在所述第一睡眠模式结束后,判断环境声音能量值是否小于第一阈值;若所述环境声音能量值小于第一阈值,则控制所述故事陪伴灯的灯光和声音关闭。本发明的技术方案,一方面在开启睡眠模式时通过同时控制灯光亮度和播放音量逐渐减弱,达到了配合用户逐渐进睡眠的状态进行声音和灯光调整的效果,提升的入睡质量。另一方面,在环境声音能量值小于第一阈值时,再控制所述故事陪伴灯的灯光和声音关闭,达到了配合用户已入睡的状态关闭故事陪伴灯的效果,避免了用户还未入睡就已关闭故事陪伴灯的状况。(The invention discloses a control method and a control device of story accompanying lamps, the story accompanying lamps and a storage medium, wherein the method comprises the steps of starting a sleep mode, controlling the light brightness and the playing volume to gradually weaken, judging whether the ambient sound energy value is smaller than a th threshold value or not after the th sleep mode is finished, and controlling the light and the sound of the story accompanying lamps to be closed if the ambient sound energy value is smaller than a th threshold value.)

1, story companion lamp's control method, characterized by, including:

sleep mode is started, and the brightness and volume of light are gradually reduced;

after the th sleep mode is finished, judging whether the ambient sound energy value is smaller than a th threshold value;

and if the environmental sound energy value is smaller than the th threshold value, controlling the light and the sound of the story accompanying lamp to be turned off.

2. The control method of a story companion lamp as claimed in claim 1, wherein after the controlling of the light and sound of the story companion lamp to off, further comprising:

judging whether the ambient sound energy value is larger than a second threshold value or not;

and if the environmental sound energy value is larger than the second threshold value, controlling the light and/or the sound of the story accompanying lamp to be turned on.

3. The control method of a story accompanying lamp as claimed in claim 2, wherein the controlling of the light and/or sound of the story accompanying lamp to be turned on further comprises:

and starting a second sleep mode, and controlling the brightness of the lamp light and/or the playing volume to gradually weaken.

4. The story companion lamp controlling method of claim 3, wherein a running time of the second sleep mode is less than a running time of the th sleep mode.

5. The method for controlling a story companion lamp as claimed in claim 2, wherein the controlling the lighting and/or sound of the story companion lamp to turn on if the ambient sound energy value is greater than the second threshold further comprises:

if the energy value of the environmental sound is larger than the second threshold value, analyzing the type of the environmental sound;

and if the type of the environmental sound is crying, controlling the light and/or the sound of the story accompanying lamp to be turned on.

6. The method for controlling a story companion lamp in accordance with claim 1, wherein starting sleep mode and controlling the light brightness and volume to fade down further comprises:

starting sleep mode, and judging whether the environment sound energy value is less than the third threshold value;

and if the ambient sound energy value is smaller than the third threshold value, controlling the light brightness and the playing volume to gradually weaken.

7. The method for controlling a story companion lamp as claimed in claim 1, wherein after said determining whether the ambient sound energy value is less than th threshold value, further comprising:

and if the environmental sound energy value is larger than the th threshold value, controlling the story accompanying lamp to keep the target lamp brightness and the target playing volume.

8, story companion lamp's controlling means, its characterized in that includes:

a sleep mode starting module used for starting sleep mode and controlling the brightness and the playing volume of the light to gradually weaken;

the judging module is used for judging whether the ambient sound energy value is smaller than a threshold value or not after the sleep mode is ended;

and the standby module is used for controlling the light and the sound of the story accompanying lamp to be turned off if the energy value of the environmental sound is smaller than the th threshold value.

9, kinds of story companion lamp, characterized by, including:

or more processors;

a storage device for storing or more programs,

when the or more programs are executed by the or more processors, the or more processors implement the method of controlling a story companion lamp of any of claims 1-7.

10, computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method of controlling a story companion light as claimed in any of claims 1-7 .

Technical Field

The embodiment of the invention relates to the technical field of story accompanying lamps, in particular to a control method and a control device for story accompanying lamps, a story accompanying lamp and a storage medium.

Background

The intelligent wearable device or the intelligent sleep sensor of a third party is usually used as a detection unit to detect the sleep of a human body, the design difficulty is high, the design is complex, the production cost is high, and the implementation is difficult.

Disclosure of Invention

The invention provides a control method and a control device for story accompanying lamps, the story accompanying lamps and a storage medium, so that the effect of adjusting sound and light in coordination with the sleeping state of a user is realized, and the sleeping quality is improved.

, the embodiment of the invention provides a method for controlling story accompanying lamps, which comprises:

sleep mode is started, and the brightness and volume of light are gradually reduced;

after the th sleep mode is finished, judging whether the ambient sound energy value is smaller than a th threshold value;

and if the environmental sound energy value is smaller than the th threshold value, controlling the light and the sound of the story accompanying lamp to be turned off.

Optionally, after the light and the sound of the story accompanying lamp are controlled to be turned off, the method further includes:

judging whether the ambient sound energy value is larger than a second threshold value or not;

and if the energy value of the environmental sound is larger than a second threshold value, controlling the light and/or the sound of the story accompanying lamp to be turned on.

Optionally, the controlling the light and/or sound of the story accompanying lamp to turn on further includes:

and starting a second sleep mode, and gradually reducing the brightness and/or the volume of the played light.

Optionally, the second sleep mode and the th sleep mode have different running times.

Optionally, the operation time of the second sleep mode is less than the operation time of the th sleep mode.

Optionally, if the ambient sound energy value is greater than a second threshold, controlling the light and/or sound of the story accompanying lamp to turn on further includes:

if the ambient sound energy value is greater than a second threshold value, analyzing the type of the ambient sound;

and if the type of the environmental sound is crying, controlling the light and/or the sound of the story accompanying lamp to be turned on.

Optionally, starting sleep mode, and controlling the brightness and volume of light to gradually decrease, further comprising:

judging whether the ambient sound energy value is smaller than a third threshold value;

if the ambient sound energy value is less than a third threshold, a th sleep mode is initiated.

Optionally, after determining whether the ambient sound energy value is smaller than the th threshold, the method further includes:

and if the environmental sound energy value is larger than the th threshold value, controlling the story accompanying lamp to keep the target lamp brightness and the target playing volume.

In a second aspect, an embodiment of the present invention further provides an control apparatus for a story accompanying lamp, including:

a sleep mode starting module used for starting sleep mode and controlling the brightness and the playing volume of the light to gradually weaken;

the judging module is used for judging whether the ambient sound energy value is smaller than a threshold value or not after the sleep mode is ended;

and the standby module is used for controlling the light and the sound of the story accompanying lamp to be turned off if the energy value of the environmental sound is smaller than the th threshold value.

In a third aspect, an embodiment of the present invention further provides kinds of story accompanying lamps, including:

or more processors;

a storage device for storing or more programs,

when the or more programs are executed by the or more processors, the or more processors implement the method of controlling a story companion lamp as described in any above.

In a fourth aspect, an embodiment of the present invention further provides computer-readable storage media, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for controlling a story companion lamp as described in any above.

In addition, in the aspect of , when the energy value of the environmental sound is smaller than a th threshold value, the light and the sound of the story accompanying lamp are controlled to be turned off, the problem that the story accompanying lamp is turned off in the state that the user falls asleep when the user is not falling asleep is solved, the effect that the story accompanying lamp is turned off in the state that the user falls asleep is achieved, the condition that the story accompanying lamp is turned off when the user does not fall asleep is avoided, and the experience of the user is improved.

Drawings

The foregoing and other features and advantages of embodiments of the present invention will become more apparent to those of ordinary skill in the art to which the present invention pertains by describing in detail exemplary embodiments thereof with reference to the attached drawings, wherein:

fig. 1 is a flowchart of a method of controlling a story companion lamp in an embodiment of the present invention;

fig. 2 is a flowchart of a method of controlling a story companion lamp in embodiment of the present invention;

fig. 3 is a flowchart of a method of controlling a story companion lamp in embodiment of the present invention;

fig. 4 is a flowchart of a method for controlling a story accompanying light in the second embodiment of the present invention;

fig. 5 is a flowchart of a method for controlling a story accompanying light in the second embodiment of the present invention;

fig. 6 is a flowchart of a method for controlling a story accompanying light in the second embodiment of the present invention;

fig. 7 is a schematic diagram of a control device of a story accompanying lamp in a third embodiment of the invention;

fig. 8 is a schematic view of a control device of a story accompanying lamp in a third embodiment of the present invention;

fig. 9 is a schematic diagram of a story accompanying lamp in the fourth embodiment of the present invention.

Detailed Description

The technical solution of the present invention is further described as by the following detailed description in conjunction with the accompanying drawings, it is understood that the embodiments described herein are only for the purpose of explaining the present invention, and not for the purpose of limiting the invention.

The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention, the terminology used herein "and/or" includes any and all combinations of or more of the associated listed items.

Also, the terms "", "second", etc. may be used herein to describe various directions, actions, steps, or elements, etc., but these directions, actions, steps, or elements are not limited by these terms.

Before discussing exemplary embodiments in greater detail, it should be noted that exemplary embodiments are described as processes or methods depicted as flowcharts.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种动车所车辆段照明控制的系统及方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!