基于单片机的红外测距系统-柴玉国

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

I毕业设计(论文)题目:基于单片机的红外测距系统学院:电子信息学院专业班级:电气工程及其自动化2010级01班指导教师:厉谨职称:讲师学生姓名:柴玉国学号:41003040118西安工程大学本科毕业设计(论文)I摘要现代科学技术的发展,进入了许多新领域,而在测距方面先后出现了激光测距、微波雷达测距、超声波测距及红外线测距。为了实现物体近距离、高精度的无线测量,本文采用红外发射接收模块GP2D12作为距离传感器,单片机作为处理器,编写A/D转换、显示以及与PC机的通信程序,开发了一套便携式的红外距离测量系统,系统可以高精度的实时测量距离,并且将所得距离量通过数码管直接显示出来。本系统结构简单、运行可靠、测量精度高、方便使用,另外本系统形成了一套完善的软硬件开发平台,可以进行扩展、移植和做进一步的开发。关键词:红外测距,STC52单片机,A/D转换,西安工程大学本科毕业设计(论文)IIABSTRACTThedevelopmentofmodernscienceandtechnology,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西安工程大学本科毕业设计(论文)III目录第一章绪论.........................................................11.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红外测距的过程...........................................................................................83.2红外测距系统框图.........................................................................................94.1单片机最小系统模块....................................................................................114.1.1STC89C52单片机...............................................................................114.1.2单片机的最小系统.............................................................................154.2数据传输模块(程序下载电路)................................................................184.2.1USB转串口........................................................................................184.2.2MAX232芯片....................................................................................194.2.3小结.....................................................................................................214.3电源电路........................................................................................................224.4数码管显示电路............................................................................................23西安工程大学本科毕业设计(论文)IV4.4.174HC595.............................................................................................234.4.2数码管.................................................................................................244.4.3数码管显示电路原理图.....................................................................264.5ADC0832.......................................................................................................264.6GP2D12测距模块.........................................................................................28第五章软件模块设计.................................................305.1程序设计步骤................................................................................................305.2软件设计框图................................................................................................305.3Proteus仿真...................................................................................................31第六章测量精度分析.................................................34附录.............................................................36附录1:测距电路原理图...................................................................................36附录2:测距程序............

1 / 46
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功