资源描述:
《毕设--单片机测距》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于单片机的汽车防撞报警器设计摘要:随着科学技术的快速发展,超声波将在科学技术中的应用越来越广。本文对超声波传感器测距的可能性进行了理论分析,利用模拟电子、数字电子、微机接口、以及超声波在介质的传播特性等知识,采用以C8051f020单片机为核心的低成本、高精度、微型化数字显示超声波测距的硬件电路和软件设计方法在此基础上设计了系统的总体方案,最后通过硬件和软件实现了各个功能模块。为了保证超声波测距传感器的可靠性和稳定性,采取了相应的抗干扰措施。就超声波的传播特性,超声波发射、接收电路,LCD显示电路,
2、语音提示电路及系统功能软件等做了详细说明.实现障碍物的距离测试、显示和报警,超声波测距范围2cm-450cm,精度在1毫米左右。这套系统软硬件设计合理、抗干扰能力强、实时性良好,经过系统扩展和升级,可以用于倒车雷达、建筑施工工地以及一些工业现场,例如:测量液位、井深、管道长度等场合。可以广泛应用于工业生产、医学检查、日常生活、无人驾驶汽车、自动作业现场的自动引导小车、机器人、液位计等。关键词:C8051f020,超声波传感器,LCD1602,ISD4004TheDesignofvehiclecolli
3、sionavoidancealarmBasedonMicrocontrollerAbstract:Alongwiththescienceandtechnologyfastdevelopment,theultrasonicwavemoreandmorewillbebroadinthescienceandtechnologyapplication.Thisarticlehascarriedonthetheoreticalanalysistotheultrasonicsensorrangefinderpos
4、sibility,theusesimulationelectron,thedigitalelectron,themicrocomputerconnection,theultrasonicwavetransducer,aswellastheultrasonicwaveinmediumknowledgeandsoondisseminationcharacteristic,usestakeC8051f020monolithicintegratedcircuitasthecorelowcost,thehigh
5、accuracy,themicrominiaturizednumeraldemonstratedtheultrasonicwavedistancegaugethehardwareelectriccircuitandthesoftwaredesignmethodhasdesignedthesystemoverallconceptinthisfoundation,finallyhasrealizedeachfunctionmodulethroughthehardwareandthesoftware.Ino
6、rdertoensurethereliabilityandstabilityoftheultrasonicsensor,adoptsthecorrespondingantiinterferencemeasures.Ultrasonicpropagationproperties,ultrasonictransmittingandreceivingcircuit,LCDdisplaycircuit,avoicealarmcircuitandsystemsoftwarearedescribedindetai
7、ls.Toachieveobstacledistancemeasurement,displayandalarm,ultrasonicrangefinder2cm-450cm,accuracyofabout1mmin.Thissetofsystemhardwareandsoftwaredesignisreasonable,stronganti-interferenceability,goodperformanceofreal-time,afterthesystemexpansionandupgrade,
8、canbeusedforreversingradar,thebuildingconstructionworksite,someindustryscene,forexample:tomeasureliquidlevel,depth,thelengthofthepipeline.Canbewidelyusedinindustrialproduction,medicalexamination,dailylife,unmannedaerialvehicles,a