基于单片机的红外计数器设计
摘 要
随着当今社会的飞速发展,越来越多的流水线上的产品和各种公共场所需要
进行自动计数。基于单片机构成的产品自动计数器有直观和计数精确的优点,目前已在各种行业中得到广泛应用。数字计数器有多种形式,总体来说有接触式和非接触式两种,在科技发展的今天,非接触式红外计数器得到了广泛的应用。本设计采用一对红外发射接收管作为红外计数器的信号检测头,具有价格低廉,抗干扰性好,结构简单,操作方便等特点。
指导思想是利用红外发光管发射红外线,红外接收管接收此红外线,并将其
放大、整流形成低电平信号.当有人或物挡住红外光时,接收数码管没有接收到红外信号,放大器将输出高电平,同时将这个电平信号送入单片机进行控制计数,并且使数码管显示数值。这样就得到要统计的人或物的数量。
关键字:单片机;红外对射管;LED 数码管
基于单片机的红外计数器设计
Abstract
Rapid development in the pattern of today's society, more and more of the
pipeline of products and a variety of business occasions need to automatically count. Based on SCM products constitute automatic counter has the advantages of intuitive and accurate count, now in a variety ofcommonly used in industry. This article is designed to counter radio-style method using infrared,interference immunity and high reliability.
The design of the guiding idea is to use infrared emission infrared LED, infrared
receiver toreceive the infrared, and enlarge, forming high commutation signal. When persons or blockinfrared light, the receiver does not receive infrared control signals, the amplifier the output low,while the level control signal into the microcontroller counts, and by decoding the digital displaydrive circuit values. This will be the number of persons or things to statistics.
The AT89C51 microcontroller chip design applications as a core, 4 LED digital
tube, the useof infrared LM324 chip count, and add the alarm function. This implementation method has theadvantage of simple circuit, reliable, real-time, simple operation, easy programming and so on.
Key words: SCM; infrared shooting tube; LED digital tube
基于单片机的红外计数器设计
目 录
摘 要 ........................................................................................................................................................... I Abstract ..................................................................................................................................................... II 1 绪论...................................................................................................................................................... 1
1.1 前言 ......................................................................................................................................... 1
1.2 背景与意义 ........................................................................................................................... 1
1.2.1 国内外研究的概况.................................................................................................... 1
1.2.2 研究主要成果 ............................................................................................................. 2
1.2.3 发展趋势 ...................................................................................................................... 3
1.3 设计任务 ................................................................................................................................ 4
2 基于单片机构成的产品自动计数器的设计 ................................................................... 5
2.1 方案论证与选择 .................................................................................................................. 5
2.2 系统总体框图和原理 ......................................................................................................... 6
2.3 主控芯片简介 ....................................................................................................................... 7
2.3.1 单片机的发展及趋势 ............................................................................................... 7
2.3.2 51系列单片机的主要特点 ..................................................................................... 8 3 红外线计数器硬件设计 ............................................................................................................... 11
3.1 单片机最小系统的设计 .................................................................................................. 11
3.2 红外线检测电路 ............................................................................................................... 12
3.2.1 红外线发射电路 ...................................................................................................... 12
3.3 计数显示部分 .................................................................................................................... 12
3.4 蜂鸣器报警电路 .................................................................................................................. 13 4 红外线计数器软件设计 ................................................................................................................. 13
4.1 主程序设计 .................................................................................................................... …… 此处隐藏:12609字,全部文档内容请下载后查看。喜欢就下载吧 ……