温度控制系统设计报告TEMPERATURE AUTOCONTROL SYSTEM中国·王文涛、志超、喻伟2009-8-8摘要本系统主要基于 DS18B20 和 51 单片机为核心来实现系统的温度自动化控制,通过使用 PID 算法和 PWM 脉宽调制实现温度的精确控制,由温度传感器返回温度值后与设定温度比较,经过单片机的处理后发出相应的控制信号使一定空间围的温度保持基本恒定,通过实际应用加深对系统设计和 PID 算法的理解,提高应用能力。关键词: PID 算法 DS18B20 温度控制 51 单片机Abstract:This system mainly based on DS18B20 and 51 single-chip microcomputer as the core to realize automation control system of temperature, through the use of PID algorithm and PWM pulse width modulation realize accurate temperature control of the temperature sensor, the temperature and the temperature returned after comparison, through the processing chip out the corresponding control signal after that certain space within the scope of the temperature is kept constant, through the actual application of the basic of system design and PID algorithm of understanding, improve application ability.Keyword :PID algorithm DS18B20 temperature control 51-series microcomputer设计要求:1、基本要求① 容器环境温度设定围:,最小区分度为 1℃;② 当容器环境温度降低时(例如用电风扇降温),温度控制的静态误差≤1℃;③ 显示容器环境的实际温度。2、发挥部分① 采纳适当的控制方法,当设定容器环境温度突变(由 30℃提高到 50℃)时,减小系统的调节时间和超调量,同时自动打印其温度随时间变化的曲线;② 温度控制的静态误差≤0.2℃;③ 采纳发光二极管光柱形式和数码形式显示白炽灯灯壁上的温度;④ 其它。基本设计思路:由题目要求可知,本系统对温度控制的精度要求比较高,因此考虑使用PID 控制来控制系统温度,而热源的控制采纳 PWM 波来进行精确控制。由温度传感器来传回温度数据,由单片机处理数据并发出相应的动作,从而保证温度的恒定。方案论证:(1)温度传感器方案一: 采纳 AD590 作温度传感器,AD590 是一种恒流源形式的温度传感器,只要在其二端加上一定工作电压,则其输出电流随温度变化而...