资源描述:
《单片机温度控制系统》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、单片机温度控制系统摘要 本次设计对单片机在温度控制系统中的基本理论和应用技术作了较为全面的介绍。主要目的是用单片机设计一个温度控制器,通过运用PID控制算法,使得温度保持在600度这一恒定温度值上。该控制器具有本机给定和上位机给定的功能。在生产过程自动的发展历程中,PID控制是历史最久、生命力最强的基本控制方式。PID控制是比例积分微分控制的简称。由于模拟PID调节器控制温度的精确模型难以建立,系统的参数又经常发生变化,运用现代控制理论分析综合要耗费很大代价进行模拟辨识,而且不能得到预期的效果,所以本次设计采用
2、PID调节器,由于软件系统的灵活性,PID算法可以得到修正而更加完善。根据不同的测温范围选出合适的温度传感器,单片机把测到的温度进行处理(通过内置PID控制或与上位机通讯,由上位机实现PID控制)后保持恒温输出,来控制执行机构。单片机输出的是数字量,需要经过D/A转换变为模拟量后,才能去控制执行机构。关键词 PID控制器;传感器;8052温度控制AbstractThisdesigncomprehensivelyintroducedthebasictheoriesandapplicationtechnologyoftheM
3、CU(MicroControllerUnit)inthecontrolsystemsoftemperaturethistime.ThemainpurposetodesignonetemperaturecontrollerwithMCU,throughusePIDcontrolalgorithms,maketemperaturekeeponthisinvariabletemperaturevalueof600degrees.Thecontrollerhasthefunctionofgivenbyownmachineandt
4、opmachine.Inthedevelopmentofautomaticproductionprocess,PIDcontrolhasthelongesthistory,strongestvitalitywhichisthebasiccontrolmethod.Itisanabbreviationoftheproportion,integralandderivative.ItisdifficulttobuildaccuratemodelofanalogyPIDregulatortocontroltemperature,
5、thesystematicparameteroftenchanges,usingthemoderncontroltheorytoanalyzeandsynthesizethatshouldconsumeverylargecosttoanalogyidentification,andcan'tgettheanticipatedresult,sothedesignadoptPIDregulator,becauseoftheflexibilityofthesoftwaresystem,PIDalgorithmcanberevi
6、sedmoreperfect.Toelectthesuitabletemperaturesensoraccordingtodifferentexaminingthewarmrange,becausetheoutputofthetemperaturesensorisananalogquantityofchanging,therefore,needtochangeA/Dfirst,transformitintodigitalquantitytosendintothecomputer.AftertheMCUgetstheexa
7、miningtemperatureanddealtit(controlorcommunicatewithtopmachinethroughbuilt-inPID,thetopmachinerealizePIDcontrol)andthenkeepconstanttemperatureexportedtocontrolexecutivebody.WhattheMCUoutputtedisdigitalquantity,needstochangeintoanalogquantity,tocontroltheexecutive
8、body. KeywordsPIDcontroller;A/Dconverter;8051temperaturecontrol目录摘要IAbstractII第1章绪论11.1选题背景及目的11.2发展状况21.3各章节主要内容3第2章系统方案的提出与论证42.1传感器的选择42.2驱动部分52.3PID的算法52.4