陈菁+张小溪
摘 要: 在此介绍了基于80C51单片机的小型恒温箱的温度控制系统设计,系统具有温度调节功能,用户可通过外部操作设定温度区间,若超出温度的设置范围就可以驱动相应的负载工作,同时报警告知。详细阐述了硬件原理和软件程序。温度控制系统主要由中央控制器、温度检测器、显示器等模块组成。由温度传感器DS18B20采集外部温度信号,传送给单片机,由单片机对信号进行相应处理,把数据传送给LED显示,从而实现对温度控制的目的。实物恒温箱模型可以被作为小型车载冰箱、宠物箱恒温系统、饮料的加热或降温器等多用途。
关键词: 单片机STC89C5; 温度控制; 恒温箱; 温度传感器DS18B20
中图分类号: TN70 文献标识码: A 文章编号: 1004?373X(2014)22?0101?04
Design of SCM?based temperature control system in small?size incubator
CHEN Jing, ZHANG Xiao?xi
(School of Science, Beijing Forestry University, Beijing 100083, China)
Abstract:The design of the temperature control system for small?size incubator based on single?chip microcomputer 80C51 is introduced in this paper, in which the hardware schematics and software program chart are offered. The temperature control system consists of a central controller, temperature detector, display and other modules. The hardware principle and software program are elaborated in this paper. The temperature sensor DS18B20 is adopted to collect outside temperature signal and send the signal to the microcontroller, which perform corresponding processing of the signal, and transmits the data to the LED display to achieve the purpose of temperature control. The constant temperature cabinet can be used as vehicle?mounted refrigerator, thermostat system of pet box, heating or cooling device for beverage.
Keywords: single?chip microcomputer STC89C5; temperature control; constant temperature cabinet; temperature sensor DS18B20
0 引 言
随着单片机技术的日趋成熟,用单片机控制小型电器不仅可以给人的使用带来方便,也可以使操作甚至加工更简单。小型恒温箱就是单片机应用很好的一个实例。由于科技水平和人们生活水平的提高,以及各领域对恒温箱的使用需求的提高,比如实验室中的恒温环境需求的精度提高、医用疫苗的严格恒温保存甚至婴儿使用的奶瓶恒温器也需要比较精确的温度控制等,人们对恒温箱的的设计要求也越来越高,不仅希望它的内部控制电路比较简化,降低成本,还要能从外部进行温度的设置以满足不同用户的使用需求。这里以适合家庭用的小型的恒温箱为例,给出了它的设计思路和方案,并且做了仿真模拟和实物制作,实验证明,该设计运行良好,而且它兼具了携带方便、控制准确、操作简单、温度显示清晰等特点。……