CN202949605U - Device for detecting and controlling turn-on and turn-off of lamp through door opening and closing states - Google Patents
Device for detecting and controlling turn-on and turn-off of lamp through door opening and closing states Download PDFInfo
- Publication number
- CN202949605U CN202949605U CN2012206480206U CN201220648020U CN202949605U CN 202949605 U CN202949605 U CN 202949605U CN 2012206480206 U CN2012206480206 U CN 2012206480206U CN 201220648020 U CN201220648020 U CN 201220648020U CN 202949605 U CN202949605 U CN 202949605U
- Authority
- CN
- China
- Prior art keywords
- relay
- turn
- lamp
- acceleration sensor
- control unit
- 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.)
- Expired - Fee Related
Links
Images
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
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The utility model relates to a device for detecting and controlling turn-on and turn-off of a lamp through door opening and closing states. The device is characterized by comprising a three-axis acceleration sensor, a microprogrammed control unit and a lamp circuit, the serial clock (SCL) end of the three-axis acceleration sensor is connected with an input/output (I/O) port of the microprogrammed control unit, a serial data line (SDA) of the three-axis acceleration sensor is connected with another I/O port of the microprogrammed control unit (MCU), a relay is arranged between the microprogrammed control unit and the lamp circuit, one end of the relay is connected with one I/O port of the microprogrammed control unit, and the other end of the relay is connected with the input end of the lamp circuit. The device is a brand new courtesy lamp based on various built-in motion state detection functions and flexible disconnection of the relay controlled by the MCU and has the advantages of being sensitive in detection, adjustable in sensitivity according to requirements of application environment and the like.
Description
Technical field
The utility model relates to a kind of device of controlling light switch that detects by the door on off state.
Background technology
Along with the development of society, people are more and more higher to the requirement of quality of life.Requirement to the convenient aspect of living is also day by day increased.Therefore, after opening door, also need manually to turn on light, for a lot of people's life has brought certain inconvenience.And, in most cases, enter when indoor, be generally to enter relatively dark place from relatively bright place, human eye needs the dark adaptation of about 30 seconds.Therefore, within these 30 seconds, human eye is difficult to see clearly things.Want to turn on electric light and be merely able to rely on impression and sensation.If enter new, a strange environment, it is more difficult wanting to find at once the switch of lamp.The tradition door-controlled lamp need to be arranged on trigger switch on doorframe, and like this, exposed trigger switch both easily damaged, and also affected attractive in appearance.
Summary of the invention
The purpose of this utility model is to overcome the deficiencies in the prior art part, and a kind of door-controlled lamp device more convenient, safer, more attractive in appearance is provided.
The purpose of this utility model adopts following technical scheme to realize:
a kind of device of controlling light switch that detects by the door on off state, it is characterized in that: described device comprises 3-axis acceleration sensor, microcontroller and lighting circuit, the serial clock terminal SCL of described 3-axis acceleration sensor is connected with an I/O input interface of microcontroller, the serial data line SDA of described 3-axis acceleration sensor is connected with another I/O input interface of microcontroller (MCU), be provided with relay between described microcontroller and described lighting circuit, this relay one end is connected with an I/O output interface of microcontroller, the other end of relay is connected with the input of described lighting circuit.
The utility model device is arranged on needs to detect upper getting final product of controlling electric light.The utility model utilizes 3-axis acceleration sensor (also claiming three axis accelerometer) to detect the state of door, create detection platform by three axis accelerometer and microcontroller, MCU detects the state of door by the interrupt signal of three axis accelerometer, and then controls the on off state of electric light.Open if door detected, turn on lamp; Close if door detected, keep the state of turning on light.Next, open if door detected again, keep lamp bright, after door closes, then extinguish etc.The door status monitoring scheme that the utility model proposes reaches based on accelerometer built-in motion state detection function and interrupt system the purpose of controlling the electric light state fully, has reduced development cost and construction cycle.When this device worked in the I2C pattern, SDA and SCL were respectively data and the clock line of I2C bus, and the SDA of three axis accelerometer is connected with SCL is connected two I/O mouths and connects with MCU.3-axis acceleration sensor can adopt condenser type, pressure resistance type, piezoelectric type etc., and MCU can be 4, and 8,16,32, or even 64 bit wides.
The door on off state that passes through that the utility model provides detects the device of controlling light switch, be based on that multiple built-in motion state detection function and MCU control relay interrupt flexibly and a kind of brand-new door-controlled lamp solution of making, it has the sensitivity of detection and sensitivity can the outstanding advantages such as regulate according to the needs of applied environment.
Description of drawings
Fig. 1 is the utility model example structure schematic diagram;
Fig. 2 is the utility model embodiment lighting circuit schematic diagram;
Fig. 3 is the utility model workflow diagram.
Embodiment
Below in conjunction with drawings and Examples, embodiment of the present utility model is further described:
See also shown in Figure 1, this device embodiment comprises 3-axis acceleration sensor LIS3DH, microcontroller STM8F003 and lighting circuit, the SCL end of 3-axis acceleration sensor is connected with an input I/O interface of microcontroller (MCU), the SDA end of 3-axis acceleration sensor LIS3DH is connected with another I/O input interface of MCU, be provided with relay between MCU and lighting circuit, this relay one end is connected with the I/O output interface of MCU, and the other end of relay is connected with the L1 of lighting circuit shown in Figure 2, L2 end.
Fig. 3 is the workflow diagram of this device, and MCU carries out by the 3-axis acceleration delta data that reads three axis accelerometer the state that operational analysis goes out the switch door.Then detecting to control electric light by interrupt signal lights or closes.If detect accekeration on the occasion of, illustrate that door is being opened this moment, turn on lamp; Be negative value if accekeration detected, illustrate that door closes, keep the state of turning on light.Next, open if door detected again, keep lamp bright, Men Guanhou, then extinguish etc.
Claims (1)
1. one kind is detected the device of controlling light switch by the door on off state, it is characterized in that: described device comprises 3-axis acceleration sensor, microcontroller and lighting circuit, the serial clock terminal of described 3-axis acceleration sensor (SCL) is connected with an I/O input interface of microcontroller, the serial data line of described 3-axis acceleration sensor (SDA) is connected with another I/O input interface of microcontroller, be provided with relay between described microcontroller and described lighting circuit, this relay one end is connected with an I/O output interface of microcontroller, the other end of relay is connected with the input of described lighting circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012206480206U CN202949605U (en) | 2012-11-30 | 2012-11-30 | Device for detecting and controlling turn-on and turn-off of lamp through door opening and closing states |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012206480206U CN202949605U (en) | 2012-11-30 | 2012-11-30 | Device for detecting and controlling turn-on and turn-off of lamp through door opening and closing states |
Publications (1)
Publication Number | Publication Date |
---|---|
CN202949605U true CN202949605U (en) | 2013-05-22 |
Family
ID=48425282
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012206480206U Expired - Fee Related CN202949605U (en) | 2012-11-30 | 2012-11-30 | Device for detecting and controlling turn-on and turn-off of lamp through door opening and closing states |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN202949605U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105807728A (en) * | 2014-12-29 | 2016-07-27 | 联想(北京)有限公司 | Control method and electronic device |
-
2012
- 2012-11-30 CN CN2012206480206U patent/CN202949605U/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105807728A (en) * | 2014-12-29 | 2016-07-27 | 联想(北京)有限公司 | Control method and electronic device |
CN105807728B (en) * | 2014-12-29 | 2019-03-08 | 联想(北京)有限公司 | A kind of control method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203554755U (en) | Intelligent table-lamp control device | |
CN107197559A (en) | A kind of Intelligent LED lamp control system | |
CN202841617U (en) | Human body induction fading up lamp | |
CN104159362A (en) | Community street lamp energy-saving controller | |
CN102269380A (en) | Corridor lamp with human body induction, acoustic control and light control functions | |
CN104717777A (en) | Human body infrared induction lamp | |
CN202949605U (en) | Device for detecting and controlling turn-on and turn-off of lamp through door opening and closing states | |
CN204829479U (en) | Intelligence speech control lamp | |
CN207658902U (en) | A kind of multifunctional lift pendent lamp | |
CN103318305A (en) | Intelligent bicycle light system | |
CN205566763U (en) | Intelligence light lighting system | |
CN203387729U (en) | Intelligent type bicycle lamp system | |
CN204598357U (en) | A kind of headlight for electric vehicle control circuit | |
CN204119626U (en) | A kind of intelligent desk lamp circuit | |
CN202514145U (en) | Indoor illumination control system | |
CN206247123U (en) | A kind of Intelligent energy-saving wall lamp device | |
CN205389288U (en) | Energy -conserving lighting control system of intelligence | |
CN203783411U (en) | Entry door device convenient to use | |
CN203703742U (en) | Night lamp structure for hypnosis device | |
CN207260837U (en) | A kind of family's window carries security system | |
CN105554989A (en) | Intelligent light control device and method | |
CN205754958U (en) | Based on the domestic intelligent illuminator that bluetooth 4.0 is wireless | |
CN209120154U (en) | A kind of indoor illuminating switch based on Internet of Things | |
CN202940399U (en) | Energy-saving socket | |
CN205565182U (en) | Intelligent socket |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130522 Termination date: 20201130 |
|
CF01 | Termination of patent right due to non-payment of annual fee |