课程设计:电子密码锁图及PCB)
(附原理
电子密码锁
摘 要:本设计是通过判断输入密码正确与否从而控制相应电路工作,
完成开锁、报警、锁定键盘等任务的电子密码锁。它具有预设密码功能,超时报警功能,键盘锁定功能,错误提示功能等。预设密码和输入密码是用两个八位的锁存器实现,密码判断是由数值比较器电路组成,超时报警功能是用NE555所构成的单稳态触发器实现,超时次数及密码错误次数由计数电路记录,而键盘锁定功能则是通过电路的逻辑关系巧妙控制锁存器的输出使能端实现的。
关键词:电子锁,密码锁,键盘锁定,报警电路
Abstract:This design is to control the corresponding circuit by
judging the password correctly or not work, do lock, alarm, lock the keyboard and other electronic combination lock. It has default password function, timeout alarm function, and key lock function, error function, etc. Default password and enter the password is to use two of the eight latch, password is consist of numeric comparator circuit, timeout alarm function is formed by using NE555 monostable trigger, timeout number and password error number recorded by counting circuit, and key lock function is through the logical relationship of the circuit can control the output of the latch makes the server-side implementation.
Keywords: Electronic lock , Combination lock, Keyboard lock,
warning circuit.
目 录
1 前言 ........................................................... 1
1.1 设计背景 ..................................................................................................... 1 1.2 设计概述 ..................................................................................................... 1 2 总体方案设计 ................................................... 3
2.1 程序框图 ..................................................................................................... 3 2.2 电路分析 ..................................................................................................... 4 3 单元模块设计 ................................................... 5
3.1 密码锁存电路 ............................................................................................. 5 3.2 密码判断电路 ............................................................................................. 6 3.3 计数器电路 ................................................................................................. 8 3.4 计时器电路 ................................................................................................. 9 3.5电路参数的计算及元器件的选择 ............................................................ 12 3.6 各单元模块的联接 ................................................................................... 12 4 系统调试 ...................................................... 13
4.1 仿真电路总图 ........................................................................................... 13 4.2系统仿真参数设置 .................................................................................... 13 4.3 功能调试 ................................................................................................... 16 4.4 调试结果分析 ........................................................................................... 22 5 系统功能、指标参数 ............................................ 24
5.1 系统实现的功能 ....................................................................................... 24 5.2 系统指标参数测试 ................................................................................... 24 6 结论 .......................................................... 25 7 设计总结 ...................................................... 26
7.1 设计的收获体会 ....................................................................................... 26 7.2 对设计的进一步完善提出意见或建议 ................................................... 26 8 致谢 .......................................................... 27 9 参考文献 ....................................................... 28 附录1:电子密码锁的仿真总图 ...................................... 29
II