文档介绍:毕业设计
温度自动控制系统的设计
内容摘要
利用单片机技术、温度检测技术、温度控制技术等知识设计一个基于凌阳单片机控制的温度自动控制箱。系统采用温度采集装置DS18B20来检测盒内温度,采用驱动芯片L298N控制制冷片的运作,以凌阳SPCE061A单片机作为系统主控芯片,分析处理相关数据,并借用PID算法精确调整温度控制技术,单片机通过对测得的温度与要求的温度进行比较分析,然后驱动制冷片,调节盒内温度。用按键显示模块进行人机交互。本系统硬件配置合理,控制方案优化,实现了温度控制的全部功能,能精确测量温度,对温度控制量可以通过键盘在一定范围内任意设定。
关键词
单片机;制冷片;温度自动控制;驱动芯片
ABSTRACT
Using single-chip puter, temperature detection technology, temperature control technology to design an automatic temperature control box based on single-chip puter control temperature gathering devices DS18B20 is used to detect temperature of box in this system, drive chip L298N is used to control operation of refrigeration plate , LingYang singlechip SPCE061A is used as microprocessor control system to analyze and deal with data, while using PID algorithm precisely adjust control technology of temperature, using key display module to realize human-machine chip adjust temperature inside the box by driving refrigeration plate paring temperature of measurement and hardware configuration and control scheme of this system is reasonable,realizing the temperature control function fully with the ability of setting numerical value arbitrarily in certain limit by using keyboard.
KEY WORDS
Singlechip;Refrigeration Plate;Thermostatic Control;Driving Chip
目录
1 绪论 1
设计目的 1
课题的研究现状和发展趋势 1
课题的研究现状 1
发展趋势 4
设计要求 5
设计方法 6
设计内容 7
2 模糊PID的控制原理 8
PID控制技术 8
模糊控制原理 9
模糊PID控制的基本原理分析 9
3 系统总体设计 12
系统方案比较与选择 12
控制模块 12
温度检测模块 12
制冷片模块 13
制冷片驱动模块 14
显示模块方案比较与论证 14
电源模块方案比较与论证 14
系统最终方案 15
系统总体设计 15
总体结构框图 15
系统实现方法 16
控制方法 16
温度控制 16
模糊PID控制 16
4 硬件电路的设计 17
主控模块的电路设计 17
芯片介绍 17
主控电路设计及端口分配 19
制冷片驱动电路设计与实现 20
键盘显示电路设计与实现 21
温度检测电路设计与实现 22
故障排除 22
5 软件设计 23
主程序说明及流程图 23
温度检测设计及流程图 23
制冷片驱动设计及流程图 24
键盘显示程序设计及流程图 25
6 系统测试 26
测试仪器 26