A kind of Intelligent electronic coded lockTechnical field
The present invention relates to a kind of coded lock, particularly relate to a kind of Intelligent electronic coded lock.
Background technology
Along with the raising of people's living standard and the reinforcement of awareness of safety, also just more and more higher to the requirement of safety.Traditional lockset know-why is too simple, does not possess real anti-theft feature, and therefore the New Times has proposed the requirement of the necessary revolution of lockset.Along with the develop rapidly of electronic technology, the appearance of coded lock has improved locks to obtain security.In safety technological guard field, to make electronic cipher control system be technically or in performance, all greatly improved a step, and the relevant departments of numerous countries constantly propose electronic password lock and obtain concept.Because common coded lock number of password is few, poor safety performance, even easily by the voice of repeatedly souning out and decode, so must study and need further raising for coded lock.Intelligent for introducing both at home and abroad at present, the research of the coded lock of the function of analysis expert system is also few.
Summary of the invention
The object of the invention is to overcome above-mentioned deficiency of the prior art, a kind of Intelligent electronic coded lock is provided.This Intelligent electronic coded lock reasonable in design, volume is little, cost is low, control is flexible, be convenient to commercialization, can prevent from repeatedly souning out, and has effectively overcome above-mentioned shortcoming, is convenient to promote the use of.
For achieving the above object, the technical solution used in the present invention is: a kind of Intelligent electronic coded lock, it is characterized in that: comprise the Password Input circuit for realizing password setting and input, for according to the output password of Password Input circuit with set in advance password relatively and make the CPU of respective handling and provide the power module of power supply for the each power unit of native system, the input end of described CPU is connected to and is used to CPU that the clock circuit of time reference is provided and for realizing the reset circuit of system reset function, the output terminal of described CPU is connected to the display circuit for showing CPU output data, for adopting piezo buzzer to produce the warning circuit of buzz in the time having alert signal, for inputting user that password is realized the unlock circuit of unlocking function correct in the situation that and for reading at any time new password and thering is the password memory circuit of power-down protection, described unlock circuit joins with the motor of unblanking, described power circuit adopts three sections of voltage stabilizer LM7805, described clock circuit adopts 12MHz crystal oscillator and 1pF electric capacity, described reset circuit adopts hand-reset, described display circuit adopts LED charactron, described password memory circuit adopts AT24C02 as eeprom chip.
Above-mentioned a kind of Intelligent electronic coded lock, is characterized in that: described Password Input circuit comprises 4 × 4 matrix keyboards.
Above-mentioned a kind of Intelligent electronic coded lock, is characterized in that: described CPU adopts the AT89C58RD+ chip of atmel corp.
Above-mentioned a kind of Intelligent electronic coded lock, is characterized in that: described unlock circuit comprises relay.
The present invention compared with prior art has the following advantages:
1, reasonable in design: the present invention includes power circuit, clock circuit, reset circuit, Password Input circuit, CPU, display circuit, warning circuit, unlock circuit, password memory circuit, reasonable in design.
2, good confidentiality: the present invention has adopted 6 passwords, and decoding rate is at random low, and in the situation that password may be revealed timely change password, avoid obtaining security decline because the special circumstances such as personnel's replacements make to lock.
3, crack protection: the present invention has used Password Input arbitration functions on software, continuous three input password mistakes a period of time that will lock the keypad, warning system starts automatically.
4, volume is little, cost is low: the present invention uses single-chip microcomputer as microcontroller device, has greatly reduced volume and cost.
5, easy and simple to handle: the present invention's hommization simple to operate, failure rate is low, Password Input is easy and simple to handle.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Fig. 1 is schematic block circuit diagram of the present invention.
Description of reference numerals:
1-power circuit; 2-clock circuit; 3-reset circuit;
4-Password Input circuit; 5-CPU; 6-display circuit;
7-warning circuit; 8-unlock circuit; 9-password memory circuit;
10-the motor of unblanking.
Embodiment
A kind of Intelligent electronic coded lock as shown in Figure 1, comprise thePassword Input circuit 4 for realizing password setting and input, for according to the output password ofPassword Input circuit 4 with set in advance password relatively and make the CPU5 of respective handling and provide the power module 1 of power supply for the each power unit of native system, the input end of described CPU5 is connected to theclock circuit 2 that is used to CPU5 that time reference is provided and for realizing thereset circuit 3 of system reset function, the output terminal of described CPU5 is connected to the display circuit 6 for showing CPU5 output data, for adopting piezo buzzer to produce the warning circuit 7 of buzz in the time having alert signal, for inputting user that password is realized the unlock circuit 8 of unlocking function correct in the situation that and for reading at any time new password and thering is the password memory circuit 9 of power-down protection, described unlock circuit 8 joins with themotor 10 of unblanking, described power circuit 1 adopts three sections of voltage stabilizer LM7805, describedclock circuit 2 adopts 12MHz crystal oscillator and 1pF electric capacity, describedreset circuit 3 adopts hand-reset, described display circuit 6 adopts LED charactron, described password memory circuit 9 adopts AT24C02 as eeprom chip.
In the present embodiment, describedPassword Input circuit 4 comprises 4 × 4 matrix keyboards.Described CPU5 adopts the AT89C58RD+ chip of atmel corp.Described unlock circuit 8 comprises relay.Described unlock circuit 8 adopts the conducting of high power transistor, adhesive, the disconnection of cut-off pilot relay, further drives fractional motor to unblank,
The course of work of the present invention is: the power circuit 1 of Intelligent electronic coded lock is for after system modules power supply, and system is in keyboard scan state, and the flicker of program run indicator shows that system moves that all are normal.The space that 6 bytes are set in program is deposited password and 6 bytes of setting and is deposited the data of keyboard input.Under system normal operating condition, if byPassword Input circuit 4 input number keyboards (1~9), system relatively just can judge the correctness of input password by turn according to the input data that read and predefined password, the password thatPassword Input circuit 4 is inputted and the password of setting compare, if password is correct, export high/low level control transistor saturation conduction, relay adhesive by CPU5 pin, thedriving motor 10 of unblanking operates, and electronic lock is opened; Otherwise, in the time of input password mistake, Password Input number of times counting unit counting, if do not reach 3 times, return toPassword Input circuit 4 scanning modes, if number of times has reached 3 times, start warning circuit, export high/low level control piezo buzzer by CPU5 pin and send buzz warning, effectively prevented the possibility breaking a code because repeatedly souning out.In the time of three input errors of password, system enters deadlock state, can jump out this state by " reset key ".Initial password is 123456, and after only having lock to be opened, user presses after " key is set ", just can carry out password and revise action.Password update routine requires new password input twice, and program compares twice password, if consistent, replaces original password with this password, if inconsistent, repetitive operation, the randomness of so just having avoided password to revise.
The above; it is only preferred embodiment of the present invention; not the present invention is imposed any restrictions, every any simple modification, change and equivalent structure transformation of above embodiment being done according to the technology of the present invention essence, all still belongs in the protection domain of technical solution of the present invention.