文档介绍:摘要
本设计使用AT89C51实现基于单片机的密码门禁系统的设计,其主要具有如下两种模式:业主模式和访客模式;在业主模式下,设置8位密码,密码通过键盘输入;若密码正确,亮绿色灯,蜂鸣器发出核对通过声并将锁打开;若输入密码错误,则亮黄灯并发警示声提示错误;若密码连续输入错误超过3次,亮红灯,蜂鸣器发报警声,并且锁定键盘。在访客模式下,房间号通过键盘输入,为3位,若输入的房间号存在亮绿灯,向居民发送请求并发核对通过声;若输入的房间号不存在,则亮黄灯并发警示声提示错误;若房间号连续输入错误超过3次,亮红灯,蜂鸣器发报警声,并且锁定键盘。
密码门禁系统的设计主要有三部分组成:4×4矩阵键盘接口电路、密码锁的控制电路、八位七段LED数码管显示电路。另外还有LED提示灯,报警蜂鸣器等。
本文设计的密码门禁系统以单片机AT89C51为核心,从单片机最小系统设计、键盘设计、显示电路、开锁电路及报警电路等几个方面出发,详细研究和设计了密码门禁系统的各个部分,完成了系统的软件编程。
关键词:AT89C51;LED;4×4矩阵键盘;密码锁
Password entrance guard system
Abstract
This design use AT89C51 realizes the password entrance guard system which based on single chip design. It mainly has the following two modes: the owner mode and the visitors mode. In owner mode, set up eight password, password through the keyboard input; If the input password correct, light green light, the buzzer send out "mistakes" sound and will open the lock; If the input password mistake, the bright yellow light to hint error; If the password input the wrong more than three times, bright red light, the buzzer send out "drops" sound, and lock the keyboard. In the visitor mode, input owner’s door number, request the screen calls and opening the door. The owner can choose to open the door or refused to call the screen.
Password entrance guard system design of three main parts: 4 × 4 matrix keyboard interface circuit, passwords lock control circuit, total cathode seventh-- 8 LED display circuit, and another LED lights, alarm buzzer, etc.
In this paper, the design password entrance guard system based on the single puter AT89C51, start with single chip minimize system design, the keyboard design, display circuit, the unlock circuit , the alarm circuit and several other aspect, detailed research and design the all parts of the entrance guard system, complete the system software programming.
Keywords: AT89C51;LED; 4 × 4 matrix keyboard;Passwords lock
目录
摘要 Ⅰ
Abstract Ⅱ
第一章绪论 1
1 .1本课题研究的背景和意义 1
1 .2密码门禁系统的概述 1
1 .3密码门禁系统的发展趋势 1
1 .4本次设计的任务 1
第二章系统的总体设计