单片机的电子密码锁设计
摘要 1
Abstract 2
引言 3
一、 设计的要求及目的 3
(一)设计要求 3
(二)设计目的 3
二、 单片机的总述 3
(一)关于单片机 3
(二)单片机的发展及应用 4
(三)单片机的硬件结构 4
(四)单片机的时钟电路 6
三、系统硬件电路设计 7
(一)DC电源插口及复位电路 8
(二)复位电路 8
(三)时钟电路 8
(四) LCD1602显示模块 9
(五) 键盘设计 10
(六)声音提示模块 11
(七)继电器控制模块 12
四、软件设计 14
(一)主程序设计流程图 14
(二)修改密码程序 17
(三)开锁程序 19
六、焊接和调试 19
(一)焊接注意提示: 20
结语 21
致谢 22
参考资料 23
附录1 24
附录2 32
元器件清单 44
摘要
跟着科技发展的脚步人们生活品质也在不断地提升,那么作为21世纪的现代人更加看重自己隐私和财产的安全。当今家庭都有一些价格昂贵的电器,怎么去预防家庭被盗这一问题也迫在眉睫,过去人们使用的机械锁由于传统而简单,在小偷面前开锁变得家常便饭,毫无一点点挑战性。电子密码锁由于保密性能高;安全程度高;使用灵活性好等优点;从而受到大众的垂青。
本文用的单片机AT89C52,它是Atmel公司研发的。它与单片机AT89C51不同点是,单片机AT89C51与低功耗CMOS型E2PROM AT24C02作为主控芯片与数据存储单元,而AT89C52自带存储功能,键盘输入的周边,显示,开锁,报警等电路连接时,主要程序
*景先生毕设|www.jxszl.com +Q: ^3^5^1^9^1^6^0^7^2^*
锁变得家常便饭,毫无一点点挑战性。电子密码锁由于保密性能高;安全程度高;使用灵活性好等优点;从而受到大众的垂青。
本文用的单片机AT89C52,它是Atmel公司研发的。它与单片机AT89C51不同点是,单片机AT89C51与低功耗CMOS型E2PROM AT24C02作为主控芯片与数据存储单元,而AT89C52自带存储功能,键盘输入的周边,显示,开锁,报警等电路连接时,主要程序的编写,提出用C语言写,设计出一款具有设计、多次更改六位密码、超次锁住、密码不正确报警等要求。被由P1口控制。除了上面提到的密码锁功能之外,可以凭借个人嗜好加上遥控器,比较高大上的功能。本系统花钱少,实用性强。
【关键字】: 电子密码锁 单片机 报警
Abstract
The pace of the quality of life along with technological development are constantly upgrading, then as the 21st century modern people more emphasis on the safety of their privacy and property. Todays family have some expensive appliances, how to prevent the family stolen this problem is imminent, the mechanical lock in the past, people used due to the traditional and simple, beforethe thief lock becomes commonplace, without little bit challenging. Electroni cpassword lock due to the high security performance; a degreeofsafety; flexibility in the use of good advantages;and by the public favor.
The AT89C52 single chip microcomputer, which is developed by ATMEL company. It is different from the single chip microcomputer AT89C51, AT89C51 single-chip and low power CMOS E2PROM AT24C02 as main control chip and the data storage unit, and AT89C52 comes with storage function, around the keyboard input, display, open lock, alarm circuit connection, main program written and put forward written in C language design a design, several changes to the six digit password, super lock, the password is not correct alarm requirements. By the P1 port control. In addition to the above mentioned password lock function Can, by virtue of personal hobbies and remote control, the function of the relatively tall,
thesystem to spend less, practical.
[keyword]: electronic password lock MCU alarm
引言
当今单片机的应用
原文链接:http://www.jxszl.com/dzxx/txgc/33385.html