您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 基于Arduino的遥控电子密码锁的设计
西安文理学院本科毕业论文(设计)题目基于Arduino的遥控电子密码锁的设计专业班级电子信息工程学号792692227@qq.com学生姓名王小兵指导教师设计所在单位2014年5月遥控电子密码锁的设计摘要:本设计是以Atmega328P-PU为主要芯片,通过中断、计数等基本工作方式来控制、判断外部器件的工作、工作状态,结合数字信号编码的基本算法,用红外遥控器遥控发送密码、再用红外接收管接收密码,单片机根据红外接收管导通与否和持续时间结合二次调制方式的基本算法还原遥控器发送的密码,再与内部储存器EEPROM储存的密码对比,判断密码是否正确,辅助以液晶显示屏LCD5110显示用户的操作结果,以蜂鸣器报警或提醒,再通过红外遥控键盘实现输入或修改密码等基本功能实现红外电子密码锁的设计。本设计运用了C语言编写程序,简单、明了,很好的实现了红外通信的要求。在以往设计的基础上,使用Arduino集成开发环境编程,缩短开发时间,极大的方便了用户使用,特别是为工业生产带来了极大的便利。红外遥控电子密码锁具有成本较低、操作方便、体积小、无污染、反应速度快等优势,具有很好的市场价值。关键词:编码;解码;密码;红外遥控ThedesignofremoteelectroniclocksAbstract:ThedesignisbasedonAtmega328P-PUasthemainchiptointerrupt,countingandotherbasicworkmodetocontrolanexternaldevicetodeterminethework,workingconditions,combinedwiththebasicalgorithmusingdigitalsignalcodedremotecontroltosendpasswordinfraredremotecontrol,theninfraredreceivertoreceiveapassword,anddurationofthemicrocontrollerthroughornotcombinedwiththebasicalgorithmaccordingtothesecondmodulationinfraredreceiverguidetorestorethepasswordsentbytheremotecontrol,passwordcontrastwiththeinternalmemoryandthenstoredinEEPROMtodeterminewhetherthecorrectpassword,theauxiliaryLCD5110displaytheusertomanipulatetheresults,inordertoremindthebuzzer,andthenenterormodifybasicfunctionssuchaspasswordsinfraredelectroniclocksdesignedbyinfraredremotecontrolkeypad.Thedesignusesthecprogramminglanguage,simple,clear.requirementtoachieveagoodinfraredcommunication.Onthebasisofthepreviousdesign,programmingusingArduinointegrateddevelopmentenvironment,reducedevelopmenttime,agreatconveniencetousers,inparticularhasbroughtgreatconvenienceforindustrialproduction.Infraredelectroniclockswithlowcost,easyoperation,smallsize,clean,fastresponseandotheradvantages,hasagoodmarketvalue.Keywords:Encode;Decode;Password;Infrared目录第1页目录第一章绪论......................................................................................................................11.1题目要求..................................................................................................................11.2本设计主要硬件功能部分..................................................................................11.3本设计软件的总体构思......................................................................................1第二章系统的硬件设计与实现..................................................................................32.1EEPROM模块..........................................................................................................32.2红外通信模块......................................................................................................52.2.1红外通信的基本原理..............................................................................52.2.2红外遥控发射器及其编码.....................................................................62.2.3红外接收和解码........................................................................................92.2.4红外发送与接收设备..............................................................................92.3LCD5110液晶显示模块......................................................................................112.3.1LCD5110介绍...........................................................................................112.3.2LCD5110引脚功能表..............................................................................112.3.3LCD5110电路图.......................................................................................122.4蜂鸣器报警模块..............................................................................................132.5单片机最小系统模块......................................................................................13第三章系统软件设计..................................................................................................173.1ARDUINO软件开发环境...................................................................................173.2PROTEUS原理图仿真........................................................................................183.3程序流程图.........................................................................................................193.3.1主程序流程图..........................................................................................193.3.2红外遥控接收解码.................................................................................203.3.3串口收发数据模块(调试)...................................................................21第四章系统安装与调试.............................................................................................244.1硬件调试...............................................................................................................244.1.1红外遥控器调试.........................................................................................24目录第2页4.1.2继电器调试..................................................................................................244.2软件调试..........................................................................................................24结束语...................................................................................................................................26致谢.........................................................................................
本文标题:基于Arduino的遥控电子密码锁的设计
链接地址:https://www.777doc.com/doc-6495202 .html