基于单片机的数字温度计的设计摘要本文描述了基于AVR,51单片机和温度传感器等器件设计的数字温度计电路的设计原理和实现方法。运用主从分布式的思想,由一台上位机、一台下位机构成多点温度数据采集系统,组成两级分布式多点温度测量的巡回检测系统,系统采用串行通信标准,通过上位机控制下位机进行现场温度采集,温度值既可以送回主控机PC进行数据处理,由显示器显示,也可以由下位机单独操作,实时显示当前各点的温度值,对各点进行控制。硬件包括:电源电路、显示电路、温度测试电路,报警电路,串行通信电路等。系统最大特点在于其软件设计使用层次化、模块化设计方法。经调试和测试,系统各项性能指标参数完全达到设计指标。系统采用C语言进行编程,易于维护和修改。方案介绍了数字温度计系统的整体功能;其次介绍了各个模块的硬件模块电路设计,说明了相应元器件的选择和应用,阐述了各部分控制原理和软件调试。关键词:AVR;多点采集;无线传输BasedonthedesignofsinglechipdigitalthermometerAbstractThispaperdescribesthetemperaturesensorbasedonAVR,51microcontrollerandotherdevicesdesigneddigitalthermometercircuitdesignprinciplesandimplementation.Thoughttheuseofmaster-slavedistributedbyastagecrew,multi-pointtemperaturelowermachinedatacollection,composedoftwodistributedmulti-pointtemperaturemeasurementcircuitdetectionsystem,thesystemusesaserialcommunicationstandard,throughthePCbitmachineunderthecontrolofscenetemperatureacquisition,temperaturereturnedtothehostcomputereitherPCfordataprocessing,thedisplaycanalsobeaseparateoperationfromthenext-bitmachines,real-timedisplaysthecurrenttemperaturevalueofeachpointonthecontrolpoints.Hardwareincludes:powersupplycircuit,displaycircuit,temperaturetestingcircuit,alarmcircuit,theserialcommunicationcircuit.Mostimportantfeatureofthesystemsoftwaredesignedforuseinitshierarchical,modulardesign,simplemathematicalmodelandcontrolalgorithmwasabletosimplifyandspeeddevelopment.Thedebuggingandtesting,systemperformanceparametersfullymeetthedesignspecifications.SystemusestheCprogramminglanguage,easytomaintainandmodify.Programintroducesthesystem'soverallfunctiondigitalthermometer;nextintroducedeachmodulehardwarecircuitdesign,describestheselectionandapplicationofthecorrespondingcomponents,describesthevariouspartsofcontroltheoryandsoftwaredebugging.keywords:AVR;Multi-pointacquisition;Wireless目录论文总页数:34页目录.........................................................................................................................................11引言.......................................................................................................................................11.1课题背景及意义........................................................................................................11.2国内外的研究现状....................................................................................................11.3课题的研究内容........................................................................................................11.4课题的研究目的........................................................................................................12系统的方案设计与选择........................................................................................................12.1上位机电源模块论证与选择....................................................................................12.2LCD显示模块方案论证与选择...............................................................................22.3按键模...