Electronic lock control board design and development
Single-chip microcomputer control electronic lock technology is a technology developed on the basis of single-chip microcomputer system. Its main structure includes LED display, single-chip microcomputer and alarm system. Through the composition of these devices and technologies, unlocking, timeout alarm and timeout Locking and other functions, in addition, this technology also has the function of modifying user passwords, administrator decryption functions, sound and light prompts, and power adjustment functions, etc., and more importantly, this technology has practical functions, low cost, good confidentiality, and flexibility High, favored by the majority of users. therefore. It is necessary to discuss the electronic lock technology controlled by single chip microcomputer.
1. Design scheme of electronic lock
The design of the single-chip microcomputer control electronic lock technology scheme mainly uses the single-chip microcomputer control as the core technology. When designing, through the flexible design of the single-chip microcomputer, combined with the relevant programming design, optimizing the port design and improving the control accuracy, it can not only realize the basic password function of the electronic lock, but also have a good storage power adjustment function, remote control function, etc. . During the design, through the optimization of related programs, the activity space of the single-chip microcomputer solution is increased. On the basis of ensuring the required functions, the functions of the electronic lock are further expanded, and then the system is upgraded. (The specific structure diagram is shown in the figure As shown in 1) the following we mainly conduct a simple analysis of the design scheme of the electronic lock technology controlled by the single chip microcomputer:
1.1 Electronic lock hardware design
Generally speaking, the design of the system mainly includes two parts: ① hardware part; ② software part. Among them, the hardware part mainly consists of the following structures:
(1) Single 4-machine system. In the system, due to the existence of the single-chip microcomputer system, it can not only ensure the stable operation of the whole system, but also help to realize the password function of the system.
(2) Unlock circuit. In the system, the signal output by the microcontroller is transmitted through the unlocking circuit. And combined with the signal drive mode and the infrared remote control function, it strengthens the working performance of the single 4 machines.
(3) Display circuit. In the whole system, although this component is relatively expensive, it is not an important part of the system. Usually, LED digital tubes are mainly used as display devices.
(4) Button circuit. In the design, a matrix keyboard is adopted, so that the input and output ports of a single 4-machine can be reduced, the system structure can be simplified, and the whole system can be ensured.
(5) Alarm indicator, which mainly uses LED lights as the indicating circuit, its biggest advantage is low cost, simple circuit, and can play a good indicating role intuitively.
1.2 Electronic lock display system
As the core part of the whole system, the single-chip microcomputer not only needs to ensure the stable operation of the whole system, but also needs to ensure the recovery and status of the system after an error occurs. Therefore, the application of the oscillation circuit and the reset circuit must be considered in this link. In general. The system will use the signals from the external clock, and use these signals as the internal clock signals after passing through the two-frequency trigger, but there are no special requirements, only according to the technical conditions and requirements of the product. Control the maximum low-level duration and the minimum high-level duration. Usually in the system circuit, the oscillation circuit is mainly composed of 20PF and 12M quartz crystal.
In addition, in the system, the single-chip microcomputer is used as the main control chip, and another main job is to ensure that all systems work in harmony. The realization of this function is mainly completed by software, here we can illustrate it through the relevant schematic diagram 2.
Single-chip microcomputer control electronic lock technology is a technology developed on the basis of single-chip microcomputer system, in which, the brightness requirements required by the system are mainly ensured by the display circuit, and all hardware devices in the application system are decoded and controlled by the software, such as LED. Display, single-chip microcomputer and alarm system. At the same time, according to the requirements, a program is executed by each segment of digital data to obtain relevant data information, complete functions such as unlocking, overtime alarm, and overtime lock, and optimize the system's function of modifying user passwords and management. Decryption function, sound and light prompt function, power adjustment function and so on.
2. Electronic lock simulation analysis
With the improvement of modern living standards, the problem of home anti-theft has become more prominent. Here we take the electronic combination lock system controlled by the AT89S51 single-chip microcomputer as an example. It is different from the traditional mechanical lock. The internal structure of the whole system is simple and stable. , to conduct all-round monitoring of the behavior of not entering the correct password within the specified time, which has high application value. The single-chip microcomputer uses simple 9 buttons (numeric keys) plus a confirmation button, a delete button, 11 IOs, a matrix method, a 10-connected indicator light instead of a relay, and an external memory to store passwords and power off, as follows is the specific process analysis:
(1) After the user enters the password through the keyboard, the system will analyze the relevant functions and use the single-chip microcomputer to control the electronic lock technical solution to unlock the person who enters the correct password within the specified time. If the password input is not completed in time, the system will use the The control of the single-chip microcomputer system will clear all the data. Moreover, because the system design also has certain flexibility, in specific applications, the port design can be optimized through programming design. On the one hand, the control accuracy of the electronic lock can be improved, and the basic password function of the electronic lock can be realized, so that the system has a good On the other hand, through the optimization of relevant programs, the activity space of the single-chip microcomputer solution can be increased. On the basis of ensuring the required functions, the functions of the electronic lock can be further expanded, and then the system can be realized. upgrade management.
(2) System work and management process. The internal structure of AT89S51 is relatively complicated. When the system is running, it needs to use the single-chip microcomputer system as the core to ensure the stable operation of the whole system and realize the password function of the system. The remote control function strengthens the working performance of the single chip microcomputer. LED digital tube is used as the display device, and the input and output ports of the single-chip microcomputer are reduced through the design form of the matrix keyboard, and the system structure is simplified, so as to ensure the composition of the whole system, and the LED light is used as the indicating circuit, which plays a good role intuitively. indicative role.
(3) The single-chip microcomputer is the core part of the whole system. Combining the initialization program, autonomous program, keyboard scanning program, password setting program, key function program, delay program and reading and writing program in the system, it not only ensures the stable operation of the whole system, but also realizes the operation recovery after the system fails, and At the same time, in the analysis and processing link, through the comprehensive application of the oscillating circuit and the reset circuit, the signals transmitted by the external clock are transmitted as internal clock signals through the two-frequency flip-flop. All programs and design requirements Fully meet the technical conditions and requirements of the product, and then effectively control the maximum low-level duration and minimum high-level duration of the system. In this system circuit, the oscillation circuit is mainly composed of 20PF and 12M quartz crystal.
In short, the electronic password lock system controlled by AT89S51 single-chip microcomputer as the core ensures the brightness requirements required by the system through the display circuit. The software decoding of the application system controls all hardware devices such as LED display, single-chip microcomputer and alarm system in the system. According to the requirements, The main control program makes each segment of digital execute a program, and then obtains relevant data information, and finally completes the functions of unlocking, power adjustment, overtime alarm and overtime lock, sound and light prompt function, user password modification function and administrator decryption function, etc.
Summarize
All in all, the single-chip microcomputer control electronic lock technology has practical functions. The cost is low, the confidentiality is good, and the flexibility is high, and has been favored by the majority of users. Therefore, it is necessary to strengthen the discussion on the technology of electronic lock controlled by single-chip microcomputer, and further optimize the system performance.
The above is the development example of electronic lock based on single-chip microcomputer control introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. If you have electronic lock solution development needs, you can trust us. We represent a variety of single-chip microcomputers, voice chips, dual-mode Bluetooth ICs, and wifi chips. Brands include Songhan MCU, Yingguang MCU, Jerry Bluetooth, Ankai Bluetooth, Allwinner, and Realtek. Our technical services include: PCB design, microcontroller development, Bluetooth solutions, software and hardware custom development, APP development, small program development, WeChat official account development, etc. It can also undertake the design of intelligent electronic products, the development of living appliances, the research and development of beauty equipment, the application of Internet of things platform, the smart home control system, the development of TWS earphones, Bluetooth earphone speakers, the development of children's educational toys, the design of electronic education products, etc.
Proposal recommendation
- TOP