Code lock (electronic). Schematic diagrams of simple combination locks (10 diagrams)
The circuit of a simple electronic combination lock. The circuit is not complicated, you only need to flash the PIC microcontroller. For this circuit you need PIC 12F675 (629) - it won’t work.
The diagram itself is very simple and contains a minimum of details.
Lock diagram:
advertise for free
Keyboard layout:
The principle of operation is very simple: all buttons are connected through a chain of series-connected resistors. And each button has its own resistance (if button No. 1-1k, then button No. 2-2k, and so on). All these values are written into the microcontroller when programmed, after which it responds only to them.
Programming the code is very simple: press the CODE button and hold it until the LED lights up, then enter the code on the keyboard. All the new code is programmed (for those who don’t understand, watch the video of the operation at the bottom of the article)
The actuator (M) can be anything, in my case it is a low-power electric motor that will rotate the gearbox: so I connected it to the same power source as the circuit itself. If you have a powerful actuator: then it should connect from an additional power source.
I found only a matrix keyboard, here it is in the photo
The problem was that. its connection looks like this:
I had to redo it, cut the tracks and soldered in the resistors as in the diagram, this is what happened:
I did not connect one row of buttons (these are the letters A, B, C, D)
Only the letter (D) is connected as a power button (that is, the circuit only works if you hold down the button (D)) This reduces the probability of selecting the code to zero.
And the combination lock itself does not consume any current in standby mode.
I want to put this lock in the locker at work, which I often break into, and I don’t want to take out a bunch of keys every time. Since the standard lock will remain in place, I made a power supply from batteries (so that there would be no wires to the box), well, once every few months you can open the door with the keys and change the batteries.
First assembly of the circuit on the circuit board (to check its functionality)
Everything worked great. Next, I selected a suitable case, etched the board and connected everything. Due to the small number of parts, the board turned out to be quite compact and fit into a small case.
Practical combination locks are in greatest demand today. After the first steel door was invented, installed at the entrance of the house, many began to think about how to protect their home from uninvited guests. Locks are structures for protecting premises that have been manufactured for a very long time. There are various types, configurations, operating features and similar differences, however, the essence of the mechanism remains completely unchanged, since the design is designed to block access to the room. Despite the fact that there are many modern technologies, installations such as coded mechanical lock, the production of which began in the last century. Initially they were installed on safes, and over time they were also used in installing doors in ordinary apartments, garages, entrances and private houses.
Combination lock device and DIY installation
Device combination locks is that they do not have a keyhole, due to which they become more reliable, wear-resistant and durable. The likelihood of hacking is significantly reduced. By installing a specific coding of the cylinders and rollers that make up the lock, you can customize the lock yourself, and installation can be carried out on doors made of various materials, for example: metal, plastic and wood. It is advisable that the door thickness be at least 3 cm, which will also complicate the burglary process for intruders.
You can select and install a combination lock yourself if you carefully read the instructions
Lock installation diagram front door do it yourself is very simple, because for this you need:
- Select a door locking mechanism relative to the width and thickness of the structure;
- Make a marking of the future location of the product;
- Using a drill, drill holes in the door to install the lock body;
- Install the code panel;
- Assemble the locking mechanism;
- Carry out installation and fixation of prefabricated parts of the mechanism;
Finally, you need to set up the code combination and check the functionality of the product.
How to make a combination lock: choosing a variety
To install a push-button door lock, you will first need to select its type. They are: overhead and mortise. To install a surface-type lock, simply install it on the surface of the door, and the bar with the bolt located in it on the jamb of the door frame. Installation will not require more than 15 minutes. Installing a mortise combination lock can cause a lot of trouble and this is where special attention and a competent approach are required.
Making a combination lock is not difficult, the main thing is to approach this process competently
As a rule, each magnetic door lock has instructions from the manufacturer, which must be followed as clearly as possible:
- A lock template is created, which is done by hand. Some manufacturers include it in the kit, and this greatly simplifies the installation process. Using chalk or a pencil, you need to apply markings to the door leaf. Thus, the location of the structure will be marked on the door on both sides.
- To make a niche on the door leaf for installing a lock, you can use a chisel or a special drill attachment.
- Next, holes are drilled to install the bolts.
- Where the crossbar of the lock structure is located, you need to make a recess, and the dimensions must completely correspond to the front plate.
- After completing such work, the combination lock is placed in its rightful place and securely bolted.
- The face plate is being installed.
- It is necessary to make markings on the door jamb for mounting the locking strip, into which the bolt will be placed. To implement this process It is enough to lubricate one of the crossbars with chalk, due to which a mark will be made on the jamb.
- A recess is made in the jamb for the plank, and you also need to make markings for the holes in order to install it. The installation process fully corresponds to the installation of the front strip.
- Finally, you need to secure the counter or locking part of the lock.
Judging by the steps described above, we can conclude that installing a mortise combination lock is similar to installing other types of locks in the same way.
Combination lock repair
To make repairs on a structure such as a digital combination lock, it will not require too much effort, since the main repair work consists of recoding the structure. In addition, preventive recoding is periodically required to increase the safety of the product.
In order to repair the combination lock, it will need to be properly disassembled.
To change the code on the lock, partial disassembly of the structure is required to gain access to the buttons from the inside, for which you need to unscrew the cover with the buttons.
Next, you need to pay attention to the plates located inside, when pressed, the locking mechanism is activated, and each of them has a specially made cut. Visually separate the working and unused plates. To replace the code, turn the required plates in the opposite direction or, in other words, make other buttons active.
DIY invisibility lock
An electronic invisible lock is an additional device that can be used to increase the security of an apartment, house or any other premises. From the outside, the electric lock is completely invisible, but inside it is a reliable installation that can prevent intruders from entering. To make such an electromagnetic lock with your own hands, you can use the most ordinary car door actuator from the central locking, and it is controlled or, in other words, blocked by the most ordinary alarm system.
An invisible combination lock is practical and convenient.
The essence of such an invisible thing is to block one keyhole bolt in the position when it is pushed forward:
- Due to the fact that the car anti-theft alarm device has enough wires, and a long type, it is possible to carry out competent and easy installation.
- It is necessary to select a place for subsequent installation of the actuator, since the pin that will be extended must fit exactly into the bolt when it is extended.
- Next, you need to make precise markings on the top strip of the door frame, and it is drilled. Then a mark will be made on the crossbar, along which an additional through hole will be drilled.
- When the bolt is drilled into the hole, a countersink is made so that the actuator pin fits there as accurately as possible.
- Using the strip that comes with the kit, you need to secure the actuator to the door frame.
- Next, a guide from 1 pin and a limit switch are installed on the door frame so that it is triggered to open the door.
- Installation of the alarm unit, as well as all related elements located in a decorative metal box, is required. The box is installed on the wall surface next to the door with inside premises.
- The box closes tightly.
- Connects to the doorbell button LED indicator or in other words an alarm.
- The structure is ready for use.
If a power connection is required, this can be done using a stabilized unit, which has an output voltage of 12 V and a current of at least 1 A. To increase the autonomy of the device relative to the network voltage, you can use a battery from a car to power such a lock, which will be located in pantry or on the balcony.
Types of combination mechanical locks (video)
It is not difficult to make such a structure, but you need to follow the recommendations and sequence of actions. It is very important that all wires connected to the battery and the alarm itself are in good working order and carefully insulated, which will prevent the formation of sparks and interruptions in the operation of the system.
Similar materials
From this article you can learn how to make a simple combination lock with little financial investment. If we are not talking about daring hacking using brute physical force, then finding a combination for this combination lock can take years.
The circuit for this combination lock was found on the Internet, but after assembly the device did not function due to two basic resistors. Their resistance had to be reduced in order for everything to work as it should.
When the first pulse is applied to the input, the counter starts working - reading pulses, and a logical unit appears at pin 2.
When you press the S2 button, the unit again enters input 14, and the 4th output opens, then the 7th and the last 10th. The signal from the latter goes to the base of the transistor, and it fires, and you can already control any load, for example, the winding of an electromagnetic relay for switching network loads.
It should be noted that the microcircuit has 10 working pins, and if desired, you can set a nine-digit code.
In standby mode, the board consumes only a few mA, and the power supply ammeter did not even react to them during measurements.
Attached files:
Connection diagram analog camera video surveillance for TV, computer Connection digital camera CCTV How to charge a phone from another Homing solar panels with mobile phone control – Stage 3: making gears
The circuit of a simple electronic combination lock. The circuit is not complicated, you only need to flash the PIC microcontroller. For this circuit you need PIC 12F675 (629) - it won’t work.
The diagram itself is very simple and contains a minimum of details.
Lock diagram:
advertise for free
Keyboard layout:
The principle of operation is very simple: all buttons are connected through a chain of series-connected resistors. And each button has its own resistance (if button No. 1-1k, then button No. 2-2k, and so on). All these values are written into the microcontroller when programmed, after which it responds only to them.
Programming the code is very simple: press the CODE button and hold it until the LED lights up, then enter the code on the keyboard. All the new code is programmed (for those who don’t understand, watch the video of the operation at the bottom of the article)
The actuator (M) can be anything, in my case it is a low-power electric motor that will rotate the gearbox: so I connected it to the same power source as the circuit itself. If you have a powerful actuator: then it should connect from an additional power source.
I found only a matrix keyboard, here it is in the photo
The problem was that. its connection looks like this:
I had to redo it, cut the tracks and soldered in the resistors as in the diagram, this is what happened:
I did not connect one row of buttons (these are the letters A, B, C, D)
Only the letter (D) is connected as a power button (that is, the circuit only works if you hold down the button (D)) This reduces the probability of selecting the code to zero.
And the combination lock itself does not consume any current in standby mode.
I want to put this lock in the locker at work, which I often break into, and I don’t want to take out a bunch of keys every time. Since the standard lock will remain in place, I made a power supply from batteries (so that there would be no wires to the box), well, once every few months you can open the door with the keys and change the batteries.
First assembly of the circuit on the circuit board (to check its functionality)
Everything worked great. Next, I selected a suitable case, etched the board and connected everything. Due to the small number of parts, the board turned out to be quite compact and fit into a small case.
In this article we will talk about the circuit and installation of an electronic combination lock.
“If you have one key in your pocket, that means your key to the apartment, and you are the big boss! If you have two keys on a ring, then you have an office, and you are an office worker! If you have three or more keys, then you are the warehouse manager!” Folk wisdom.
Carrying a large bunch of lock keys in your pocket is a big inconvenience. This is especially evident not in winter, but in summer. In that season when a person has less clothes, which means fewer pockets. And if the bunch of keys is large, then its weight can rub holes in your pockets. To prevent pockets from rubbing, various key holders are used, but key holders increase the size of the key ring, which not only causes inconvenience. Protruding pockets look unsightly. Women are luckier in this regard than men, because they have “oversized” handbags. What can't you find there? To unload their pockets, men use purses. But the purse also presents some inconvenience - one hand is constantly occupied with carrying it.
What to do if there are a lot of people working in the office space? Go to the key keeper and do large number duplicates! There is another way: Install a combination lock on the front door.
There are a large number of mechanical combination locks sold in stores, but they have disadvantages. Push-button locks have a weak degree of security - the code is easy to select.
Locks with wheels are inconvenient to use - first you need to set all the wheels to the required numbers, open the lock, and then turn the wheels again to “break” the code combination. The most convenient to use is an electronic combination lock.
There are many on the Internet different schemes combination locks, but after delving into global network, I discovered that all combination lock circuits made on one or two microcircuits have poor security against hacking, which, provided the keypad is easily opened, can be opened using an ordinary machine, multimeter, or logic probe. Of course you can collect the simplest scheme, but it must come with a “cast iron” keypad so that the wires cannot be reached. I offer you a diagram of an electronic combination lock that does not need a “crackable only with an angle grinder” button panel. If they break anything, it's just the panel. But a cast iron panel can also be hit once with a heavy object, rendering it inoperable. During five years of operation, the proposed combination lock showed high reliability - it never broke and was highly burglar-resistant.
You can see the combination lock from the outside of the door in the photo – it’s just a light button panel. A view of the combination lock from the inside of the door is shown below.
The proposed electronic combination lock is made on two CMOS chips 561LA7 and one 561LE5, has low power consumption from the network - about 2 milliamps on the secondary winding of the transformer in standby mode. When powered by battery, current consumption is measured in units of microamps. Thus, the combination lock is powered by industrial network, and if it disappears, from a 12-volt battery. If there is an industrial network of 220 volts, the battery is recharged, and in the absence of an industrial network, it serves as the power source for the lock.
The schematic diagram of an electronic combination lock is shown in the figure.
IN original condition the entire circuit, except for the power supplies, is de-energized. The unit, assembled on transistors VT1-VT3, is designed to supply power to the electronic code dialing unit for the limited time required to dial the code (about 10...15 seconds). Power is supplied by pressing the “,” button. This button is not a code button. The purpose of limiting the power supply time is to ensure that the lock's electronic circuitry does not consume power during standby mode. Therefore, if you keep this button pressed, then the power on the circuit will be constantly present, and will disappear 15 seconds after releasing the “,” button.
The SA1 code dial is a button panel, located outside the lock and connected to the lock circuit using twelve thin stranded conductors.
The SR1 code setting panel is designed to set the lock code. The panel used is the panel for setting the fixed frequencies of the R-140 radio station, or the R-155 radio receiver, where special plugs are used. Perhaps, instead of the dial pad, use other switching methods.
After setting a certain code, the SR1 code installation panel is closed with a special lid and sealed with a mastic seal. This way, when leaving the premises, you can check that no one snooped on your code. Otherwise, once you open the lid, you can quickly change it and reseal the lid. The circuit diagram shows the setting of the lock code “3052”. In the photo of the panel it is “5491”.
As you understand, the dialing code is four-digit (not counting the power button “,”). The code is dialed by sequentially pressing the buttons. If the buttons are not pressed in the prescribed sequence, the lock will not open. It is possible to press all simultaneously four buttons code, but in any case, the actuator will operate for a time limited by the charging time of capacitor C7, equal to 1 second. Capacitors C5-C6 limit the time required to dial the code. If the code is not entered within 10 seconds, then the actuator will not work and the code must be entered again.
The circuit assembled on the elements of the D3 microcircuit is designed to prevent unauthorized selection of the lock code. When you press any of the six “wrong” buttons, the one-shot device D3.2-D3.3 blocks the code set and the actuator for 15 seconds. This time is determined by the ratings of elements C9 and R17 and the time of power supply from the power supply. After this, to open the lock you must wait at least 15 seconds and enter the code correctly. If the “wrong” button is pressed again, the lock will be locked again for 15 seconds. If, during blocking, without waiting 15 seconds, the attacker supplies power to the lock with the “,” button, then the blocking will last for another 15 seconds. The self-locking unit greatly complicates attempts to guess the code.
In our case, the “wrong” buttons are installed on the SR1 dial pad of the circuit diagram - 1, 4, 6, 7, 8 and 9. In the case of self-locking of the lock, there are no audible or visible signs, so the attacker does not know about it, which is not allows it to identify "wrong" buttons. It is also impossible to determine that the combination lock has become self-locking by the presence or absence of voltage on the contacts of the opened dial pad using any electronic devices.
When the correct code is dialed, the executive contact group of relay P1 supplies power to the lock actuator (electromagnet or motor). The power supply time is determined by capacitance C7 and is approximately 1 second. To adjust the power supply time to the executive relay manually (by the duration of pressing the last button established code), but no more than 2 seconds, you need to disconnect resistor R12 from pin 4 of element D2.4 and connect it to the common wire of the circuit.
About the elements of an electronic lock circuit
561LA7 microcircuits are interchangeable with 176LA7, or an imported analog CD4011. The 561LE5 microcircuit is replaceable with 176LE5, or an imported analog CD4001. Transistors VT1-VT3 - type KT361, or KT3107 with any letter. Transistor VT4 - type KT315, or KT3105 with any letter. Transistor VT5 - type KT815 with any letter.
The secondary winding of transformer T1 is designed for 12 volts. Transformer T1 is selected with sufficient power to ensure operation of the actuator; any rectifier diodes VD3-VD7 must also provide sufficient load current for the actuator. Diodes VD8-VD20 – any low-power pulsed ones. As a rechargeable battery, it is optimal to use a small-sized alkaline battery used in power sources uninterruptible power supply. The entire circuit, except for the digital keypad, the actuator, the battery and the power transformer, is housed in a plastic case measuring 10x14 cm.
Code lock can be used without a battery if used as part of a lock that can also be opened with a key. That's exactly what I did. The key to one of our working premises is in the janitor's tube. I and my colleagues don’t have a key on their keychain. We open this room with a code, but if the light goes out, we take the key from the tube. To avoid running to the watchman in the absence of light after opening the room, the safe also contains a backup key.
As an actuator, I used a drive for unlocking and locking car door locks, hooking it on a chain to the flag of an ordinary rim lock, which “can” slam. This lock, or a similar one, is sold at any hardware store, and the drive can be purchased at any automobile store. The housing of the electronic circuit of the lock is located on the inside of the door, directly next to the actuator.
The SA1 code dialer is made from the keys of an old domestic calculator, is decoratively placed in a case made from a soap dish. It is brought outside the lock from the outside of the door and connected to electronic circuit in such a way that eliminates the possibility of selecting the code by “electronic scanning”, or hacking using measuring equipment. This is explained by the fact that no matter what state the lock is in, all its contacts have the same potential. No attempts to dial or close contacts in search of a code lead to anything. The circuit of the presented combination lock, like any other electronic locks, can be damaged by high voltage to the contacts of the opened keypad, but the lock still will not open.
Unfortunately, I cannot offer you a printed circuit board, because I made the castle ten years ago.
A rim lock used in conjunction with an electronic combination lock, can be easily opened using a flat object inserted into the gap between the door and the jamb - a knife, or a metal ruler. Therefore, when installing such a lock, ensure conditions under which this will be impossible - the door frame and the door itself must be strong, and the gap must be closed with a recess that prevents access to the lock tongue.