摘要
本文介绍了基于单片机AT89C51的温度控制系统的设计方案与软硬件实现。采用温度传感器DS18B20采集温度数据,液晶显示屏LCM1602显示温度数据,AT24C02B存储温度上下限设定值,按键设置温度上下限并可改变加热器与致冷器的温控状态,当温度低于设定的下限时,单片机启动加热器加热,同时点亮绿色发光二极管,当温度高于设定的上限时,单片机启动致冷器降温,同时点亮红色发光二极管。给出了系统总体框架、程序流程图和Proteus仿真结果,并在硬件平台上实现了所设计的功能。
The design and implementation of temperature control system based on single chip microcontroller AT89C51 are introduced in this paper. Temperature data are collected by DS18B20, shown on LCM1602. The set temperature limits are stored in AT24C02B. The temperature limits and the control states of heater and cooler can be changed by key-presses. When the temperature is under the lower limit, the heater starts with the green-LED on, oppositely, cooler starts with the red-LED on while the temperature is over the upper limit. The overall framework of the system, the program flow chart and a simulation result of Proteus are given. The designed functions are achieved in hardware platform.
出处
《微计算机信息》
北大核心
2008年第26期54-56,共3页
Control & Automation
关键词
单片机
温度控制系统
温度传感器
液晶显示器
Single chip microcontroller
Temperature control system
Temperature sensor
LCD