文档详情

基于51单片机的流水线产品计数器设计-毕业论文.doc

发布:2018-08-18约1.22万字共23页下载文档
文本预览下载声明
贵州电子信息职业技术学院毕业设计(论文) PAGE 第 PAGE II 页 贵州电子信息职业技术学院毕业设计(论文) 第 PAGE I 页 毕业设计(论文) 基于51单片机的流水线 产品计数器设计 班 级: 31001班 学 号: 1 姓 名: 唐树春 专 业: 应用电子技术 指导老师: 周晓红老师 二零一二年六月十日 摘 要 本系统采用的是以单片机STC89c52为核心的光电计数器。其工作原理是采用单片机的外部中断0来进行计数,数据采集部分采用反射式光电传感器,将红外发光管与光电接收管相邻安放,每当物体通过一次,红外光就被物体反射,光电接收管接收一次,光电接收管的输出电压就产生一个变化,这个变化的电压信号通过放大和处理后,形成计数脉冲,输入至STC89c52单片机的P3.2口,通过软件控制和硬件控制并用LED加以显示,便可实现对物体的计数统计。本计数器可将机械或人工计数方式变为电子计数,并且采用LED数码管显示,可适用于诸多行业,以满足现代生产、生活方式的需求。 所谓的光电式传感器是将光信号转化为电信号的一种传感器。光电式传感器是以光电器件作为转换组件的传感器,光电检测方法具有精度高、应用快、非接触等优点,而可测参数多,光电传感器的结构简单,形式灵活多变因此,光电式传感器在检测和控制中应用非常广泛。 关键词:计数器;光电传感器;单片机;LED数码管 Abstract This system USES is with STC89c52 single chip microcomputer as the core of the photoelectric counter. The working principle of adopting SCM external interruption 0 to count, the data acquisition of the reflecting photoelectric sensor, the infrared light tube and photoelectric receiving tube adjacent put, whenever the object through a, infrared light is object reflective, photoelectric tube receiving a receiving, photoelectric receiving tube is the output voltage of produce a change, the changes of the voltage signal through the amplifier and processing, form count pulse, the input to STC89c52 SCM P3.2 mouth, through the control software and hardware control and that LED to, can realize the object counting statistics. This counter can or mechanical artificial count way into electronic counted, and using LED digital display tube, can be used in many industries, to meet the modern production, the way of life of demand. The so-called photoelectric sensor is light signals are converted to electrical signals a sensor. Photoelectric sensor is based on photoelectric device as a conversion of components of the sensor, photoelectric detection method has high accuracy, application, the advantages of fast contact, and can be measured parameters, the structure of the photoelectric sensor is simple
显示全部
相似文档