A kind of control method of light, system and lamps and lanterns
Technical field
The invention belongs to field of intelligent control technology, and in particular to a kind of control method of light, system and lamps and lanterns.
Background technology
It with scientific and technical continues to develop, intelligent control is widely used in each field, such as signal light control.Mesh
Before, have to the control mode of light:
One, mechanical switch control mode, as the patent document of Publication No. CN105351803A discloses a kind of lamps and lanterns, institute
It includes lamp holder, lampshade and light bulb to state lamps and lanterns, and the side of lamp holder and the side of lampshade are hinged, further includes the switch control with electromagnet
Circuit and bulb switch circuit processed, the energized state of the electromagnet of ON-OFF control circuit change the energization shape of then bulb switch circuit
State changes:When lampshade closes up with lamp holder, ON-OFF control circuit is closed, and electromagnet energization generates suction and so that bulb switch circuit is disconnected
Road, light bulb extinguish;When lampshade is separated with lamp holder, ON-OFF control circuit open circuit, electromagnet powers off suction and disappears so that bulb switch
Circuit is connected, and light bulb shines.This control mode operating method is simple, application cost is cheap;
Two, intelligent control method, as the patent document of Publication No. CN105611704A discloses one kind based on energy-efficient
Desk lamp open system, including desk lamp and with the desk lamp be wirelessly connected for wearing in the glasses on eyes of user, described
Lamp includes lighting control module, and photographing module is provided on the glasses, the method includes the steps:Pass through the photographing module
User Status is monitored, specially:User's eye real-time imaging is absorbed, the default figure that will be stored in the real-time imaging and database
Library compares, wherein the picture being closed comprising an at least eyes of user in the default picture library, when comparing out the real-time imaging
When being consistent with the default picture library, determine that user is sleep state;When it is sleep state to determine user, the photographing module
It generates corresponding sleep state information and is sent to the lighting control module of desk lamp;The lighting control module according to
The sleep state information controls light and closes;The intelligent control method needs user's wearing spectacles, however user is in resting state
Often glasses are taken, in order to avoid rest is influenced, therefore the user experience of this intelligent control method is bad.For another example Publication No.
The patent document of CN203120223U discloses a kind of wireless lighting brightness controlling device based on illuminance and infrared sensor,
Including the Light Control Unit and sensing and controlling device being connected, wherein:The Light Control Unit include the first controller,
WIFI communication units, light end power control unit;The sensing and controlling device include second controller, WIFI radio frequency units,
Ether net unit, optical sensor, infrared sensor, sensor side power control unit, the wireless lighting brightness controlling device
Whether the brightness and perception that environment can be perceived have object process, if ambient brightness is lower than the threshold value of user preset, and have
Object (for example, people or vehicle) passes through, then sending prefabricated lamplight brightness control command, lights light for a period of time, then again
It is restored to the brightness value of default setting, to realize intellectual control, but can not be according to the personal demand selection pair of user
The control of light.
In addition, in life, when people, is commonly encountered following scene:It lies on a bed and very tired but has to turn off the light, from midnight
Bed, which gets up to turn on light, but can not find switch, gos out and forget to turn off the electric light in room etc..Therefore, there is an urgent need for realize to obtain standard for this field
It really is turned on and off the instruction of light, and preferably meets user demand.
Invention content
Based on above-mentioned deficiency existing in the prior art, the present invention provides a kind of control method of light, system and lamps and lanterns.
In order to reach foregoing invention purpose, the present invention uses following technical scheme:
A kind of control method of light, includes the following steps:
S1, detect whether that there are gesture motions;
If S2, there are gesture motions, corresponding signal light control is executed according to gesture motion.According to the gesture motion of user
Corresponding signal light control is can perform, realizes the control according to the personal demand of user to light.
Preferably, before the step S1, further include:
S0, self-defined light open and close corresponding gesture motion.
Preferably, the step S2 includes the following steps:
S21, detected gesture motion gesture motion corresponding with light opening and closing is compared;
If S22, detected gesture motion are matched with the gesture motion that light is opened, light unlatching is controlled;If inspection
It surveys the gesture motion obtained to match with the gesture motion that light is closed, then controls light closing.
Preferably, further include following steps after the light is opened:
S23, it persistently detects whether there are gesture motion, by the first preset time, if arbitrary gesture motion is not detected,
Then control lights dim;
S24, using the second preset time, if arbitrary gesture motion is still not detected, control light closing.
Preferably, the step S24 further includes:If detecting arbitrary gesture motion, controls light and brighten.
Preferably, the step S0 further includes:Self-defined first preset time and the second preset time.
Preferably, after the light is closed, further include:It persistently detects whether there are gesture motion, if detection obtains
The gesture motion obtained is matched with the gesture motion that light is opened, then controls light unlatching.
The present invention also provides a kind of control systems of light, including:
Infrared sensor, for detecting whether there are gesture motions;
Comparing module, for detected gesture motion to be compared with preset standard gesture motion;
Control module, for executing corresponding signal light control according to comparison result.
Preferably, the control system further includes:
Custom block opens and closes corresponding gesture motion using as preset standard for self-defined light
Gesture motion;
The comparing module be used for by detected gesture motion gesture motion corresponding with light opening and closing into
Row compares;
If the gesture motion matching corresponding with light unlatching of detected gesture motion, the control module control lamp
Light is opened;If the gesture motion matching corresponding with light closing of detected gesture motion, the control module control lamp
Light is closed.
Preferably, the custom block is additionally operable to self-defined first preset time and the second preset time;If
In the first preset time after light unlatching, arbitrary gesture motion is not detected in the infrared sensor, then control module controls
Lights dim;If in the second preset time after the lights dim, it is dynamic that arbitrary gesture is still not detected in the infrared sensor
Make, then control module control light is closed.
The present invention also provides a kind of lamps and lanterns, using the light described in either a program as above control method and/or such as take up an official post
The control system of light described in one scheme.
Compared with prior art, the present invention advantageous effect is:
The control method of light of the present invention intelligently realizes the control of light by identifying the gesture motion of user, realizes
Control according to the personal demand of user to light;Control method intelligence, the hommization of the light, and save the energy.
The control method and lamps and lanterns of light of the present invention have the technique effect that the control method of above-mentioned light has.
Description of the drawings
Fig. 1 is the flow chart of the control method of the light of the embodiment of the present invention one;
Fig. 2 is the frame diagram of the control system of the light of the embodiment of the present invention four.
Specific implementation mode
In order to illustrate the embodiments of the present invention more clearly, below by the specific implementation mode of the control description of the drawings present invention.
It should be evident that drawings in the following description are only some embodiments of the invention, those of ordinary skill in the art are come
It says, without creative efforts, other drawings may also be obtained based on these drawings, and obtains other real
Apply mode.
Embodiment one:
As shown in Figure 1, the control method of the present embodiment light, includes the following steps:
S1, mobile terminal and intelligent bulbs are bound, and specifically, intelligent bulbs, intelligence are bound by the App of mobile terminal
Wireless WiFi chip built in energy light bulb, by wireless WiFi chip and mobile terminal wireless communication connects and access server,;Separately
Outside, step S1 can also include step S11, and the light that light bulb can be directly controlled by the App of mobile terminal opens and closes.
Wherein, mobile terminal includes memory, Memory Controller, one or more processors (CPU), interface circuit, RF (radio frequency)
Circuit, voicefrequency circuit, loud speaker, microphone, input/output (I/O) subsystem, touch display screen, wireless chip, other outputs
Or control device and outside port;These components are communicated by one or more communication bus or signal wire;It is mobile whole
End can be any portable electronic device, and including but not limited to laptop, tablet computer, smart mobile phone, multimedia is broadcast
Put device, personal digital assistant (PDA) etc..
S2, custom action and time on the App of mobile terminal, including:S21, user, which can customize, to be lamped on and off
Action;S22, user can customize lamp it is dimmed and close time-out time.Specifically, by the interfaces App of mobile terminal to light
It opens and closes corresponding gesture motion and carries out self-defined be arranged as preset standard gesture motion, also to pass through movement
The second preset time that intelligent bulbs dimmed the first preset time of time-out and intelligent bulbs are also closed in the interfaces App of terminal into
The self-defined setting of row.For example, it can wave that light, which opens corresponding gesture motion, light closes corresponding gesture motion can be with
It is to push hand, the first dimmed preset time of intelligent bulbs time-out can be 5 minutes, the second preset time that intelligent bulbs are closed
It can be 10 seconds.
S3, detect whether that there are gesture motions;Specifically, it is persistently detected by the infrared sensor in intelligent bulbs
With the presence or absence of the gesture motion of user, for example, gesture motion can be to wave, push hand or other gesture motions etc..If in the presence of
Gesture motion then executes corresponding signal light control according to gesture motion;If gesture motion is not present, without any operation.
Specifically, infrared chip captures switch lamp action, carries out the switch of real-time light, i.e., can be held according to the gesture motion of user
The corresponding signal light control of row, realizes the control according to the personal demand of user to light.
Specifically, above-mentioned steps S3 includes the following steps:
S31, the detected gesture motion of infrared sensor gesture motion corresponding with light opening and closing is carried out
It compares;Wherein, it can be a list that light, which opens and closes corresponding gesture motion, gathered in list it is one or more with
Light opens corresponding gesture motion, such as:It waves, the gesture of OK, the gesture of ticking etc., one or more has also been gathered in list
A gesture motion corresponding with light closing, such as:Push hand, the gesture of cross, the gesture etc. drawn a circle.Preferably, in gesture
Action and light establish Hash table between being turned on and off, and are opened convenient for the detected gesture motion of infrared sensor and light
It is quickly compared with corresponding gesture motion is closed.
If S32, detected gesture motion are matched with the gesture motion that light is opened, light unlatching is controlled;If inspection
It surveys the gesture motion obtained to match with the gesture motion that light is closed, then controls light closing;If detected gesture motion
The gesture motion opened and closed with light mismatches, then without any operation.
Wherein, further comprising the steps of after control light is opened:
S4, persistently detect whether that there are gesture motions;
S41, by the first preset time, if arbitrary gesture motion is not detected, control lights dim;Specifically, lead to
The infrared sensor crossed in the intelligent bulbs persistently detects whether that there are gesture motions, if in the first preset time 5 minutes
Do not detect that (such as light opens and closes corresponding gesture motion or do not detect that gesture is dynamic arbitrary gesture motion inside
Make), then illustrate that user enters sleep or stays out, then controls that light is automatically dimmed, i.e., user's time-out does not have any action, lamp
Light is dimmed, goes to step S42;If detecting gesture motion in 5 minutes in the first preset time, to the first preset time into
Row resetting, restarts timing, repeats this step.
S42, using the second preset time, if arbitrary gesture motion is still not detected, control light closing.Specifically
Ground is persistently detected whether by the infrared sensor in intelligent bulbs there are arbitrary gesture motion, if lights dim 10
In second, still without any user gesture action is detected, light bulb is automatically closed, i.e., after lights dim, user's time-out, which does not have, appoints
What is acted, and closes light bulb;Continue to go to step S3.
S43, otherwise, that is, when detecting any user gesture action, light brightens again, i.e., has in user's time-out any dynamic
Make, light brightens, continues to go to step S3.
In addition, after light closing, above-mentioned steps are recycled, are persistently detected by the infrared sensor in intelligent bulbs
With the presence or absence of gesture motion, if detected gesture motion is matched with the gesture motion that light is opened, light unlatching is controlled;
Otherwise, light length is kept to go out.
The control method of the present embodiment light intelligently realizes the control of light by identifying the gesture motion of user, real
The now control according to the personal demand of user to light;Control method intelligence, the hommization of the light, and save the energy.In addition,
Gesture motion may be replaced by other actions of body.
Embodiment two:
The control method of the present embodiment light with embodiment one the difference is that:
The control method of the present embodiment light, including:The switching of normal control mode and Automatic Control pattern.Wherein,
Light normal control mode is:Light is controlled by the App of mobile terminal to open, light keeps being always on state after opening, and passes through
The App control light of mobile terminal is closed, and can just be made to be always on state switching and is in off state, be suitable for working condition, without point
The heart goes to execute corresponding gesture motion.When being switched to Automatic Control pattern, the lamp of the control method and embodiment one of light
Light control method is consistent.
Other steps can be with reference implementation example one.
Embodiment three:
The control method of the present embodiment light with embodiment one the difference is that:To the step S41 in embodiment one
It is defined with the arbitrary gesture motion of S42.
Specifically, the arbitrary gesture motion in step S41 and S42 be particularly limited as light open corresponding gesture motion or
The corresponding gesture motion that the other light of person are persistently opened, such as:Whens light can be set persistently opening 5 minutes or 10 minutes etc.
Limit corresponding gesture motion.It may be implemented to open freely controlling for time limit to light.
Other steps can be with reference implementation example one.
Example IV:
The control system of the light of the present embodiment corresponds to the control method of the light described in embodiment one.Specifically, such as
Shown in Fig. 2, the control system of the present embodiment light includes:
Custom block opens and closes corresponding gesture motion to make for passing through the self-defined light of mobile terminal
For preset standard gesture motion, it is additionally operable to self-defined first preset time and the second preset time;Specifically, by mobile whole
The App at end opens and closes corresponding gesture motion to light and carries out self-defined setting, also also by the App of mobile terminal
The second preset time that first preset time and intelligent bulbs dimmed to intelligent bulbs time-out is closed carries out self-defined setting.Tool
Body, wireless WiFi chip built in intelligent bulbs is connected by wireless WiFi chip and mobile terminal wireless communication and accesses clothes
Business device is arranged the corresponding gesture motion of light opening and closing by the interfaces App of mobile terminal and intelligent bulbs is super
When the second preset time for closing of dimmed the first preset time and intelligent bulbs.In addition, the present embodiment can also be by mobile whole
The App at end directly controls light opening and closing.For example, it can wave that light, which opens corresponding gesture motion, light is closed
Corresponding gesture motion can push hand, and the first dimmed preset time of intelligent bulbs time-out can be 5 minutes, intelligent bulbs
The second preset time closed can be 10 seconds.
Infrared sensor, for detecting whether there are gesture motions;Specifically, infrared sensor is laid in the interior of light bulb
Portion, the visual field is wide, convenient for whole spaces under detection light bulb.In addition, infrared sensor can also be located at other positions, such as wall
The positions such as top, bedside.
Comparing module is communicated to connect with custom block, infrared sensor, is used for detected gesture motion and lamp
Light opens and closes corresponding gesture motion and is compared and exports comparison result;Specifically, when infrared sensor detects hand
Gesture acts, then gesture motion information is sent to comparing module, and comparing module opens detected gesture motion and light
It is compared with corresponding gesture motion is closed, and exports comparison result;Comparison result includes:Detected gesture motion with
The gesture motion that light is opened matches, detected gesture motion matches with the gesture motion that light is closed, is detected
The gesture motion that gesture motion is opened and closed with light mismatches.
Control module is communicated to connect with comparing module, for executing corresponding light according to the comparison result of gesture motion
Control.Specifically, when comparison result is that detected gesture motion is matched with the gesture motion that light is opened, then control module
Light is controlled to open;When comparison result be detected gesture motion matched with the gesture motion that light is closed, then control mould
Block controls light and closes.Control module use embedded microprocessor, microcontroller chip be internally integrated ROM/EPROM,
RAM, bus, bus logic, Timer/Counter, house dog, I/O, serial port, non-inverting input (PWM), A/D, D/A,
The various necessary functions such as Flash, EEPROM and peripheral hardware;The maximum feature of microcontroller is singualtion, and power consumption is at low cost, reliability
It is high;There are commonly 8051, MCS series, C540, MSP430 series etc..
Wherein, after control module control light is opened, it is dynamic also persistently to detect whether that there are gestures by infrared sensor
Make, by the first preset time 5 minutes, if arbitrary gesture motion is not detected always in infrared sensor, (such as light was opened
With close corresponding gesture motion or do not detect gesture motion), illustrate that user enters sleep or stays out, then control mould
It is automatically dimmed that block controls light;It continues through infrared sensor to detect whether there are gesture motion, using the second preset time
10 seconds, if arbitrary gesture motion is still not detected in infrared sensor, control module controlled light and closes;If second
Preset time detects gesture motion in 10 seconds, then control module control light brightens again.If in the first preset time 5
In minute, infrared sensor detects gesture motion, then is reset to the first preset time, restarts timing, and repetition follows
Ring aforesaid operations.
In addition, after control module control light is closed, persistently detected by the infrared sensor in intelligent bulbs
With the presence or absence of gesture motion, when the detected gesture motion of comparison module is matched with the gesture motion that light is opened, control
Molding block controls light and opens;Otherwise, light length is kept to go out.
The control system of the present embodiment light intelligently realizes the control of light by identifying the gesture motion of user, real
The now control according to the personal demand of user to light;The intelligent control of light, hommization, and save the energy.In addition, gesture is dynamic
It may be replaced by other actions of body.
Embodiment five:
The control system and example IV of the present embodiment light the difference is that:
The control system of the present embodiment light further includes handover module, is communicated to connect with control module, and normal control is used for
The switching of pattern and Automatic Control pattern.Wherein, light normal control mode is:Light is controlled by the App of mobile terminal
It opens, light keeps being always on state after opening, and controlling light by the App of mobile terminal closes, and can just make to be always on state switching
It is in off state, is suitable for working condition, corresponding gesture motion is executed without diverting one's attention.When being switched to Automatic Control pattern
When, the control of light is consistent with the signal light control described in example IV.
The function of other modules and module can be with reference implementation example four.
Embodiment six:
The control system and example IV of the present embodiment light the difference is that:To arbitrary involved in example IV
Gesture motion is further limited.
Specifically, the arbitrary gesture motion limit of the infrared sensor detection in the first preset time and in the second preset time
It is set to the corresponding gesture motion that light opens corresponding gesture motion or other light are persistently opened, such as:It can be arranged
Light persistently opens the time limits corresponding gesture motion such as 5 minutes or 10 minutes.It may be implemented to open freely controlling for time limit to light
System.Wherein, the time limit that light is persistently opened can carry out self-defined setting by custom block.
The function of other modules and module can be with reference implementation example four.
The present invention also provides a kind of lamps and lanterns, using the control method and/or as above of the light described in any embodiment as above
The control system of light described in any embodiment.The lamps and lanterns of the present embodiment can pass through the gesture motion of identification user, intelligence
The control of light is realized on ground, realizes the control according to the personal demand of user to light;The intelligent control of light, hommization, and
Save the energy.
It should be noted that above-described embodiment can be freely combined as needed.The above is only to the excellent of the present invention
Embodiment and principle is selected to be described in detail, for those of ordinary skill in the art, the thought provided according to the present invention,
It will change in specific implementation mode, and these changes should also be regarded as the scope of the invention.