基于51单片机计数传感器的研究和开发.docx
基于51单片机计数传感器的研究和开发
摘要
当今社会可以说在各方面都在飞速的发展中,自动计数器也不例外。自动计数技术已经广泛应用于在各种公众场合以及社会生产中的流水线上自动计数。目前基于51单片机的红外自动计数器广泛有着计数精度高,计数范围广,计数稳定性好等等优点,已经广泛实际应用在社会各行各业中。本设计是基于STC89C51单片机的红外自动计数器设计,采用光电原件作为检测元件的传感器,以这个型号的单片机为核心控制单元,具有精确度比较高,抗干扰能力比较强,并且使用简便等特点。
本设计的设计想法是选择使用红外发射管以及红外接收管作为本设计的传感器,当没有人或者物体遮挡的时候,那么红外接收管发出的红外信号就没有没有任何的遮挡,接收管就会接收信号。相反,就不能接收到信号,那么这个时候STC89C51就会流入一个放大器输出的高电平信号。然后再经过程序的控制,实现显示以及报警功能。本设计计数的实现主要有单片机控制。蜂鸣器和发光二极管作为报警的标志
关键词:传感器,STC89C51单片机,计数器
DesignofInfraredCounterBasedonSingleChipMicrocomputer
Summary
Todayssocietycanbesaidthatinallaspectsoftherapiddevelopmentofautomaticcounterisnoexception.Automaticcountingtechnologyhasbeenwidelyusedinavarietyofpublicplacesandsocialproductionlinesintheautomaticcounting.Atpresent,theinfraredautomaticcounterbasedon51single-chipmicrocomputerhastheadvantagesofhighcountingprecision,widecountingrangeandgoodcountingstability,andhasbeenwidelyusedinallwalksoflife.ThedesignisbasedonSTC89C51single-chipinfraredautomaticcounterdesign,theuseofphotoelectricoriginalasthesensorcomponentstothemodelofthemicrocontrollerasthecorecontrolunit,withhighaccuracy,anti-interferenceabilityisrelativelystrong,andeasytouseandsoon.
Thedesignofthedesignideaistousetheinfraredemissiontubeandinfraredreceiverasthedesignofthesensor,whennooneorobjectocclusiontime,thentheinfraredreceivertubeissuedbytheinfraredsignalisnotwithoutanyblock,thereceiverwillreceivesignal.Onthecontrary,youcannotreceivethesignal,thenthistimetheSTC89C51willflowintoahigh-levelamplifieroutputsignal.Andthenthroughtheprogramcontrol,toachievethedisplayandalarmfunction.TherealizationofthedesigncountmainlySCMcontrol.Buzzerandlight-emittingdiodeasasignofthealarm
Keywords:infraredsensor,STC89C51singlechip,counter
目录
TOC\o1-3\h\z\u第一章前言 1
1.1课题研究的背景和意义