1、单片机的水温控制 I 基于单片机的水温控制系统设计基于单片机的水温控制系统设计 摘要摘要 温度控制系统可以说是无所不在,热水器系统、空调系统、冰箱、电饭煲、电风扇 等家电产品以至手持式高速高效的计算机和电子设备,均需要提供温度控制功能。本系 统的设计可以用于热水器温度控制系统和饮水机等各种电器电路中。它以单片机 AT80C51 为核心,通过 3 个数码管显示温度和 4 个按键实现人机对话,使用单总线温度 转换芯片 DS18B20 实时采集温度并通过数码管显示,并提供各种运行指示灯用来指示系 统现在所处状态,如:温度设置、加热、停止加热等,整个系统通过四个按键来设置加 热温度和控制运行模式。 关
2、键词:关键词: 单片机、数码管显示、单总线、DS18B20. 单片机的水温控制 II Based Temperature Control System 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-held co
3、mputers 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 achi
4、eve 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
5、system through the four buttons to set the heating temperature and control the operating mode. KEY WORDS: Microcontroller, digital display, single bus, DS18B20 单片机的水温控制 III 绪绪 论论 及时准确地得到温度信息并对其进行适时的控制,在许多工业场合中都是重要的环 节.水温的变化影响各种系统的自动运作,例如冶金、机械、食品、化工各类工业中, 广泛使用的各种加热炉、热处理炉、反应炉等,对工件的水处理温度要求严格控制。对 于不同控制系
6、统,其适宜的水质温度总是在一个范围。超过这个范围,系统或许会停止 运行或遭受破坏,所以我们必须能实时获取水温变化。对于,超过适宜范围的温度能够 报警。同时,我们也希望在适宜温度范围内可以由检测人员根据实际情况加以改变。 单片机对对温度的控制是工业生产中经常使用的控制方法.自从1976年Intel公司 推出第一批单片机以来,80 年代单片机技术进入快速发展时期,近年来,随着大规模集 成电路的发展,单片机继续朝快速、高性能方向发展。单片机主要用于控制,它的应用 领域遍及各行各业,大到航天飞机,小至日常生活中的冰箱、彩电,单片机都可以大显 其能。单片机将微处理器、存储器、定时/计数器、I/O 接口电路等集成在一个芯片上的 大规模集成电路,本身即是一个小型化的微机系统。单片机技术与传感与测量技术、信 号与系统分析技术、电路设计技术、可编程逻辑应用技术、微机接口技术、数据库技术 以及数据结构、计算机操作系统、汇编语言程序设计、高级语言程序设计、软件工程、 数据网络通信、数字信号处理、自动控制、误差分析、仪器仪表结构设计和制造工艺等 的结合,使得单片机的应用非常广泛。同时,单片机具有较强