A kind of smart lock button storehouse window detects wake-up circuitTechnical field
The utility model is related to the technical fields of smart lock, are examined more specifically to a kind of smart lock button storehouse windowSurvey wake-up circuit.
Background technology
Smart lock (Intelligent Lock) refers to being different from tradition machinery lock, in user's identification, safety, managerialThe more intelligentized lockset of aspect.Smart lock is the execution unit locked a door in access control system.Present smart lock is different from the past" first open and scan again " mode, scan mode is very simple, places a finger on the scanning of the top at scanning from top to bottom, without pressing finger at scanning, the mode of scanning more reduces fingerprint residues, substantially reduces the possibility that fingerprint is replicatedProperty, it exclusively enjoys safely.Also there is the electronic password lock with anti-theft alarm function to replace traditional mechanical code lock on the market at present,The shortcomings that overcoming few mechanical code lock number of password, poor safety performance makes coded lock no matter technically or in performanceAll greatly improve a step.With the appearance of the development of large scale integrated circuit technology, especially microcontroller, there is band microprocessorThe intelligent cipher lock of device, it also introduces the work(such as intelligent management, expert analyzing system in addition to having the function of electronic password lockCan, to make coded lock have very high safety, reliability, application increasingly extensive.But smart lock in the prior art is simultaneouslyDo not have wake-up circuit, therefore it is people in the art to design a kind of button storehouse window for smart lock exploitation to detect wake-up circuitThe direction of member's research.
Utility model content
The shortcomings that the main purpose of the utility model is to overcome the prior arts and deficiency, provide a kind of smart lock button storehouseThe problem of window detects wake-up circuit, is greatly saved electricity consumption, power saving, when window is shut, mainboard (microcontroller) is inSleep for electricity saving state, mainboard just wakes up work when window pulls open.
In order to achieve the above object, the utility model uses following technical scheme:
A kind of smart lock button storehouse window of the utility model detects wake-up circuit, including tongue tube S1, resistance R1, resistanceR2, LED light, triode Q1 and socket P1;The tongue tube S1 is provided with a magnet on corresponding window position, passes throughMagnet is attracted to control the closing and disconnection of tongue tube;The tongue tube S1 and resistance R2 is connected in series with, and resistance R2 is also connected withTo the first DC power supply V1;The base stage of the triode Q1 is connected between tongue tube S1 and resistance R2, emitter ground connection, current collectionPole is connected to LED light;One end of the resistance R1 is connect with LED light, and it is straight that the other end is connected to resistance R2 and firstBetween the V1 of galvanic electricity source;The first port of the socket P1 connects the second DC power supply V2, second port ground connection, third port connectionTo between the collector and LED light of triode Q1;The third port of the socket P1 is also connected with the mainboard of smart lock.
The magnet diameter is 5MM, thickness 2MM as a preferred technical solution,.
The tongue tube S1 uses MDSR-10 as a preferred technical solution,.
The triode Q1 uses 2SC8050 as a preferred technical solution,.
The first DC power supply V1 is 3.3V as a preferred technical solution,;The second DC power supply V2 is 3.3V.
The resistance R1 resistance values are 1K as a preferred technical solution,.
The resistance value of the second resistance is 47K as a preferred technical solution,.
The utility model compared with prior art, has the following advantages that and advantageous effect:
1, using the technical solution of the utility model, switch is used as by tongue tube, to control whether to wake up smart lockMainboard, when window is shut, mainboard (microcontroller) is in sleep for electricity saving state, and mainboard just wakes up when window pulls openWork;It is greatly saved power supply.
2, the utility model circuit is simple, is easy to control, and tongue tube is passive device, and not power consumption itself, output areSwitching signal, principle is simple, easy to implement, does not need complicated circuit structure.
Description of the drawings
Fig. 1 is the circuit diagram of the utility model.
Specific implementation mode
The present invention will be further described in detail with reference to the embodiments and the accompanying drawings, but the implementation of the utility modelMode is without being limited thereto.
Embodiment
As shown in Figure 1, a kind of smart lock button storehouse window of the present embodiment detects wake-up circuit, including tongue tube S1, electricityHinder R1, resistance R2, LED light, triode Q1 and socket P1;The tongue tube S1 is provided with one on corresponding window positionMagnet controls the closing and disconnection of tongue tube by the actuation of magnet;The tongue tube S1 and resistance R2 is connected in series with, resistanceR2 is additionally coupled to the first DC power supply V1;The base stage of the triode Q1 is connected between tongue tube S1 and resistance R2, emitterGround connection, collector are connected to LED light;One end of the resistance R1 is connect with LED light, and the other end is connected to resistance R2And first between DC power supply V1;The first port of the socket P1 connects the second DC power supply V2, second port ground connection, thirdPort is connected between the collector and LED light of triode Q1.
In the present embodiment, the magnet diameter is 5MM, thickness 2MM.The LED light uses white light or high azarinLight is as instruction.
The tongue tube S1 uses MDSR-10;MDSR-10 has the characteristics that following:Smallness normally opened contact, glass pipe sizeOnly 10.16MM*1.8MM;Contactless power is up to 10W when switching voltage 200VDC;The optional sensitivity of 10-25AT.Its advantage is:The contact of sealing, not stablized ultralow, build by ectocine, contact resistance, very lightly, needed for the action of contact power is almostZero, durable.
The triode Q1 uses 2SC8050, and 8050 be common NPN small-powers triode, 8050 pins that here isGraph parameter data;8050 triode parameters:
Type:Switching mode;Polarity:NPN;Material:Silicon;Maximum collecting and storing device electric current (A):0.5A;Direct current gain:10to60;Power consumption:625mW;Maximum collecting and storing device transmitting is electric (VCEO):25;Frequency:150KHz.
In the present embodiment, the first DC power supply V1 is 3.3V;The second DC power supply V2 is 3.3V.
The resistance R1 resistance values are 1K;The resistance value of the second resistance is 47K.
The operation principle of the utility model is as follows:
The magnet of embedding lastblock 2MM thickness on window, when door is shut, close to alignment tongue tube S1;Door open whenIt waits, far from tongue tube S1;The external power supply of the first port of socket P1 in circuit, second port ground connection, third port orderThe wake-up foot (pull-up input) of piece machine.
When window is shut, contact of the magnet just inside tongue tube S1, tongue tube S1 obtains the logical short circuit of magnetic conductance, and threePole pipe Q1 ends, and LED light (LED1) does not work in window, and 3 feet of socket port P1 export high level, and external microcontroller receivesHigh level in a dormant state, specially:The wake-up circuit of the utility model is external to the master of smart lock by P1 jack interfacesPlate, core element is microcontroller on mainboard, the suspend mode end of control single chip computer (machine cental system), allows machine suspend mode, and is givenProduct power saving.
When window is opened, magnet is far from tongue tube S1, and the contact loss of excitation inside tongue tube S1 disconnects, triode Q1It is connected, LED1 is lighted (indicative function) in window, and 3 feet of socket port P1 export low level, and external microcontroller is connected to low level letterNumber wake up work.
In the present embodiment, it is equipped with a position in storehouse in the position of button in the structure of smart lock shell, exterior window can preventDust enters and what unprotect was set up defences artificially goes to operate.When needing the used time to pull up window, window is shut downwards when not used.
Above-described embodiment is the preferable embodiment of the utility model, but the embodiment of the utility model is not by above-mentionedThe limitation of embodiment, under other any Spirit Essences and principle without departing from the utility model made by change, modify, replaceIn generation, simplifies combination, should be equivalent substitute mode, is included within the scope of protection of the utility model.