I毕业设计(论文)题目:基于单片机的红外测距系统学院:电子信息学院专业班级:电气工程及其自动化2010级01班指导教师:厉谨职称:讲师学生姓名:柴玉国学号:41003040118I西安工程大学本科毕业设计(论文)摘要现代科学技术的发展,进入了许多新领域,而在测距方面先后出现了激光测距、微波雷达测距、超声波测距及红外线测距。为了实现物体近距离、高精度的无线测量,本文采用红外发射接收模块GP2D12作为距离传感器,单片机作为处理器,编写A/D转换、显示以及与PC机的通信程序,开发了一套便携式的红外距离测量系统,系统可以高精度的实时测量距离,并且将所得距离量通过数码管直接显示出来。本系统结构简单、运行可靠、测量精度高、方便使用,另外本系统形成了一套完善的软硬件开发平台,可以进行扩展、移植和做进一步的开发。关键词:红外测距,STC52单片机,A/D转换,II西安工程大学本科毕业设计(论文)ABSTRACTThedevelopmentofmodernscienceandtechnology,intomanynewareas,hasalaserThedevelopmentofmodernscienceandtechnology,intomanynewareas,hasalaserrangefinderintherangingaspects,rangingofmicrowaveradar,ultrasonicrangingandinfraredranging.Inordertoachievetheobjectsatcloserange,high-precisionwirelessmeasurement,Iusedtheinfraredtransmitterreceivermoduleasthedistancesensor,microcontrollerastheprocessortowritetheA/Dconversion,displayandcommunicationwiththePCprogram,developedawilltopushinfrareddistancemeasurementsystems,high-precisionreal-timesystemcandisplaythemeasureddistance,anddistancemeasuringcanbesentthroughtheserialporttoaPCdisplayprocessing,thesystemstructureissimpleandreliable,smallsize,highaccuracy,easeofuse,whilethissystemtheformationofacompletesetofhardwareandsoftwaredevelopmentplatformcanbeextended,transplantation,andfurtherdevelopment.KEYWORDS:Infrareddistance,STC89C52microcontroller,A/Dconversion目录第一章绪论.........................................................1III西安工程大学本科毕业设计(论文)1.1设计背景..........................................................................................................11.2红外线简介......................................................................................................11.3红外传感器概述..............................................................................................21.3.1红外传感器的分类...............................................................................21.3.2红外线传感器的应用........................................................................5第二章红外测距的方法和原理..........................................62.1几种红外测距原理及选择..............................................................................62.1.1相位测距原理.......................................................................................62.1.2PSD测距原理......................................................................................62.1.3带运动机构的双象比较法原理..........................................................62.1.4时间差测距法原理..............................................................................62.1.5反射能量法原理..................................................................................62.1.6三角法红外测距原理...........................................................................62.1.7红外测距原理的选择..........................................................................7第三章、红外测距的基本结构及系统框图................................83.1红外测距的过程.........................................................