1、 毕业设计(论文)报告毕业设计(论文)报告 题 目 工业产品产量计数器的设计与制作工业产品产量计数器的设计与制作 2012 年 12 月 1 摘摘 要要 随着当今社会的飞速发展,越来越多的流水线上的产品和各种公共场都需要 进行自动计数。基于单片机构成的产品自动计数器有直观和计数精确的优点,目 前已在各种行业中得到广泛应用。数字计数器有多种形式,总体来说有接触式和 非接触式两种,在科技发展的今天,非接触式红外计数器得到了广泛的应用。本 设计采用一对红外发射接收管作为红外计数器的信号检测头,具有价格低廉,抗 干扰性好,结构简单,操作方便等特点。 指导思想是利用红外发光管发射红外线,红外接收管接收此
2、红外线,并将其 放大、整流形成低电平信号.当有人或物挡住红外光时,接收管没有接收到红外信 号,放大器将输出高电平,同时将这个电平信号送入单片机进行控制计数,并且 使数码管显示数值。这样就得到要统计的人或物的数量。 关键词关键词:自动计数;单片机;数码管 Abstract Along with the rapid development of this community, more and more on the assembly line of products and all sorts of public Need for automatic counting. Based on sin
3、gle-chip computers.the product automatic counter intuitive and count accurate advantages, currently have in various industries have been widely used. Digital counter have various forms and generally have contact and contact-less two kinds, in the development of science and technology today, contactl
4、ess infrared counter been widely used. The design USES a pair of infrared emission receiving tube as infrared counter signal detection head, is inexpensive, anti-jamming good, simple structure, convenient operation, etc. 2 The guiding ideology is using infrared luminescence tubes launch infrared, in
5、frared receiving tube receiving this infrared, and put the amplification, rectifier form low level signals. When someone or something blocking infrared, receiving tube without receiving infrared signal, amplifier output high level, at the same time will the level signal into SCM control counted, and
6、 making digital tube display Numbers. So get to statistics, the number of people or things. Keywords: Automatic counting,MCU,Digital tube 3 目 录 摘 要 . 1 Abstract . 1 前言 . 4 第一章 计数器的概论 . 5 1.1 选题背景. 5 1.2 国内外的研究概况. 5 第二章 控制要求分析 . 6 2.1 设计要求. 6 2.2 题目分析. 6 2.3 整体构思. 6 第三章 主要元器件的概述 . 8 3.1 AT89S52 单片机的引脚及其功能 8 3.2 光电式传感器(光电开关)E18-D80NK 11 3.3 数码管. 14 第四章 计数器控制系统设计 . 16 4.1 单片机系统程序设计流程. 16 4.2 单片机系统. 17 4.2.1 时钟源电路 18 4.2.2 复位电路 18 4.2.3 计数功能 19 4.2.4 数码管显示电路 20 4.2.5 报警部分 22 4.3 电路焊接及其实物调试过程中出现的问