CN111654956A - Control method and device of sleep lamp, sleep lamp and storage medium - Google Patents

Control method and device of sleep lamp, sleep lamp and storage medium Download PDF

Info

Publication number
CN111654956A
CN111654956A CN202010397093.1A CN202010397093A CN111654956A CN 111654956 A CN111654956 A CN 111654956A CN 202010397093 A CN202010397093 A CN 202010397093A CN 111654956 A CN111654956 A CN 111654956A
Authority
CN
China
Prior art keywords
sleep
environment
lamp
brightness
sleep lamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010397093.1A
Other languages
Chinese (zh)
Other versions
CN111654956B (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Topband Electronic Technology Co Ltd
Original Assignee
Huizhou Topband Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Topband Electronic Technology Co Ltd filed Critical Huizhou Topband Electronic Technology Co Ltd
Priority to CN202010397093.1A priority Critical patent/CN111654956B/en
Publication of CN111654956A publication Critical patent/CN111654956A/en
Application granted granted Critical
Publication of CN111654956B publication Critical patent/CN111654956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention is suitable for the technical field of sleep lamps, and provides a sleep lamp control method, a sleep lamp control device, a sleep lamp and a storage medium, wherein the method comprises the following steps: when the current time point is within a preset time period, controlling the sleep lamp to start an intelligent mode; when the environment where the sleep lamp is located is detected to change, acquiring the changed environment position; determining the brightness of the sleep lamp according to the environment position; controlling the sleep light to turn on at the brightness. According to the invention, whether the user is in a moving state is judged by monitoring the state change of the environment where the sleep lamp is located, when the change of the environment where the sleep lamp is located caused by the movement of the user is judged, the changed environment position is obtained, and the light display with different brightness is carried out according to different environment positions, so that the sleep lamp is not required to be manually turned on by the user at night.

Description

Control method and device of sleep lamp, sleep lamp and storage medium
Technical Field
The invention belongs to the technical field of sleep lamps, and particularly relates to a sleep lamp control method and device, a sleep lamp and a storage medium.
Background
In order to facilitate life, intelligent lamps with various shapes and functions are put out on the market, and convenience is provided for night life of people.
People have different needs for night lighting at different activities. For example, strong illumination is required for working or reading at night to clearly see the object to be treated, and weak illumination is sufficient when the person is at night or walking. Therefore, the existing intelligent lamp has various illumination brightness which can be adjusted, and a user can select the brightness which meets the self requirement.
However, the brightness of the existing intelligent lamp capable of adjusting the illumination brightness needs to be adjusted manually, and the brightness required by the intelligent lamp is searched through multiple times of switching, so that the operation of a user is complicated, and the use of the user is inconvenient.
Disclosure of Invention
The embodiment of the invention aims to provide a control method and device of a sleep lamp, the sleep lamp and a storage medium, and aims to solve the problem that in the use process of the existing sleep lamp, a user needs to manually turn on the sleep lamp to perform light illumination, so that the operation of the user is complicated.
The embodiment of the invention is realized in such a way that the control method of the sleep lamp comprises the following steps:
when the current time point is within a preset time period, controlling the sleep lamp to start an intelligent mode;
when the environment where the sleep lamp is located is detected to change, acquiring the changed environment position;
determining the brightness of the sleep lamp according to the environment position;
controlling the sleep light to turn on at the brightness.
Further, the step of determining the brightness of the sleep light according to the environment position comprises:
when the environment position is outside a preset area, the brightness of the sleep lamp is a first preset brightness;
when the environment position is in a preset area, the brightness of the sleep lamp is a second preset brightness, and the second preset brightness is smaller than the first preset brightness.
Further, after the step of controlling the sleep light to be turned on at the brightness, the method further includes:
and after the environment is not changed any more and a preset time interval is maintained, controlling the sleep lamp to be turned off.
Further, after the step of controlling the sleep lamp to start the smart mode, the method further includes:
when a control instruction of a sleep mode is detected, the step of acquiring the changed environment position when the environment where the sleep lamp is detected is changed is executed;
when the control instruction of the sleep mode is not detected, the sleep lamp is controlled to be turned on in a full-on mode when the change of the environment where the sleep lamp is located is detected, and the sleep lamp is controlled to be turned off when the environment returns to the initial environment state.
Furthermore, when the sleep lamp starts the intelligent mode, the initial environment state of the environment where the sleep lamp is located is recorded, and when the environment state of the environment is different from the initial environment state, the environment is judged to be changed.
Another object of an embodiment of the present invention is to provide a control apparatus for a sleep lamp, the apparatus including:
the intelligent mode starting unit is used for controlling the sleep lamp to start an intelligent mode when the current time point is within a preset time period;
the environment position acquisition unit is used for acquiring the changed environment position when detecting that the environment where the sleep lamp is located is changed;
the brightness determining unit is used for determining the brightness of the sleep lamp according to the environment position;
and the light-on control unit is used for controlling the sleep lamp to be turned on at the brightness.
Furthermore, the brightness determining unit is further configured to determine the brightness of the sleep light as a first preset brightness when the environment position is outside a preset region;
when the environment position is in a preset area, the brightness of the sleep lamp is a second preset brightness which is smaller than the first preset brightness
Still further, the apparatus further comprises:
and the light-off control unit is used for controlling the sleep light to be turned off after the environment is not changed any more and a preset time interval is maintained.
Still further, the apparatus further comprises:
the execution unit is used for executing the step of acquiring the changed environment position when the change of the environment where the sleep lamp is located is detected when the control instruction of the sleep mode is detected;
and the control unit is used for controlling the sleep lamp to be turned on in a full-bright mode when the control instruction of the sleep mode is not detected and the environment where the sleep lamp is located is detected to be changed, and controlling the sleep lamp to be turned off when the environment returns to the initial environment state.
Furthermore, when the sleep lamp starts the intelligent mode, the initial environment state of the environment where the sleep lamp is located is recorded, and when the environment state of the environment is different from the initial environment state, the environment is judged to be changed.
Another objective of an embodiment of the present invention is to provide a sleep lamp, which includes an environment detection module, where the environment detection module is configured to detect whether an object in an environment changes, and the sleep lamp further includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, the sleep lamp executes any one of the above control methods.
It is another object of an embodiment of the present invention to provide a storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing any one of the above-mentioned control methods for a sleep light.
According to the embodiment of the invention, whether the user is in the moving state is judged by monitoring the state change of the environment where the sleep lamp is located, when the change of the environment where the sleep lamp is located caused by the movement of the user is judged, the changed environment position is obtained, and the light display with different brightness is carried out according to different environment positions, so that the sleep lamp is not required to be manually turned on at night, and the use experience of the user is improved.
Drawings
Fig. 1 is a flowchart of a control method of a sleep light according to a first embodiment of the present invention;
fig. 2 is a flowchart of a control method of a sleep light according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an environment in which a sleep light according to a second embodiment of the present invention is located;
fig. 4 is a flowchart of a control method of a sleep light according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a control device of a sleep light according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a sleep lamp according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, a flowchart of a method for controlling a sleep light according to a first embodiment of the present invention includes the steps of:
step S10, when the current time point is within a preset time period, controlling the sleep lamp to start an intelligent mode;
the preset time period can be set according to the requirements of the user, for example, the preset time period can be set from 18 o 'clock of the first day to 5 o' clock of the second morning, and when the current time period is judged to be within the range from 18 o 'clock of the first day to 5 o' clock of the second morning, the sleep lamp is correspondingly controlled to start the intelligent mode;
preferably, in this step, the intelligent mode is used to set a default environment for the current environment of the sleep lamp, that is, when it is determined that the current environment of the sleep lamp is in a static state within a time threshold, the current environment of the sleep lamp is set as the default environment;
specifically, in this step, the sleep lamp is provided with living object detection, the living object detection device may perform living object detection on the current environment of the sleep lamp in a manner of an ultrasonic transceiver or an infrared detector, and when a detection value of the ultrasonic transceiver or the infrared detector is greater than a detection threshold, it is determined that there is movement of a living object in the current environment of the sleep lamp, and the current environment is in a motion state;
for example, when it is determined that the current environment of the sleep lamp is in a static state within 30 seconds, that is, when it is determined that the user does not move within 30 seconds of the current environment of the sleep lamp, the current environment of the sleep lamp is set as a default environment, and when it is determined that the user moves within 30 seconds of the current environment of the sleep lamp, timing is performed again for 30 seconds;
preferably, in this step, when it is determined that the current environment of the sleep lamp is in a static state within the time threshold, data updating is performed on the current default environment according to the current environment of the sleep lamp;
step S20, detecting whether the environment of the sleep lamp changes;
the method comprises the steps that whether the environment where a sleep lamp is located is different from the default environment or not is judged in real time, so that whether the environment where the sleep lamp is located is changed or not is detected;
specifically, in the step, when the updating of the default environment is completed, the current detection value of the ultrasonic transceiver or the infrared detector is recorded to obtain a default parameter value, the current detection value of the environment where the sleep lamp is located is detected in real time through the ultrasonic transceiver or the infrared detector, and whether the environment where the sleep lamp is located changes is detected by judging whether the current detection value is the same as the default parameter value;
when the condition that the environment where the sleep lamp is located is not changed is detected, operation control is not carried out on the sleep lamp;
when detecting that the environment where the sleep lamp is located is changed, executing step S30;
step S30, acquiring the changed environment position, and determining the brightness of the sleep lamp according to the environment position;
when the current detection value is judged to be different from the default parameter value, acquiring a changed environment position based on the detection parameter of the ultrasonic transceiver or the infrared detector;
preferably, in this embodiment, the light control brightness corresponding to different environmental positions is different, so that the corresponding control brightness is queried based on the acquired environmental position;
for example, when the environment position is judged to correspond to a door position, the brightness corresponding to the door position can be high brightness, and when the environment position is judged to correspond to a bed position, the brightness corresponding to the bed position can be soft light brightness, so that the excessively high light brightness of a user when the user stands up at night is effectively prevented, and the use experience of the user is improved;
step S40, controlling the sleep light to turn on at the brightness;
this embodiment monitors through the state transform based on to sleep lamp place environment to judge whether the user is in the mobile state, when judging because the user removes when leading to sleep lamp place environment to change, acquire the environmental position that changes, and carry out the light demonstration of different luminance according to different environmental position, and then make night need not the manual operation to the sleep lamp of user, improved user's use and experienced.
Example two
Referring to fig. 2, it is a flowchart of a control method of a sleep light according to a second embodiment of the present invention, including the steps of:
step S11, when the current time point is within a preset time period, controlling the sleep lamp to start an intelligent mode, and recording the initial environment state of the environment where the sleep lamp is located;
the sleep lamp is provided with living object detection, and the living object detection device can detect the living object of the current environment of the sleep lamp in an ultrasonic transceiver or infrared detector mode so as to obtain the initial environment state of the environment of the sleep lamp;
specifically, in the step, living object detection of the environment where the sleep lamp is located is performed in an ultrasonic wave transceiving array mode to obtain an initial environment state, and detection values of each ultrasonic wave transceiver in the ultrasonic wave transceiving array are sequentially stored in the initial environment state;
preferably, the number of the ultrasonic transceivers in the ultrasonic transceiver array can be set according to the requirements of users, in this embodiment, 3 ultrasonic transceivers are provided, and the detection areas of the ultrasonic transceivers in the environment where the sleep lamp is located are different;
for example, referring to fig. 3, the sleep light is disposed at the top left corner of a room, a first detection beam is formed between a first ultrasonic transceiver on the sleep light and the bottom left corner of a bed, and a second detection beam is formed between a third ultrasonic transceiver on the sleep light and the top right corner of the bed;
the first ultrasonic transceiver is used for detecting living objects in a first area formed between the first detection wiring harness and the left wall of the room, the second ultrasonic transceiver on the sleep lamp is used for detecting living objects in a second area formed between the first detection wiring harness and the second detection wiring harness, and the third ultrasonic transceiver is used for detecting living objects in a third area formed between the second detection wiring harness and the right wall of the room;
recording detection values of the first ultrasonic transceiver, the second ultrasonic transceiver and the third ultrasonic transceiver to obtain an initial environment state, wherein the ultrasonic detection values of the first area, the second area and the third area are sequentially stored in the initial environment state;
in addition, in this step, the intelligent mode is used to set a default environment for the current environment of the sleep lamp, that is, when it is determined that the current environment of the sleep lamp is in a static state within a time threshold, the current environment of the sleep lamp is set as the default environment, specifically, when it is determined that none of the ultrasonic detection values of the first region, the second region, and the third region within the time threshold has changed, the current environment of the sleep lamp is set as the default environment;
step S21, determining whether there is a difference between the environmental state of the environment and the initial environmental state;
the first ultrasonic transceiver, the second ultrasonic transceiver and the third ultrasonic transceiver detect the first area, the second area and the third area in real time, namely, in the step, whether the ultrasonic detection values of the first area, the second area and the third area are different from default parameter values in a default environment is judged in real time so as to judge whether the environment state of the environment is different from the initial environment state;
when there is a difference between the environmental state of the environment and the initial environmental state, performing step S31;
step S31, judging that the environment where the sleep lamp is located changes, and acquiring the changed environment position;
when any ultrasonic detection value in the first area, the second area and the third area is judged to be different from a corresponding default parameter value in a default environment, the environment where the sleep lamp is located is judged to be changed;
for example, the default parameter values in the default environment include: a default parameter value a1 corresponding to the first zone, a default parameter value B1 corresponding to the second zone, and a default parameter value C1 corresponding to the third zone, the real-time detection values of the first, second, and third ultrasonic transceivers including: a detection value a2 corresponding to the first region, a detection value B2 corresponding to the second region, and a detection value C2 corresponding to the third region;
when any pair of parameters between the default parameter value A1 and the detection value A2, between the default parameter value B1 and the detection value B2 or between the default parameter value C1 and the detection value C2 are judged to be unequal, the environment where the sleep lamp is located is judged to be changed;
preferably, in this step, when it is determined that the environment in which the sleep lamp is located has changed, the changed environment position is acquired, for example, when it is determined that the default parameter value a1 is not equal to the detection value a2, the acquired conversion environment position is a first region, it is understood that when it is determined that the default parameter value B1 is not equal to the detection value B2, the acquired conversion environment position is a second region, and when it is determined that the default parameter value C1 is not equal to the detection value C2, the acquired conversion environment position is a third region;
in addition, it should be noted that the step of determining whether the default parameter value is equal to the detection value may also be performed in a manner of a difference range, that is, calculating a current difference between the default parameter value and the detection value, and determining whether an absolute value of the current difference is smaller than a difference threshold value, when determining that the absolute value of the current difference is smaller than the difference threshold value, determining that the default parameter value is equal to the detection value, when determining that the absolute value of the current difference is greater than or equal to the difference threshold value, determining that the default parameter value is not equal to the detection value, and an area corresponding to the detection value has an environmental change;
step S41, when the environment position is outside the preset area, the brightness of the sleep lamp is a first preset brightness, and the sleep lamp is controlled to be turned on at the first preset brightness;
the preset area may be set according to a requirement of a user, for example, the second area may be set as a preset area, that is, when it is determined that the environment position is not in the second area, the brightness of the sleep light is set as a first preset brightness, and the sleep light is controlled to be turned on at the first preset brightness;
preferably, the illumination intensity of the first preset brightness can be set according to the requirement of a user, and the user can control the illumination intensity of the first preset brightness by setting different output powers;
further, the preset region may be set as a combination of a plurality of regions, for example, both the first region and the second region may be set as preset regions, and in addition, the preset region may also be any region set by a user, that is, the preset region may be a combination between partial regions in any region;
step S51, when the environment position is in a preset area, the brightness of the sleep lamp is a second preset brightness, and the sleep lamp is controlled to be turned on at the second preset brightness;
the preset area is a second area, the range corresponding to the second area is an area formed between a bed and a sleep lamp, the second preset brightness is smaller than the first preset brightness, namely when a user gets up from the bed at night, the environment position changed by the environment is the second area, and in order to prevent the light brightness of the user from being too high at night, the second preset brightness is set to be smaller than the first preset brightness, so that the use experience of the user is effectively improved;
step S61, when the environment is not changed any more and the preset time interval is maintained, the sleep lamp is controlled to be turned off;
the preset time interval can be set according to the requirement of a user, for example, the preset time interval can be set to 30 seconds, that is, when the environment is no longer changed and maintained for 30 seconds, and no environment change is detected in other areas, the sleep lamp is controlled to be turned off.
Preferably, when it is determined that there is a change in the environment within 30 seconds, the sleep light is continuously turned on, and when it is determined that there is no change in the environment within 30 seconds but there is a change in the environment in another area, the sleep light is continuously turned on;
further, when the environment position is in the preset area, and the preset area is judged not to change within 30 seconds, but the environment change occurs outside the preset area, the sleep lamp is adjusted from the second preset brightness to the first preset brightness; when the environment position is outside the preset area, and the environment position is judged to be unchanged within 30 seconds outside the preset area, but the environment change occurs in the preset area, the sleep lamp is adjusted from the first preset brightness to the second preset brightness;
this embodiment monitors through the state transform based on to sleep lamp place environment to judge whether the user is in the mobile state, when judging because the user removes when leading to sleep lamp place environment to change, acquire the environmental position that changes, and carry out the light demonstration of different luminance according to different environmental position, and then make night need not the manual operation to the sleep lamp of user, improved user's use and experienced.
EXAMPLE III
Referring to fig. 4, a flowchart of a method for controlling a sleep light according to a third embodiment of the present invention includes the steps of:
step S12, when the current time point is within a preset time period, controlling the sleep lamp to start an intelligent mode, and recording the initial environment state of the environment where the sleep lamp is located;
step S22, determining whether there is a difference between the environmental state of the environment and the initial environmental state;
when there is a difference between the environmental state of the environment and the initial environmental state, performing step S32;
step S32, judging that the environment where the sleep lamp is located changes, and acquiring the changed environment position;
step S42, judging whether a control instruction of detecting the sleep mode exists;
the control instruction can be transmitted in a voice instruction mode, a touch instruction mode or a wireless instruction mode; the control instruction of the sleep mode can also be automatically generated when the current time point is in a sleep time period, wherein the sleep time period can be 22:00 to 5:00 on the next day;
when a control instruction of the sleep mode is detected, setting the sleep lamp to be in the sleep mode, and executing the step S52;
step S52, when the environment position is outside the preset area, the brightness of the sleep lamp is a first preset brightness, and the sleep lamp is controlled to be turned on at the first preset brightness;
step S62, when the environment position is in a preset area, the brightness of the sleep lamp is a second preset brightness, and the sleep lamp is controlled to be turned on at the second preset brightness;
the second preset brightness is smaller than the first preset brightness, the brightness values of the first preset brightness and the second preset brightness can be set according to the requirements of a user, for example, the first preset brightness can be set to be full brightness, the second preset brightness is half-bright or 1/4 brightness of light, the sleep mode is suitable for being used when the user needs to stand up at night or suckle, the preset area is arranged in an area formed by a bed and a sleep lamp, namely, when the user stands up at night or suckles, the preset area is subjected to environmental change, at the moment, the sleep lamp is controlled to be turned on at lower lamp brightness, and the phenomenon of discomfort of the user caused by over-strong light is effectively prevented;
step S72, when the environment is not changed any more and the preset time interval is maintained, the sleep lamp is controlled to be turned off;
when the control instruction of the sleep mode is not detected, the current sleep lamp is in an intelligent mode other than the sleep mode, and the step S82 is executed;
step S82, controlling the sleep lamp to be turned on in full brightness, and controlling the sleep lamp to be turned off when the environment returns to the initial environment state;
when the sleep lamp is in an intelligent mode except the sleep mode, if the environment changes, the sleep lamp is controlled to be turned on in a full-bright mode, and good light illumination can be effectively provided for a user;
specifically, in the step, the intelligent mode except the sleep mode is suitable for preventing the electric quantity waste caused by frequent forgetting to turn off the light when the user does not sleep at night and enters or exits the room occasionally;
in this embodiment, through monitoring based on the state transform to the environment that the sleep lamp belongs to judge whether the user is in the mobile state, when judging because the user removes and leads to the sleep lamp place environment to change, acquire the environmental position that changes, and carry out the light display of different luminance according to different environmental position, and then make night need not the manual operation to the sleep lamp of user, improved user's use and experienced.
Example four
Referring to fig. 5, a schematic structural diagram of a control device 100 for a sleep light according to a fourth embodiment of the present invention is shown, including: intelligent mode start unit 10, ambient position acquisition unit 11, luminance determination unit 12 and lighting control unit 13, wherein:
an intelligent mode starting unit 10, configured to control the sleep light to start an intelligent mode when a current time point is within a preset time period;
the environment position acquiring unit 11 is configured to acquire a changed environment position when detecting that an environment where the sleep lamp is located changes;
and the brightness determining unit 12 is used for determining the brightness of the sleep lamp according to the environment position.
The brightness determining unit 12 is further configured to determine the brightness of the sleep light as a first preset brightness when the environment position is outside a preset region;
when the environment position is in a preset area, the brightness of the sleep lamp is a second preset brightness, and the second preset brightness is smaller than the first preset brightness.
And a light-on control unit 13 for controlling the sleep light to be turned on at the brightness.
Still further, the apparatus further comprises:
and a lamp-off control unit 14, configured to control the sleep lamp to turn off after the environment is no longer changed and a preset time interval is maintained.
The execution unit 15 is configured to, when detecting a control instruction of a sleep mode, execute a step of acquiring a changed environment position when detecting that an environment where the sleep lamp is located is changed;
the control unit 16 is configured to, when the control instruction of the sleep mode is not detected, control the sleep lamp to turn on fully bright when the environment where the sleep lamp is located is detected to change, and control the sleep lamp to turn off when the environment returns to the initial environment state.
Furthermore, when the sleep lamp starts the intelligent mode, the initial environment state of the environment where the sleep lamp is located is recorded, and when the environment state of the environment is different from the initial environment state, the environment is judged to be changed.
This embodiment monitors through the state transform based on to sleep lamp place environment to judge whether the user is in the mobile state, when judging because the user removes when leading to sleep lamp place environment to change, acquire the environmental position that changes, and carry out the light demonstration of different luminance according to different environmental position, and then make night need not the manual operation of user to the sleep lamp, improved user's use and experienced.
EXAMPLE five
Referring to fig. 6, a sleep light 101 according to a fifth embodiment of the present invention includes an environment detection module 102, where the environment detection module 102 is configured to detect whether an object in an environment changes, the sleep light 101 further includes a processor 103, a memory 104, and a computer program stored in the memory 104 and executable on the processor 103, and when the processor 103 executes the computer program, the sleep light 101 executes the control method of the sleep light.
The present embodiment also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the control method of a sleep light, which, when executed by the processor 103, implements the steps of the control method of a sleep light described above, the program, when executed, comprising the steps of:
when the current time point is within a preset time period, controlling the sleep lamp to start an intelligent mode;
when the environment where the sleep lamp is located is detected to change, acquiring the changed environment position;
determining the brightness of the sleep lamp according to the environment position;
controlling the sleep light to turn on at the brightness. The storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units is merely used as an example, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the storage device is divided into different functional units to perform all or part of the above described functions. Each functional unit in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated units may be implemented in a form of hardware, or may be implemented in a form of software functional unit. In addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application.
Those skilled in the art will appreciate that the configuration shown in fig. 4 does not constitute a limitation of the control apparatus of the sleep lamp of the present invention, and may include more or less components than those shown, or combine some components, or different arrangement of components, and that the control method of the sleep lamp in fig. 1-3 is implemented using more or less components than those shown in fig. 4, or combine some components, or different arrangement of components. The units and the like referred to in the present invention are a series of computer programs that can be executed by a processor (not shown) in the control apparatus of the target sleep light and that can function to perform a specific function, and each of them can be stored in a storage device (not shown) of the control apparatus of the target sleep light.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (12)

1. A method of controlling a sleep light, the method comprising the steps of:
when the current time point is within a preset time period, controlling the sleep lamp to start an intelligent mode;
when the environment where the sleep lamp is located is detected to change, acquiring the changed environment position;
determining the brightness of the sleep lamp according to the environment position;
controlling the sleep light to turn on at the brightness.
2. The method of controlling a sleep light as set forth in claim 1, wherein the step of determining the brightness of the sleep light according to the environmental location comprises:
when the environment position is outside a preset area, the brightness of the sleep lamp is a first preset brightness;
when the environment position is in a preset area, the brightness of the sleep lamp is a second preset brightness, and the second preset brightness is smaller than the first preset brightness.
3. The method of controlling a sleep lamp as set forth in claim 2, wherein after the step of controlling the sleep lamp to turn on at the brightness, the method further comprises:
and after the environment is not changed any more and a preset time interval is maintained, controlling the sleep lamp to be turned off.
4. The method of controlling a sleep lamp as set forth in claim 1, wherein after the step of controlling the sleep lamp to initiate the smart mode, the method further comprises:
when a control instruction of a sleep mode is detected, the step of acquiring the changed environment position when the environment where the sleep lamp is detected is changed is executed;
when the control instruction of the sleep mode is not detected, the sleep lamp is controlled to be turned on in a full-on mode when the change of the environment where the sleep lamp is located is detected, and the sleep lamp is controlled to be turned off when the environment returns to the initial environment state.
5. The method for controlling a sleep light as claimed in any one of claims 1 to 4, wherein when the sleep light is activated in the smart mode, an initial environmental state of an environment in which the sleep light is located is recorded, and when there is a difference between the environmental state of the environment and the initial environmental state, it is determined that the environment is changed.
6. A control device for a sleep light, the device comprising:
the intelligent mode starting unit is used for controlling the sleep lamp to start an intelligent mode when the current time point is within a preset time period;
the environment position acquisition unit is used for acquiring the changed environment position when detecting that the environment where the sleep lamp is located is changed;
the brightness determining unit is used for determining the brightness of the sleep lamp according to the environment position;
and the light-on control unit is used for controlling the sleep lamp to be turned on at the brightness.
7. The control device of the sleep light as claimed in claim 6, wherein the brightness determination unit is further configured to determine the brightness of the sleep light to be a first preset brightness when the environment location is outside a preset region;
when the environment position is in a preset area, the brightness of the sleep lamp is a second preset brightness, and the second preset brightness is smaller than the first preset brightness.
8. The sleep lamp control apparatus as claimed in claim 7, wherein the apparatus further comprises:
and the light-off control unit is used for controlling the sleep light to be turned off after the environment is not changed any more and a preset time interval is maintained.
9. The control apparatus of a sleep lamp as set forth in claim 6, wherein the apparatus further comprises:
the execution unit is used for executing the step of acquiring the changed environment position when the change of the environment where the sleep lamp is located is detected when the control instruction of the sleep mode is detected;
and the control unit is used for controlling the sleep lamp to be turned on in a full-bright mode when the control instruction of the sleep mode is not detected and the environment where the sleep lamp is located is detected to be changed, and controlling the sleep lamp to be turned off when the environment returns to the initial environment state.
10. The apparatus for controlling a sleep light according to any one of claims 6 to 9, wherein an initial environmental state of an environment where the sleep light is located is recorded when the sleep light starts an intelligent mode, and when there is a difference between the environmental state of the environment and the initial environmental state, it is determined that the environment is changed.
11. A sleep lamp comprising an environment detection module for detecting whether an object in an environment changes, a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program and the sleep lamp performs the control method of the sleep lamp according to any one of claims 1 to 5.
12. A storage medium, characterized in that a computer program is stored thereon, which when executed by a processor implements the control method of a sleep light of any one of claims 1 to 5.
CN202010397093.1A 2020-05-12 2020-05-12 Control method and device of sleep lamp, sleep lamp and storage medium Active CN111654956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010397093.1A CN111654956B (en) 2020-05-12 2020-05-12 Control method and device of sleep lamp, sleep lamp and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010397093.1A CN111654956B (en) 2020-05-12 2020-05-12 Control method and device of sleep lamp, sleep lamp and storage medium

Publications (2)

Publication Number Publication Date
CN111654956A true CN111654956A (en) 2020-09-11
CN111654956B CN111654956B (en) 2023-03-24

Family

ID=72349511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010397093.1A Active CN111654956B (en) 2020-05-12 2020-05-12 Control method and device of sleep lamp, sleep lamp and storage medium

Country Status (1)

Country Link
CN (1) CN111654956B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112178874A (en) * 2020-11-05 2021-01-05 珠海格力电器股份有限公司 Control method of air conditioner, air conditioner and computer readable storage medium
CN114141229A (en) * 2021-10-20 2022-03-04 北京觅机科技有限公司 Sleep mode control method of reading accompanying desk lamp, terminal and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107087335A (en) * 2017-05-09 2017-08-22 浙江芯迈电子科技有限公司 The intelligent touch-control switching system and method for controlling switch of automatic detection environment
CN107222960A (en) * 2017-06-16 2017-09-29 深圳市盛路物联通讯技术有限公司 A kind of lighting apparatus control method and system
CN107277989A (en) * 2017-06-16 2017-10-20 深圳市盛路物联通讯技术有限公司 Intelligent House Light control method and device
CN108337770A (en) * 2018-01-08 2018-07-27 南宁市浩发科技有限公司 A kind of desk lamp control system and its control method
CN108601176A (en) * 2018-04-28 2018-09-28 深圳春沐源控股有限公司 Control method, system, computer equipment and the storage medium of brightness regulating apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107087335A (en) * 2017-05-09 2017-08-22 浙江芯迈电子科技有限公司 The intelligent touch-control switching system and method for controlling switch of automatic detection environment
CN107222960A (en) * 2017-06-16 2017-09-29 深圳市盛路物联通讯技术有限公司 A kind of lighting apparatus control method and system
CN107277989A (en) * 2017-06-16 2017-10-20 深圳市盛路物联通讯技术有限公司 Intelligent House Light control method and device
CN108337770A (en) * 2018-01-08 2018-07-27 南宁市浩发科技有限公司 A kind of desk lamp control system and its control method
CN108601176A (en) * 2018-04-28 2018-09-28 深圳春沐源控股有限公司 Control method, system, computer equipment and the storage medium of brightness regulating apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112178874A (en) * 2020-11-05 2021-01-05 珠海格力电器股份有限公司 Control method of air conditioner, air conditioner and computer readable storage medium
CN112178874B (en) * 2020-11-05 2022-01-07 珠海格力电器股份有限公司 Control method of air conditioner, air conditioner and computer readable storage medium
CN114141229A (en) * 2021-10-20 2022-03-04 北京觅机科技有限公司 Sleep mode control method of reading accompanying desk lamp, terminal and medium

Also Published As

Publication number Publication date
CN111654956B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN110691451B (en) Intelligent household electrical appliance light control method, equipment and storage medium
CN111654956B (en) Control method and device of sleep lamp, sleep lamp and storage medium
CN110049606B (en) Lamp control method, device and system and computer readable storage medium
WO2018129716A1 (en) Intelligent light control system and method
CN105453166A (en) Method and apparatus for regulating backlight brightness, and electronic device
CN109480708B (en) Position reminding method of cleaning robot
CN106371794A (en) Method and device for lighting screen
US8971868B2 (en) Mobile device that activates upon removal from storage
WO2016131256A1 (en) Screen control method and apparatus for wearable device
CN112178874B (en) Control method of air conditioner, air conditioner and computer readable storage medium
WO2014190067A1 (en) Mobile device that activates upon removal from storage
CN106922058B (en) Control method, the device and system of lamps and lanterns
CN112446017A (en) Light supplement control method, system, storage medium and computer equipment
CN107567153B (en) System and method for adjusting indoor light
CN113074487A (en) Refrigerator and control method thereof
CN112087845A (en) Light supplementing method and system based on detection lamp source
CN112728841A (en) Intelligent control method and device for lamp decoration, refrigerator and storage medium
CN105788568B (en) A kind of screen luminance adjustment method and device
CN113853044A (en) Illumination control method, system, storage medium, illumination terminal and desk lamp
CN107101333B (en) Air conditioner and threshold value adjusting method thereof
CN112188709A (en) Illumination control method, illumination device and desk lamp
CN113873735B (en) Lamplight control method and device for lamplight door, intelligent terminal and storage medium
CN106958924B (en) Air conditioner and threshold value adjusting method thereof
CN105551442B (en) The adjusting method and device of backlight illumination
CN113242637A (en) Light control method, system, equipment and medium for smart home

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant