I创作编号:GB8878185555334563BT9125XW创作者:凤呜大王*II毕业论文设计基于51单片机的温度控制系统III摘要在日常生活中温度在我们身边无时不在,温度的控制和应用在各个领域都有重要的作用。很多行业中都有大量的用电加热设备,和温度控制设备,如用于报警的温度自动报警系统,热处理的加热炉,用于融化金属的坩锅电阻炉及各种不同用途的温度箱等,这些都采用单片机技术,利用单片机语言程序对它们进行控制。而单片机技术具有控制和操作使用方便、结构简单便于修改和维护、灵活性大且具有一定的智能性等特点,可以精确的控制技术标准,提高了温控指标,也大大的提高了产品的质量和性能。由于单片机技术的优点突出,智能化温度控制技术正被广泛地采用。本文介绍了基于单片机AT89C51的温度控制系统的设计方案与软硬件实现。采用温度传感器DS18B20采集温度数据,7段数码管显示温度数据,按键设置温度上下限,当温度低于设定的下限时,点亮绿色发光二极管,当温度高于设定的上限时,点亮红色发光二极管。给出了系统总体框架、程序流程图和Protel原理图,并在硬件平台上实现了所设计功能。关键词:单片机温度控制系统温度传感器IVAbstractIndailylife,thetemperatureinoursidetheever-present,thecontrolofthetemperatureandtheapplicationinvariousfieldsallhaveimportantrole.Manyindustrytherearealargenumberofelectricheatingequipment,andthetemperaturecontrolequipment,suchasusedforalarmautomatictemperaturealarmsystems,heattreatmentfurnace,usedtomeltmetalcrucibleresistancefurnace,andallkindsofdifferentUSESoftemperatureboxandsoon,theseusingsinglechipmicrocomputer,usingsinglechipcomputerlanguageprogramtocontrolthem.Andsingle-chipmicrocomputertechnologyhascontrolandconvenientinoperation,easytomodifyandmaintenanceofsimplestructure,flexibilityislargeandhassomeoftheintelligenceandothercharacteristics,wecanaccuratelycontroltechnologystandardtoimprovethetemperaturecontrolindex,alsogreatlyimprovethequalityoftheproductsandperformance.Becauseoftheadvantagesofthesinglechipmicrocomputerintelligenttemperaturecontroltechnologyoutstanding,isbeingwidelyadopted.ThispaperintroducesthetemperaturecontrolbasedonsinglechipmicrocomputerAT89C51designschemeofthesystemandthehardwareandsoftwareimplementation.ThetemperaturesensorDS18B20collectiontemperaturedata,7periodofdigitalpipedisplay,theupperandlowerlimitsoftemperaturebuttonwhentemperaturebelowthesettingofthelowerlimit,lightgreenleds,whenthetemperatureishigherthanthesetonthelimit,lightredleds.Giventhesystemframeworkandprogramflowchartandprinciplechart,andinProtelhardwareplatformtorealizethefunctionofthedesign.Keywords:SCMTemperaturecontrolsystemTemperaturesensorsV目录摘要...........................................................................................................................IIABSTRACT...........................................................................................................IV第一章前言.............................................................................................................1创作编号:GB8878185555334563BT9125XW创作者:凤呜大王*1.1温度控制系统设计发展历史及意义..................................................................................11.2温度控制系统的目的..........................................................................................................11.3温度控制系统完成的功能..................................................................................................1第二章总体设计方案.............................................................................................22.1方案一..................................................................................................................................22.2方案二..................................................................................................................................33.1DS18B20简介.......................................................................................................................6VI3.1.1DS18B20封装与引脚.....................................................................................................63.1.2DS18B20的简单性能...................................................................................................63.2DS18B20的工作原理......................................................................................73.3DS18B20的测温原理......................................................................................83.3.1测温原理:....................................................................................................................83.3.2DS18B20的温度采集过程.........................................................................................11第四章单片机接口设计.......................................................................................124.1设计原则............................................................................................................................124.2单片机引脚连接................................................................................................................124.2.1单片机引脚图............................................................................................................124.2.2串口引脚....................................................................................................................13第五章硬件电路设计...........................................................................................145.1主要硬件电路设计............................................................................................................145.2软件系统设计....................................................................................................................185.2.1软件系统设计............................................................................................................185.2.2程序组成............