资源描述:
《基于单片机的温度检测与控制》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、毕业设计[论文]题目:系别:电气与电子工程系专业:河南城建学院2011年05月20日摘要工业生产中温度控制具有单向性、时滞性、大惯性和时变性的特征,要实现温度控制的快速性和准确性,对于提高产品质量具有很重要的现实意义。课题针对温度控制的特点及实现准确温度控制的意义,设计了一种基于单片机的控制系统。设计内容包括硬件和软件两个部分。硬件电路以AT89S52单片机为微处理器,详细设计了温度信号采样电路,键盘及显示电路,温度控制电路,报警电路,时钟信号电路。软件部分主要对PID算法进行了数学建模和编程。PID参数整定采用的是归一参数整定法
2、。本设计由键盘电路输入设定温度信号给单片机,温度信号采集电路采集现场温度信号给单片机,单片机根据输入与反馈信号的偏差进行PID计算,输出控制信号给温度控制电路,实现降温。显示电路实现现场温度的实时监控。本系统实现简单,硬件要求不高,且能对温度进行时实显示,具有控制过程的特殊性,本设计提出了一种基于PID算法来实现恒温控制的温度控制系统,主要是为了达到生产过程中对温度控制速度快,准确性高等特点。关键词PID算法温度控制43ABSTRACTIndustrialproductionisaone-waytemperaturecontrol
3、,delay,theinertiaandtime-varyingcharacteristics,Toachievetherapidtemperaturecontrolandaccuracy,improvingthequalityofproductsisaveryimportantpracticalsignificance.Thetemperaturecontrolissuesagainstthecharacteristicsandachieveprecisecontroloftemperature,Basedonthedesign
4、ofaPIDtemperaturecontrolsystem.Designelementsincludehardwareandsoftwareintwoparts.HardwarecircuittoAT89S52MCUformicroprocessors,forthedetaileddesignofthemicrocontrollertoprovideelectricitysupplycircuit,Temperaturesignalsamplingcircuit,keyboardanddisplaycircuits,suchas
5、heatingcontrolcircuitfourcircuitmodule.SoftwaremajorpartofthePIDalgorithmisamathematicalmodelingandprogramming.PIDtuningparametersareusedtoafixedparameter.Thecircuitdesignofthekeyboardinputfromthesettemperaturesignaltothemicrocontroller,TemperatureSignalAcquisitionCir
6、cuitcollecttemperaturesignaltothemicrocontroller,AccordingtoSCMinputandfeedbacksignal,theerrorforPID,theoutputcontrolsignalstotheheatingcontrolcircuit,Heatingandachievestop.Showcircuitsceneofthereal-timemonitoringoftemperature.Thesystemissimple,andhardware,butalsother
7、eal-timetemperature,withtheparticularityofthecontrolprocess,ThedesignofaPIDalgorithmbasedonthetemperaturecontroltoachievethetemperaturecontrolsystem,themainaimistoachievetheproductionprocessforthetemperaturecontrolspeed,highaccuracy.KeywordPIDalgorithmtemperaturecontr
8、ol43目录第一章绪论11.1引言11.2方案的论证31.2.1方案一利用单片机实现温度控制系统31.2.2方案二利用PLC实现恒温控制系统31.2.3方案三利用模拟PID调节的恒温控制系统41.3设计方案4第二章温度检测与控制系统的硬件设计62.