红外遥控智能密码锁设计毕业论文

 2021-04-15 12:04

摘 要

传统的机械防盗构造太简单,没有保护人民的安全,红外电子密码锁采用的是红外光作为信息媒介实现红外遥控,以高强度密码序列为基础。该锁使用便捷,价格便宜,操纵轻易,抗干扰能力强。本设计是基于51单片机的红外和红外接受管解码芯片的控制系统。双重控制模式的使用,控制,键盘锁定和解锁的远程控制。用户可以通过键盘输入密码重置密码;输入正确的密码是成功解锁,如果输入了错误的密码,密码输入错误则解锁失败,连续出错三次,蜂鸣器会一直响,密码意外泄露报警的情况下可以更改密码,从而对用户的财产安全能起到有效的保障作用。

该系统的主要部件是51单片机,利用的红外遥控原理以及单片机串行发送器和接收器的功用。红外接收的输出接在单片机的中断口,通过跳边沿触发的方式来触发单片机中断。从而可以对编码脉冲进行接收、存储、和解码,继而与用户设定的密码进行对比,从而确定密码的正确错误,正确则会开锁,反之则不会。

本次设计的电路主要是由晶振震荡电路、复位电路、矩阵键盘电路、报警电路、电磁驱动电路、遥控信号接受电路、遥控发射电路等电路组成,可以完成 键盘开锁和遥控开锁、密码输入错误后报警、修改密码的功能。

关键字:单片机 红外线 遥控开锁 密码

Design of infrared remote control intelligent cipher lock

Abstract

The traditional mechanical anti-theft structure is too simple, cannot guarantee the safety of the people, the infrared electronic lock is used in infrared light as information media to realize remote control, with high strength password sequence based. The cipher lock has the characteristics of convenient use, low price, simple operation, strong anti-interference ability etc.. This design is a kind of infrared decoder 51 MCU (Micro Control Unit)based infrared receiving tube and a single chip computer control system. Dual control mode is adopted, the keyboard control and remote control unlocking lock. The user can enter a password, password reset through the keyboard input the correct password to unlock; success, input password mistake, will unlock failed, continuous input the wrong password three times, the buzzer will sound alarm, can modify the password in the password in case of leak accident, so as to provide property security can play effective role in safeguarding the.

A core component of the system is 51 MCU, using infrared remote control principle and serial transmitting, receiving and other functions. The output infrared receiver connected to the micro-controller interrupt port, by jumping edge triggered way to trigger MCU interrupt. So it can receive, store, and the decoding of the coded pulse, and then with the user to set the password, so as to determine the correct password correct errors, will unlock, otherwise not.

Circuit design by crystal circuit, reset circuit , keyboard circuit, alarm circuit, electromagnetic driving circuit, remote control signal receiving circuit, transmitting circuit. To complete the unlock , error alarm, such as password.

Key words:51 MCU;Infrared;Remote control unlocking;password

目 录

1 绪言 1

1.1课题背景及意义 1

1.2课程的具体要求及任务 1

1.2.1设计任务 1

1.2.2基本要求 1

2通信原理 3

2.1 红外线的概念 3

2.2 红外遥控基本原理 3

3 硬件电路设计 7

3.1 系统构成框图 7

3.2 单片机最小系统设计 7

3.2.1 8051单片机的单片机 7

3.2.2 最小系统设计 8

3.3 开锁电磁驱动电路 10

3.4 遥控信号接收电路 11

3.5 报警电路的设计 12

3.6 4*4矩阵键盘 13

3.6 遥控发射电路设计 15

3.7 本机开锁总电路图 16

4系统的软件设计 18

4.1遥控开锁部分程序设计 20

4.1.1 脉冲发射子程序流程图 21

4.1.2 解码子程序 22

4.2本机键盘开锁部分程序设计 23

4.2.1 键值判别子程序流程图 24

4.2.2 密码识别子程序 26

4.2.3 报警子程序 27

4.2.4 修改密码子程序 27

5 结 论 29

致 谢 30

参考文献 31

附录: 32

附录A电路原理图 32

附录B红外遥控电子密码锁程序 35

您需要先支付 80元 才能查看全部内容!立即支付

课题毕业论文、开题报告、任务书、外文翻译、程序设计、图纸设计等资料可联系客服协助查找,优先添加企业微信。