遥控电子密码锁的设计
摘要:本设计是以Atmega328P-PU为主要芯片,通过中断、计数等基本工作方式来控制、判断外部器件的工作、工作状态,结合数字信号编码的基本算法,用红外遥控器遥控发送密码、再用红外接收管接收密码,单片机根据红外接收管导通与否和持续时间结合二次调制方式的基本算法还原遥控器发送的密码,再与内部储存器EEPROM储存的密码对比,判断密码是否正确,辅助以液晶显示屏LCD5110显示用户的操作结果,以蜂鸣器报警或提醒,再通过红外遥控键盘实现输入或修改密码等基本功能实现红外电子密码锁的设计。
本设计运用了C语言编写程序,简单、明了,很好的实现了红外通信的要求。在以往设计的基础上,使用Arduino集成开发环境编程,缩短开发时间,极大的方便了用户使用,特别是为工业生产带来了极大的便利。红外遥控电子密码锁具有成本较低、操作方便、体积小、无污染、反应速度快等优势,具有很好的市场价值。
关键词:编码;解码;密码;红外遥控
The design of remote electronic locks
Abstract:The design is based on Atmega328P-PU as the main chip to interrupt, counting and other basic work mode to control an external device to determine the work, working conditions, combined with the basic algorithm using digital signal coded remote control to send password infrared remote control, then infrared receiver to receive a password, and duration of the microcontroller through or not combined with the basic algorithm according to the second modulation infrared receiver guide to restore the password sent by the remote control, password contrast with the internal memory and then stored in EEPROM to determine whether the correct password, the auxiliary LCD5110 display the user to manipulate the results, in order to remind the buzzer, and then enter or modify basic functions such as passwords infrared electronic locks designed by infrared remote control keypad.
The design uses the c programming language, simple, clear .requirement to achieve a good infrared communication. On the basis of the previous design, programming using Arduino integrated development environment, reduce development time, a great convenience to users, in particular has brought great convenience for industrial production. Infrared electronic locks with low cost, easy operation, small size, clean, fast response and other advantages, has a good market value.
Key words:Encode ; Decode ; Password ;Infrared