1、MCS-51 单片机测温系统的设计 I M MC CS S- -5151 单片机测温单片机测温系统的设计系统的设计 内容内容摘要摘要 本设计是以一个保温箱为控制对象,以 AT89C51 为控制系统核心,通过单片机系 统设计实现对保温箱温度的显示和控制功能。本温度控制系统是一个闭环反馈调节系 统,由温度传感器 DS18B20 对保温箱温度进行检测,经过调理电路得到合适的电压信 号。经芯片处理得到偏差信号,通过对偏差信号的处理获应的温度值,将所得的温度值 与设定温得控制信号,利用系统的 I/O 资源去扩展外围电路,通过外接继电器电路,根 据继电器常开常闭的性质,给继电器高低电平来实现继电器的通断。
2、从而实现低温状态 时电热丝加热升温,高温状态时电风扇转动来降温,使得温度始终处于设定的温度范围 内,从而实现对保温箱温度的显示和控制。本文主要介绍了保温箱温度控制系统的工作 原理和设计方法,论文主要由三部分构成。 系统整体方案设计。 系统硬件设计, 主要包括温度检测电路、显示电路、键盘设计和控制电路。 系统软件设计,软件的 设计采用模块化设计,主要包括、显示模块、键盘模块和控制模块等。最后对整个系统 进行联合调试,使系统达到本次的设计要求。 关关键词键词:单片机;传感器;温度检测;继电器 广东技术师范学院天河学院本科毕业论文(设计) II MCS-51 Microcontroller Temp
3、erature Measurement System Design ABSTRACT This design takes a heat preservation box as a control object and the AT89C51 as a control system core. A Single-chip Computer system is designed to carry out the temperature display and control. This heat temperature control system is a closed loop feedbac
4、k control system. The temperature of the heat preservation box is measured by sensor DS18B20. For DS18B20, a adjust electric circuit is designed to get a suitable electric voltage signal for the transformation. After the transformation, the corresponding temperature digital quantity can be obtains,
5、and is compared with the setting temperature, then a deviation can be obtained. Through processing the deviation, a control signal will be produced, which adjusts the heater the on or off, thus the preservation box temperature control and display is realized. This design introduces the temperature c
6、ontrol system principle of work and the design method. The paper mainly includes by three parts: Fristly,the system outline project design.Secondly, hardware design, the hardware design mainly includes the temperature adaptive electric circuit, the circuit, the display circuit, the keyboard design and the control circuit. Thirdly,software design method, the software design uses the modular design, mainly includes the transformation module, the demonstration module, the keyboard module a