CN107435466A - The intelligent lock system that a kind of Light Electrical combines - Google Patents
The intelligent lock system that a kind of Light Electrical combines Download PDFInfo
- Publication number
- CN107435466A CN107435466A CN201710570457.XA CN201710570457A CN107435466A CN 107435466 A CN107435466 A CN 107435466A CN 201710570457 A CN201710570457 A CN 201710570457A CN 107435466 A CN107435466 A CN 107435466A
- Authority
- CN
- China
- Prior art keywords
- key
- resistance
- pin
- lock core
- triode
- 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
Links
Classifications
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B47/0001—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof
- E05B47/0012—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof with rotary electromotors
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B45/00—Alarm locks
- E05B45/06—Electric alarm locks
- E05B45/061—Electric alarm locks for combination locks
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B47/06—Controlling mechanically-operated bolts by electro-magnetically-operated detents
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B2047/0048—Circuits, feeding, monitoring
- E05B2047/005—Opening, closing of the circuit
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B2047/0048—Circuits, feeding, monitoring
- E05B2047/0057—Feeding
- E05B2047/0058—Feeding by batteries
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B2047/0084—Key or electric means; Emergency release
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B2047/0091—Retrofittable electric locks, e.g. an electric module can be attached to an existing manual lock
Abstract
The present invention relates to the intelligent lock system that a kind of Light Electrical combines.The present invention includes key and lock core, and key includes the first single-chip microcomputer, the first infrared transceiver module and key battery, and lock core includes second singlechip, the second infrared transceiver module, lock core battery, buzzer, motor, dead bolt buckle and microswitch.Key and lock core are run under the control of circuit.The mechanical part of lock core of the present invention adds the checking of the electronics ID to carrying on the key on the basis of the mechanical structure and function of traditional gourd lock is retained.User, which must possess, can open mechanical lock and the key verified by electronics ID simultaneously and could unlock, and enhance the security of lock.ID chips on the shank of the key are communicated with the main control chip in lock body by infrared, are simplified structure, are increased more pellets in the lock of same volume, obtain more preferable security.Additionally the electronics ID authentication mechanisms of Aided design key and priority assignation mechanism are to ensure the effective work of the present invention.
Description
Technical field
The invention belongs to electronics, building field, is related to the intelligent lock system that a kind of Light Electrical combines.
Background technology
Tradition machinery lock core is made up of the part such as lock gall round end and tack pellet, dead bolt moving part, marble spring.Key is not inserted
When entering lock core, producing different length tack spring length by tartar coding, not etc. ground does not enter lock gall, and the rotation of limitation lock gall is in fact
Existing blocking function;After key inserts lock core, key cooperates with round end pellet, releases the braking of tack pellet, makes lock
Open function is realized in courage rotation.Although the structure of tradition machinery lock core is simple, low production cost, its mechanical structure has phase
To stationarity, criminal can use a variety of special unlocking tools to carry out skilled unlocking, without physical damage lock
Body conventional door lock.And conventional lock cylinders are to be realized completely by mechanical structure, the problem of tartar coding is insufficient be present, cause key
Mutual opening rate it is higher, in order to solve this problem, some producers use key end increase iButton chips, the chip by
The DS2400 of maxim companies is representative.The performance of conventional lock cylinders is the method increase, realizes electric-mechanic control system.But due to depositing
, it is necessary to set up contact in the position of key pins in the main control chip that ID codes are sent in lock core by the way of contact, reduce machine
The tooth number of tool on the key.If powered on the key, number of contacts is more so that on the tartar mutual opening rate of mechanical part pellet reduction
Rise more.Electronic lock also in current social is in order to cause lock after preventing lock core electronic module failure or dead battery capability
Locked, most of electronic lock cylinder is in normally open when electricity is low, and there is high potential safety hazard for this setting.Therefore,
By the way that id information on the key is sent on the main control chip in lock core by infrared ray, main control chip is configured on the key, it is real
The functional characteristics of existing CPU card, relieves above-mentioned potential safety hazard, while improve cost performance and reliability.
The content of the invention
It is an object of the invention to provide the intelligent lock system that a kind of Light Electrical combines.
The present invention includes key and lock core.Described key includes the first single-chip microcomputer, the first infrared transceiver module and key
Battery.First single-chip microcomputer is used for storing keys id information.First single-chip microcomputer controls the first infrared transceiver module to the second infrared receipts
Send out module and send key id information.Key battery is used to power for the first single-chip microcomputer.First single-chip microcomputer is using ordinary internal without ID
The single-chip microcomputer of chip, in exterior design ID chips, main control chip+ID structure is formed, or use the single-chip microcomputer for including ID chips.
Described lock core includes second singlechip, the second infrared transceiver module, lock core battery, buzzer, motor, lock
Tongue buckle and microswitch.Second singlechip is used for the legal id information stored.Have in second singlechip Flash ROM or
EEPROM is capable of more key id informations of save routine and storage, and the key for judging whether with inserting lock core is identical
Id information.Second infrared transceiver module is used for the information that key insertion lock core is sent to the first infrared transceiver module, and receives
The key id information that first infrared transceiver module is sent.Lock core battery is powered for second singlechip;Buzzer is used to alarm.Driving
Motor can clasp dead bolt buckle, be allowed to be changed into simple mechanical lock when lock core battery is low in electricity.Dead bolt snaps through second
Single-chip microcomputer controlled motor rotating controls buckle to be opened and closed.Microswitch is used to control second singlechip, while realizes that power supply is protected
Hold.
Described key is run under the control of key circuit.Key circuit includes key governor circuit and accessory power supply connects
Mouth circuit.Key governor circuit is used to control key to work, and auxiliary power interface circuit is used to provide stand-by power supply for lock core.Institute
The key governor circuit stated, including key main control chip U1, storage chip U2 and key infrared tube J1;Key main control chip U1
Using the 16 pin chips for having 14 IO pin, key main control chip U1 grounding leg is grounded.Key main control chip U1 the first IO pin
By resistance R1 sending and receiving optical diodes LED1 negative pole, the positive pole of LED 1 meets power supply VCC-BT.Storage chip U2
Using single line storage chip;Storage chip U2 1 pin connects power supply VCC-BT, storage chip U2 2 pin and key by resistance R2
It is grounded after spoon main control chip U1 the 2nd IO pin connection.Key infrared tube J1 1 pin connects with main control chip U1 the 3rd IO pin
Power supply VCC-BT is connect by resistance R3 after connecing;Key infrared tube J1 2 pin connect triode Q1 colelctor electrode;Key infrared tube
J1 3 pin are grounded after being connected with 4 pin.Triode Q1 emitter stage meets power supply VCC-BT, and the base stage of triode connects key master control core
Piece U1 the 4th IO pin.The grounding leg that described auxiliary power interface circuit includes microusb seats U3, microusb seat U3 connects
Ground, microusb seats U3 1 pin is as VCC-DS power output ends.Key main control chip U1 remaining pin is vacant.
Described lock core is run under the control of lock core circuit.Lock core circuit includes lock core governor circuit, motor driving electricity
Road, power supply holding circuit, auxiliary power circuit, download program interface, buzzer circuit and reseting switch circuit.Lock core master control electricity
Road is used to control lock core to work, and motor-drive circuit is used to control motor positive and inverse in lock core, and power supply holding circuit is used to keep
Circuit turn-on, auxiliary power circuit provide stand-by power supply, download program interface for connecting auxiliary power interface circuit for lock core
For aiding in downloading, buzzer circuit is used to alarm and man-machine interaction, reseting switch circuit are used for " management key "
Reset.
Described lock core governor circuit includes lock core main control chip U4 and lock core infrared tube J2, and lock core main control chip U4 is adopted
With the 16 pin chips for having 14 IO pin, lock core main control chip U4 2 IO pin are vacant, and lock core main control chip U4 supply pin connects
AD_power grounding legs are grounded;Lock core main control chip U4 the first IO pin connecting resistances R4 one end, the 2nd IO pin connecting resistances R5's
One end.The resistance R4 other end be connected with the negative pole of LED 2 after by being grounded after resistance R6 by electric capacity C1.Electricity
Hinder R5 other end sending and receiving optical diode LED3 negative pole.The positive pole of LED 2 and the positive pole of LED 3
Connection is followed by input power VCC.Key infrared tube J2 1 pin be connected with main control chip U4 the 3rd IO pin after by resistance R7
Meet input power VCC;Key infrared tube J2 2 pin connect triode Q2 colelctor electrode;Key infrared tube J2 3 pin and 4 pin
It is grounded after connection.Triode Q2 emitter stage meets input power VCC, and the base stage of triode meets key main control chip U4 the 4th IO
Pin.
Described motor-drive circuit includes four triodes, eight resistance, an electric capacity.A resistance R8 termination input
Power supply VCC, resistance the R8 other end, resistance R9 one end are connected with resistance R10 one end and are followed by lock core in lock core governor circuit
Main control chip U4 the 5th IO pin;The resistance R9 other end is connected with triode Q3 base stage;The resistance R10 other end and three poles
Pipe Q4 base stage connection;Triode Q3 colelctor electrode is connected one end M+ for being followed by motor with triode Q4 colelctor electrode;Triode
Q4 emitter stage, resistance R11 one end, triode Q6 emitter stage are connected with resistance R12 one end;The resistance R12 other end
It is connected with electric capacity C2 one end and is followed by the 6th IO pin that lock core main control chip U4 in lock core governor circuit carries AD sampling functions;Three
Pole pipe Q5 colelctor electrode is connected the other end M- for being followed by motor with triode Q6 colelctor electrode;Resistance R13 one end and triode
Q5 base stage connection;Resistance R14 one end is connected with triode Q6 base stage;The resistance R13 other end, resistance R14 it is another
End is connected the 7th IO pin for being followed by connecing lock core main control chip U4 in lock core governor circuit with resistance R15 one end;Triode Q3's
Emitter stage, triode Q5 emitter stage, resistance R15 another termination input power VCC;The resistance R11 other end, electric capacity C2
The other end is grounded.
Described power supply holding circuit, including three triodes, five resistance, a switching diode.The one of resistance R16
End is connected with the 8th IO pin of main control chip is followed by P-GND, and one end connection of resistance the R16 other end, resistance R17 is followed by three poles
Pipe Q7 base stage;The resistance R17 other end is grounded after being connected with switching diode D1 negative pole;Triode Q7 emitter stage is with opening
The positive pole for closing diode D1 is connected;Resistance R18 termination triode Q7 colelctor electrode, resistance R18 another termination triode
Q8 base stage;Triode Q8 emitter stage meets input power VCC;Resistance R19 one end, resistance R20 one end connection are followed by three
Pole pipe Q8 colelctor electrode;The resistance R19 other end is grounded after being connected with triode Q9 emitter stage;Triode Q9 colelctor electrode connects
Ground;Resistance R20 another termination triode Q9 base stage.
Described auxiliary power circuit includes contact interface J3, and interface J3 causes key to be locked in insertion in the form of contact
The power supply of key and ground wire connect with cylinder side after core, contact interface J3 1 pin ground connection, contact interface J3 2 pin, resistance R21
The positive pole connection of one end, diode D2 be followed by the VCC-DS power output ends of auxiliary power interface circuit in key circuit.Electricity
The resistance R21 other end is connected with diode D2 negative pole is followed by input power VCC.
Described download program interface includes four core interface U5;Four core interface U5 grounding leg ground connection, supply pin connect input
Power supply VCC.Four core interface U5 2 pin and 3 pin respectively with the 9th IO pin of lock core main control chip U4 in lock core governor circuit and
Ten IO pin connect.
Described buzzer circuit includes four resistance, a buzzer and two triodes.Resistance R22 one termination with
Lock core main control chip U4 the 11st IO pin in lock core governor circuit;Resistance R22 another termination triode Q10 base stage, three
Pole pipe Q10 emitter stage is grounded by resistance R24;Triode Q10 colelctor electrode is connected with resistance R23 one end and is followed by triode
Q11 base stage;Triode Q11 emitter stage is connected with the resistance R23 other end and is followed by input power VCC;Triode Q11 collection
Electrode connects buzzer B one end, and the buzzer B other end is grounded by resistance R25.
Described reseting switch circuit includes two resistance, a diode and a key switch.Diode D3 is just
Pole is grounded by resistance R26;Diode D3 negative pole, resistance R27 one end are connected with key switch KEY one end and are followed by lock core
Lock core main control chip U4 the 12nd IO pin in governor circuit.Key switch KEY other end ground connection;The resistance R27 other end
Meet input power VCC.
Described VCC-BT is dc source.
Preferably, described VCC is 4.5v input powers.Key main control chip U1 and lock core main control chip U4 is used
STC15W404AS chips.Triode Q4, Q6, Q7 and Q9 use NPN type triode, and triode Q3, Q5 and Q8 use positive-negative-positive three
Pole pipe.Switching diode uses 1N4148 type switching diodes.
The mechanical part of lock core of the present invention adds on the basis of the mechanical structure and function of traditional gourd lock is retained
To the electronics ID carried on the key checking.Mechanical lock can be opened simultaneously and is verified by electronics ID so that user must possess
Key could unlock, significantly enhance the security of lock.ID chips on the shank of the key pass through red with the main control chip in lock body
Outer to be communicated rather than actual circuit, which is connected, simplifies structure, can increase more pellets in the lock of same volume,
Obtain more preferable security.In addition the present invention go back electronics ID authentication mechanisms and the priority assignation mechanism of Aided design key with
Ensure effective work of the present invention.
Brief description of the drawings
Fig. 1 is the overall structure module figure of the present invention;
Fig. 2 is the circuit diagram of key governor circuit;
Fig. 3 is the circuit diagram of auxiliary power interface circuit;
Fig. 4 is the circuit diagram of lock core governor circuit;
Fig. 5 is the circuit diagram of motor-drive circuit;
Fig. 6 is the circuit diagram of power supply holding circuit;
Fig. 7 is the circuit diagram of auxiliary power circuit;
Fig. 8 is the circuit diagram of download program interface;
Fig. 9 is the circuit diagram of buzzer circuit;
Figure 10 is the circuit diagram of reseting switch circuit;
Figure 11 is power supply holding circuit fundamental diagram;
Figure 12 is the workflow diagram of key of the present invention;
Figure 13 is the workflow diagram of lock core of the present invention.
Embodiment
As shown in Figure 1, the intelligent lock system that a kind of Light Electrical combines includes key 1 and lock core 2.
Key 1 includes the first single-chip microcomputer 1-1, the first infrared transceiver module 1-2 and key battery 1-3.First single-chip microcomputer 1-1
For storing keys id information.First single-chip microcomputer 1-1 can use the single-chip microcomputer for including ID chips, can also use ordinary internal
Single-chip microcomputer without ID chips, in exterior design ID chips, composition main control chip+ID structure.Key battery 1-3 is used to be first
Single-chip microcomputer 1-1 powers.To reduce the power consumption of key side, the first single-chip microcomputer in key works under low-power consumption mode, per second to call out
Wake up 3~5 times, when the key that the second infrared module of detection is sent inserts information, exit low-power consumption mode, start the first single-chip microcomputer,
Control the first infrared transceiver module to send key id information to the second infrared transceiver module, extend battery life.
Lock core 2 includes second singlechip 2-1, the second infrared transceiver module 2-2, lock core battery 2-3, buzzer 2-4, driving
Motor 2-5, dead bolt buckle 2-6 and microswitch 2-7.
Second singlechip 2-1 is used for the legal id information stored.There are Flash ROM or EEPROM in second singlechip 2-1
Can be with save routine and more key id informations of storage, the key identical ID for judging whether and inserting lock core believes
Breath.
Second infrared transceiver module 2-2 is used for the information that key insertion lock core is sent to the first infrared transceiver module 1-2, and
Receive the key id information that the first infrared transceiver module 1-2 is sent.Second infrared transceiver module 2-2 receives the first infrared receiving/transmission
After the key id information that module 1-1 is sent, contrasted with the legal id information stored in second singlechip 2-1;If the second monolithic
In machine there is the key id information in legal id information, and the key is considered as " legal key ";If should without storage in second singlechip
Id information, then the key can be considered as " illegal key ".
Lock core battery 2-3 powers for second singlechip;Buzzer 2-4 is used to alarm.
Motor 2-5 can clasp dead bolt buckle 2-6, be allowed to be changed into simple machinery when lock core battery is low in electricity
Lock;Now, key buzzer 2-4 alarms, prompting changing battery are inserted.Double verification shape can be automatically restored to after battery to be replaced
State.
Dead bolt buckle 2-6 controls buckle to be opened and closed by the rotating of second singlechip controlled motor;Key is " legal key
Spoon ", then controlled motor opens dead bolt buckle, and then user can rotate key to reach the purpose of enabling;Conversely, dead bolt buckle
It will be not turned on, it is impossible to enough open door.
Microswitch 2-7 is used to control second singlechip, while realizes power supply holding circuit in circuit, reaches only slotting
Enter mechanical key, power circuit can just start shooting, and reduce the power consumption of lock core, extend battery life.
Key 1 is run under the control of key circuit.Key circuit includes key governor circuit and auxiliary power interface electricity
Road.Key governor circuit is used to control key to work, and auxiliary power interface circuit is used to provide stand-by power supply for lock core.
It is illustrated in figure 2 key governor circuit, including key main control chip U1, storage chip U2 and key infrared tube
J1;Key main control chip U1 is using the 16 pin chips for having 14 IO pin, key main control chip U1 grounding leg ground connection.Key master control
Chip U1 the first IO pin connect power supply by resistance R1 sending and receiving optical diodes LED1 negative pole, the positive pole of LED 1
VCC-BT.Storage chip U2 uses single line storage chip;Storage chip U2 1 pin meets power supply VCC-BT by resistance R2, deposits
Storage chip U2 2 pin are grounded after being connected with key main control chip U1 the 2nd IO pin.Key infrared tube J1 1 pin and master control core
Power supply VCC-BT is connect by resistance R3 after piece U1 the 3rd IO pin connection;Key infrared tube J1 2 pin connect triode Q1 collection
Electrode;Key infrared tube J1 3 pin are grounded after being connected with 4 pin.Triode Q1 emitter stage meets power supply VCC-BT, triode
Base stage connects key main control chip U1 the 4th IO pin.As shown in figure 3, auxiliary power interface circuit includes microusb seat U3,
Microusb seats U3 grounding leg ground connection, microusb seats U3 1 pin is as VCC-DS power output ends.Key main control chip U1
Remaining pin it is vacant.Key main control chip U1 uses STC15W404AS.
Lock core 2 is run under the control of lock core circuit.Lock core circuit includes lock core governor circuit, motor-drive circuit, electricity
Source holding circuit, auxiliary power circuit, download program interface, buzzer circuit and reseting switch circuit.Lock core governor circuit is used
In control lock core work, motor-drive circuit is used to control motor positive and inverse in lock core, and power supply holding circuit is used for holding circuit
Conducting, auxiliary power circuit provide stand-by power supply for connecting auxiliary power interface circuit for lock core, and download program interface is used for
Auxiliary downloads, and buzzer circuit is used to alarm and man-machine interaction, reseting switch circuit are used for the replacement of " management key ".
As shown in figure 4, lock core governor circuit includes lock core main control chip U4 and lock core infrared tube J2, lock core main control chip
U4 is using the 16 pin chips for having 14 IO pin, and lock core main control chip U4 2 IO pin are vacant, lock core main control chip U4 supply pin
Connect AD_power grounding legs ground connection;Lock core main control chip U4 the first IO pin connecting resistances R4 one end, the 2nd IO pin connecting resistances R5
One end.The resistance R4 other end be connected with the negative pole of LED 2 after by being grounded after resistance R6 by electric capacity C1.
Resistance R5 other end sending and receiving optical diode LED3 negative pole.The positive pole and LED 3 of LED 2 are just
Pole connection is followed by input power VCC.Key infrared tube J2 1 pin passes through resistance after being connected with main control chip U4 the 3rd IO pin
R7 meets input power VCC;Key infrared tube J2 2 pin connect triode Q2 colelctor electrode;Key infrared tube J2 3 pin and 4
It is grounded after pin connection.Triode Q2 emitter stage meets input power VCC, and the base stage of triode connects the 4th of key main control chip U4 the
IO pin.Lock core main control chip U4 uses STC15W404AS.
As shown in figure 5, motor-drive circuit includes four triodes, eight resistance, an electric capacity.A resistance R8 termination
Input power VCC, resistance the R8 other end, resistance R9 one end are connected with resistance R10 one end and are followed by lock core governor circuit
Lock core main control chip U4 the 5th IO pin;The resistance R9 other end is connected with triode Q3 base stage;The resistance R10 other end with
Triode Q4 base stage connection;Triode Q3 colelctor electrode is connected one end M+ for being followed by motor with triode Q4 colelctor electrode;Three
Pole pipe Q4 emitter stage, resistance R11 one end, triode Q6 emitter stage are connected with resistance R12 one end;Resistance R12's is another
One end is connected with electric capacity C2 one end is followed by the 6th IO that lock core main control chip U4 in lock core governor circuit carries AD sampling functions
Pin;Triode Q5 colelctor electrode is connected the other end M- for being followed by motor with triode Q6 colelctor electrode;Resistance R13 one end and three
Pole pipe Q5 base stage connection;Resistance R14 one end is connected with triode Q6 base stage;The resistance R13 other end, resistance R14
The other end is connected the 7th IO pin for being followed by connecing lock core main control chip U4 in lock core governor circuit with resistance R15 one end;Triode
Q3 emitter stage, triode Q5 emitter stage, resistance R15 another termination input power VCC;The resistance R11 other end, electric capacity
C2 other end ground connection.P-M+ and P-M- are two pins for being connected single-chip microcomputer, are rotated forward by the two pins come controlled motor
Reversion and stopping.
When circuit works, control P-M- and the low and high level of two ports of P-M+ real come motor by main control chip
Existing rotating.When it is low level that P-M-, which is high level P-M+, triode Q1, Q4 conducting, Q2, Q3 cut-off, motor rotating forward.
Similarly, when it is high level that P-M-, which is low level P-M+, triode Q2, Q3 conducting, Q1, Q4 cut-off, motor reversion.Work as P-
Then motor is not turned on when M- and P-M+ is high level or is low level simultaneously.During MCU driving motor, after electric current flows through motor
The sampling resistor R11 that resistance is 1 Ω is passed through, is sampled by the AD of main control chip to detect the pressure drop of the sampling resistor, electricity consumption
Pressure divided by resistance value are with regard to that can obtain the working current value of motor;The electric current of motor rotation can be detected in real time.When motor turns
When in place, the dead bolt buckle meeting clamping of lock core so that motor produces stall phenomenon, and now its electric current can increase rapidly, work as list
Piece machine examination is just controlled by controlling P-M- to export low level with P-M+ ports to close motor after measuring the phenomenon.
As shown in fig. 6, power supply holding circuit, including three triodes, five resistance, a switching diode.Resistance R16
One end and the 8th IO pin connection of main control chip be followed by P-GND, one end connection of resistance the R16 other end, resistance R17 is followed by
Triode Q7 base stage;The resistance R17 other end is grounded after being connected with switching diode D1 negative pole;Triode Q7 emitter stage
It is connected with switching diode D1 positive pole;Resistance R18 termination triode Q7 colelctor electrode, resistance R18 another termination three
Pole pipe Q8 base stage;Triode Q8 emitter stage meets input power VCC;After resistance R19 one end, resistance R20 one end connection
Connect triode Q8 colelctor electrode;The resistance R19 other end is grounded after being connected with triode Q9 emitter stage;Triode Q9 current collection
Pole is grounded;Resistance R20 another termination triode Q9 base stage.
As shown in fig. 7, auxiliary power circuit includes contact interface J3, contact interface J3 1 pin is grounded, contact interface J3's
The positive pole connection of 2 pin, resistance R21 one end, diode D2 is followed by the VCC-DS electricity of auxiliary power interface circuit in key circuit
Source output terminal.The resistance R21 other end is connected with diode D2 negative pole and is followed by input power VCC.
As shown in figure 8, download program interface includes four core interface U5;Four core interface U5 grounding leg ground connection, supply pin connect
Input power VCC.Four core interface U5 2 pin and 3 pin the 9th IO pin with lock core main control chip U4 in lock core governor circuit respectively
It is connected with the tenth IO pin.
As shown in figure 9, buzzer circuit includes four resistance, a buzzer and two triodes.Resistance R22 one end
Connect the 11st IO pin with lock core main control chip U4 in lock core governor circuit;Resistance R22 another termination triode Q10 base
Pole, triode Q10 emitter stage are grounded by resistance R24;Triode Q10 colelctor electrode is connected with resistance R23 one end and is followed by
Triode Q11 base stage;Triode Q11 emitter stage is connected with the resistance R23 other end and is followed by input power VCC;Triode
Q11 colelctor electrode connects buzzer B one end, and the buzzer B other end is grounded by resistance R25.
As shown in Figure 10, reseting switch circuit includes two resistance, a diode and a key switch.Diode D3
Positive pole be grounded by resistance R26;Diode D3 negative pole, resistance R27 one end are connected with key switch KEY one end and are followed by
Lock core main control chip U4 the 12nd IO pin in lock core governor circuit.Key switch KEY other end ground connection;Resistance R27's is another
One termination input power VCC.
VCC-BT is dc source, and VCC is 4.5v input powers.Triode Q4, Q6, Q7 and Q9 use NPN type triode,
Triode Q3, Q5 and Q8 use PNP type triode.Switching diode uses 1N4148 type switching diodes.
In order to reduce the power consumption of electronic lock, we will allow lock core when no key inserts in low-power consumption even zero power
Worked under consumption pattern.As shown in figure 11, the ground wire of circuit board is divided into GND and two networks of PGND by us, and the two is used into power supply
Tie point when holding circuit and lock core insert with key is connected.Only when key inserts lock core or power supply holding circuit work
When making otherwise electronic lock ability normal work enters off-position.The workflow of power supply holding circuit is as follows:Original state key
It is not inserted into, power supply holding circuit is not turned on GND and PGND and disconnected, and circuit does not work;Turned on when key inserts GND with PGND, electricity
Road works, the conducting of main control chip driving power holding circuit;After key is extracted, main control chip detection key is extracted, and is then controlled
Power supply holding circuit disconnects, and system 0 powers off, and returns to original state.P-GND output level is controlled by main control chip, works as master control
Q7, Q8, Q9 are turned on when chip exports high level so that PGND networks are connected with GND, circuit is formed closed-loop path.Conversely, work as
When main control chip exports low level, Q5, Q6, Q7 cut-off, PGND networks disconnect with GND, and whole circuit can not form loop.
The course of work of the present invention is as follows:As shown in Figures 12 and 13, using the method for " double verification ":First key side with
First second singlechip of cylinder side first verifies whether the equipment with model for same producer;Then the ID chips of key side are verified again
Whether the ID number of middle storage is preserved by the second singlechip of cylinder side.It is not shape with broadcast that the ID of key side, which can so be allowed,
Formula, strengthen the stability and security of communication.Verify and sent out by the first single-chip microcomputer of key side by infrared transceiver module first
Send the square-wave signal of specific frequency.One is postbacked if the second singlechip of cylinder side receives by infrared transceiver module the signal
The square-wave signal of different frequency;Waiting the first single-chip microcomputer to receive return signal, then checking is completed first.Secondary checking:Key side
First single-chip microcomputer sends key ID number by infrared transceiver module, and the second singlechip of cylinder side receives posteriority by infrared module
Card whether be storage inside effective ID, be, motor clamping dead bolt buckle allow key rotate enabling on the contrary driving honeybee
The device that rings is alarmed.
When key inserts lock core, the microswitch in triggering lock, machine is established by cable on the second singlechip in lock, utilizes first
The key id information of first single-chip microcomputer memory storage is sent the second infrared transceiver module by infrared transceiver module.Then second singlechip
The ID data that second infrared transceiver module receives are compared with the legal id information stored, if the key is legal key
Spoon, second singlechip meeting motor, makes dead bolt buckle clamping, if now the pellet of the key and the lock gall locked match, uses
Family can rotates key and opened the door.If the key is illegal key, single-chip microcomputer will not motor clamping dead bolt buckle, but
Driving buzzer sends alarm.Second singlechip meeting motor reversion, departs from dead bolt buckle, now after key is extracted
Having cracked mechanical lock using technological means can not also unlock.
On the basis of the above, the concept of " management key " is introduced." management key " physically with normal key complete one
Cause, simply its id information is written into when dispatching from the factory in the main control chip in lock, is matched with lock core;User can be by managing key
Spoon is come the unlocking authority that adds or delete normal key.Prevent for the sake of security " management key " lose, " management key " no
Have the function that to open door.
" management key " specific management process is as follows:
Key insertion lock core is managed, band lock core is identified as extracting after managing key insertion, is subsequently inserted into any common key
Spoon, their id information will be preserved by the main control chip in lock core so these normal keys, which are just provided with, opens this lock core
Authority;The authority of the normal key of all existing unlocking authorities can be then deleted when continuous 2 times plug management keys, is then inserted again
Enter it is any normal key then these normal keys just be provided with open this lock core authority.
Claims (6)
1. the intelligent lock system that a kind of Light Electrical combines, including key and lock core;It is characterized in that:Described key includes first
Single-chip microcomputer, the first infrared transceiver module and key battery;First single-chip microcomputer is used for storing keys id information;First single-chip microcomputer controls
First infrared transceiver module sends key id information to the second infrared transceiver module;Key battery is used to supply for the first single-chip microcomputer
Electricity;First single-chip microcomputer uses single-chip microcomputer of the ordinary internal without ID chips, in exterior design ID chips, forms main control chip+ID's
Structure, or using the single-chip microcomputer for including ID chips;
Described lock core includes second singlechip, the second infrared transceiver module, lock core battery, buzzer, motor, dead bolt card
Button and microswitch;Second singlechip is used for the legal id information stored;There is Flash ROM or EEPROM energy in second singlechip
Enough save routines and more key id informations of storage, the key identical ID for judging whether and inserting lock core believe
Breath;Second infrared transceiver module is used for the information that key insertion lock core is sent to the first infrared transceiver module, and it is red to receive first
The key id information that outer transceiver module is sent;Lock core battery is powered for second singlechip;Buzzer is used to alarm;Motor exists
Lock core battery clasps dead bolt buckle when electricity is low, is allowed to be changed into simple mechanical lock;Dead bolt snaps through second singlechip control
Motor positive and inverse processed controls buckle to be opened and closed;Microswitch is used to control second singlechip, while realizes that power supply is kept.
2. the intelligent lock system that a kind of Light Electrical as claimed in claim 1 combines, it is characterised in that:Described key is in key
Run under the control of circuit;Key circuit includes key governor circuit and auxiliary power interface circuit;Key governor circuit is used for
Key work is controlled, auxiliary power interface circuit is used to provide stand-by power supply for lock core;
Described key governor circuit, including key main control chip U1, storage chip U2 and key infrared tube J1;Key master control
Chip U1 is using the 16 pin chips for having 14 IO pin, key main control chip U1 grounding leg ground connection;The of key main control chip U1
One IO pin meet power supply VCC-BT by resistance R1 sending and receiving optical diodes LED1 negative pole, the positive pole of LED 1;Storage
Chip U2 uses single line storage chip;Storage chip U2 1 pin meets power supply VCC-BT by resistance R2, and the 2 of storage chip U2
Pin is grounded after being connected with key main control chip U1 the 2nd IO pin;Key infrared tube J1 1 pin and the 3rd of main control chip U1 the
Power supply VCC-BT is connect by resistance R3 after the connection of IO pin;Key infrared tube J1 2 pin connect triode Q1 colelctor electrode;Key is red
It is grounded after being connected outside to pipe J1 3 pin with 4 pin;Triode Q1 emitter stage meets power supply VCC-BT, and the base stage of triode connects key
Main control chip U1 the 4th IO pin;Described auxiliary power interface circuit includes connecing for microusb seats U3, microusb seat U3
Lower margin is grounded, and microusb seats U3 1 pin is as VCC-DS power output ends;Key main control chip U1 remaining pin is vacant.
3. the intelligent lock system that a kind of Light Electrical as claimed in claim 1 combines, it is characterised in that:Described lock core is in lock core
Run under the control of circuit;Lock core circuit includes lock core governor circuit, motor-drive circuit, power supply holding circuit, accessory power supply
Circuit, download program interface, buzzer circuit and reseting switch circuit;Lock core governor circuit is used to control lock core to work, motor
Drive circuit is used to control motor positive and inverse in lock core, and power supply holding circuit is turned on for holding circuit, and auxiliary power circuit is used
Stand-by power supply is provided for lock core in connection auxiliary power interface circuit, download program interface downloads for auxiliary, buzzer
Circuit is used to alarm and man-machine interaction, reseting switch circuit are used for the replacement of " management key ";
Described lock core governor circuit includes lock core main control chip U4 and lock core infrared tube J2, and lock core main control chip U4, which is used, to be had
16 pin chips of 14 IO pin, lock core main control chip U4 2 IO pin are vacant, and lock core main control chip U4 supply pin meets AD_
Power grounding legs are grounded;Lock core main control chip U4 the first IO pin connecting resistances R4 one end, the one of the 2nd IO pin connecting resistances R5
End;The resistance R4 other end be connected with the negative pole of LED 2 after by being grounded after resistance R6 by electric capacity C1;Resistance
R5 other end sending and receiving optical diode LED3 negative pole;The positive pole of LED 2 connects with the positive pole of LED 3
Connect and be followed by input power VCC;Key infrared tube J2 1 pin is connect after being connected with main control chip U4 the 3rd IO pin by resistance R7
Input power VCC;Key infrared tube J2 2 pin connect triode Q2 colelctor electrode;Key infrared tube J2 3 pin and 4 pin connect
It is grounded after connecing;Triode Q2 emitter stage meets input power VCC, and the base stage of triode meets key main control chip U4 the 4th IO
Pin;
Described motor-drive circuit includes four triodes, eight resistance, an electric capacity;A resistance R8 termination input power
VCC, resistance the R8 other end, resistance R9 one end are connected with resistance R10 one end is followed by lock core master control in lock core governor circuit
Chip U4 the 5th IO pin;The resistance R9 other end is connected with triode Q3 base stage;The resistance R10 other end and triode Q4
Base stage connection;Triode Q3 colelctor electrode is connected one end M+ for being followed by motor with triode Q4 colelctor electrode;Triode Q4's
Emitter stage, resistance R11 one end, triode Q6 emitter stage are connected with resistance R12 one end;The resistance R12 other end and electricity
One end connection for holding C2 is followed by the 6th IO pin that lock core main control chip U4 in lock core governor circuit carries AD sampling functions;Triode
Q5 colelctor electrode is connected the other end M- for being followed by motor with triode Q6 colelctor electrode;Resistance R13 one end is with triode Q5's
Base stage connects;Resistance R14 one end is connected with triode Q6 base stage;The resistance R13 other end, the resistance R14 other end with
Resistance R15 one end connection is followed by connecing the 7th IO pin of lock core main control chip U4 in lock core governor circuit;Triode Q3 transmitting
Pole, triode Q5 emitter stage, resistance R15 another termination input power VCC;The resistance R11 other end, electric capacity C2 it is another
End ground connection;
Described power supply holding circuit, including three triodes, five resistance, a switching diode;Resistance R16 one end with
The 8th IO pin connection of main control chip is followed by P-GND, and one end connection of resistance the R16 other end, resistance R17 is followed by triode Q7
Base stage;The resistance R17 other end is grounded after being connected with switching diode D1 negative pole;Triode Q7 emitter stage and switch two
Pole pipe D1 positive pole is connected;Resistance R18 termination triode Q7 colelctor electrode, resistance R18 another termination triode Q8's
Base stage;Triode Q8 emitter stage meets input power VCC;Resistance R19 one end, resistance R20 one end connection are followed by triode
Q8 colelctor electrode;The resistance R19 other end is grounded after being connected with triode Q9 emitter stage;Triode Q9 grounded collector;
Resistance R20 another termination triode Q9 base stage;
Described auxiliary power circuit includes contact interface J3, contact interface J3 1 pin ground connection, contact interface J3 2 pin, resistance
R21 one end, diode D2 positive pole connection are followed by the VCC-DS power output ends of auxiliary power interface circuit in key circuit;
The resistance R21 other end is connected with diode D2 negative pole and is followed by input power VCC;
Described download program interface includes four core interface U5;Four core interface U5 grounding leg ground connection, supply pin connect input power
VCC;Four core interface U5 2 pin and 3 pin the 9th IO pin and the tenth IO with lock core main control chip U4 in lock core governor circuit respectively
Pin connects;
Described buzzer circuit includes four resistance, a buzzer and two triodes;A resistance R22 termination and lock core
Lock core main control chip U4 the 11st IO pin in governor circuit;Resistance R22 another termination triode Q10 base stage, triode
Q10 emitter stage is grounded by resistance R24;Triode Q10 colelctor electrode is connected with resistance R23 one end and is followed by triode Q11
Base stage;Triode Q11 emitter stage is connected with the resistance R23 other end and is followed by input power VCC;Triode Q11 current collection
Pole connects buzzer B one end, and the buzzer B other end is grounded by resistance R25;
Described reseting switch circuit includes two resistance, a diode and a key switch;Diode D3 positive pole leads to
Cross resistance R26 ground connection;Diode D3 negative pole, resistance R27 one end are connected with key switch KEY one end and are followed by lock core master control
Lock core main control chip U4 the 12nd IO pin in circuit;Key switch KEY other end ground connection;Resistance R27 another termination is defeated
Enter power supply VCC.
4. the intelligent lock system that a kind of Light Electrical as claimed in claim 2 combines, it is characterised in that:Described VCC-BT is straight
Flow power supply.
5. the intelligent lock system that a kind of Light Electrical as claimed in claim 2 combines, it is characterised in that:Described key master control core
Piece U1 and lock core main control chip U4 uses STC15W404AS chips.
6. the intelligent lock system that a kind of Light Electrical as claimed in claim 2 combines, it is characterised in that:Described VCC is 4.5v
Input power;Triode Q4, Q6, Q7 and Q9 use NPN type triode, and triode Q3, Q5 and Q8 use PNP type triode;Open
Close diode and use 1N4148 type switching diodes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710570457.XA CN107435466B (en) | 2017-07-13 | 2017-07-13 | A kind of intelligent lock system that Light Electrical combines |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710570457.XA CN107435466B (en) | 2017-07-13 | 2017-07-13 | A kind of intelligent lock system that Light Electrical combines |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107435466A true CN107435466A (en) | 2017-12-05 |
CN107435466B CN107435466B (en) | 2019-07-09 |
Family
ID=60460178
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710570457.XA Active CN107435466B (en) | 2017-07-13 | 2017-07-13 | A kind of intelligent lock system that Light Electrical combines |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107435466B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI702334B (en) * | 2019-10-18 | 2020-08-21 | 天揚精密科技股份有限公司 | Electric remote control door lock |
CN112184959A (en) * | 2020-09-22 | 2021-01-05 | 深圳市中惠创新科技有限公司 | Electromagnetic induction door lock and key |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006086907A1 (en) * | 2005-02-16 | 2006-08-24 | Jeanine Mahdjabin Ariana | Lock device operated by combination of key and code transmitter or similar |
CN101974992A (en) * | 2010-10-20 | 2011-02-16 | 成都科星电器桥架有限公司 | Intelligent learning infrared remote control coded lock |
CN206000286U (en) * | 2016-09-05 | 2017-03-08 | 常熟理工学院 | Radio remote controlled lock |
CN206224172U (en) * | 2016-05-04 | 2017-06-06 | 哈尔滨沪周清工科技发展有限公司 | A kind of power module for air purifier |
CN106917541A (en) * | 2017-02-24 | 2017-07-04 | 杭州电子科技大学 | A kind of light encourages bluetooth ID intelligent and safe lock cores |
-
2017
- 2017-07-13 CN CN201710570457.XA patent/CN107435466B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006086907A1 (en) * | 2005-02-16 | 2006-08-24 | Jeanine Mahdjabin Ariana | Lock device operated by combination of key and code transmitter or similar |
CN101974992A (en) * | 2010-10-20 | 2011-02-16 | 成都科星电器桥架有限公司 | Intelligent learning infrared remote control coded lock |
CN206224172U (en) * | 2016-05-04 | 2017-06-06 | 哈尔滨沪周清工科技发展有限公司 | A kind of power module for air purifier |
CN206000286U (en) * | 2016-09-05 | 2017-03-08 | 常熟理工学院 | Radio remote controlled lock |
CN106917541A (en) * | 2017-02-24 | 2017-07-04 | 杭州电子科技大学 | A kind of light encourages bluetooth ID intelligent and safe lock cores |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI702334B (en) * | 2019-10-18 | 2020-08-21 | 天揚精密科技股份有限公司 | Electric remote control door lock |
CN112184959A (en) * | 2020-09-22 | 2021-01-05 | 深圳市中惠创新科技有限公司 | Electromagnetic induction door lock and key |
Also Published As
Publication number | Publication date |
---|---|
CN107435466B (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105701893B (en) | A kind of novel intelligent car lock system | |
CN104599352B (en) | Intelligent lock core, lockset, blocking device, Intelligent locking system and its method of work | |
CN107435466B (en) | A kind of intelligent lock system that Light Electrical combines | |
CN107818611A (en) | A kind of smart bluetooth padlock | |
CN206110865U (en) | Electronic lock system | |
CN206000283U (en) | A kind of infrared remote control password short message alarm lock | |
CN105574959B (en) | Contactless smart lock core, lock management system and its method of work | |
CN205908136U (en) | Intelligence automatic door lock system based on mechanical lock of tradition | |
CN107558818A (en) | One kind can network intelligent door lock and its method of work | |
CN106917541A (en) | A kind of light encourages bluetooth ID intelligent and safe lock cores | |
CN201003317Y (en) | Intelligent anti-theft lock | |
CN207892387U (en) | The intelligent electric-controlled device of rifle lock | |
CN207144670U (en) | A kind of 54 pistols with capacitive fingerprint lock | |
CN205604862U (en) | But remote control's pickproof lock intelligence spring bolt | |
CN201763066U (en) | Grating electronic lock | |
CN207296649U (en) | One kind can network intelligent door lock | |
CN208502461U (en) | A kind of electronic lock using virtual key unlocking | |
CN209457574U (en) | A kind of smart lock of integrated light-emitting diode | |
CN208089019U (en) | A kind of optical cross box smart lock based on electron key | |
CN207794830U (en) | A kind of electric door lock warning device | |
CN206000286U (en) | Radio remote controlled lock | |
CN207813255U (en) | A kind of burglary-resisting system of intelligent electronic lock | |
CN207580009U (en) | A kind of bicycle auto-lock anti-theft control system | |
CN207458152U (en) | Intelligent fingerprint door lock based on Internet of Things | |
CN201176875Y (en) | Intelligent puzzle lock |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201221 Address after: 201401 No.200 Majiazhai Road, Nanqiao Town, Fengxian District, Shanghai Patentee after: SHANGHAI INTER-ROCK HARDWARE Co.,Ltd. Address before: 310018 No. 2 street, Xiasha Higher Education Zone, Hangzhou, Zhejiang Patentee before: HANGZHOU DIANZI University |
|
TR01 | Transfer of patent right |