摘要
本文介绍了一种智能水温监控系统。本温度控制系统采用89C51单片机收集数据,处理数据并驱动步进电动机来实现对温度的调控。主要过程如下:利用温度传感器DS18B20将非电量信号转换为数字信号,转换后的数字信号传送给单片机进行数据处理,并向外围设备输出控制信号。
该系统可由用户通过键盘自行设置所需要的温度,并由LED实时显示被控温度及设定温度,使系统应用更加方便、直观。
关键字:温度控制;单片机;步进电机;DS18B20
Abstract
This text introduced a kind of intellectual water temperature monitoring system.This temperature control system adopts a 89C51 singlechip to collect data, process data and drive the direct current machine to control the temperature.Main process is as follows:the temperature sensor DS18B20 will transform the electric signal to the digital signals, the digital signal is transmitted to singlechip to process data and transmit a control signal toward the peripherals.That system can set the temperature by keyboard, and display the under_controlled temperature and default temperature by LED at the same time.All this make the system's application more convenient and visual.
Key words: Temperature contro;MCU;Direct current machine;DS18B20
目 录
1 绪论 1
1.1 课题研究的目的和意义 2
1.2 课题来源及研究的主要内容 2
2 硬件设计 3
2.1稳压电源的设计 3
2.2温度信号的获取 5
2.3键盘模块的设计 8
2.4输出模块的设计 11
2.5单片机控制电路 16
3软件设计 22
3.1 概要设计 22
3.2下位机软件子程序划分 22
3.3子程序详细设计 22
4 PCB板制作 30
4.1网表输入 30
4.2规则设置 30
4.3元器件布局 31
4.4布线 31
4.5检查 32
4.6复查 32
4.7设计输出 32
4.8注意事项 33
5抗干扰设计 35
5.1抗干扰设计 35
谢 辞 38
参考文献 39
附录 40
附录A 外文翻译-原文部分 40
附录B 外文翻译-译文部分 49
附录C 整体电路图 56
附录D 硬件实物图 57
附录E PCB图 58
附录F 主要源程序 59
1 绪论
本章主要介绍该课题的一些背景知识,包括课题研究的目的及意义、课题来源及主要研究内容以及本人的设计工作,同时对本论文的篇章结构进行简要介绍。力求可以使读者通过本章的阅读对本项课题的背景知识有一个全面的了解。
在人类的生活环境中,温度扮演着极其重要的角色。无论你生活在哪里,从事什么工作,无时无刻不在与温度打着交道。自18世纪工业