基于单片机的红外遥控电子密码锁设计与实现_毕业设计(论文) 下载本文

内容发布更新时间 : 2024/7/9 4:10:00星期一 下面是文章的全部内容请认真阅读。

毕 业 设 计

设计题目:

基于单片机的红外遥控电子密码锁设计与实现

基于单片机的红外遥控电子密码锁设计与实

摘 要

随着社会的进步以及人们生活水平的提高,人们对于贵重物品的安全看的越来越重要。锁是人们用来保护贵重物品的一种普遍工具。目前大部分的锁采用的都是机械式的,其最大的缺点是利用简单工具就能很容易地把锁打开。出于安全、方便等方面的需要,许多电子密码锁已经相继问世。电子密码锁由于其保密性高,使用灵活性好,安全系数高,受到越来越多的关注。

红外遥控电子密码锁是一种以红外光作为密码载体,在单片机上实现了遥控开关。该锁具有使用方便、操作简单、价格低廉等特点,给人们的生活带来了极大方便。适用于那些人不宜接近的特殊场合,比如高辐射区、高传染区等。

本设计以单片机AT89S52作为密码锁检测和控制核心,分为主机和从机。根据51单片机之间的串行通信原理,利用红外来传输,大大增加了密码的保密性。采用数字信号编码和二次调制方式,不仅可以实现多路信息的控制,增加遥控功能,提高信号传输的抗干扰性,而且功率消耗低;红外线不会向室外泄露,不会产生信号串扰;反应速度快、传输效率高、工作稳定可靠等。所以红外线遥控是目前使用最广泛的一种通信和遥控手段。

软件设计采用自上而下的模块化设计思想,以使系统朝着分布式、小型化方向发展,增强系统的可扩展性和运行的稳定性。测试结果表明,本系统各项功能已达到本设计的所有要求。

关键词 红外线 遥控 电子密码锁 单片机

Based on SCM Infrared Remote Control Electronics Combination Lock Design and

Implementation

Abstract

Along with the progress of the society and the improvement of people's living standards, security of valuable is more and more important. Lock is a kind of universal tool which people used to protect the valuables. At the moment, most of the locks are mechanical. The biggest drawback is that the lock can be easily opened by using simple tools. Thinking about the safety and convenient, many electronic combination lock appeared. Electronic combination lock receives more and more attention because of its high confidentiality, flexibility and high safety coefficient.

Infrared remote control electronic combination lock is a carrier with infrared as the password, in the single chip computer to realize the remote control switch. It has characteristics such as easy to use, simple operation, low prices and brings great convenience for the life of people. Applicable to these special occasions which people should not close to, such as high radiation, high infected area etc.

This design uses AT89S52 devices as a combination lock detection and control core, divided into host and slave machine. According to the serial communication principle between 51 SCM, the password is transported by the infrared which increased its privacy significantly. Adopting digital signal encoding and second modulation mode can not only control multi-channel information, increase remote control function and improve the signal transmission of immunity but also low power consumption; infrared will not leak to the outside, no crosstalk, fast response, high transmission efficiency, stable and reliable etc. Therefore infrared remote control is the most widely used means of a communication and remote control.

Software design using top-down modular design to enable the system toward a distributed, small direction, enhance system scalability and operational stability. The results show that the various functions of the system have reached all the requirements of the design.

Key words: Infrared; Remote control; Electronic locks; Single-chip microcomputer