毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

STC89C52单片机温度控制系统设计+电路图和程序

时间:2023-11-06 22:56来源:毕业论文
51单片机温度控制系统设计,基于单片机STC89C52 的温度控制系统的设计方案与软硬件实现。采用温度传感器DS18B20 采集温度数据,并以数字信号的方式传给单片机。硬件部分包括:温度检测

摘 要:由于单片机技术的优点突出,智能化温度控制技术正被广泛地采用。本文介绍了基于单片机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仿真图 STC89C52单片机温度控制系统设计+电路图和程序:http://www.youerw.com/zidonghua/lunwen_198336.html

------分隔线----------------------------
推荐内容