基于单片机的智能温控风扇设计
2016-11-19贺廉云
贺廉云



摘要:本次设计是基于单片机的智能温控风扇。以STC89C52单片机为核心,可以实现对风扇的有效控制。可以根据需要设置不同的温度,如果温度在设定值最大值和最小值之间时则启动风扇弱风档,如果温度超过设定的数值时将会变到大风档,如果温度低于最小值时风扇停止转动,启动什么风挡由外部温度决定。测得的温度值保存在温度传感器DS18B20内部ROM中,断电后保存的数值不变。基于单片机的智能温控风扇可以满足人们的不同需要,具有一定的实用意义。
关键词:单片机;温度传感器;智能控制
中图分类号:TP393 文献标识码:A
Design of Microcomputer based intelligent temperature control
HE Lianyun
(Mechanical and Electronic Engineering Department, Dezhou University,Dezhou Shandong 253023,China)
Abstract:This design is based on the MCU intelligent temperature control fan. The paper applies STC89C52 microcontroller as the core, which can achieve the effective control of the fan according to the needs of different temperature. If the temperature value stays within this range between the set maximum and minimum value, the fan could start weak wind profile; if the temperature exceeds the set value , the fan will change to the strong wind profile; and if the temperature is lower than the minimum value, the fan could correspondingly stop rotating.That is to say, starting the windshield is decided wholly by external temperature decision. The measured temperature values stored in the DS18B20 internal temperature sensor ROM, with constant power saving value. Intelligent temperature control fan MCU can meet the different needs of people, and has good practical significance.
Key Words: single chip microcomputer; temperature sensor; intelligent control
0 引言
21世纪是电子信息化的时代,温度控制器在各个领域都获得了广泛的应用,其最大的优势就是可以实时监测温度变化并进行自动控制,能够智能全面地满足人们的实际需要。基于单片机的智能温控风扇是应用单片机系统设计研发的一个小型控制系统。温控风扇能够随着温度的改变,自行调整档位高低,继而控制风速的大小,用户也可以根据自己的具体需要来手动设定档位值,呈现出实用性和个性化的十足优势,可应用于家庭、宾馆等各类对温度经常提出高端要求的真实场所。系统的效率高,成本低,而且其使用寿命长,能够带来可观的经济效益,因而具有广阔的发展前景和市场潜力[1]。本文即针对这一课题展开完整详尽论述。
1 系统整体设计
系统设计框图如图1所示。
由图1可知,整个系统包括5个模块,分别是键盘输入模块,数字温度传感模块,电机控制模块、温度的测量和显示模块以及单片机最小系统。……
