2、码管显示数值。这样就得到要统计的人或物的数量。本设计应用单片机AT89C51芯片作为核心,4位LED数码管,使用LM324芯片实现红外线计数,并且添加了报警功能。这种实现方法的优点是电路简单,性能可靠,实时性好,操作简单,编程容易等。关键词:单片机;红外对射管;LM324;蜂鸣器;LED数码管Rapid development in the pattern of today's society, more and more of the pipeline of products and a variety of businessoccasions need to auto
3、matically count. Based on SCM products constitute automatic counter has the advantages of intuitive and accurate count, now in a variety of commonly used in industry.This article is designed to counter radio-style method using infrared, interference immunity and high reliability. The des
4、ign of the guiding idea is to use infrared emissioninfrared LED, infrared receiver to receive the infrared, and enlarge, forming high commutation signal. When persons or block infrared light, the receiver does not receive infrared control signals, the amplifier the output low, while the l
5、evel control signal into the microcontroller counts, and by decoding the digital display drive circuit values. This will be the number ofpersons or things to statistics. The AT89C51 microcontroller chip design applications as a core, 4 LED digital tube, the use of infrared LM324 chip coun
6、t, and add the alarm function. This implementation method has the advantage of simple circuit, reliable, real-time, simple operation, easy programming and so on. Key words: SCM; infrared shooting tube; LM324; Buzzer LED digital tube 一绪论1.前言在当今社会飞速发展的今天,厂家基本采用流水线技术进行产品生产作业,而怎样对其线上的产品进行