编号:201234140143本科毕业设计基于单片机的无线远程温度监控系统设计系院:信息工程学院姓名:学号:0835140143专业:通信工程年级:2008级指导教师:职称:副教授完成日期:2012年5月摘要II本文论述的远程温度控制是将无线发射与接收和自动控制相结合的一种控制。基于这种技术,本系统以AT89S51系列单片机为控制单元,采用Dallas单线数字温度传感器DS18B20和无线收发模块NRF24L01对试验现场温度数据进行远程无线测量与控制。整个系统包括主、从两个子系统,其中主系统完成对试验现场设定温度值、设定值显示、实际值显示、失控报警和接收数据功能;子系统完成温度采集、温度控制和发送数据功能。该系统结构简单实用、功能齐全,通用性强,可被应用于许多工业生产领域,它可使操作人员与恶劣的工作环境分离开来,实现生产自动化,提高企业的生产效率。关键词:AT89S51;温度传感器;NRF24L01;显示;报警IIIAbstractThelong-distancetemperaturecontrollingthispaperpresentsisatechnologyoflinkingwirelessreceivingandsendingtoautomation.Basedonthetechnology,thesystemisbasedonthecontrolofAT89S51SCM,usingDallassinglelinedigitalthermometerDS18B20,wirelessreceivingandsendingmoduleNRF24L01totestandcontrolthetemperaturedataofaexperiencingplace.Thewholesystemconsistsofthemainsystemandsubsystem.Themainsystemcompletesthefunctionsofinitializinganddisplayingthetemperaturevalue,displayingactualtemperature,alarmingwhenitisoutofcontrol,andreceiving.Thesubsystemcompletesthefunctionsofreceiving,andtemperaturecollecting,controlling,andsending.Thedesignconcludesthatthissystemhasmanyadvantages,suchasitsuniqueness,simple,convenience,andsuchcommonusing.Itcanbewidelyusedinlotsofindustrialproducingandcontrollingfields,applyingthissystemcandepartoperatorsfromexecrableenvironment,realizeproducingautomation,andimprovecorporation’sproducingefficiency.Keywords:AT89S51;Temperaturesenior;NRF24L01;Display;WarningIV目录1绪论......................................................................................................................................11.1选题的目的和意义.......................................................................................................11.2国内外研究现状...........................................................................................................21.3本设计主要研究内容...................................................................................................22设计要求与方案论证..........................................................................................................32.1设计要求.......................................................................................................................32.2系统基本方案选择和论证...........................................................................................32.2.1单片机芯片选择方案与论证................................................................................32.2.2温度采集模块选择方案与论证............................................................................32.2.3无线收发模块的选择方案与论证........................................................................42.2.4显示模块的选择方案与论证................................................................................42.2.5报警模块的选择方案与论证................................................................................42.3电路设计最终方案的确定...........................................................................................53系统的硬件设计与实现......................................................................................................63.1系统硬件概述...............................................................................................................63.2主要单元电路的设计...................................................................................................63.2.1单片机主控制模块的设计....................................................................................63.2.2温度采集电路模块的设计....................................................................................83.2.3无线收发电路模块的设计....................................................................................83.2.4显示电路模块的设计..........................................................................................103.2.5报警电路模块的设计..........................................................................................113.2.6电路原理及说明..................................................................................................124系统程序的设计................................................................................................................134.1主程序的设计.............................................................................................................134.2发射系统程序的设计.................................................................................................164.3传输程序的设计.........................................................................................................16V4.4温度采集程序的设计.................................................................................................174.5显示程序的设计.........................................................................................................185仿真与调试........................................................................................................................206结论....................................................................................................................................23参考文献................................................................................................................................24致谢....................................................................................................