Design of Laser Coded Lock Based on AT89C51

Publisher:滁州鱼儿Latest update time:2011-05-14 Keywords:AT89C51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In today's society, optoelectronic technology has been widely used, especially in optical fiber communication technology, remote control technology, radar detection technology, automatic control technology and optoelectronic detection technology. The reliance on optoelectronic technology is increasing. Optoelectronic technology is a new technology with broad prospects, because light propagates fast, is not easily disturbed, and has a large information carrying capacity. If we choose to use light as a carrier of information, we can imagine how convenient and fast our world will become.

Computer password controller is represented by microprocessor and digital memory, and is designed with today's high technology and the latest optimized software. It pursues high confidentiality, high reliability and wide applicability. It shows many advantages especially in regional management and centralized control of anti-theft. It is a popular system now.

This password controller is a photoelectric remote control type, which combines the above two advanced technologies. A specific password is arranged with light or no light as the basic code, and then recognized by the receiver, analyzed and judged by the single chip computer. Only when it meets the preset password signal can it be unlocked.

1. Solution Design

The laser password uses a single-chip microcomputer and an LCD screen. The single-chip microcomputer ensures that its programmer can use today's high-tech and optimized software to design and program, and the LCD screen ensures that it can help users operate in a very friendly interface. Combined with advanced optoelectronic technology, it ensures the leading position of the controller in science and technology. Carefully designed software and clever combination of various hardware parts ensure that the password lock has a simple principle, ingenious structure, and complete functions. This solves the problem of ordinary users having difficulty owning high-tech advanced products.

The following is a detailed introduction to the operating principle and key technologies of its main system. It consists of three parts: encoding and transmitting part, receiving information and processing part, and mechanical lock. Its specific structure is shown in Figure 1.

Design of Laser Coded Lock Based on AT89C51

2 Principles and implementation of each hardware part

2.1 Coding Principle and Implementation

The password controller is mainly composed of an AT89C51 chip that is programmed to realize its specific functions. The main principle is that when the user enters the password through the keyboard, the microcontroller will automatically convert the processed machine code into a pulse signal that controls the power on and off. After the signal is coupled, the weak signal is amplified by a triode or an operational amplifier, so that the semiconductor laser can be driven to ensure that the laser transmitter can normally emit laser pulse signals.

Password design and signal generation principle: When the user enters a number 20 from the keyboard, the binary code written into the memory is 10 100. When programming the single-chip computer, set "0" to power off for 40 μs and set "1" to power on for 40 μs. Then, when the user transmits the switch, this group of codes is taken out as a signal to control the power supply. When programming, this process is designed to be cyclic until the user stops pressing the button, and then the transmitter converts the on-off electrical signal into a laser signal and transmits it. This avoids the disadvantages of using fixed frequency waves that are easily interfered by the outside world and have a low safety factor, and improves safety and reliability.

Design of Laser Coded Lock Based on AT89C51

2.2 Design and implementation of signal reception and processing

This part mainly involves the detection of laser signals and their processing. First, the hardware uses a UDU2C photodiode as the main component for detecting laser signals. However, in order to improve its detection accuracy and detection distance, an optical concave mirror is added in front of this diode so that the divergent light emitted from a long distance can be refocused, ensuring its long-distance reception and detection. Finally, the detected signal is reshaped and amplified again to make the signal meet the requirements. Here, an AT89C2051 chip is used, and then the microcontroller is programmed to implement its specific calculation processing. When the cipher receives the shaped and amplified signal, it starts to judge. If this signal is a password setting signal, then this signal is put into the memory as memory content storage; if it is an unlocking signal, the received signal is compared with the password previously stored in the memory. When the received signal is the same as the password pre-stored in the memory, the output signal A is used to start the relay of the mechanical lock device, and then the small motor is started, thereby driving the latch to open the lock. When the compared signals are different, the output signal B is used to start the alarm circuit to sound an alarm. Considering that this combination lock may be powered off during use, a power supply and power-off protection device is added here. When the power is off, the power supply is automatically connected to the battery to ensure its normal use. When the power is low, it automatically issues a low power warning to remind the user to charge. Its basic circuit diagram is shown in Figure 2 (the power-off protection device can be used by slightly modifying Figure 2).

2.3 Implementation of alarm and mechanical lock

The key part of this system lies in the design and implementation of the first two parts. Here, the alarm can be selected as an ordinary buzzer to meet the requirements. The electromechanical lock part is composed of an electromagnetic relay, a motor and a mechanical lock.

3 Software Flowchart

The system software is written in Keil C language. In order to ensure that the functions of the controller are complete and the structure and principle are simple, a top-down and step-by-step refinement method is adopted. Its main program consists of two parts, including transmission and reception. The specific process is represented by the transmission part flow chart in Figure 3 and the reception part flow chart in Figure 4.

Design of Laser Coded Lock Based on AT89C51

Design of Laser Coded Lock Based on AT89C51

4 Conclusion

The test shows that the system has the following advantages:

(1) Laser has good monochromaticity, small divergence, high speed and large amount of information, ensuring its technological advantages.

(2) All operating functions are completed by a laser transmitter, which has dual control functions of time and space. It is difficult to make a fake key and is technically advanced.

(3) This password controller has a unique LCD screen, fully in Chinese, and has an extremely friendly interface and control platform.

(4) The password controller can be arbitrarily coded by the user. Without knowing the password, even the most clever thief cannot succeed. It is fully applicable in airports, stations, banks, hotels, offices and homes.

(5) Good confidentiality. General password controllers must implement a predetermined procedure (i.e., input password) when unlocking. If the procedure is too long, the unlocking time is long and it is easy to make mistakes. If it is too short, it is easy to be deciphered. Especially when unlocking in front of others, it is easy to leak secrets. However, this password controller can unlock from a long distance, and its maximum distance can reach several hundred meters. In this way, the length of input time does not need to be considered, and the lock can be unlocked silently, reducing the chance of leakage.

(6) The password controller has a unique power supply and power-off protection device that can automatically remind the user so that the user does not have to worry.

分页
Keywords:AT89C51 Reference address:Design of Laser Coded Lock Based on AT89C51

Previous article:Design of paperless recorder using C51 and plug-in FLASH memory
Next article:Temperature and humidity automatic detection system composed of AT89C51 55

Recommended ReadingLatest update time:2024-11-16 21:29

nRF401 wireless module debugging work notes
The interface design with 51 series microcontroller is as follows: Nrf401 end 51 microcontroller end TXEN ----- P3.5 POUP ----- P3.6 GND ----- GND D in ------ TXD(P3.1) D out ----- RXD(P3.0) VCC ----- VCC The wiring of the transmitting and receiving ends is the same. The program written in assembly la
[Microcontroller]
51 single chip microcomputer realizes multi-level LCD display Chinese menu
  1. Introduction   At present, small displays mainly include LCD and LED. LED displays can only display numbers and a limited number of English characters, but not Chinese characters. The display content is not intuitive, and operators can only understand the display content according to the agreed format. LCD can
[Microcontroller]
51 single chip microcomputer realizes multi-level LCD display Chinese menu
Design of automatic trumpet sound player based on AT89C51 single chip microcomputer
1 Introduction The daily routines of government agencies and schools require timing and signal reminders. The author uses AT89C51 single-chip microcomputer and LM386 audio power amplifier to form an automatic timing and signal player, which has low cost, good effect and is worthy of promotion. 2 Main
[Microcontroller]
Design of automatic trumpet sound player based on AT89C51 single chip microcomputer
Design of digital ultrasonic distance meter based on AT89C51 single chip microcomputer
Ultrasonic waves are often used to measure distances due to their strong directivity, slow energy consumption, and long propagation distance. For example, distance meters and level meters can be realized through ultrasonic waves. Ultrasonic distance measurement is mainly used in reversing radars, construction sites, a
[Microcontroller]
Design of digital ultrasonic distance meter based on AT89C51 single chip microcomputer
Single chip microcomputer (AT89C51) peripheral I/O input and output experiment
Question Analysis The main purpose is to connect 8 switches to the extended input port and 8 LEDs to the extended output port. How to control the display of 8 LEDs corresponding to 8 switches? Other external chips are needed in the experiment method one Use 74LS373 and 74LS245 as external chips to complete the exp
[Microcontroller]
Single chip microcomputer (AT89C51) peripheral I/O input and output experiment
Research on the application of wireless network technology in access control system
    1 Introduction   In recent years, due to the rapid development of wireless networks, the increase in speed and the decrease in prices, many users have begun to use wireless networks. Wireless networks have the characteristics of being able to move freely, access the Internet at any time and being easy to set up.
[Microcontroller]
Research on the application of wireless network technology in access control system
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号