Low-power consumption safety lock based on photoresistor coding and decoding
Technical Field
The invention relates to the technical field of intelligent locks, in particular to a low-power-consumption safety lock based on photoresistance coding and decoding.
Background
With the development of global economy, people's attention to safety issues has prompted the rapid development of the global security industry market. The access control system used in the security industry has become one of the most common security subsystems in most intelligent projects.
The current door lock password technology comprises the following steps: key unlocking, 0-9 key password unlocking, RFID card swiping unlocking, fingerprint unlocking and the like. The door lock systems adopting the modes are widely used, the unlocking mode is easily copied, the safety is not high, and the door lock system is not suitable for places with high requirements on safety level; and the door lock system with the modes has high power consumption, wastes power resources and is inconvenient to use.
For this reason, we propose a low power consumption security lock based on photoresistor encoding and decoding.
Disclosure of Invention
The invention aims to solve the problems that the unlocking mode in the prior art is easy to copy, has low safety and is not suitable for places with higher requirements on safety level; and the door lock system adopting the modes has the problems of high energy consumption, waste of electric power resources and inconvenience in use, and the low-power-consumption safety lock based on the photoresistor coding and decoding is provided.
In order to achieve the purpose, the invention adopts the following technical scheme: the low-power-consumption safety lock based on the photoresistance coding and decoding comprises a door body, wherein a door lock is installed inside the door body, a mounting groove, a first mounting cavity and a second mounting cavity are formed in the door lock, a rack is connected inside the mounting groove in a sliding mode, a spring bolt is welded at one end, close to a notch of the mounting groove, of the rack, the spring bolt is located outside the door lock, a servo motor is fixedly installed inside the mounting groove, an incomplete gear is fixedly sleeved on an output rod of the servo motor, the lower end of the incomplete gear is meshed with the upper end of the rack, a first sliding block and a second sliding block are connected between the first mounting cavity and the second mounting cavity in a penetrating and sliding mode, a limiting plate is further connected inside the first mounting cavity in a sliding mode, a first groove and a second groove are formed in the surface of the limiting plate, and limiting, the two limiting blocks are respectively connected with a first groove and a second groove of the limiting plate in a sliding mode, the bottoms of the first sliding block and the second sliding block are respectively and fixedly connected with a first fixing rod and a second fixing rod correspondingly, one end, far away from the first sliding block, of the first fixing rod penetrates through the mounting groove to extend into the mounting groove and is welded with a fixture block, and a clamping groove matched with the fixture block for use is formed in the upper end of the incomplete gear;
the inner wall of the first mounting cavity is also provided with a circular through hole matched with the second fixing rod for use, the bottoms of the first sliding block and the second sliding block and the bottom of the first mounting cavity are fixedly connected with a first spring, the first spring is sleeved outside the first fixed rod and the second fixed rod, the limiting plate is welded with a first fixed block, a second fixed block is welded on the inner wall of the first mounting cavity, a rectangular through hole is also formed on the limiting plate, the second fixing block is positioned in the rectangular through hole and is connected with the rectangular through hole in a sliding way, a second spring is fixedly connected between the first fixing block and the second fixing block, connecting blocks are welded at one ends of the first sliding block and the second sliding block which are positioned in the second mounting cavity, roof fixed mounting has first cylinder and second cylinder in the second installation cavity, the output of first cylinder and second cylinder all corresponds to be located the connecting block on first sliding block and second sliding block top directly over.
In foretell low-power consumption safety lock based on photoresistance coding is decoded, first recess comprises first dovetail groove and L shape groove intercommunication, and just first dovetail groove is located the limiting plate surface, the second recess adopts second dovetail groove and L shape groove intercommunication to constitute, and the second dovetail groove is located the limiting plate surface.
In the low-power-consumption safety lock based on the photoresistance coding and decoding, the limiting sliding block is welded at the bottom of the rack, the inner wall of the mounting groove is provided with a limiting sliding groove matched with the limiting sliding block for use, and the limiting sliding block is located in the limiting sliding groove and is in sliding connection with the limiting sliding groove.
Low-power consumption safety lock based on photosensitive resistance coding is decoded still includes mobile terminal and receiving terminal, mobile terminal includes password input module, data processing module one, image processing module, APP sequence conversion module, password input module's output is connected with data processing module one's input electricity, data processing module one's output is connected with image processing module's input electricity, APP sequence conversion module includes APP sequence display module and optical conversion module, image processing module's output is connected with APP sequence display module's input electricity, APP sequence display module's output is connected with optical conversion module's input electricity.
In the low-power-consumption safety lock based on the photoresistance coding and decoding, the receiving terminal comprises a photosensitive sensing module, a current forming module, a second data processing module and a password receiving module, the output end of the optical conversion module is electrically connected with the input end of the photosensitive sensing module, the output end of the photosensitive sensing module is electrically connected with the input end of the current forming module, the output end of the current forming module is electrically connected with the input end of the second data processing module, and the output end of the second data processing module is electrically connected with the input end of the password receiving module.
The invention also discloses an operation method of the low-power consumption safety lock based on the photoresistor coding and decoding, wherein the mobile terminal is installed on a mobile phone, the receiving terminal is installed on a door lock, and the method comprises the following steps:
a1, inputting the password into a password input module of the mobile terminal in the mobile phone, and compiling the password into a binary code through a first data processing module of the mobile terminal;
a2, the image processing module translates the binary code written by the data processing module I into an image sequence with equal intervals according to the rule that 1 corresponds to a white image and 0 corresponds to a black image;
a3, an APP sequence display module of the APP sequence conversion module converts the image sequence into a black, white, bright and dark image on the mobile phone screen through an optical conversion module;
a4, a photosensitive sensing module of a receiving terminal on the door lock forms a current input data processing module II carrying signals through a current forming module according to black, white, bright and dark images displayed by a mobile phone screen;
a5, data module analyzes and converts the signal current into corresponding binary code, and then converts it into cipher code to be input into cipher code receiving module;
a6, the password receiving module verifies the password and then opens the door lock.
In the operation method of the low-power-consumption safety lock based on photoresistance coding and decoding, the specific method for forming the current carrying the signal by the photoresistance sensing module through the current forming module according to the black and white bright and dark images displayed on the screen of the mobile phone is as follows:
step 1, a photosensitive resistor of a photosensitive sensing module senses and translates a black and white bright and dark image flashing signal displayed on a screen of the mobile phone;
step 2, a singlechip of the photosensitive induction module inputs signals induced by the photosensitive resistor into a current forming module;
and 3, quickly forming a signal current carrying the input signal of the singlechip by the current forming module.
Compared with the prior art, the low-power consumption safety lock based on the photoresistor coding and decoding has the advantages that:
1. and coding the password and processing the image by the mobile terminal arranged on the mobile phone. Then, a white light and dim light image sequence is generated through the APP, so that the safety of the password is improved, the password is not easy to copy, and the safety level is higher;
2. the receiving terminal arranged on the door lock senses the white light and dim light image sequence, and translates the white light and dim light image sequence into the password to be received by the password receiving module for verification, so that the reaction speed of the photoresistor and the single chip microcomputer is high, the power consumption is low, and the power resource is saved;
3. the incomplete gear is limited through the clamping block, so that the rack and the lock tongue are limited and locked, the structure is sealed and compact, the transmission is simple and efficient, the abrasion is small, and the service life is longer.
Drawings
FIG. 1 is a schematic structural diagram of a low-power-consumption safety lock based on photoresistance coding and decoding, which is provided by the invention;
FIG. 2 is an enlarged schematic view of the structure of a part A of the low-power-consumption safety lock based on photoresistance coding and decoding, which is provided by the invention;
FIG. 3 is a schematic structural diagram of a low-power consumption safety lock limiting plate part based on photoresistance coding and decoding, which is provided by the invention;
FIG. 4 is a block diagram of the low power consumption security lock based on photoresistor encoding and decoding proposed by the present invention;
FIG. 5 is an operation flow chart of an operation method of a low-power consumption safety lock based on photoresistor encoding and decoding provided by the invention;
FIG. 6 is a circuit diagram of the photoresistor part of the low-power safety lock based on photoresistor coding and decoding.
In the figure: the door body, the door lock, 3 mounting grooves, 4 first mounting cavities, 5 second mounting cavities, 6 racks, 7 bolts, 8 incomplete gears, 9 first sliding blocks, 10 second sliding blocks, 11 limiting plates, 12 first grooves, 13 second grooves, 14 limiting blocks, 15 first fixing rods, 16 second fixing rods, 17 clamping blocks, 18 circular through holes, 19 first springs, 20 second fixing blocks, 21 second fixing blocks, 22 rectangular through holes, 23 second springs, 24 connecting blocks, 25 first cylinders, 26 second cylinders, 27 limiting sliding blocks and 28 limiting sliding grooves.
Detailed Description
The following examples are for illustrative purposes only and are not intended to limit the scope of the present invention.
Examples
Referring to fig. 1-6, low-power consumption safety lock based on photosensitive resistance coding decodes, including the door body 1, door body 1 internally mounted has lock 2, 2 internally seted up mounting groove 3 of lock, first installation cavity 4 and second installation cavity 5, 3 internally sliding connection in mounting groove has rack 6, 6 welding in the bottom of rack has spacing slider 27, 3 inner walls in mounting groove have seted up the spacing spout 28 that cooperation spacing slider 27 used, spacing slider 27 is located spacing spout 28 and with spacing spout 28 sliding connection, rack 6 is close to 3 slotted one end welding of mounting groove has spring bolt 7, and spring bolt 7 is located 2 outsides of lock, 3 internally fixed mounting in mounting groove has servo motor, fixed cover is equipped with incomplete gear 8 on servo motor's the output pole, incomplete gear 8 lower extreme and 6 upper end meshes of rack.
Run through sliding connection between first installation cavity 4 and second installation cavity 5 and have first sliding block 9 and second sliding block 10, the inside sliding connection that still has limiting plate 11 of first installation cavity 4, first recess 12 and second recess 13 have been seted up on limiting plate 11 surface, first recess 12 comprises first dovetail groove and L shape groove intercommunication, and first dovetail groove is located limiting plate 11 surface, second recess 13 adopts second dovetail groove and L shape groove intercommunication to constitute, and second dovetail groove is located limiting plate 11 surface, all weld stopper 14 on being located first installation cavity 4 inside first sliding block 9 and second sliding block 10 lateral wall, two stopper 14 respectively with limiting plate 11's first recess 12 and second recess 13 sliding connection.
The bottoms of the first sliding block 9 and the second sliding block 10 are respectively and fixedly connected with a first fixed rod 15 and a second fixed rod 16 correspondingly, one end of the first fixed rod 15, which is far away from the first sliding block 9, penetrates and extends into the mounting groove 3 and is welded with a fixture block 17, the upper end of the incomplete gear 8 is provided with a clamping groove matched with the fixture block 17, the inner wall of the first mounting cavity 4 is also provided with a circular through hole 18 matched with the second fixed rod 16, the bottoms of the first sliding block 9 and the second sliding block 10 are both fixedly connected with a first spring 19 with the bottom of the first mounting cavity 4, the first spring 19 is sleeved outside the first fixed rod 15 and the second fixed rod 16, the limiting plate 11 is welded with a first fixed block 20, the inner wall of the first mounting cavity 4 is welded with a second fixed block 21, the limiting plate 11 is also provided with a rectangular through hole 22, and the second, a second spring 23 is fixedly connected between the first fixing block 20 and the second fixing block 21.
Connecting blocks 24 are welded at one ends of the first sliding block 9 and the second sliding block 10, which are located inside the second mounting cavity 5, a first cylinder 25 and a second cylinder 26 are fixedly mounted on the inner top wall of the second mounting cavity 5, and the output ends of the first cylinder 25 and the second cylinder 26 are correspondingly located right above the connecting blocks 24 at the top ends of the first sliding block 9 and the second sliding block 10.
Low-power consumption safety lock based on photosensitive resistance coding is decoded, still include mobile terminal and receiving terminal, mobile terminal installs on the cell-phone, receiving terminal installs on the lock, mobile terminal includes password input module, data processing module one, the image processing module, APP sequence conversion module, password input module's output is connected with data processing module one's input electricity, data processing module one's output is connected with image processing module's input electricity, APP sequence conversion module includes APP sequence display module and optical conversion module, image processing module's output is connected with APP sequence display module's input electricity, APP sequence display module's output is connected with optical conversion module's input electricity.
The receiving terminal comprises a photosensitive sensing module, a current forming module, a second data processing module and a password receiving module, wherein the photosensitive sensing module comprises a photosensitive resistor and a single chip microcomputer.
The photoresistor is a special resistor made of semiconductor materials such as sulfide insulator or selenide insulator, the working principle of the photoresistor is based on the internal photoelectric effect, the photoresistor can be used for photoelectric conversion, namely, the photoresistor can convert light change into electric change, and the photoresistor is high in sensitivity to light and low in energy consumption.
The single chip microcomputer is an integrated circuit chip, is a small and perfect microcomputer system formed by integrating the functions of a central processing unit CPU with data processing capacity, a random access memory RAM, a read-only memory ROM, various I/O ports, an interrupt system, a timer/counter and the like on a silicon chip by adopting a super-large scale integrated circuit technology, is widely applied in the field of industrial control, and has the advantages of simple system structure, convenient use and realization of modularization; the reliability is high, and the working time is long; the processing function is strong, and the speed is high; low voltage, low power consumption; strong control function.
The output end of the optical conversion module is electrically connected with the input end of the photosensitive induction module, the output end of the photosensitive induction module is electrically connected with the input end of the current forming module, the output end of the current forming module is electrically connected with the input end of the data processing module II, and the output end of the data processing module II is electrically connected with the input end of the password receiving module.
The invention discloses an operation method of a low-power consumption safety lock based on photoresistance coding and decoding, which comprises the following steps of:
a1, inputting the password into a password input module of the mobile terminal in the mobile phone, and compiling the password into a binary code through a first data processing module of the mobile terminal;
a2, the image processing module translates the binary code written by the data processing module I into an image sequence with equal intervals according to the rule that 1 corresponds to a white image and 0 corresponds to a black image;
a3, an APP sequence display module of the APP sequence conversion module converts the image sequence into a black, white, bright and dark image on the mobile phone screen through an optical conversion module;
a4, a photosensitive sensing module of a receiving terminal on the door lock forms a current input data processing module II carrying signals through a current forming module according to black, white, bright and dark images displayed by a mobile phone screen;
a5, data module analyzes and converts the signal current into corresponding binary code, and then converts it into cipher code to be input into cipher code receiving module;
a6, the password receiving module verifies the password and then opens the door lock.
The specific method for forming the current carrying the signal by the photosensitive induction module through the current forming module according to the black and white bright and dark images displayed on the screen of the mobile phone comprises the following steps:
step 1, a photosensitive resistor of a photosensitive sensing module senses and translates a black and white bright and dark image flashing signal displayed on a screen of the mobile phone;
step 2, a singlechip of the photosensitive induction module inputs signals induced by the photosensitive resistor into a current forming module;
and 3, quickly forming a signal current carrying the input signal of the singlechip by the current forming module.
When the door lock 2 is locked, the limit block 14 on the first sliding block 9 is abutted by the L-shaped groove of the first groove 12, the block 17 at the rod end of the first fixing rod 15 is clamped in the clamping groove at the upper end of the incomplete gear 8, when the photosensitive resistor senses a flashing signal of a black and white bright and dark image displayed on a mobile phone screen, an electric signal is sent to the second cylinder 26 and the servo motor, the output end of the second cylinder 26 extends to press the second sliding block 10, the limit block 14 on the second sliding block 10 slides along the wall of the second trapezoidal groove of the second groove 13 to push the limit plate 11 leftwards, so that the limit block 14 on the first sliding block 9 is disengaged from the abutment of the L-shaped groove of the first groove 12, the first sliding block 9 is jacked under the restoring acting force of the first spring 19, the block 17 is disengaged from the clamping groove at the upper end of the incomplete gear 8, the servo motor can drive the incomplete gear 8 to rotate, the, the bolt 7 is retracted into the mounting groove 3 of the door lock 2, and the door body 1 can be opened; on the contrary, the driving servo motor drives the rack 6 to drive the bolt 7 to extend out of the door lock 2, and then the output end of the first cylinder 25 is driven to extend and press the first sliding block 9, so that the limiting block 14 on the first sliding block 9 is supported by the L-shaped groove of the first groove 12 again, and the clamping block 17 at the rod end of the first fixing rod 15 can be clamped into the clamping groove at the upper end of the incomplete gear 8 again to lock the door body 1.
Although terms such as the door body 1, the door lock 2, the mounting groove 3, the first mounting cavity 4, the second mounting cavity 5, the rack 6, the latch 7, the incomplete gear 8, the first sliding block 9, the second sliding block 10, the stopper plate 11, the first groove 12, the second groove 13, the stopper 14, the first fixing rod 15, the second fixing rod 16, the stopper 17, the circular through hole 18, the first spring 19, the first fixing block 20, the second fixing block 21, the rectangular through hole 22, the second spring 23, the connecting block 24, the first cylinder 25, the second cylinder 26, the stopper slider 27, and the stopper chute 28 are used more often herein, the possibility of using other terms is not excluded. These terms are used merely to more conveniently describe and explain the nature of the present invention; they are to be construed as being without limitation to any additional limitations that may be imposed by the spirit of the present invention.