文档介绍:本科毕业设计
题目生产流水线产品产量统
计显示系统的设计
姓名王鹏
专业自动化
学号 201142064
指导教师王忠利
郑州科技学院电气工程学院
二○一五年六月
目录
摘要 I
ABSTRACT II
前言 III
1系统的设计方案与选择 1
2 硬件电路的设计 3
系统硬件电路 3
电源供电电路 3
桥式整流电路 4
滤波电路 4
稳压电路 5
掉电记忆模块 6
红外检测模块 7
单片机控制电路 9
单片机最小系统 11
LED数码管显示模块 13
报警器模块 15
3 系统程序设计 17
程序流程图 17
程序设计 17
程序调试 24
4 数据分析 25
结论 27
致谢 28
参考文献 29
附录一:元器件清单 30
附录二:原理图 31
附录三:仿真图 32
附录四:实物图 33
生产流水线产品产量统计显示系统的设计
摘要
随着当今社会的飞速发展,越来越多的流水线上的产品需要进行自动计数。基于单片机构成的产品自动计数器有直观、计数精确的优点,目前已在各行各业中得到了广泛的应用。数字计数器有多种形式,总体来说有接触式、非接触式两种,在科技发展的今天,非接触式红外计数器的应用更加广泛[1]。本设计采用一对红外发射接收管作为计数器的信号检测头,具有价格低廉,抗干扰性好,结构简单,操作方便等特点。
本设计采用红外发光管发射红外线,红外接收管接收此红外线[2],并将其放大、整流形成低电平信号,当产品阻挡红外光时,接收管将接收不到红外信号,放大器会输出高电平,此时将这个电平信号送入AT89C5单片机控制单元[3],通过对单片机编程实现计数,然后由数码管LED显示数值[4]。从而实现生产流水线产品产量统计显示的功能。
关键字:单片机;自动计数;LED数码管
THE DESIGN OF THE PRODUCTION LINE OUTPUT STATISTICS SYSTEM
ABSTRACT
With the rapid development of today's society, more and more products assembly line for automatic counting. Based on single chip product automatic counter has the advantages of intuitive, counting precision, has been widely applied in all walks of life. Digital counter has various forms, generally has two kinds of contact type and non-contact, in today's development of science and technology, the application of non-contact infrared counter more widely. This design USES a pair of infrared receiving tube as counter signal detection head, with a low price, good anti-interference, simple structure, convenient operation, etc.
This design use infrared launch infrared light-emitting tube, infrared receiving tube receives the infrared ray, and the low level signal amplification, rectification formation. When someone or something blocking infrared receiving tube not receives the infrared signal, the amplifier outputs high level, at the same time the level signal into the AT89C51 single-chip puter control unit, through the microcontroller programming count, then the d