(2014届)毕业设计题目:基于PID的温度控制系统设计学院:********专业:电气工程及其自动化班级:电气***学号:**********姓名:某某某指导教师:某某某教务处制年月日诚信声明我声明,所呈交的论文是本人在老师指导下进行的研究工作及取得的研究成果。据我查证,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得______或其他教育机构的学位或证书而使用过的材料。我承诺,论文中的所有内容均真实、可信。论文作者签名:签名日期:年月日授权声明学校有权保留送论文交的原件,允许论文被查阅和借阅,学校可以公布论文的全部或部分内容,可以影印、缩印或其他复制手段保存论文,学校必须严格按照授权对论文进行处理,不得超越授权对论文进行任意处置。论文作者签名:签名日期:年月日基于PID的温度控制系统设计摘要温度是工业上最基本的参数,与人们的生活紧密相关,实时测量温度在工业生产中越来越受到重视,离不开温度测量所带来的好处,因此研究控制和测量温度具有及其重要的意义。本设计介绍了以AT89C52单片机为主控器件,基于PID的温度控制系统的设计方案和设计的基本原理。由DS18B20收集温度信号,并以数字信号的方式送给单片机进行处理,从而达到温度控制的目标。主要包括硬件电路的设计和系统程序的设计。硬件电路由主控器件、温测电路、温控电路和显示电路等组成。软件设计部分包括:显示电路、温度信号处理,超温警报、继电器控制、按键处理等程序。关键词:温度检测,温度控制,PID算法DesignofTemperatureControlSystemBasedonPIDAbstractTemperatureisthemostbasicparametersofindustrialandcloselyrelatedwithpeople'slives,real-timemeasurementoftemperatureinindustrialproductionandmoreattention,whichisinseparablefromthebenefitsofthetemperaturemeasurement,temperaturecontrolandmeasurementstudythereforehasitssignificance.ThisdesignintroducesthebasicprinciplestoAT89C52microcontroller-basedcontrollerpiecestemperaturecontrolsystemdesignanddesign.CollectedbytheDS18B20temperaturesignal,anddigitalsignalsentbywayofthemicrocontrollerforprocessing,soastoachievethetargettemperaturecontrol.Includingthedesignofhardwarecircuitdesignandsystemprograms.Hardwarecircuitincludesamasterdevice,thetemperaturemeasuringcircuit,temperaturecontrolcircuitanddisplaycircuit.Softwaredesign,including:displayelectrical,temperature,signalprocessing,over-temperaturealarm,relaycontrol,keyhandlingprocedures.Keywords:temperaturedetection,temperaturecontrol,PIDalgorithm目录摘要...........................................................................................................................IIAbstract........................................................................................................................III1绪论.............................................................................................................................01.1课题的来源.....................................................................................................01.2课题的意义.....................................................................................................01.3课题研究的主要内容.....................................................................................02硬件设计.....................................................................................................................22.1单片机控制模块的设计.................................................................................22.1.1AT89C52单片机简介..........................................................................22.1.2单片机的引脚功能..............................................................................32.1.3单片机控制模块的电路设计..............................................................42.1.4电源设计..............................................................................................52.2温度采集模块的设计.....................................................................................62.2.1DS18B20芯片的简介..........................................................................62.2.2DS18B20的内部结构..........................................................................72.2.3DS18B20的供电方式..........................................................................92.2.4DS18B20的引脚功能..........................................................................92.3温度控制模块的设计...................................................................................102.4按键及显示模块的设计...............................................................................122.4.1LCD1602的参数和引脚功能............................................................132.4.2LCD1602的特点................................................................................142.4.3按键电路的设计................................................................................142.5报警模块的设计...........................................................................................153软件设计...................................................................................................................173.1主程序的设计...............................................................................................173.2DS18B20读温度程序的设计.......................................................................173.3键盘扫描程序的设计...................................................................................183.4报警处理程序的设计...................................................................................193.5PID控制算法.................................................................................................194系统仿真...................................................................................................................23参考文献......................................................................................................................28致谢..............................................................................................................................29附录................................................................