文档介绍:摘要
温度控制系统可以说是无所不在,热水器系统、空调系统、冰箱、电饭煲、电风扇等家电产品以至手持式高速高效的计算机和电子设备,均需要提供温度控制功能。本系统的设计可以用于热水器温度控制系统和饮水机等各种电器电路中。它以单片机AT80C51为核心,通过3个数码管显示温度和4个按键实现人机对话,使用单总线温度转换芯片DS18B20实时采集温度并通过数码管显示,并提供各种运行指示灯用来指示系统现在所处状态,如:温度设置、加热、停止加热等,整个系统通过四个按键来设置加热温度和控制运行模式。
关键词: 单片机,数码管显示,单总线,DS18B20
ABSTRACT
Temperature control system can be said to be ubiquitous, water heaters, air conditioning systems, refrigerators, rice cookers, electric fans and other home appliances as well as high-speed and efficient hand-puters and electronic equipment are required to provide temperature control. The system design can be used for drinking water heater
temperature control systems and other electrical circuits. AT80C51 microcontroller as the core of it, through the three temperature digital display and 4 keys to achieve man-machine dialogue, the use of single-chip bus temperature conversion temperature DS18B20 real-time acquisition and through the digital display and offers a variety of operating light to indicate system now live in the state, such as: temperature setting, heating, and stop heating, the entire system through the four buttons to set the heating temperature and control the operating mode.
KEY WORDS: Microcontroller, digital display, single bus, DS18B20
目录
摘要 I
ABSTRACT II
目录 III
第1章前言 1
研究的目的及意义 1
单片机的发展趋势 1
主要研究的内容 2
第2章系统总体的设计 3
硬件总体的设计 3
软件总体的设计 3
第3章硬件系统设计 5
硬件电路分析和设计报告 5
5
键盘电路 7
数码管及指示灯显示电路 8
温度采集电路 10
电源电路 15
报警电路设计 16
加热管控制电路设计 16
系统硬件总图 17
第4章系统总设计 19
主程序流程图 19
各个模块的流程图 20
读取温度DS18B20模块的流程 20
键盘扫描处理流程 23
报警处理流程 23
系统源代码 24
第5章系统调试 34
软件调试 34
系统操作说明 35
数据测试 36
社会效益 36
37
第6章总结与展望 38
致谢 39
参考文献 40
附录1 41
附录2 43
第1章前言
研究的目的及意义
温度控制是无论是在工业生产过程中,还是在日常生活中都起着非常重要的作用,过低的温度或过高的温度都会使水资源失去应有的作用,从而造成水资源的巨大浪费。特别是在当前全球水资源极度缺乏的情况下,我们更应该掌握好对水温的控制,把身边的水资源好好地利用起来。所以我们必须能实时获取水温变化。对于超过适宜范围的温度能够报警。同时,我们也希望在适宜温度范围内可以由人们根