"Electronic code lock or a chip controlling circuit operated by password input, thereby controlling the mechanical switch is closed, the unlocking is completed, electronic locking task. Many of its kind, have a simple circuit products, but also based on the chip cost higher product. wider application of electronic locks is based on chip as the core, through programming to achieve.
1, based on the electronic locks STM32F407
Functional Overview
This design is mainly based STM32F407 as the master chip, by mounting a 3.2-inch LCD panel, and a solenoid relay constitute a lock on the STM32 electronic locks. This design can be used on power, after power need to click on the screen is calibrated at 4 screen coordinates. Screen calibration is successful the screen will display a blue Adjust Success of English words. Then the screen will appear similar to the phone dial pad, this design supports password and change the password function, the default unlock password is "123456" using the Change Password function will need to enter an administrator password "0000." Administrator password can not be modified in the electronic lock, you will need to re-program the need to modify the program.
Program link: https: //www.cirmall.com/circuit/16338
2, based on single-chip fingerprint password lock design
The design is a design of the microcontroller 51 based on fingerprint lock system, it can achieve a successful lock function fingerprint identification, the fingerprint identification is successful, the indicator lights, lock relay, can enter; fingerprint identification is unsuccessful, the indicator does not light, relay does not act, people can not enter in administrator mode fingerprint input can also be achieved, to remove fingerprints, emergency unlock and password change function, which deletes the fingerprint can be achieved delete the specified number of fingerprint fingerprints, and liquid crystal display display LCD12864 related steps. When the input and fingerprint identification, the fingerprint will display the corresponding prompt information on the number and related LCD12864 liquid crystal display.
1. The basic functions of the system, requires the ability to fingerprint input, identify and remove, enable fingerprint recognition entry up to 1000, to achieve a successful fingerprint lock function. And a 4 * 4 keypad, to achieve password entry, modification and special features.
The functional requirements and cost, choice STC89C52 microcontroller.
3. A reasonable choice of components, to complete the function keypad module, a clock module, a fingerprint recognition module, a display circuit design LCD12864.
4. Design of a hardware circuit Fig. Building hardware, programming, system debugging.
Program link: https: //www.cirmall.com/circuit/15839
3, the microcontroller 51 controls the digital-based lock design
Digital lock is a revolution in the twenty-first century lock industry. Characterized by a lock without a key, no keyhole, mechanical drive, not damaged, do not wear, easy to decipher, can be replaced several times a password number does not change for the lock, a plurality of lock password, dial with anti, anti-smashing, tamper, blockades and other functions. Does not destroy the structure of the original installation of the door lock to prevent the opening all the troubles rotating core type lock with a key (e.g., throw, off, removed, blocked the door is locked and the like). "Digital lock" is the use of numeric code to open the lock, repeat the probability that only one hundred thousandth, has a high level of security; and spin-core type locks use less secure. Through the investigation of more than a thousand people of all walks of life, one hundred percent of the people who currently hanging strings of key helpless. But now none can shake off the shackles lock key. We are willing to an easy access to the house without any concerns, are willing to spend both a convenient and safe locks without a key. Therefore, the market prospects for the development of the "digital locks" products is extremely broad. In more than a thousand people surveyed, 60% of people have lost keys of experience, 25% of people have locked the keys in the room, 75% of people in the room three or more, 36 percent of people left my keys in the factory and 8% of people using the neighbor's balcony, jumping into the windows of his home to open the door was locked, or 90% of people listen to or watch the news because there are not that open the door, window and risky jump accident both injured or dead, causing trouble to the family. Mental and physical damage is irreparable, in order to solve all kinds of trouble to bring these various data, so the "digital locks", so that people living in a carefree environment.
Program link: https: //www.cirmall.com/circuit/14086
4, based on single-chip fingerprint password lock design
51 SCM lock, fingerprint identification access control system, fingerprint lock systems based on lock 51 microcontroller 51 single fingerprint identification access control system fingerprint lock system function: to display the time, can check out the recording, can be realized fingerprint lock emergency unlocking (in the case of fingerprint unlocking does not work well or emergency access to the administrator mode emergency release), in the administrator mode can be entered fingerprint, delete the specified fingerprint, change passwords and other functions. If the fingerprint into the fingerprint recognition is not successful screen message no action relay, LED does not light, can not be unlocked, and the alarm buzzer, personnel can not enter, press any key to return to the initial screen continues to scan the fingerprint. If the fingerprint into the fingerprint recognition success message screen as shown in FIG, relay, LED lights and unlock the door, can enter, press any key to return to the initial screen, waits for the next individual scan fingerprints.
Program link: https: //www.cirmall.com/circuit/16360
5, based on 51 microcontroller electronic locks (graduation)
Electronic locks Function Description:
For graduation, based on 51 core development version of the electronic lock control board can be powered down to store, modify password, the password wrong three times the alarm and lock the keypad, doorbell function, etc.
P2 ^ 0 port access in a low drive relay (5 yuan Taobao price), then a relay is electrically controlled lock (18 yuan Taobao price)
The final connection is not clear or do not understand the process we will help the whole
***************
Some source code
/ * Module Name: main function * /
/ * Function Module: program entry * /
// **************************** ************************************************** **********************************
void main (void) // main function
{
// AT24C04_WritePage (); // initialize the password (just use the write-once initial password)
System_init (); // initialize the system
while (1)
{
if (keyboard == 0) // If the wrong password three times then lock the keypad
{
KeyDown (); // key detection
}
keysend (); // data transfer
lcdxianshi (); // Input Display
sure (); // password authentication
condition_delete (); // Clear key
new_password (); // password change
Add_Function (); // attach performance function
}
}
Accessories include:
The entire circuit schematic and PCB design source files, software opened with AD;
C language source code (with detailed notes in Chinese);
proteus circuit simulation;
Program link: https: //www.cirmall.com/circuit/1611
6, 51 microcontroller simple locks (160.2 to display Chinese characters)
Is used STC89C51 uses a microcontroller as the core control scheme.
STC89C51 chosen microcontroller as a core element of this design, with flexible Program Design and rich IO ports, and the accuracy of control, to achieve the basic lock function. In the external peripheral circuits for controlling the microcontroller to enter a password entry keyboard and some functions, an external display for displaying LCD1602 effect.
Third, the key circuits, algorithms and programming space page 2-3
Key elements include full ad model, the key circuit design, the program flow charts.
Components: 1) CCL plate (J2601A)
2) small button 17 (H0203G)
3) 1602 liquid crystal (J0802A)
4) 16p pin (H0204E)
5) 16p single row of female (H0204E)
6) photoresistor (H0203K)
7) adjustable resistor 104 (H0205H)
8) 2.2k resistance * 2 (H0201D)
9) 1k resistor (H0201E)
10) 10k resistor * 4 (H0201C)
11) 1.5k resistor (H0201E)
12) 103 exclusion (H0202I)
13) 2 9012 * triode (H0203B)
14) 9013 triode (H0202J)
15) 3p terminals (H0205M)
16) 5v active buzzer (H0203I)
17) 40-pin IC holder (H0202A)
18) stc89c51 SCM
19) 10uf capacitor (H0203H)
20) 30pf capacitor * 2 (H0203C)
21) self-locking switch (H0203F)
22) 8-pin IC holder (H0202H)
23) 24c02 chip (H0113D)
24) 12m crystal (H0203D)
25) Led (5MM red) (H0202N)
26) 5V loose music relay (H0205K)
27) DC power jack (H0211D)
28) Wire number (under the table)
29) Solder number (under the table)
30) usb power line
Test Results:
1. Key Set 6 password, the password if the password is correct, the lock is opened. Show open!
2. You can change your password (6 password) must be changed in order to close the lock open. To prevent misuse, change the password was entered twice.
3. If the number of incorrect password more than three times, the buzzer alarm and lock the keypad.
4.24C02 have reset, power-down save password feature.
The liquid crystal screen brightness is automatically adjusted with the light.
6 LCD screen displays "electric blue brigade" words
Enter 7 for the first time: 201901, password is initialized, when the display: initpassword, proof password initialization is complete, then the password is: 000000. Then the secret can be changed.
Pressing the * key or a reset key, the lock can be turned and exit. When you enter the wrong password, the alarm and lock the keypad for 3 seconds. Change Password: In the unlocked state, re-enter the correct password and press the # key, then hear a double beep, enter the new six-digit password and press the D key, and then re-enter a new password and press D, will listen Two beeps to indicate successful reset your password to save the new password and internal storage. If the new passwords do not like the heavy defeat password.
Program link: https: //www.cirmall.com/circuit/11350
7, based on electronic locks SCM
Double-click to open the Protues software, then double-click on AT89C52, we choose the option in the Program File compiled suffix .hex file, click on the OK button (I've linked well, so this step can not do, if the program recompiled then do this step).
Click the Start button in the lower left corner, enter the wrong password three times, incorrect number of digits are also considered an incorrect password, then the system will be locked, then press the reset button, re-enter the correct password, the relay will be closed off after 3 seconds, when, then enter the new password, enter six new password, the new password and press the enter key, the screen displays the new password is saved, then enter the new password again and press the enter key, the screen displays the correct password.
These are recommended procedure, when the error can try out a password, the system is locked, press reset, when the password is correct, when changing the password, the password can be powered down to save various circumstances, also be necessary to arrange the order of their own.
Note: 1, change your password, make sure that the password is 6
2, the password is correct, wait 3 seconds then other operations (e.g., change the password)
3, save the new password, press the reset or turn off the software and then open the software, the new password is still valid
Program link: https: //www.cirmall.com/circuit/7932
8, the microcontroller 51 based on the lock design
Instructions for use:
1. Press the "Reset Password" button, can be re-set password, six digits.
2. Press the "Clear" button, digital inputs can be deleted before.
3. Set the distance stored in the EEPROM of the microcontroller, a power-down save function.
4. When the password is input such that the alarm buzzer error.
The initial password is "111111."
Accessories include:
The entire lock system circuit design diagram, opened with AD software;
Hardware circuit simulation circuit, with open Proteus;
Source code, with Chinese comments;
Lock bill of materials;
Program link: https: //www.cirmall.com/circuit/1102
9, STC microcontroller based electronic locks Graduation
The design is based STC microcontroller design, mainly by the circuit 51 and the key section smallest SCM system, a buzzer alarm section, LCD liquid crystal display section and other components. The circuit design is simple, single plate together to complete a few jumpers, for beginners electronic DIY production.
Electronic locks Specific Features:
1, the electronic code lock default password is 1234567890, enter the password via the keyboard, if the password is correct, it will open the lock.
2, you can modify the password set by the user (password only support 6) in order to modify the password lock open. You must enter the password again before modifying the code, the need for secondary confirmation when you enter the new password to prevent misuse.
3, alarm, lock the keypad function. Lost password
Our other product: