1、 1 温度控制系统设计温度控制系统设计 题 目: 基于 51 单片机的温度控制系统设计 姓 名: 学 院: 工学院 专 业: 自动化 班 级: 自动 114 班 学 号: 指导教师: 2013 年 9 月 日 2 摘要: .3 一、系统设计 3 1.1 项目概要3 1.2 设计任务和要求:4 二、 硬件设计 4 2.1 硬件设计概要 4 2.2 信息处理模块 4 2.3 温度采集模块 5 2.3.1 传感器 DS18b20 简介 5 2.3.2 实验模拟电路图 .6 2.3.3 程序流程图 7 2.4 控制调节模块 .8 2.4.1 升温调节系统.8 2.4.2 温度上下限调节系统 .9 2.
2、5 显示模块 11 三、仿真后,部分显示成果 12 四、两周实习总结 . 15 五、致谢错误错误!未定义书签。未定义书签。 六、参考文献 15 七、附录 16 7.1 原理图 16 7.2 参考程序 16 3 摘要:摘要: 在现代工业生产中,温度是常用的测量被控因素。本设计是基于 51 单片机 控制,将 DS18B20 温度传感器实时温度转化,并通过 1602 液晶对温度实行实时 显示,并通过加热片(PWM 波,改变其占空比)加热与步进电机降温逐次逼近 的方式, 将温度保持在设定温度, 通过按键调节温度报警区域, 实现对温度在 0 -99控制的自动化。实验结果表明此结构完全可行,温度偏差可达
3、0.1以内。 关键字:关键字:AT89C51 单片机;温控;DS18b20 Abstract:Abstract: In modern industrial production, the temperature is commonly measured controlled factors.The design is based on the 51 SCM control, the DS18B20 temperature sensor real time temperature transformation, and through the 1602 LCD on the temperatur
4、e of the real-time display, and by heating the sheet (PWM wave, changing its duty cycle) heating and stepper motor cooling successive approximation approach, keeping the temperature at the set temperature, through the buttons adjust temperature alarm area, the temperature at 0 -99 control automation
5、.The experimental results show that this structure is completely feasible, the deviation of temperature can reach 0.1 DEG C. Key word:Key word: AT89C51Monolithic integrated circuit ; Temperature control; DS18B20 一、系统设计一、系统设计 1.1 项目概要项目概要 温度控制系统无论是工业生产过程,还是日常生活都起着非常重要的作用, 过低或过高的温度环境不仅是一种资源的浪费, 同时也会对机
6、器和工作人员的寿 命产生严重影响,极有可能造成严重的经济财产损失,给生活生产带来许多利的 因素,基于 AT89C51 的单片机温度控制系统与传统的温度控制相比具有操作方 便、价价格便宜、精确度高和开展容易等优点,因此市场前景好。 4 1.2 设计任务和基本要求:设计任务和基本要求: (1) 采用DS18B20作为温度传感器进行温度检测。 (2) 对采集温度用LCD1602进行显示(显示温度分辨率0.1) ;采集温度数值 应采用数字滤波措施,保证显示数据稳定。 (3) 设计相应的温度控制电路,根据测得的温度情况对加热器进行控制,将温 度保持在设定温度。 (4) 通过按键设置温度上下限,超限通过蜂鸣器报警。 (5) 采用DS1302时钟芯片显示当前时间,并可以对时间进行设置。 二、二、 硬件设计硬件设计 2.1 硬件设计概