资源描述:
《红外光学应用》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、红外光与单片机系统的传输与控制设计摘要本文介绍了以AT89S52单片机为核心部件开发的光传感器实验系统。该系统能实现对光照度的测量以及控制,并能与PC机进行串行通信。本实验系统主要包括光源、测量放大电路、A/D转换、单片机、LED显示、D/A转换、串行通信接口、软件等部分。主要功能包括:通过LED显示器显示测得的光照度,并能通过D/A转换来控制光源(发光二极管)的发光强度;可实现单片机与PC机的串行通信,通过PC机对从单片机采集的数据进行处理并控制发光二极管的发光强度;单片机也可自动控制发光二极管的发光
2、强度,使光敏二极管的光照度达到设定值。本文首先介绍了系统的总体组成,然后分硬件和软件两部分进行阐述,最后对调试过程进行介绍。硬件部分先描述了整体结构和各模块的相互关系,然后分模块进行具体分析,对于部分元器件做了简要的介绍。软件部分采用模块化设计。在主程序模块下分成若干彼此独立的分模块,对各个分模块进行设计,最后由各分模块构成系统软件。本系统中,单片机的程序设计采用汇编语言,PC机上的通信软件采用VisualBasic6.0设计。ABSTRACTThispaperintroducestheexperime
3、ntalsystemofopticalsensorwhichdevelopedbyusingSCMAT89S52asahardcore.Thissystemisabletomeasureandcontroltheilluminationintensity,andcommunicatewithPersonalComputerbyCOMport.Thissystemincludeslightsource,measureandenlargeelectrocircuit,A/Dexchange,SCM,LEDd
4、isplay,D/Aexchange,COMport,softwareandsoon.Themainfunctionincludes:displayingilluminatingvalueofphotosensitivediodebyusingLEDDisplay,controllingilluminationintensityoflightsource(LBD)byusingD/Aexchange;implementingserialcommunicationbetweenSCMandPC,proce
5、ssingthedatagatheredfromSCMbyPCandcontrollingilluminationintensityofLBD,theSCMinthissystemcanalsoauto-controlsilluminationintensityofLBD,achievingtheilluminatingvalueofphotosensitivediodetothesetvalue.Inthispaper,firstly,thewholecomponentsofthissystemare
6、introduced,thenthehardwareandthesoftwareareexplainedrespectivelyandthedebugprocessisintroducedbriefly.Thehardwarepartdepictstherelationbetweenthewholestructureandmodulesatfirst,andthenintroduceseachmoduleconcretely,includingbriefpresentationofsomecompone
7、nts.Thesoftwarepartisdesignedonmoduleswhichcouldbedividedintosubmodulesinthemainprogram.Thosemodulesaredesignedfirstly,andthen,thesoftwaresystemisconstructedbythosemodules.Inthissystem,assemblelanguageisusedforprogrammingSCM,andVisualBasic6.0isusedforpro
8、grammingcommunicationsoftwareonPCKeywords:OpticalSensor;Illuminationintensity;SCM;Serialcommunication华工继续教育学院2005届电信毕业设计第40页目录1绪论11.1开发背景11.2开发动机及目的1华工继续教育学院2005届电信毕业设计第40页1.3研究手段及可行性分析22系统组成及工作原理33硬件设计43.1光源43.1.1光源选取43.1