论文>通信/电子论文>单片机闭环温度控制系统

单片机闭环温度控制系统

编号:36-19743 | doc 格式 | 787.00K | 24 页
单片机闭环温度控制系统
1.3万字 24页
有详细设计图


摘要
本文介绍了一种PID水温控制系统。该系统利用单片机可以方使地实现对PID参数的选择与设定;也可以通过计算机与单片机的串行通讯,实现工业过程中的交互式PID控制。它是用温度传感器将检测到的实际炉温A/D转换,送入计算机中,与设定值进行比较,得出偏差。对此偏差按PID算法进行修正,求得对应的控制量控制可控硅驱动器,调节电炉的加热功率,从而实现对炉温的控制。因此采集的炉温数据精度至关重要。利用89C51单片机实现温度智能控制,能自动完成数据采集、处理、缓冲、转换、并进行PID实施控制和键盘终端处理及显示,包括各参数数值的修正。但在控制过程中应该注意,采样周期不能太短,否则使调节过于频繁,不但执行机构不能反应,而且计算机的利用率大为降低。采样周期太长,也是不合适,因为干扰无法及时消除,使调节品质下降。随着单片机在各行业控制系统中的普遍采用,其构成的实时控制系统日臻完善,使该温度控制系统的总体性能大大提高,功能更趋完善,并详细介绍了该系统的软、硬件实施手段及系统特点。

关键词:单片机;PID算法;串行通讯;热电偶;温度控制


Abstract

This text introduced a kind of PID water temperature control system. It can choose and modify the PID parameters by SCM expediently. Moreover, via communication between the Computer and SCM, It can visually control the industry process temperature with the extensive PID arithmetic. It is an actual cooker to spreads to feel with the temperature machine will examine temperature A/ D conversion, sending into the computer inside, proceeding the comparison with the initial value, having to out the deviation. Press PID calculate way to proceed the correction to this deviation, beg to should of the control measures the control can control the silicon drives the machine, regulating the heating power of the electric stove, thereby realize to the control of the cooker temperature . Therefore the cooker temperature data accuracy that collects is very importance. Make use of 89 C51s the single a machine realizes temperature intelligence control, can complete automatically the data collect, handles, buffer, convert, combining the proceeding PID puts into practice the control handles and show with the keyboard terminal, including the correction of each parameter number. But should notice in control process, adopt the kind period can't be too short, make regulate otherwise too multifarious, not only carry out the organization can't respond, but also the utilization of the computer is big for lower. Adopt the kind period too long ,also is not fit, because interference can't on time dissolve, make regulate the quality descent. Along with the single a machine in each profession control system of widespread adoption, its component and real time controls the system more perfected, Make the total function of that temperature control system increases consumedly, the function is gradually perfect, combining detailed introducing that system of soft, the hardware puts into practice means and system characteristics.

Keywords: Single chip computer; PID arithmetic; serial communication; thermoelectric couple; Temperature control



目 录

摘要
Abstract

前言
第一章 硬件电路设计
1.1 主机电路的设计
1.2 I/O通道的硬件电路的设计
1.2.1 数据采集电路的设计
1.2.2电控制执行电路的设计
1.3 键盘及显示的设计
1.4 温度检测电路设计
1.5 A/D转换接口电路设计
1.6 光电隔离电路设计
1.7 掉电保护电路的设计
1.8 时钟电路
第二章 系统软件设计
2.1主程序模块
2.2功能实现模块
2.2.1 T0中断子程序
2.2.2键盘中断子程序
2.2.3 T1中断子程序
2.2.4 采样子程序
2.2.5 数字滤波子程序
2.2.6 温度查表程序
2.3 运算控制模块
2.3.1 标度转换子程序
2.3.2 PID算法子程序
总结和结束语
附件
参考文献

所设计的控制系统有以下功能:(1)温度控制设定范围为40~90C,最小区分度为0.2C,标定温差<0.6C,静态误差<0.4C;(2)实现控制可以升温也可以降温;(3)实时显示当前温度值;(4)按键控制:设置复位键、功能转换键、加一键、减一键;(4)越限报警。



参考文献
1、谭运光、陈安源等.单片机开发手册.华龄出版社
2、李华编.MCS—51系列单片机实用接口技术.北京航空航天大学出版社
  
关于我们 联系我们 帮助中心 支付方式  侵权处理 免责声明 友情链接 网站地图
  蜀ICP备11006018-1