1、I 基于单片机的温度控制 摘要:本文主要通过温度传感(DS18B20)采集温度信号,首先是对 DS18B20 的深入了解 并根据DS18B20 的内部结构来设计硬件电路和软件 电路的,因思考到温度TH 和TL,所以本次设计采用了4 个按键来控制, 通过按键之间的协调来温度设定值,由于温度的不同,我们采用不同的信 息来作为信号处理,所以硬件电路中用蜂鸣器来报警提醒。本系统包括温 度传感器,数据传输模块,温度显示模块和温度调节驱动电路其中温度传 感器为数字温度传感器DS18B20,包括了单总线数据输出电路部分。 文中对 每个部分功能、实现过程作了详细介绍。 关键词:单片机STC89C52RC 温度
2、传感(DS18B20) 按键设定控制 II Title: the temperature control based on MCS-51 Abstract This paper DS18B20 done mainly through sensors to measure temperature and through it to set the temperature.DS18B20 is the first in-depth understanding of and in accordance with the internal structure of DS18B20 to design
3、hardware and software. by taking into account the temperature settings TH and TL so this design uses four buttons to control,through the coordinating role between information to different as signal, processing.hardware Circu it used as a warning to rebind the buzzer This system include temperature s
4、ensor and data transmission, the module Displays module and thermoregulation driven circuit from the sensors into Figures of the temperature sensors ds18b20, including a list of the data output Circuit. The text of every part of the functions and procedure at present. Keyword:TDP STC89C52, Controlle
5、r DS18B20 1 目 录 摘 要 I Abstract . . II 目 录 III 第一章 绪论 .1 第二章 各元器件介绍 .3 2.1 8051 系列芯片中 STC89 52RC 简介 3 2.2 74HC245N 介绍4 2.3 74HC573 介绍5 2.4 DS18B20 介绍5 第三章 各模块电路设计及分析 .7 3.1 电源电路 .7 3.1.2 lm7805 应用电 路 . 8 3.2 数码管显示电路设计 9 3.3 复位电路 . 10 3.3.1 复位电路的工作原理 . 11 3.4 温度设定电路 12 第四章 软件程序功能及分析 . 13 4.1 软件设计总流程13 4.1.1 软件设计总流程图 13 4.2 DS18B20 数据采集及转化算法 14 4.2.1 数据采集及算法转化 14 4.3 按键设定部分15 4.3.1 按键设定部分 C 程序流程图 15 第五章 总结 . 17 致 谢 . 18 参考文献 18 附录 19 附录 1 电路图 19