1、 - 1 - 水温控制系统水温控制系统 摘要摘要 该水温控制系统采用单片机进行温度实时采集与控制。温度信号由“一线 总线”数字化温度传感器 DS18B20 提供,DS18B20 在 1070C 范围内, 固有测 温分辨率为 0.5 。水温实时控制采用继电器控制热的快和风扇进行升温、降 温控制。系统具备较高的测量精度和控制精度,能完成升温和降温控制。 关键字: AT89C51 DS18B20 水温控制 Abstract: This water temperature control system uses the Single Chip Microcomputer to carry on tem
2、perature real-time gathering and controling. DS18B20, digitized temperature sensor, provides the temperature signal by “a main line“. In1070 the scope, DS18B20s inherent measuring accuracy is 0.5 . The water temperature real-time control system uses the electricity nichrome wire carring on temperatu
3、re increiseament and operates the electric fan to realize the temperature decrease control. The system has the higher measuring accuracy and the control precision, it also can complete the elevation of temperature and the temperature decrease control. Key Words: AT89C51 DS18B20 Water temperature con
4、trol - 2 - 目 录 水温控制系统. 1 1 系统方案的选择和论证 3 1.1 系统方案的选择 . 3 1.1.1 设计要求 3 1.1.2 设计框图及设计思路 3 1.1.3 设计每个单元电路所需的主要元器件及其结构性能: . 4 1.2 方案论证 . 6 1.2.1 制冷及加热单元方案论证 . 6 1.2.2 显示单元方案论证 6 1.2.3 温度采集单元方案论证. 7 2.硬件设计与实现 8 2.1 键控单元电路的设计及测试 . 8 2.1.1 键盘的工作方式: 8 2.1.2 硬件电路的测试: 9 2.2 温度采集单元电路的设计 . 9 2.2.1 温度采集电路的设计:. 9 2.2.2 温度转换算法及分析:. 9 2.3 显示、控制电路的设计 10 2.3.1 温度控制电路的设计:. 10 2.3.2 显示单元电路的设计: .11 2.3.3 总体硬件电路图的设计: . 12 3.系统方案的选择和论证 13 3.1 读取 DS18B20 温度模块子程序 13 3.2 数据处理子程序 13