单片机的风扇温控仪设计
目录
Abstract
Household fans have many shortcomings. Large temperature difference between day and night, the fan can not automatically change the temperature changes with the wind speed on people, when people are asleep, the temperature suddenly reduced, which is not only a waste of electri
*景先生毕设|www.jxszl.com +Q: *351916072*
city, but also easy to catch a cold. Ordinary fans can only be mechanical to repeat some of the action, can not automatically change with the temperature and change the speed, so that fans can not meet peoples sleep needs. This article for these shortcomings to improve a smart temperature control fan. I designed the instrument with temperature sensing and display function, the microcontroller STC89C52 as the core control, in order to achieve intelligent temperature control. And the user can freely set the high temperature or low temperature, when the sensed ambient temperature value at room temperature to open the weak wind, when the instrument detects the surrounding temperature rise or when the fan will automatically switch to strong windshield operation. When the ambient temperature is lower than the user set the temperature value, the fan will automatically stop running. Since there is a set temperature value in the MCU E2ROM, the final setting value will be saved after unplugging the power supply. The design has the advantages of high performance and accurate control.
Keywords: high performance, accurate control
一、前 言
近年来,随着家电下乡,空调的售格的大幅度下降,而电风扇行业已经不被人们所看好。然而风扇行业并不是已经“走投无路”,有专业人士称,家用风扇事实上上没有被空调大量的普及而被打压,最近几年反而倒是出现了销量逐渐出现了复苏的趋势。虽然风扇的降温祛暑能力不如空调那样强大,但是家用风扇却在价格与空调相比有很大的优势。不仅价格低廉还很节约电,安装和使用的方式都简单易懂。
传统的家用风扇大多采都用机械化的方式进行运行,不仅功能少不能满足需求,而且噪音大影响睡眠质量。但是随着科学技术的迅速发展,人们的生活水平得到了很大的提升,家用电器变得越来越智能,使得传统电扇能实现智能温控。
现在虽然空调在城市中已经普及,但是在部分农村地区人们依然使用传统风扇来去暑,尤其是在夏季和秋季交替的时候,昼夜温差大,人们往往会在白条使用高风档的电风扇,从而使人们感到凉爽,但是到了夜晚气温骤降,如果不能适当降低风速就会使人患上感冒。虽然现在的家用风扇都有不同的风档,但却不能自动调控,而大部分都通过定器来实现定时关闭。然而这也有着致命的缺陷,传统的风扇一般只能定时最多2小时左右,如果在这2小时内室内温度并没有降低许多,而风扇却已经自动停止了运行,人们在熟睡中被炎热的天气所热醒,不得不起来重新定时。这不仅严重影响人们的睡眠质量,还有可能由于后半夜温度骤降导致人患上感冒。还有一点就是传统的家用风扇只能做到定时关闭风扇这一点,而不能实现风扇的风速随温度变化的调控。如今不仅在家用风扇这块领域,在其他大功率设备的散热降温的方面,大多数都通过风扇带动空气的流动,从而带走设备所产生的热量,使得使用中的设备核心不会因为温度过高而烧掉。为了实现这一点,大多数设备都使用了高功率的风扇,这便会导致产生大量的噪音。为了降低噪音就必须减缓风扇的转速,但减缓了转速,必然导致了散热能力不佳。为了能够解决上述问题,我设计了这套系统。单片机STC89C52单片机为核心,并能显示室内的实时温度,与用户进行实时的设定温度来控制风扇速度和停止运行。
一 系统概述
(一)STC89C52单片机简介
STC89C52是由美国公司STC所研制而出的一种低功耗、高性能的单片机。它是CMOS 8位微控制器,具有8K字节的容量用来写入Flash储存器和512Byte RAM。虽然利用STC89C52单片机是单片机的核心,但它已经做了很大的改进可以做很多传统51单片机做不到的功能。在其单芯片上,有着8位CPU和可编程Flash,能够为许多嵌入式控制应用系统提供高效的解决方案。
STC89C52单片机具有以下特点:8K大小的Flash和512Byte大小的内部的RAM,三十二个i / O线,三个十六位定时器/计数器,一个7向量的两级中断结构。一个全双工的线程串行口。
(二) 本设计任务和主要内容
本设计采用STC89C52作为控制核心,对温度变化采集温度传感器,建立一个智能温度控制系统。电扇随够跟着室内温度的转变,从而自动进行风速调控,最终达成智能温控。除此之外,该设计还能以红外放射/接收装置来控制电扇的各种功能的发动或关闭进行长途遥控。在使用者设定电扇的最低工作温度后,电扇会依据周围温度进行调控,当周围的温度高于所使用者设置的温度时,电扇会自动切换到强风档运行,反之低于此温度时风扇会自动关闭。
原文链接:http://www.jxszl.com/dzxx/txgc/52296.html