Low-power consumption safety lock based on photo resistance coding and decoding
Technical field
The present invention relates to smart lock technical fields, more particularly to the low-power consumption safety lock based on photo resistance coding and decoding.
Background technique
With the development of the global economy, people promote global security protection industrial market fast-developing the concern of safety problem.
One of most common security protection subsystem in most intelligent projects is had become as the access control system in security protection industry.
Current door lock cryptographic technique includes:Key unlock, the unlock of 0~9 key button password, RFID swipe the card unlock and fingerprint
Unlock etc..The door-locking system of these modes is using relatively broad, and unlocking manner is very easy to copy, and safety is not high, uncomfortable
For to the higher place of security level required;And the power consumption of the door-locking system of these modes is higher, wastes electric power resource, uses
It is inconvenient.
For this purpose, we have proposed the low-power consumption safety locks based on photo resistance coding and decoding.
Summary of the invention
The purpose of the present invention is to solve unlocking manners in the prior art to be very easy to copy, and safety is not high, no
Suitable for the higher place of security level required;And the energy consumption of the door-locking system of these modes is higher, wastes electric power resource, makes
With inconvenient problem, and the low-power consumption safety lock based on photo resistance coding and decoding proposed.
To achieve the goals above, present invention employs following technical solutions:Low function based on photo resistance coding and decoding
Safety lock, including door body are consumed, door lock is installed inside the door body, mounting groove, the first installation cavity are offered inside the door lock
Body and the second installation cavity, the mounting groove internal slide are connected with rack gear, and the rack gear is welded close to one end of mounting groove notch
Be connected to lock tongue, and lock tongue is located at outside door lock, be fixedly installed with servo motor inside the mounting groove, the servo motor it is defeated
Fixing sleeve is equipped with partial gear on rod, and the partial gear lower end is engaged with upper end of the rack, the first installation cavity
Through the first sliding shoe and the second sliding shoe is slidably connected between the second installation cavity, the first installation inside cavity is also sliding
Dynamic to be connected with limit plate, the limit plate surface offers the first groove and the second groove, is located in the first installation cavity body
Be welded with limited block on first sliding shoe and the second sliding shoe side wall in portion, two limited blocks respectively with limit plate
One groove and the second groove are slidably connected, and first sliding shoe and the second sliding shoe bottom respectively correspond and be fixedly connected with first
Fixed link and the second fixed link, first fixed link are extended through to inside mounting groove and are welded far from one end of the first sliding shoe
It is connected to fixture block, the upper end of the partial gear offers the card slot that cooperation fixture block uses;
The first installation cavity inner wall is also provided with the circular through hole that uses of the second fixed link of cooperation, first sliding shoe and
The second sliding shoe bottom is fixedly connected with the first spring with the first installation cavity bottom, and it is solid that first spring is set in first
Outside fixed pole and the second fixed link, it is welded with the first fixed block on the limit plate, is welded on the first installation cavity inner wall
There is the second fixed block, rectangular through-hole is also provided on the limit plate, and the second fixed block is located in rectangular through-hole and and rectangle
Through-hole is slidably connected, and is fixedly connected with second spring between first fixed block and the second fixed block, first sliding shoe and
One end that the second sliding shoe is located at the second installation inside cavity is welded with link block, and roof is fixed in the second installation cavity body
First cylinder and the second cylinder be installed, first cylinder and the output end of the second cylinder it is corresponding be located at the first sliding shoe and
The surface of the link block on the second sliding shoe top.
In the above-mentioned low-power consumption safety lock based on photo resistance coding and decoding, first groove is by the first dovetail groove
Composition is connected to L-shaped groove, and the first dovetail groove is located at limit plate surface, second groove uses the second dovetail groove and L-shaped groove
Connection composition, and the second dovetail groove is located at limit plate surface.
In the above-mentioned low-power consumption safety lock based on photo resistance coding and decoding, the rack gear bottom is welded with limit and slides
Block, the mounting groove inner wall offer the limit sliding chutes that cooperation position limiting slide block uses, and the position limiting slide block is located in limit sliding chutes
And it is slidably connected with limit sliding chutes.
Low-power consumption safety lock based on photo resistance coding and decoding further includes mobile terminal and reception terminal, the movement
Terminal includes Password Input module, data processing module one, image processing module, APP sequence conversion module, the Password Input
The output end of module is electrically connected with the input terminal of data processing module one, at the output end and image of the data processing module one
The input terminal electrical connection of module is managed, the APP sequence conversion module includes APP sequence display module and optical conversion module, institute
The output end for stating image processing module is electrically connected with the input terminal of APP sequence display module, the APP sequence display module it is defeated
Outlet is electrically connected with the input terminal of optical conversion module.
In the above-mentioned low-power consumption safety lock based on photo resistance coding and decoding, the reception terminal includes light-inductive
Module, electric current form module, data processing module two and password acceptance module, the output end of the optical conversion module with it is photosensitive
The input terminal of induction module is electrically connected, and the output end of the light-inductive module is electrically connected with the input terminal that electric current forms module,
The output end that the electric current forms module is electrically connected with the input terminal of data processing module two, the data processing module two it is defeated
Outlet is electrically connected with the input terminal of password acceptance module.
The invention also discloses a kind of operating method of low-power consumption safety lock based on photo resistance coding and decoding, the shiftings
Dynamic terminal is mounted on mobile phone, and the reception terminal is mounted on door lock, and method includes the following steps:
A1, by the Password Input module of mobile terminal in Password Input mobile phone, the data processing module one for passing through mobile terminal will
Password is written as binary code;
A2, image processing module write data processing module one according to the rule of " 1 corresponding white image, 0 corresponding black image "
Binary code is translated as equally spaced image sequence;
Image sequence is Mobile phone screen by optical conversion module converter by the APP sequence display module of A3, APP sequence conversion module
The bright dark image of black and white on curtain;
The bright dark image of black and white that the light-inductive module of reception terminal is shown according to mobile phone screen on A4, door lock is formed by electric current
Module forms the electric current input data processing module two for carrying signal;
It is corresponding binary code that A5, data module two, which carry out analysis conversion output to signal code, then to change into Password Input close
Code receiving module;
A6, password acceptance module open door lock after verifying to password.
In a kind of operating method of above-mentioned low-power consumption safety lock based on photo resistance coding and decoding, the photaesthesia
The bright dark image of the black and white for answering module to show mobile phone screen forms the specific side that module forms the electric current of carrying signal by electric current
Method is:
The bright dark image flicker signal of the black and white that the photo resistance of step 1, light-inductive module shows mobile phone screen incudes
Translation;
Step 2, the signal input current that the single-chip microcontroller of light-inductive module senses photo resistance form module;
Step 3, electric current form module and quickly form the signal code for carrying single-chip microcontroller input signal.
Compared with prior art, it is based on the advantages of low-power consumption safety lock of photo resistance coding and decoding:
1, coding and image procossing are carried out to password by the mobile terminal being mounted on mobile phone.It is dark that white light is generated by APP again
Light pattern sequence improves the safety of password, is not easy to be replicated, security level is higher;
2, incuded by the reception terminal dialogue brightness light pattern sequence being mounted on door lock, then be re-translated into as password
It is verified by the reception of password acceptance module, the reaction speed of photo resistance and single-chip microcontroller is very fast, and power consumption is lower, saves electric power money
Source;
3, partial gear being limited by fixture block, is locked to carry out limit to rack gear and lock tongue, structure closing is compact,
Transmission is simple and efficient, and abrasion is small, and the service life is longer.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the low-power consumption safety lock proposed by the present invention based on photo resistance coding and decoding;
Fig. 2 is the structure enlargement diagram of the low-power consumption safety lock part A proposed by the present invention based on photo resistance coding and decoding;
Fig. 3 is the structural representation of the low-power consumption safety lock limit plate part proposed by the present invention based on photo resistance coding and decoding
Figure;
Fig. 4 is that the module of the low-power consumption safety lock proposed by the present invention based on photo resistance coding and decoding forms figure;
Fig. 5 is a kind of operation stream of the operating method of the low-power consumption safety lock based on photo resistance coding and decoding proposed by the present invention
Cheng Tu;
Fig. 6 is the circuit diagram of the low-power consumption safety lock photo resistance part proposed by the present invention based on photo resistance coding and decoding.
In figure:1 door body, 2 door locks, 3 mounting grooves, 4 first installation cavitys, 5 second installation cavitys, 6 rack gears, 7 lock tongues, 8 are not
Complete gear, 9 first sliding shoes, 10 the second sliding shoes, 11 limit plates, 12 first grooves, 13 second grooves, 14 limited blocks, 15
First fixed link, 16 second fixed links, 17 fixture blocks, 18 circular through holes, 19 first springs, 20 second fixed blocks, 21 second are fixed
Block, 22 rectangular through-holes, 23 second springs, 24 link blocks, 25 first cylinders, 26 second cylinders, 27 position limiting slide blocks, 28 limits are slided
Slot.
Specific embodiment
Following embodiment only exists in illustrative purpose, limits the scope of the invention without being intended to.
Embodiment
Referring to Fig.1-6, it based on the low-power consumption safety lock of photo resistance coding and decoding, including door body 1, is installed inside door body 1
There is door lock 2, mounting groove 3, first is offered inside door lock 2, cavity 4 and the second installation cavity 5 are installed, 3 internal slide of mounting groove connects
It is connected to rack gear 6,6 bottom of rack gear is welded with position limiting slide block 27, and 3 inner wall of mounting groove offers the limit that cooperation position limiting slide block 27 uses
Sliding slot 28, position limiting slide block 27 are located in limit sliding chutes 28 and are slidably connected with limit sliding chutes 28, and rack gear 6 is close to 3 notch of mounting groove
One end be welded with lock tongue 7, and lock tongue 7 is located at outside door lock 2, and servo motor, servo motor are fixedly installed with inside mounting groove 3
Output rod on fixing sleeve be equipped with partial gear 8,8 lower end of partial gear is engaged with 6 upper end of rack gear.
Run through between first installation cavity 4 and the second installation cavity 5 and slidably connects the first sliding shoe 9 and the second sliding shoe
10, first installation cavity 4 inside also slidably connect limit plate 11, it is recessed that 11 surface of limit plate offers the first groove 12 and second
Slot 13, the first groove 12, which is connected to by the first dovetail groove with L-shaped groove, to be formed, and the first dovetail groove is located at 11 surface of limit plate, and second
Groove 13 is connected to composition with L-shaped groove using the second dovetail groove, and the second dovetail groove is located at 11 surface of limit plate, is located at the first installation
Be welded with limited block 14 on 10 side wall of the first sliding shoe 9 and the second sliding shoe inside cavity 4, two limited blocks 14 respectively with
The first groove 12 and the second groove 13 of limit plate 11 are slidably connected.
First sliding shoe 9 and 10 bottom of the second sliding shoe, which respectively correspond, is fixedly connected with the first fixed link 15 and the second fixation
Bar 16, the first fixed link 15 extend through to 3 inside of mounting groove far from one end of the first sliding shoe 9 and are welded with fixture block 17, no
The upper end of complete gear 8 offers the card slot that cooperation fixture block 17 uses, and it is solid that the first installation 4 inner wall of cavity is also provided with cooperation second
The circular through hole 18 that fixed pole 16 uses, the first sliding shoe 9 and 10 bottom of the second sliding shoe are fixed with the first installation 4 bottom of cavity
It is connected with the first spring 19, the first spring 19 is set in outside the first fixed link 15 and the second fixed link 16, welds on limit plate 11
It is connected to the first fixed block 20, the second fixed block 21 is welded on the first installation 4 inner wall of cavity, is also provided with rectangle on limit plate 11
Through-hole 22, and the second fixed block 21 is located in rectangular through-hole 22 and is slidably connected with rectangular through-hole 22, the first fixed block 20 and the
Second spring 23 is fixedly connected between two fixed blocks 21.
One end that first sliding shoe 9 and the second sliding shoe 10 are located inside the second installation cavity 5 is welded with link block 24,
Second installation 5 inner roof wall of cavity is fixedly installed with the first cylinder 25 and the second cylinder 26, the first cylinder 25 and the second cylinder 26
The surface of the corresponding link block 24 for being located at 10 top of the first sliding shoe 9 and the second sliding shoe of output end.
Low-power consumption safety lock based on photo resistance coding and decoding further includes mobile terminal and reception terminal, mobile terminal
It is mounted on mobile phone, receives terminal and be mounted on door lock, mobile terminal includes Password Input module, data processing module one, figure
As processing module, APP sequence conversion module, the input terminal of the output end and data processing module one of Password Input module is electrically connected
It connects, the output end of data processing module one is electrically connected with the input terminal of image processing module, and APP sequence conversion module includes APP
The input terminal of sequence display module and optical conversion module, the output end and APP sequence display module of image processing module is electrically connected
It connects, the output end of APP sequence display module is electrically connected with the input terminal of optical conversion module.
Receiving terminal includes light-inductive module, electric current formation module, data processing module two and password acceptance module, light
Quick induction module includes photo resistance and single-chip microcontroller.
Photo resistance be with vulcanization every or selenizing particular resistor made of equal semiconductor materials, its working principle is that base
In inner photoeffect, photo resistance can be used for photoelectric conversion, it can the variation of light is converted to the variation of electricity, photo resistance pair
The sensibility of light is higher, and energy consumption is lower.
Single-chip microcontroller is a kind of IC chip, is using very large scale integration technology with data-handling capacity
Central processor CPU, random access memory ram, read only memory ROM, it is a variety of I/O mouthfuls and interrupt system, timer/counter
Etc. functions be integrated into the small and perfect microcomputer system constituted on one piece of silicon wafer, answered extensively in industrial control field
With, single-chip microcontroller has system structure simple, and it is easy to use, realize modularization;High reliablity, working time are longer;Processing function
By force, speed is fast;Low-voltage, low-power consumption;The strong feature of control function.
The output end of optical conversion module is electrically connected with the input terminal of light-inductive module, the output end and electricity of light-inductive module
Stream forms the input terminal electrical connection of module, and the output end that electric current forms module is electrically connected with the input terminal of data processing module two,
The output end of data processing module two is electrically connected with the input terminal of password acceptance module.
In the present invention, a kind of operating method of the low-power consumption safety lock based on photo resistance coding and decoding, including following step
Suddenly:
A1, by the Password Input module of mobile terminal in Password Input mobile phone, the data processing module one for passing through mobile terminal will
Password is written as binary code;
A2, image processing module write data processing module one according to the rule of " 1 corresponding white image, 0 corresponding black image "
Binary code is translated as equally spaced image sequence;
Image sequence is Mobile phone screen by optical conversion module converter by the APP sequence display module of A3, APP sequence conversion module
The bright dark image of black and white on curtain;
The bright dark image of black and white that the light-inductive module of reception terminal is shown according to mobile phone screen on A4, door lock is formed by electric current
Module forms the electric current input data processing module two for carrying signal;
It is corresponding binary code that A5, data module two, which carry out analysis conversion output to signal code, then to change into Password Input close
Code receiving module;
A6, password acceptance module open door lock after verifying to password.
In the present invention, the bright dark image of black and white that mobile phone screen is shown is formed module by electric current and is formed by light-inductive module
The specific method of electric current for carrying signal is:
The bright dark image flicker signal of the black and white that the photo resistance of step 1, light-inductive module shows mobile phone screen incudes
Translation;
Step 2, the signal input current that the single-chip microcontroller of light-inductive module senses photo resistance form module;
Step 3, electric current form module and quickly form the signal code for carrying single-chip microcontroller input signal.
Under 2 locking-in state of door lock, the limited block 14 on the first sliding shoe 9 is supported by the L-shaped groove of the first groove 12 to be set, and first
The fixture block 17 of 15 rod end of fixed link is fastened in the card slot of 8 upper end of partial gear, when photo resistance senses that mobile phone screen is aobvious
After the bright dark image flicker signal of the black and white shown, electric signal is sent to the second cylinder 26 and servo motor, the output of the second cylinder 26
End elongation presses the second sliding shoe 10, and the limited block 14 on the second sliding shoe 10 is sliding along the second trapezoidal groove groove wall of the second groove 13
It is dynamic to push limit plate 11 to the left, so that the limited block 14 on the first sliding shoe 9 is detached from supporting for the L-shaped groove of the first groove 12 and sets,
The first sliding shoe 9 is pushed under the return action power of first spring 19, so that fixture block 17 is detached from the card slot of 8 upper end of partial gear, is watched
Taking motor can drive partial gear 8 to rotate, and the rotation of partial gear 8 drives the rack gear 6 of engagement inside along limit sliding chutes 28
It slides, in the mounting groove 3 for making 7 retraction door lock 2 of lock tongue, door body 1 is i.e. openable;Conversely, driving servo motor transmission makes 6 band of rack gear
Dynamic lock tongue 7 stretches out door lock 2, then the output end of the first cylinder 25 is driven to extend the first sliding shoe 9 of pressing, makes on the first sliding shoe 9
Limited block 14 supported and set again by the L-shaped groove of the first groove 12, the fixture block 17 of 15 rod end of the first fixed link can be made to block again
If lockking door body 1 into the card slot of 8 upper end of partial gear.
Although be used more herein door body 1, door lock 2, mounting groove 3, first install cavity 4, second install cavity 5,
Rack gear 6, lock tongue 7, partial gear 8, the first sliding shoe 9, the second sliding shoe 10, limit plate 11, the first groove 12, the second groove
13, limited block 14, the first fixed link 15, the second fixed link 16, fixture block 17, circular through hole 18, the first spring 19, the first fixed block
20, the second fixed block 21, rectangular through-hole 22, second spring 23, link block 24, the first cylinder 25, the second cylinder 26, position limiting slide block
27, the terms such as limit sliding chutes 28, but it does not exclude the possibility of using other terms.The use of these items is only for more square
Just essence of the invention is described and explained;Being construed as any additional limitation is disagreed with spirit of that invention
Back.