"景先生毕设|www.jxszl.com

单片机的智能风扇设计

2020-12-07 22:10编辑: www.jxszl.com景先生毕设
一 引言 1
(一) 课题背景 1
1. 自动调温电风扇简介 1
2. 自动调温电风扇设计目的 1
二 本设计用到的元器件简介 2
(一) AT89C52单片机简介 2
(二) DS18B20单线数字温度传感器简介 4
三 总体硬件设计 5
(一) 总框图 5
1. 本设计的整体思路 5
2.各模块简介 5
(二) 系统主要硬件电路设计 6
1. 数码管显示电路 6
2. 独立键盘连接与复位电路 7
3. 温度采集电路 8
4. 风扇电机驱动与调速电路 9
5. 晶振电路 10
四 软件设计 11
(一) 主程序流程图: 11
(二) 用Keil C51编写程序 11
(三) 程序见附录3 12
五 总结与展望 12
六 致谢 13
七 参考文献 13
附录1 电路原理总图 14
附录2 PVB版图 15
附录3 程序清单 16
Abstract
Smart fan technology is more and more popular, more and more wide range of applications, such as notebook computer society now used on cooling fan and industry to a large machine used by the i *景先生毕设|www.jxszl.com +Q: ^3^5^1^9^1^6^0^7^2^* 
ntelligent cooling system etc.. This paper is the design of the intelligent temperature control fan system the use of single-chip microcontroller system controller to do the whole system based on the use of DS18B20 temperature acquisition, temperature sensor, DS18B20 collected temperature, processing by the MCU through the Darlington reverse drive ULN2803 to drive the motor rotation. Detected DS18B20 temperature sensor temperature on system setting temperature were compared, if detected DS18B20 temperature sensor temperature higher than the start temperature, fan will open, if the detected temperature is lower than the start temperature, the fan will stop spinning. This system can also automatically adjust the fan according to the temperature sensor of the temperature and speed, so as to achieve the intelligent control function at the same time DS18B20 detected temperature and set temperature can be displayed through the LED eight segment digital tube. Along with the strengthening of consciousness of environmental protection, I hope in the future, people can become less and less use of high energy consumption of air conditioning, and the choice of intelligent fan. Of course, smart fan technology is not limited in the field of electric fan, I believe in other fields of intelligent fan technology will also got very good application.
Key words: SCM, DS18B20, temperature, fan
一 引言
(一) 课题背景
我们生活中常见的电风扇一般采用的是手动开关,大概分为三、四个风速档,且只能人为的手动调节该用哪个档并不能根据室内的温度来自行调整。而温控风扇这个设计恰恰可以解决这个问题,智能风扇是通过DS18B20温度传感器与AT89C52单片机芯片的合理结合,使其能根据实际温度的变化而自动的调节风扇的转速。
1. 智能风扇简介
智能风扇主要由AT89C51单片机和DS18B20温度传感器组成。通过DS18B20温度传感器检测到的温度于系统设定的温度进行比较,若DS18B20温度传感器检测到的温度高于初始温度,风扇将开启,若检测到的温度低于初始温度,风扇将停止转动。此系统还可以根据温度传感器测得的温度的高低自动调节风扇的转速,从而达到智能调节的作用。。当然,智能风扇的技术应用绝不局限在电风扇这一个领域,在工业的大型机械的冷却系统中也可以使用本设计。
2. 自动调温电风扇设计目的
夏天,天气越来越热,尤其是到了8、9月时更是汗流浃背。目前人们所使用的解暑工具主要有:空调、冷风机、普通电风扇以及纸扇等等。在这些工具中空调过于昂贵且不环保。电风扇以其低廉的价格和使用方便令他得到极为广泛的使用。但普通的电风扇存在一个很大的缺点就是其不能随着室温的变化而自行调节转速,所以一旦夜里转凉,那么使用它的人极容易感冒。冷风机虽然可以增强空气的湿度但若是使用时间长了会导致家里的电器受潮,并且不适用患有关节炎的人群;纸扇价格虽然很低廉,但因使用不方便已被大部分人淘汰。
智能电扇就是在这种情况下应运而生的。人们的生活节奏正变得越来越快加快,在炎热的夏天,人们回到家更想能放松一下自己,消除一天的疲劳,而智能电风扇的设计可以让你得到更好的享受。
图3-1 系统原理框图
图3-2-3 温度采集电路
4. 风扇电机驱动与调速电路
(二) 用Keil C51编写程序
Keil C51是美国Keil Software公司开发的51系列兼容单片机C语言的软件开发系统,与单片机汇编语言相比,C语言在不仅语句简单灵活,而且编写的函数模块可移植性强,因而易学易用,效率高。随着单片机开发技术的不断发展,从普遍使用汇编语言到逐渐使用高级语言开发,单片机的开发软件也在不断发展,Keil软件是目前使用较多的MCS-51系列单片机开发的软件。

原文链接:http://www.jxszl.com/dzxx/txgc/29466.html