CN104486890B - Lamp-lighting method and device - Google Patents
Lamp-lighting method and device Download PDFInfo
- Publication number
- CN104486890B CN104486890B CN201410849505.5A CN201410849505A CN104486890B CN 104486890 B CN104486890 B CN 104486890B CN 201410849505 A CN201410849505 A CN 201410849505A CN 104486890 B CN104486890 B CN 104486890B
- Authority
- CN
- China
- Prior art keywords
- light intensity
- value
- ambient light
- default
- threshold value
- 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.)
- Active
Links
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Abstract
The invention discloses a kind of lamp-lighting method and device, methods described includes:The current pressure values that object is born are obtained first;Default average pressure value is compared with above-mentioned current pressure values, is judged whether to obtain the ambient light intensity of surrounding according to comparative result;If so, the ambient light intensity around obtaining, and the ambient light intensity around acquisition is compared with default ambient light intensity threshold value, when the ambient light intensity around acquisition is less than default ambient light intensity threshold value, carry out bright light operation.Whole process of the present invention is not influenceed by external sound, and automatic bright light is realized exactly, meets people's nocturnalism needs, more intelligent and hommization.
Description
Technical field
The present invention relates to lighting technical field, more particularly to a kind of lamp-lighting method and device.
Background technology
People get up at midnight in the prior art when drinking water, going to toilet, and surrounding is very black, and acoustic control lamp is by detecting sound come automatic
Turn on light or mini light night is often bright or increases head of a bed lamp switch to turn on light.But acoustic control lamp is by detecting sound come automatic appearance of turning on light
Easy misoperation, snore such as midnight, stands up, car horn, may result in light extremely or frequently light, so as to influence to sleep
Dormancy quality wastes electric energy;Mini light night is often bright to waste electricity, and ambient light is too high, influences sleep quality;Increase head of a bed lamp switch to open
Lamp needs midnight to feel about in the dark to change pass, easily touches off thing or occurs unexpected (for example to touch off glasses, mobile phone, encounter boiling hot water bottle
Or kettle etc.), not enough intelligence and hommization.
The content of the invention
Based on above-mentioned situation, the present invention proposes a kind of lamp-lighting method and device, can be accurate when night people are movable
Automatic bright light is realized on ground, improves adventure in daily life and the quality of people.
To achieve these goals, the embodiment of technical solution of the present invention is:
A kind of lamp-lighting method, comprises the following steps:
Obtain the current pressure values that object is born;
Default average pressure value is compared with the current pressure values, is judged whether to obtain surrounding according to comparative result
Ambient light intensity;
If so, the ambient light intensity around obtaining, and by the ambient light intensity around acquisition and default ambient light intensity
Threshold value is compared, when the ambient light intensity around acquisition is less than the default ambient light intensity threshold value, carries out bright light behaviour
Make.
Another embodiment of technical solution of the present invention is:
A kind of lamp-enlightened device, including:
Pressure sensor block, for obtaining the current pressure values that object is born;
MCU module, for default average pressure value to be compared with the current pressure values, judges according to comparative result
Whether obtain the ambient light intensity of surrounding, if so, by brightness sensing module obtain around ambient light intensity, and by acquisition
The ambient light intensity of surrounding is compared with default ambient light intensity threshold value, and the ambient light intensity around acquisition is less than described
During default ambient light intensity threshold value, bright light operation is carried out;
The brightness sensing module, around when the MCU module judges to obtain the ambient light intensity of surrounding, obtaining
Ambient light intensity.
Compared with prior art, beneficial effects of the present invention are:Lamp-lighting method and device of the present invention, pass through detection object institute
The current pressure values born judge whether to obtain the ambient light intensity of Current ambient, if so, obtaining the environmental light intensity of Current ambient
Degree, then decides whether bright light, whole process is not influenceed by external sound according to the ambient light intensity of acquisition, realizes exactly certainly
Dynamic bright light, meets people's nocturnalism needs, more intelligent and hommization.
Brief description of the drawings
Fig. 1 is lamp-lighting method flow chart in one embodiment;
Fig. 2 is based on lamp-lighting method flow chart in method one shown in Fig. 1 specific example;
Fig. 3 is lamp-enlightened device structural representation in one embodiment.
Embodiment
For the objects, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with drawings and Examples, to this
Invention is described in further detail.It should be appreciated that embodiment described herein is only to explain the present invention,
Do not limit protection scope of the present invention.
Lamp-lighting method in one embodiment, as shown in figure 1, comprising the following steps:
Step S101:Obtain the current pressure values that object is born;
Step S102:Default average pressure value is compared with the current pressure values, is according to comparative result judgement
Ambient light intensity around no acquisition;The default average pressure value is obtained by counting in advance;
Step S103:If so, the ambient light intensity around obtaining, and by the ambient light intensity around acquisition and default ring
Border intensity threshold is compared, and when the ambient light intensity around acquisition is less than the default ambient light intensity threshold value, is entered
Row bright light is operated.
It is evidenced from the above discussion that, lamp-lighting method of the present invention, the current pressure values born by detection object judge whether
The ambient light intensity of Current ambient is obtained, if so, the ambient light intensity of Current ambient is obtained, then according to the environmental light intensity of acquisition
Degree decides whether bright light, realizes automatic bright light exactly at night, improves adventure in daily life and the quality of people, there is very high reality
Application value.
It is described to be compared default average pressure value with the current pressure values as one embodiment, according to comparing
As a result the step of judging whether the ambient light intensity around obtaining includes:
When the default average pressure value and the difference of the current pressure values are more than preset difference value threshold value, control is counted
Numerical value on device adds 1, and the numerical value on the counter and predetermined threshold value are compared;
Judged whether to obtain the ambient light intensity of surrounding according to comparative result;
Reduce a certain amount of by detecting the pressure value that object born, and after continuing for some time, obtain Current ambient
Ambient light intensity, bright light decided whether according to the ambient light intensity of acquisition, the above-mentioned numerical value according on counter obtains thing
The pressure value that body is born reduces a certain amount of duration, can use other modes detection object according to actual conditions herein
The pressure value size and duration born, realize automatic bright light, meet people's nocturnalism needs.
As one embodiment, after the progress bright light operation, in addition to step:
Lighting time is counted, when the lighting time of statistics being more than default lighting time threshold value, operation of turning off the light is carried out;
The time of user's bright light is reminded, different lighting time threshold values can be set according to actual needs, in one section of bright light
Turned off the light automatically after time, whole process need not be participated in manually, convenient, intelligence, more automation and hommization.
As one embodiment, after the progress bright light operation, before the statistics lighting time, in addition to step
Suddenly:
The default average pressure value is updated to the current pressure values;
Being updated can prevent some misoperations from occurring, for example:Without updating, then average pressure value is preset with obtaining
The numerical value that may be more than always on preset difference value threshold value, counter of the difference of current pressure values born of object be continuously increased
More than predetermined threshold value, if the ambient light intensity around now is less than default ambient light intensity threshold value, bright light operation, bright light are carried out
Constantly start from scratch afterwards statistics lighting time, then the lighting time counted is always less than default lighting time threshold value, occurs always
The situation of bright light, wastes electric energy, influences people's night's rest, so need to update default average pressure value, it is more accurately real
Now automatic bright light, turn off the light, meet actual demand.
As one embodiment, after the current pressure values that the acquisition object is born, in addition to step:
When the default average pressure value and the difference of the current pressure values are less than or equal to the preset difference value threshold value
When, the numerical value on the counter is reset, and the default average pressure value is determined according to the current pressure values;
The error of average pressure value is preset by aforesaid operations amendment, makes default average pressure value more accurate, follow-up behaviour
It is more accurate to make, and has very high actual application value.
In order to more fully understand this method, a lamp-lighting method application example of the present invention detailed below, the application is real
Example is got up applied to night people drinks water, goes to toilet.
As shown in Fig. 2 the application example may comprise steps of:
Step S201:Bed is obtained to the current pressure values of ground or mattress to bed;
Step S202:When the bed counted in advance is to ground or mattress average pressure value and above-mentioned current pressure values to bed
When difference is more than preset difference value threshold value, the numerical value on control counter adds 1, and the numerical value on counter and predetermined threshold value are carried out
Compare;
When the bed counted in advance is less than to ground or mattress to the average pressure value and the difference of above-mentioned current pressure values of bed
Or during equal to preset difference value threshold value, the numerical value on counter is reset, and according to above-mentioned current pressure values determine bed to ground or
Mattress corrects the bed counted in advance to ground or mattress to the error of the average pressure value of bed, makes system to the average pressure value of bed
The bed of meter is more accurate to the average pressure value of bed to ground or mattress;
Step S203:When the numerical value on above-mentioned counter is more than predetermined threshold value, the ambient light intensity of surrounding is obtained;Constantly
Numerical value on repeat step S201-S202 operation, counter is continuously increased, when the numerical value on counter exceedes predetermined threshold value
When, that is, detect bed and reduce a certain amount of to the pressure value of bed to ground or mattress and continue for some time, obtain the environment of surrounding
Luminous intensity, bed is obtained according to the numerical value on counter and reduces a certain amount of continue to the pressure value of bed to ground or mattress herein
Time;
Step S204:Ambient light intensity around acquisition is compared with default ambient light intensity threshold value, and ought be obtained
When taking the ambient light intensity of surrounding less than default ambient light intensity threshold value, bright light operation is carried out;
Step S205:The above-mentioned bed counted in advance is updated to ground or mattress to the average pressure value of bed above-mentioned current
Pressure value;
Step S206:Lighting time is counted, when the lighting time of statistics being more than default lighting time threshold value, is turned off the light
Operation;
It is above-mentioned current pressure values to the average pressure value of bed to ground or mattress to update the bed counted in advance, is prevented to enter
There are some misoperations in row renewal, for example:The bed of statistics is to ground or mattress to the average pressure value of bed and the current pressure of acquisition
The numerical value that the difference of force value is more than on preset difference value threshold value, counter always is continuously increased more than predetermined threshold value, if now all
The ambient light intensity enclosed is less than default ambient light intensity threshold value, carries out statistics bright light of constantly starting from scratch after bright light operation, bright light
Time, the then lighting time counted is always less than default lighting time threshold value, the situation of bright light always occurs, wastes electric energy, shadow
Ring people's night's rest;
This application example is a certain amount of by detecting pressure value reduction of the bed to ground or mattress to bed, and when continuing one section
Between after, be judged as that someone gets up, then according to the ambient light intensity of Current ambient, decide whether bright light, bright light for a period of time after
Automatically turn off the light, whole process is not influenceed by external sound, automatic bright light is realized exactly, is turned off the light, meet people's nocturnalism need
Will, more intelligent and hommization.
Lamp-enlightened device in one embodiment, as shown in figure 3, including:
Pressure sensor block 301, such as pressure sensor, for obtaining the current pressure values that object is born;
MCU (Micro Control Unit, micro-control unit) module 302, for by default average pressure value with it is described
Current pressure values are compared, and are judged whether to obtain the ambient light intensity of surrounding according to comparative result, if so, sensing by brightness
Module 303 obtains the ambient light intensity of surrounding, and the ambient light intensity around acquisition is entered with default ambient light intensity threshold value
Row compares, when the ambient light intensity around acquisition is less than the default ambient light intensity threshold value, carries out bright light operation;
The brightness sensing module 303, such as luminance sensor, for judging to obtain surrounding when the MCU module 302
During ambient light intensity, the ambient light intensity of surrounding is obtained.
As shown in figure 3, pressure sensor block 301 obtains the current pressure values that object is born first;MCU module 302 will
Default average pressure value is compared with above-mentioned current pressure values, is judged whether to obtain the environmental light intensity of surrounding according to comparative result
Degree, if so, by brightness sensing module 303 obtain around ambient light intensity, and by the ambient light intensity around acquisition with
Default ambient light intensity threshold value is compared, and the ambient light intensity around acquisition is less than above-mentioned default ambient light intensity threshold value
When, carry out bright light operation.
The number of pressure sensor block 301 is set according to actual needs, when there is multiple pressure sensor blocks 301, MCU moulds
Numerical value on multiple pressure sensor blocks 301 is carried out summation process by block 302, obtains the current pressure values that object is born;It is bright
The number for spending sensing module 303 is also to set according to actual needs, when there is multiple brightness sensing modules 303, MCU module 302
The ambient light intensity of Current ambient is obtained according to the numerical value on multiple brightness sensing modules 303.
It is evidenced from the above discussion that, lamp-enlightened device of the present invention can realize automatic bright light exactly when night people are movable,
Meet practical application.
As one embodiment, the MCU module 302 includes:
Comparing unit 3021, it is poor more than default for the difference when the default average pressure value and the current pressure values
When being worth threshold value, the numerical value on control counter adds 1, and the numerical value on the counter and predetermined threshold value are compared;
Judging unit 3022, for being judged whether to obtain the ambient light intensity of surrounding according to comparative result;
Reduce a certain amount of by detecting the pressure value that object born, and after continuing for some time, judge to obtain current
The ambient light intensity of surrounding, then decides whether bright light, the above-mentioned numerical value according on counter according to the ambient light intensity of acquisition
The pressure value born to obtain object reduces a certain amount of duration, can use other modes according to actual conditions herein
Pressure value size and duration that detection object is born, realize automatic bright light, meet people's nocturnalism needs.
As one embodiment, the MCU module 302 is additionally operable to after the progress bright light operation, will be described default flat
Equal pressure value is updated to the current pressure values;Lighting time is counted, is more than default lighting time threshold when the lighting time of statistics
During value, operation of turning off the light is carried out;
The time of user's bright light is reminded, different lighting time threshold values can be set according to actual needs, in one section of bright light
Turned off the light automatically after time, whole process need not be participated in manually, convenient, intelligence, more automation and hommization.
Default average pressure value is updated into current pressure values can prevent some misoperations from occurring, for example:Without more
Newly, then the difference for the current pressure values that the object for presetting average pressure value with obtaining is born may be more than preset difference value threshold always
Numerical value on value, counter is continuously increased more than predetermined threshold value, if the ambient light intensity around now is less than default ambient light
Intensity threshold, carries out statistics lighting time of constantly starting from scratch after bright light operation, bright light, then the lighting time counted is always less than
, there is the situation of bright light always in default lighting time threshold value, wastes electric energy, influences people's night's rest, so needing to update pre-
If average pressure value, more accurately realize automatic bright light, turn off the light, meet actual demand.
As one embodiment, the MCU module 302 is additionally operable to when the default average pressure value and the current pressure
When the difference of value is less than or equal to the preset difference value threshold value, the numerical value on the counter is reset, and according to described current
Pressure value determines the default average pressure value;
The error of average pressure value is preset by aforesaid operations amendment, makes default average pressure value more accurate, follow-up behaviour
It is more accurate to make, and has very high actual application value.
As one embodiment, the number of the pressure sensor block 301 is at least one, the brightness sensing module
303 number is at least one;
One or more pressure sensor blocks 301 and brightness sensing module 303, MCU module 302 are set according to actual needs
The current pressure values that object is born are obtained according to the numerical value on multiple pressure sensor blocks 301, similarly passed according to multiple brightness
Feel the ambient light intensity that the numerical value in module 303 obtains Current ambient, be adapted to practical application.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (5)
1. a kind of lamp-lighting method, it is characterised in that comprise the following steps:
Obtain the current pressure values that are born of object, the current pressure values are bed to the pressure value of ground or mattress to bed;
Default average pressure value is compared with the current pressure values, is judged whether to obtain the ring of surrounding according to comparative result
Border luminous intensity;
If so, the ambient light intensity around obtaining, and by the ambient light intensity around acquisition and default ambient light intensity threshold value
It is compared, when the ambient light intensity around acquisition is less than the default ambient light intensity threshold value, carries out bright light operation;
It is described to be compared default average pressure value with the current pressure values, judged whether to obtain surrounding according to comparative result
Ambient light intensity the step of include:
When the default average pressure value and the difference of the current pressure values are more than preset difference value threshold value, on control counter
Numerical value add 1, and the numerical value on the counter and predetermined threshold value are compared;
Judged whether to obtain the ambient light intensity of surrounding according to comparative result;
After the progress bright light operation, in addition to step:The default average pressure value is updated to the current pressure
Value;
After the current pressure values that the acquisition object is born, in addition to step:
, will when the default average pressure value and the difference of the current pressure values are less than or equal to the preset difference value threshold value
Numerical value on the counter is reset, and determines the default average pressure value according to the current pressure values.
2. lamp-lighting method according to claim 1, it is characterised in that after the progress bright light operation, in addition to step
Suddenly:
Lighting time is counted, when the lighting time of statistics being more than default lighting time threshold value, operation of turning off the light is carried out.
3. a kind of lamp-enlightened device, it is characterised in that including:
Pressure sensor block, for obtaining the current pressure values that object is born, the current pressure values are bed to ground or bed
Pad the pressure value to bed;
MCU module, for default average pressure value to be compared with the current pressure values, judges whether according to comparative result
Ambient light intensity around obtaining, if so, the ambient light intensity of surrounding is obtained by brightness sensing module, and by around acquisition
Ambient light intensity be compared with default ambient light intensity threshold value, the ambient light intensity around acquisition is less than described default
During ambient light intensity threshold value, bright light operation is carried out;
The brightness sensing module, for when the MCU module judges to obtain the ambient light intensity of surrounding, obtaining the ring of surrounding
Border luminous intensity;
The MCU module includes:
Comparing unit, is more than preset difference value threshold value for the difference when the default average pressure value and the current pressure values
When, the numerical value on control counter adds 1, and the numerical value on the counter and predetermined threshold value are compared;
Judging unit, for being judged whether to obtain the ambient light intensity of surrounding according to comparative result;
The MCU module is additionally operable to after the progress bright light operation, the default average pressure value is updated to described current
Pressure value;
The MCU module is additionally operable to work as the difference of the default average pressure value and the current pressure values less than or equal to described
During preset difference value threshold value, the numerical value on the counter is reset, and described preset averagely is determined according to the current pressure values
Pressure value.
4. lamp-enlightened device according to claim 3, it is characterised in that the MCU module is additionally operable in the carry out bright light
After operation, lighting time is counted, when the lighting time of statistics being more than default lighting time threshold value, operation of turning off the light is carried out.
5. lamp-enlightened device according to claim 3, it is characterised in that the number of the pressure sensor block is at least one
Individual, the number of the brightness sensing module is at least one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410849505.5A CN104486890B (en) | 2014-12-30 | 2014-12-30 | Lamp-lighting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410849505.5A CN104486890B (en) | 2014-12-30 | 2014-12-30 | Lamp-lighting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104486890A CN104486890A (en) | 2015-04-01 |
CN104486890B true CN104486890B (en) | 2017-08-29 |
Family
ID=52761375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410849505.5A Active CN104486890B (en) | 2014-12-30 | 2014-12-30 | Lamp-lighting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104486890B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105526523A (en) * | 2016-02-26 | 2016-04-27 | 深圳和而泰智能控制股份有限公司 | Illuminating lamp allowing user to conveniently get up in night to urinate at low illumination level |
CN105929704B (en) * | 2016-06-22 | 2020-01-31 | 马正平 | Guest room night-getting-up guiding system |
CN107820351B (en) * | 2017-09-25 | 2019-07-19 | 合肥艾斯克光电科技有限责任公司 | A kind of ight lamp induction system based on sensing technology |
CN113671847A (en) * | 2021-08-13 | 2021-11-19 | 珠海格力电器股份有限公司 | Linkage control method, system and device of intelligent household equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100819058B1 (en) * | 2007-01-24 | 2008-04-03 | 한국에너지기술연구원 | Bed have the energy saving night light) |
CN202986839U (en) * | 2012-12-27 | 2013-06-12 | 北京经纬恒润科技有限公司 | Driver existence induction system |
CN103118465B (en) * | 2013-02-18 | 2014-08-06 | 大连民族学院 | Indoor lamplight intensity control system and method |
-
2014
- 2014-12-30 CN CN201410849505.5A patent/CN104486890B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104486890A (en) | 2015-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104486890B (en) | Lamp-lighting method and device | |
CN106410896B (en) | Method and system for entering power saving mode during charging of mobile terminal | |
CN103984123B (en) | A kind of Intelligent eyeshield glasses | |
CN105228313B (en) | Illumination control method and relevant device | |
CN104735247A (en) | Method and device for adjusting screen brightness of mobile terminal | |
CN103401970A (en) | Method and system for adjusting display screen backlight and mobile terminal | |
CN104168371A (en) | Method for adjusting backlight brightness of mobile terminal and mobile terminal | |
CN203384924U (en) | Myopia-preventing energy-saving table lamp | |
CN105959464A (en) | Method and device for prompting signal intensity of terminal | |
CN103327194A (en) | Mode switching method and device for browser skin brightness | |
CN203836731U (en) | Intelligent table lamp | |
CN104469008A (en) | Reminding method and device of mobile terminal and mobile terminal | |
CN106657676A (en) | Screen brightness adjusting method and device | |
CN104506730A (en) | Cellphone screen lighting method and mobile terminal using same | |
CN103200313A (en) | Method of converting between normal mode and specific mode of handheld equipment and handheld equipment | |
CN105511765A (en) | Screen brightness adjusting method, device and electronic equipment | |
CN104410751A (en) | Method and system for power saving of mobile phone based on Bluetooth peripheral | |
CN106370296B (en) | The detection method and system of a kind of mobile terminal optical sensor to ambient light | |
WO2016045525A1 (en) | Method and apparatus for processing state of terminal | |
CN105187673A (en) | Method and system for controlling wakeup and blackout of screen in call of mobile terminal | |
CN107682522A (en) | The mobile terminal and its adjusting method and memory of a kind of adjustable screen background | |
CN110906186A (en) | Intelligent desk lamp system | |
CN102062839A (en) | Portable electronic device and electric quantity reminding method for same | |
CN106791105A (en) | Control the method and mobile terminal of warning light | |
CN206057833U (en) | A kind of alarm clock with dimming function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |