资源描述:
《基于.单片机的pid温度控制系统》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、南 京 工 业 大 学毕 业 设 计题 目:基于单片机的温度控制系统2011年6月基于单片机的温度控制系统设计摘要近年来随着计算机在社会领域的渗透,单片机的应用正在不断深入,同时带动传统控制检测日新月益更新。在实时检测和自动控制的单片机应用系统时,经常作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构,以及具体应用对象特点的软件结合,以作完善。本文从硬件和软件两方面来讲述水温的自动控制过程,在控制过程中主要应用AT89C51、DS18B20、MAX232等,而主要是通过DS18B20数字温度传感
2、器采集环境温度,以单片机为核心控制部件。软件方面采用汇编语言来进行程序设计,这样可以使指令的执行速度快,节省存储空间。为了便于扩展和更改,软件设计采用模块化结构,使程序设计的逻辑关系更加的简洁明了,使硬件在软件的控制下协调运作。而系统的过程则是:首先,设定恒温运行时的温度值。然后,在运行过程中将采样的温度数字量送入单片机,最后用单片机来控制加热器,进行加热或停止加热,直到能在规定的温度下恒温加热。关键词:单片机系统传感器数据采集模数转换器温度IDESIGNOFTEMPERATURECONTROLSYSTEMBASED
3、ONSCMAbstractInrecentyears,withthecomputerpenetrationinthesocialfield,theapplicationofSCMistokeepatthesametime,traditionalcontroltestingupdateonCrescentbenefits.Inreal-timedetectionandautomaticcontrolsystemofsingle-chipapplications,oftenasasingle-chipcorecompon
4、enttouseonlysingle-chipisnotenoughknowledge,butalsothespecifichardwarestructureandthespecificfeaturesofapplicationsoftwareobjectscombinetomakeperfect.Inthispaper,bothhardwareandsoftwareforautomaticcontrolofwatertemperatureontheprocess,inthecontrolofthemainappli
5、cationoftheprocessofAT89C51,DS18B20,MAX232andsoon,butmainlythroughthedigitaltemperaturesensorDS18B20collectingambienttemperaturetosingle-chipmicrocomputerasthecorecontrolcomponents.Softwareusingassemblylanguageforprogramming,sothattheimplementationofDirectivesp
6、eedtosavestoragespace.Tofacilitatetheexpansionandchange,softwaredesignusingmodularstructure,maketheprogramdesignlogicalrelationshipmoresuccinctly,makethehardwareinthesoftwareunderthecontrolofthecoordinationofoperations.Andsystematicprocessis:Firstofall,settheth
7、ermostattemperatureatthetimeofoperation.Then,intherunningtemperatureoftheprocessofsamplingdigitalintothesingle-chipmicrocomputer,thelastsingle-chipmicrocomputertocontroltheheaterusedforheatingorstopheatinguntilthetemperatureintheprovisionsundertheconstanttemper
8、atureheating.Keywords:Single-chipmicrocomputersystem;Sensor;DataAcquisition;ADC;TemperatureI目录摘要IAbstractII第一章绪论11.1文献综述11.1.1课题的背景及其意义11.1.2单片机温度控制系统的国内外现状21.1.3展望21.2课题的主要