The anti-jamming circuit of electronic lock
Technical field
The utility model belongs to field of security technology, and in particular to a kind of anti-jamming circuit of electronic lock.
Background technique
Electronic lock be one kind by Password Input come control circuit or chip operation, to control closing for mechanical switch
It closes, completes the electronic product of unlocking, locking task.Electronic lock overcomes mechanical lock poor safety performance in field of security technology
The shortcomings that, it can gradually replace traditional mechanical lock.There are many electronic lock type, there is easy circuit product, also have based on core
The higher product of the cost performance of piece, the wider electronic lock of application is to pass through what is be programmed to using chip as core now.
The Initialize installation of well known electronic lock currently on the market, default setting are without state (the only adding tube set up defences
Reason person could effectively set up defences), in other words exactly any user inputs fingerprint and can arbitrarily unlock, and cardinal principle is matched in internal lock
It sets one and initializes keypad individually to realize control, initialize and be provided with initialization key on keypad, very by one section
Long lead will be initialized by mainboard is keyed to, and control circuit is controlled using logic level, i.e., by key pressing when be
Low (or high) level, not by when reform into high (or low) level, cause electronic lock to be easy to be disturbed, especially it is special this
Under the strong electromagnetics such as bracing wire circle or electrostatic potential interference, false triggering unlocking is easily caused.
In order to overcome electronic lock initialization key under the interference of strong electromagnetic electrostatic potential, opened after being easy false triggering initialization key
The problem of lock, it is urgent to provide a kind of anti-jamming circuits of electronic lock to effectively improve so that electronic lock will not be disturbed and delay work
The safety of electronic lock.
Utility model content
Technical problem to be solved in the utility model is in order to overcome the problems referred above, to provide a kind of anti-interference electricity of electronic lock
Road.
The technical scheme adopted by the utility model to solve the technical problem is as follows: the anti-jamming circuit of electronic lock, including electricity
Son locks motherboard circuit and initialization keypad, is provided with single-chip microcontroller on electronic lock motherboard circuit, further includes differential comparator amplifier
Circuit, differential comparator amplifier circuit are connected with initialization keypad and single-chip microcontroller respectively.
Specifically, differential comparator amplifier circuit include differential comparator amplifier, power supply and second the second socket of socket with
Initialization keypad connects, and power supply connects with the 4th pin of the positive voltage terminal of differential comparator amplifier and the second socket respectively,
The third pin of second socket and the voltage negative terminal of differential comparator amplifier are grounded respectively, the second pin of the second socket, first
Pin is connected with the first pin of the first pin of first resistor, 3rd resistor respectively, the second pin of first resistor, third electricity
The second pin of resistance be separately connected the positive input terminal of differential comparator amplifier, negative input end be connected, differential comparator amplifier it is defeated
Outlet is connected with the I/O port of single-chip microcontroller.
Specifically, initialization keypad includes key, the first pin and second pin of key respectively with second resistance
4th pin of the first pin and the first socket be connected, the third pin of the first socket respectively with the second pin of second resistance and
The second pin of 4th resistance is connected, and the first pin of second resistance is also connected with the second pin of the first socket, the first socket
The first pin be connected with the first pin of the 4th resistance.
As an improvement, the resistance value R3 of the resistance value R1=3rd resistor of first resistor, the 4th electricity of resistance value R2=of second resistance
The resistance value R4 of resistance.
As an improvement, R2=10*R1,1K Ω≤R2≤10K Ω.
The beneficial effects of the utility model are: the input mode amplified using differential comparison, is initialized in electronic lock circuit
On key circuit by increase differential comparator amplifier circuit, effectively solve strong electromagnetic, electrostatic potential interference under, electronic lock just
The false triggering of beginningization key and the problem of unlock, structure is simple, and reliable performance is stablized, easy to accomplish, easily operated, effectively improves electricity
The electromagnetism anti-interference ability of son lock, enhances its safety and reliability.The utility model is suitable for existing electronic lock.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the utility model;
Fig. 2 is the structural schematic diagram of the differential comparator amplifier circuit of the utility model;
Fig. 3 is the structural schematic diagram of the initialization keypad of the utility model;
K1 is initialization key, and P1 is the first socket, and P2 is the second socket, and R1 is first resistor, and R2 is second resistance, R3
For 3rd resistor, R4 is the 4th resistance, and U1 is differential comparator amplifier, and GND is ground terminal, and VCC is power supply.
Specific embodiment
With reference to the accompanying drawing, the technical solution of the utility model is described in detail.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to this is practical
Novel and its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without
It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
It is the structural schematic diagram of the utility model as shown in Figure 1.The anti-jamming circuit of the electronic lock of the utility model, including
Electronic lock motherboard circuit and initialization keypad, are provided with single-chip microcontroller on electronic lock motherboard circuit, further include differential comparison amplification
Device circuit, differential comparator amplifier circuit are connected with initialization keypad and single-chip microcontroller respectively, specifically, differential comparison amplifies
Device circuit is connected by mainboard single-chip I/O mouth with single-chip microcontroller.
As shown in Fig. 2, differential comparator amplifier circuit includes differential comparator amplifier U1, power supply VCC and the second socket P2,
Second socket P2 is preferably 4P socket, and the second socket P2 connects with initialization keypad, and power supply VCC amplifies with differential comparison respectively
Positive voltage terminal (end " V+ ") i.e. the 4th pin 4 of the 5th pin 5 and the second socket P2 of device U1 connects, the third of the second socket P2
Voltage negative terminal (end " V- ") i.e. its second pin 2 of pin 3 and differential comparator amplifier U1 are grounded respectively, and the second of the second socket
Pin 2, the first pin 1 are connected with the first pin 1 of the first pin 1 of first resistor R1,3rd resistor R3 respectively, first resistor
The second pin 2 of R1, the second pin 2 of 3rd resistor R3 are separately connected the positive input terminal ("+" end) of differential comparator amplifier U1
I.e. its first pin 1, its third pin 3 of negative input end ("-" end) i.e. are connected, the output end of differential comparator amplifier U1 i.e. its
Four pins 4 are connected with the I/O port of single-chip microcontroller.The second pin of second socket P2 is A pin, and the first pin is B pin.
As shown in figure 3, initialization key K1 (i.e. key), the first socket P1, second resistance and the 4th resistance composition are initial
Change keypad.The first pin 1 and second pin 2 of key K1 respectively with the first pin 1 of second resistance R2 and the first socket P1
The 4th pin 4 be connected, the third pin 3 of the first socket respectively with the second pin 2 of second resistance R2 and the 4th resistance R4
Second pin 2 is connected, and the first pin 1 of second resistance R2 is also connected with the second pin 2 of the first socket P1, the first socket P1's
First pin 1 is connected with the first pin 1 of the 4th resistance R4.The first pin 1 of first socket P1 is B- pin, the first socket
The second pin 2 of P1 is A+ pin.
First, second, third and fourth resistance is all bias pressure resistance.Set the resistance of the resistance value R1=3rd resistor of first resistor
Value R3, the resistance value R4 of the 4th resistance of resistance value R2=of second resistance, to make differential comparator amplifier U1 "+" end, "-" end exist
Key K1 realizes equipotential when not pressing.Preferably, R2=10*R1,1K Ω≤R2≤10K Ω, to make amplifier
Sensitivity is moderate, and reduces interference.
First socket P1 is connected by difference multiple twin connecting line with the second socket P2 of electronic lock motherboard circuit, specifically A+
The end A is terminated, B- terminates the end B, and is connected with the thick twisted pair such as isometric.In the trigger output end and monolithic of initialization keypad
Increase a differential comparator amplifier circuit between machine, differential comparator amplifier U1 "+" end (the first pin 1) connects key triggering
The composition potential-divider network of foot, R1 and R2 are divided, and "-" end (third pin 3) connects to be made of resistance R3 and R4 potential-divider network
Reference edge.In the equipotential of relative equilibrium when "+" "-" is held level with both hands, the 4th pin 4 of U1 exports low level.When strong electromagnetic potential
When interfering electronic lock body, the "+" end (the first pin 1) of differential comparator amplifier U1 and "-" end (third pin 3) can be generated
The equal interference of charge potential (positive or negative), two current potentials are repealed by implication.The 4th pin 4 of U1 keeps output low level, not by dry
It disturbs, lock body will not delay work.
When key K1 people is to press, pass through the bridge joint of socket, the "+" end of differential comparator amplifier U1 i.e. its first pin
1 input high level, "-" end i.e. its third pin 3 are maintained at low level, and the "+" end of differential comparator amplifier U1 is greater than "-" end.
4 voltage reversal of the 4th pin of U1 exports high level to single-chip I/O mouth, and lock body realizes initialization.
Particular embodiments described above has carried out into one the purpose of this utility model, technical scheme and beneficial effects
Step is described in detail, it should be understood that being not limited to this foregoing is merely specific embodiment of the utility model
Utility model, within the spirit and principle of the utility model, any modification, equivalent substitution, improvement and etc. done should all wrap
Containing being within the protection scope of the utility model.