文档介绍:基于单片机的恒温控制系统设计
摘要:本设计的温度测量及加热控制系统以AT89S52单片机为核心部件,外加温度采集电路、键盘及显示电路、加热控制电路和越限报警等电路。采用单总线型数字式的温度传感器DS18B20,及行列式键盘和动态显示的方式,以容易控制的固态继电器作加热控制的开关器件。本作品既可以对当前温度进行实时显示又可以对温度进行控制,以使达到用户需要的温度,并使其恒定在这一温度。人性化的行列式键盘设计使设置温度简单快速,两位整数一位小数的显示方式具有更高的显示精度。建立在模糊控制理论上的控制算法,使控制精度完全能满足一般社会生产的要求。通过对系统软件和硬件设计的合理规划,发挥单片机自身集成众多系统级功能单元的优势,在不减少功能的前提下有效降低了硬件成本,系统操控简便。
关键词:单片机恒温控制模糊控制
Abstract: The design of the temperature measurement and heating control systems to AT89S52 microcontroller ponent, plus the temperature acquisition circuit, keyboard and display circuit, heating circutal temperature sensor DS18B20, and the determinant of the keyboard and dynamic display in order to easily control the solid-state relays for heating control of the switching device. This works both on the current temperature in real-time display of temperature can be controlled in order to enable users to reach the required temperature, and make it constant at this temperature. Humanized design keyboard determinant temperature easy Express, the two decimal integer, a display shows a higher accuracy. Set up in the fuzzy control theory, control algorithms, so that the control accuracy can meet the general requirements of social production. Through the system software and hardware design of rational planning, exert their own single-chip integration of many system-level functional unit of the advantages, does not reduce the functions at the premise of effectively reducing the cost of hardware, the system easy to manipulate.
Key words: microcontroller, temperature control, fuzzy control
温度是工业生产中主要的被控参数之一,与之相关的各种温度控制系统广泛应用于冶金、化工、机械、食品等领域。温度控制是工业生产过程中经常遇到的过程控制,有些工艺过程对其温度的控制效果直接影响着产品的质量,因而设计一种较为理想的温度控制系统是非常有价值的。
本设计的温度测量及加热控制系统以AT89S52单片机为核心部件,外加温度采集电路、键盘及显示电路、加热控制电路和越限报警等电路。采用单总线型数字式的温度传感器DS18B20,及行列式键盘和动态显示的方式,以容易控制的固态继电器作加热控制的开关器件。℃的静态误差,℃的控制精度,%的超调量,因而本设计具有很高的可靠性和稳定性。
设计中采用了两个方案,具体的方案见方案一和方案二。
方案一:
温度测量及加热系统控制的总体结构如图1所示。系统主要包括现场温度采集、实时温度显示、加热控制参数设置、加热电路控制输出、与报