没有合适的资源?快使用搜索试试~ 我知道了~
学位论文-—基于单片机的pid温度控制系统设计.doc
0 下载量 34 浏览量
2023-07-01
16:07:10
上传
评论
收藏 353KB DOC 举报
温馨提示
试读
24页
学位论文-—基于单片机的pid温度控制系统设计.doc
资源推荐
资源详情
资源评论
毕 业 论 文(设 计)
题 目: 基于单片机的 PID 温度控制系统设计
( Title ): The design of control system of
temperature based on PID and SCM
基于单片机的 PID 温度控制系统设计
摘 要
随着生活的发展时代的变迁,温度似乎由原来的不可控量变到今天的可控量。正是
因为这样的变化凸显控制温度重要性和意义性。而工业生产中都用到电热炉、坩锅电阻
炉和温控箱,于是单片机就成为了它的核心搭档,不仅可以解决繁琐复杂的人工控制还
可以提高别控对象的精准度和良好指标;因此,微电脑化温度控制技术正在广泛的被人
们接纳。本作品是恒温箱温度控制系统设计,可用在生产也可以用在科研实验还可以用
在医院里。在温度时常变化环境中使用恒温箱,可以使一定范围的温度恒定在特定温度
下,从而适应生活和工作。而且还可以随心所欲的设定温度来达到你想要的那种环境。
本论文首先是介绍恒温控箱的工作原理,以硬件为基础软件为核心的介绍开来的,
几种对于硬件我还会以流程框图来介绍,这样能让我们能容易的明白它的工作过程,
和各个模块各自实现的功能。先是硬件我们用了 STC89C51 单片机,它具有内部集成
数模转换和封装小的优点,再加上 DS18B20 的温度传感器。软件的方面 ,采用了 PID
的精准算法,不仅实现了超调小、线性控制精度高、反应快和实现成本低等的优点。
在使用的时候用户先根据自己的要求在按键上选择自己想要达到的温度,然后由单片
机采集测温元件的温度输入与反馈进行比对和准确的 PID 算法,接着马上输出信号让
升温器件工作升温。在这里 PID 成为软件的核心。如果说 PID 调节控制恒温箱的温度,
使温度在理想范围内稳定。在相同的情况下,在整定 PID 使温控箱达到最理想的效果
过程中,使它能能更快准稳的调节温度,你就会发现和了解什么样的调节参数更适合
更快达到效果。
关键词:恒温控制,单片机,数字 PID 算法
The design of control system of
temperature based on PID and SCM
Abstract
With the development of the life and times of change, from the original temperatu
re seems to be not controlled quantity to a controlled amount of today. It is precis
ely because of this change highlights the importance and significance of temperature
control. And industrial production are used in electric furnace, crucible resistan
ce furnace and the temperature control box, so the SCM has become a core partner of
it, not only can solve the artificial control of complex objects but also can improv
e the control precision and not a good indicator therefore, the microcomputer tempe
rature control technology is being widely accepted by people. This work is the cons
tant temperature control system design of temperature, can be used in production and
can also be used in scientific experiments can also be used in the hospital. In the co
nstant temperature box temperature often change to use environment, can make the te
mperature range at a certain temperature, so as to adapt to the life and work. But als
o can set the temperature environment in which you want to achieve.
This paper first describes the working principle of constant temperature control
box, hardware based software as the core of the introduced, several hardware I wou
ld flow diagram to introduce, so we can easily understand its working process, a
nd each module of the function The first is the hardware we use STC89C51 single chip m
icrocomputer, it has the internal integration of digital to analog conversion and enca
psulation of small advantages coupled with the temperature sensor DS18B20.The softwar
e aspect, the precision of the PID algorithm, not only to achieve a small overshoot,
high control precision, fast response linearity and low cost When users according t
o their own requirements on the button to choose their desired temperature, temperat
ure input and then collected by the microcontroller temperature measurement element a
nd accurate than PID algorithm and feedback, and then output signal for heating
device heating. Here PID is the core of the software If the PID control of temperatu
re, temperature stability in the ideal range Under the same conditions, in the settin
g of PID. The temperature control box to achieve the most ideal effect in the process, s
o that it can be quicker to quasi steady temperature regulation, you will find and
understand what kind of adjusting parameter is more suitable to achieve the effect of
faster.
Key word:Constant temperature ,SCM,PID algorithm
基于单片机 PID 的温度控系统研究
前言
随着时间的推移生活水平的提高,用单片机来控制是生活中必不可少的,然而它带
给人类的方便也是不可否认的,很多电子产品中都用到温度检测、温度控制。随着温控
器的广泛运用和多样化,所以在市场中产生了各种各样的温控器。数字温度计就是一个
典型例子,随着人们追求的越来越高和简约的生活,人们就会自主的寻找最佳的解决方
案着手于单片机的开发和控制,向着数字化控制,智能化控制发展。相对来说传统的温
度控制往往用简单的 PID 来实现。虽然他们有 PID 调节所具备的稳定性好,结构简单,
可靠性较高,但存在着它的参数设定对环境的影响高的不足的问题,导致调节时间与超
调量难以协调一致的。后来科学家们就引入了改良后的 PID 控制器以弥补上面说的不足,
它是系统在适应性和抗干扰能力都得到了提升,从而得到了较高的温度控制的稳定性。
与一般的温度控制器相比,有方便读数、广泛测温、准确控制、负载广泛、有 LED 显示
工作方式,其输出温度用四位数码管显示,主要用于对测温要求高的的场所,该设计使
用单片机 STC89C51 来控制,使用 DS18B20 测温传感器,用 PNP 三极管驱动。
5
1 设计要求和设计方案的论证
明确要求,讨论方案的可行性然后确定方案,最后逐一攻破难点。
1.1 设计要求
PID 精准控制;
单片机微智能处理;
数码管显示;
温度可控;
1.2 系统基本方案选择和论证
1.2.1 单片机芯片的选择方案和论证
介绍选用单片机的原因
单片机特点:
(1)高集相对较高,高可靠性。
单片机由于内部集成了很多功能在小小的芯片内部,非常短的内部布线,本身就是按
工业测控环境要求设计的,而且其抗工业噪音性能比一般的 CPU 要好。单片机的程序,
常数、表格都烧录在 ROM 中掉电都不会损坏的,众多的信号通道都是汇聚到一个芯片内,
故可靠性较高。
(2)低功耗、低电压,可使用在要求灵活的场所。
为了满足广泛使用于便携式系统,所以设计单片机工作电压在 1.8 到 3.6 伏之间,而工
作电流仅为数百微安。
(3)控制功能强
由于对控制的要求相当高,单片机的内部附带的指令系统相当的齐全和可靠,其中有:
I/O 口的逻辑操作及位处理能力,分支转移能力,非常适用于有特殊要求的设备上。
(4)性价比比较突出优异
单片机性能非常高。为了得到较高的运行速度可运行效率,在芯片里植入使用 RISC 流
水线、DSP 技术。单片机的寻址能力也已突破 64KB 的限制,有的已可达到 1 兆和 16 兆,
片内的 ROM 容量可达 62 兆,RAM 容量则可达 2 兆。因此得到了广泛的使用支持,从而提
高了产量减低了生产成本,使生产与消费之间形成了一个良性循环。
(5)扩展功能强大
芯片内有雷同计算机的运行功能。芯片外部有许多供扩展用的三总线及并行、串行输入
/输出管脚,很容易构成各种规模的计算机应用系统。
方案一:
采用 AT89S51。AT89S51 片内具有 4K 字节程序存储空间,256 字节的数据存储空间
没有 EEPROM 存储空间,也与 MCS-51 系列单片机完全兼容,具有在线编程可擦除技术。
剩余23页未读,继续阅读
资源评论
zzzzl333
- 粉丝: 699
- 资源: 7万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功