基于51单片机的电子密码锁 - 毕业论文 - 图文

更新时间:2023-10-05 16:22:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

通信104班 姓名 : AA 基于单片机的电子密码锁

单片机课程设计

项目名称 基于单片机的电子密码锁

专业班级 通信104班

学生姓名 AA

指导教师 AA

2012年 11 月 28 日

I

通信104班 姓名 : AA 基于单片机的电子密码锁

摘 要

电子密码锁是一种通过密码输入来控制电路或是芯片工作,从而控制机械开关的闭合,完成开锁、闭锁任务的电子产品。它的种类很多,有简易的电路产品,也有基于芯片的性价比较高的产品。现在应用较广的电子密码锁是以芯片为核心,通过编程来实现的。

本文以AT89C51单片机为核心器件,结合按键电路、LED数码管显示电路、报警指示电路和开锁机构,利用单片机灵活的编程设计和丰富的I/O端口,及其控制的准确性通过软件程序来控制整个系统实现电子密码锁的基本功能,其主要具有如下功能:

●密码通过键盘输入,若密码正确,则将锁打开 ●密码输入错误,蜂鸣器将报警提示 ●用户可以自由设定密码

关键词:AT89C51 ; 电子密码锁 ; 功能

II

通信104班 姓名 : AA 基于单片机的电子密码锁

The Simulation Design of Electronic Cipher Lock

Based on MCU

Abstract

The electronic cipher lock is a electronic products, which control the mechanical switch by the control circuit or chip when you input a password. It has many different types ,for example, simple circuit products , chip products with a higher value. Now the widely used electronic locks are based on the chip and achieve the function by programming.

Based on the AT89C51 single-chip microcomputer as the core device, combining with the key circuit, LED digital tube display circuit, an alarm circuit and unlocking mechanism, design the whole system to achieve the basic functions of electronic cipher lock by its flexible programming , rich I / O port, and accuracy basing on the software program . With the following functions :

●Input password through the keyboard, if the password is correct, lock will open ●If the password is error, the buzzer will alarm ●Users can freely set the password

The lock has some features like a reasonable design methods,simple to work,low cost and security,it also has some promotion value.

Key words: AT89C51 ; Cipher lock ; Function

II

通信104班 姓名 : AA 基于单片机的电子密码锁

目 录

摘 要 ............................................................ I Abstract ......................................................... II 第一章 绪 论 .................................................... III 第二章 系统的总体设计和主要元器件介绍 ................................. 2

2.1 系统方案论证选择 ................................................. 2 2.2 系统的总体思路设计 ............................................... 3 2.3 主要元器件介绍 ................................................... 3

2.3.1 AT89C51介绍 ............................................. 4 2.3.2 继电器介绍............................................... 7 2.3.3 LED数码管介绍 ........................................... 8 2.3.4 矩阵键盘介绍............................ 错误!未定义书签。

第三章 硬件设计 .................................................... 9

3.1 单片机主控制模块(含晶振、复位基本工作电路) ..................... 9 3.2 键盘输入模块 ..................................................... 9 3.3 显示模块 ........................................................ 10 3.4 报警模块 ........................................................ 11 3.5 开锁模块 ........................................................ 11

第四章 软件设计 ................................................... 13

4.1 系统程序设计流程图 .............................................. 13 4.2 系统程序设计 .................................................... 13

第五章 系统仿真设计 ............................................... 19

5.1 Proteus 软件介绍 ................................................ 19 5.2 Proteus 仿真图 .................................................. 20

总结 ............................................................ 21 参考文献 ......................................................... 22

III

通信104班 姓名 : AA 基于单片机的电子密码锁

附录 ............................................................ 23 致谢 ............................................................ 29 项目创新及特色 ................................................... 29

III

本文来源:https://www.bwwdw.com/article/33rd.html

Top