基于单片机的自动存包系统设计摘要近年来,随着生活水平的提高,人们对于社会消费品的质量和数量的要求也在逐渐增加。
为了更好的为广大顾客服务,在一些商场、影院、超市等公共场合通常设置有自动存包柜,本次便是针对这一现象进行设计。
本文详细介绍了国内自动存包控制系统的发展现状,发展中所面临的问题。
并详细介绍了本系统采用的AT89S52单片机做控制器,可以同时管理四个存包柜。
柜门锁是由继电器控制,当顾客需要存包的时候,可以自行到存包柜前按“开门”键,需要顾客向光学指纹识别系统输入个指纹,然后通过继电器进行开门(用亮灯表示),顾客即可存包,并需将柜门关上。
当顾客需要取包时,要将只要将之前输入的指纹放置于指纹识别器前方,指纹识别器采集到指纹信息输出相应的高低电平信号传给单片机,系统比较密码一致后,发出开箱信号至继电器将柜门打开,顾客即可将包取出。
它具有功能实用、操作简便、安全可靠、抗干扰性强等特点。
关键词:自动存包柜,单片机,指纹识别器李少鹏:基于单片机的自动存包系统设计Based on single chip microcomputer automatic package designAbstractIn recent years, with the improvement of living standards, people for social consumer goo ds quality and quantity requirements are to increase gradually. In order to better service for the g eneral customers, in some stores, movie theaters, supermarkets public Settings are to be put auto matically usually bag ark, it is functional practical, simple operation, safe and reliable, anti-jamm ing strong sexual characteristics.Domestic deposit automatic control system are introduced in detail in this paper the development of the status quo, problems faced in the development of. And introduces in detail the system adopts single chip microcomputer controller, can simultaneously manage multiple pack ark. Cupboard door lock controlled by relay, when customers need to save package, will be allowed to save package before the ark according to the "open" button, need customer to the system input fingerprint, and then through the relay to open the door (with lighting), customers can save package, and the cupboard door must be closed. When customers need to pick up package, as long as before the input fingerprint should be placed on the fingerprint recognizer, fingerprint recognizer collecting to the fingerprint information and output the corresponding high and low level signal to the microcontroller, the system is password consistent, signal out of the box to the relayKey words: Automatic Storage Bag, Microcontroller, Fingerprint recognizer。
目录摘要 (I)Abstract (II)第1章绪论............................................................................................................................ - 1 - 1.1 题目来源及意义..................................................................................................... - 1 - 1.2 自动存包柜课题的发展与现状............................................................................. - 2 - 1.3 本课题的目标与任务............................................................................................. - 3 - 第2章系统方案论证与器件的选择...................................................................................... - 5 - 2.1 主控模块方案选择................................................................................................. - 5 -2.1.1 采用DSP+FPGA方案...................................................................................... - 5 -2.1.2 采用51单片机方案...................................................................................... - 5 -2.1.3 采用61单片机方案...................................................................................... - 5 -2.2 输入端方案的选择................................................................................................. - 6 -2.2.1 机设条码式电子存包柜方案........................................................................ - 6 -2.2.2 非接触IC卡电子存包柜方案...................................................................... - 9 -2.2.3 指纹识别电子存包柜方案............................................................................ - 9 -2.3 输出端方案的选择............................................................................................... - 10 -2.3.1 光电开关与电磁阀方案.............................................................................. - 10 -2.3.2 继电器控制方案.......................................................................................... - 10 -2.4 方案总结............................................................................................................... - 11 - 第3章系统硬件设计 ........................................................................................................ - 13 - 3.1系统硬件总体设计............................................................................................. - 13 -3. 2 系统硬件各单元设计....................................................................................... - 14 -3.2.1 控制单元设计.......................................................................................... - 14 - 3.2.2 指纹识别设计.......................................................................................... - 19 - 3.2.3 输出电路设计........................................................................................ - 26 -3. 3 整体电路图........................................................................................................... - 33 - 第4章系统软件设计............................................................................................................ - 35 - 4.1 系统软件整体设计............................................................................................... - 35 -李少鹏:基于单片机的自动存包系统设计4.2 系统软件各部分设计........................................................................................... - 37 - 4.2.1 键输入程序设计...................................................................................... - 37 - 4.2.2 驱动电路程序设计.................................................................................. - 37 - 第5章系统调试.................................................................................................................... - 39 -5.1 系统硬件调试......................................................................................................... - 39 -5.2 系统软件调试......................................................................................................... - 41 -5.3 系统联合调试......................................................................................................... - 43 - 总结........................................................................................................................................ - 47 - 参考文献.................................................................................................................................. - 51 - 致谢........................................................................................................................................ - 53 - 附录........................................................................................................................................ - 55 -第1章绪论1.1 题目来源及意义近年来,随着生活水平的提高,人们对于社会消费品的质量和数量的要求也在逐渐增加。