摘 要:由于单片机技术的优点突出,智能化温度控制技术正被广泛地采用。本文介绍了基于单片机STC89C52 的温度控制系统的设计方案与软硬件实现。采用温度传感器DS18B20 采集温度数据,并以数字信号的方式传给单片机。硬件部分包括:温度检测电路、温度控制电路、PC机与单片机串口通讯电路和一些接口电路。单片机通过对信号进行相应处理,从而实现温度控制的目的。本文还着重介绍了软件设计部分,在这里采用模块化结构,主要模块有:数码管显示程序、键盘扫描及按键处理程序、温度信号处理程序、继电器控制程序、超温报警程序。给出了系统总体框架、程序流程图和Protel 原理图和仿真图。90964

毕业论文关键词:单片机;温度控制系统;温度传感器 

Abstract:This paper introduces the temperature control based on single chip microcomputer STC89C52 design scheme of the system and the hardware and software implementation。 The temperature sensor DS18B20 collection temperature data, and transmits by digital signal’s way for the monolighic integrated circuit。 Hardware part, including: Temperature examination electric circuit, temperature-control circuit, PC machine and monolithic integrated circuit serial port communication channel and some interface circuit。 The monolithic integrated circuit through carries on corresponding processing to the signal, thus realizes the temperature control goal。 In the article also emphatically introduced the software design part, uses the modular structure in here, the main module includes: Nixietube display sepuence, keyboard scanning and pressed key disposal procedure, temperature signal processing procedure, black-white control procedure, excess temperature warning procedure。 Given the system framework and program flow chart and principle chart, and in Protel hardware platform to realize the function of the design。

KEYWORDS: Single chip; temperature control system; temperature sensor

目  录

1 前言 3

2 基于51系列单片机的温度控制系统设计 3

2。1 方案设计 3

2。1。1 方案选择 4

2。1。2 方案论证 5

2。2 基本芯片及PID算法简介 5

2。2。1单片机STC89C52 5

2。2。2 DS18B20基本工作原理 5

2。2。3 PID算法 6

3 系统硬件设计 9

3。1 数码管显示模块 10

3。2 键盘输入模块 10

3。3 温度采集模块 10

3。4 报警模块 11

4 系统软件设计 11

4。1 主程序流程图 12

4。2 温度检测子程序 12

4。3  PID计算子程序 14

4。4  PWM子程序 16

5 系统功能设计与实现 16

5。1 测试系统特性及其传递函数 16

5。2 实际温度显示功能的实现 18

5。2。1 Proteus仿真图 17

5。3 控制温度的设定功能的实现 19

5。3。1 Proteus仿真图

上一篇:PLC自动售货机设计+梯形图
下一篇:AT89C52单片机智能语音倒车雷达系统设计+电路图+程序

单片机数字红外测距系统设计+电路图+程序

基于51单片机自动门智能控制系统设计

STC89C52单片机智能温度监测系统设计

STC89C52单片机盲人用时钟的设计+电路图+程序

粉料称重装置的单片机控...

STM32单片机的无刷直流电机控制系统设计

AT89S52单片机车内空气检测系统设计+源代码

“时尚与旅游”电子杂志的设计制作

透过家徽看日本文化家紋から見る日本文化

家电制造企业绿色供應链...

基于安卓平台的二维码会议管理系统设计

高校体育场馆效益研究【2772字】

ASP.net+sqlserver会员管理系统设计

农村幼儿教育开题报告

论商业银行中间业务法律...

华夫饼国内外研究现状

企业科研管理中统计报表...