基于51单片机的温控风扇设计
2020-09-10吴迎春
吴迎春



摘要:本文设计并制作了一款基于51单片机的智能温控风扇。电路系统主要由51单片机、数字式集成温度传感器、数码管显示器、机械风扇、四位按键等构成。使用Proteus对电路进行仿真,得到智能温控风扇的仿真电路图。按照电路图焊接完成硬件电路,并对硬件电路进行调试。调试结果表明:将实物连通电源,并设置预设温度临界点,便可实现随环境温度变化而变换档位的智能温控风扇。该智能温控风扇性能稳定,适用性强,既可用做汽车冷却风扇,也可用做其他机械或电子设备的散热装置。
Abstract: An intelligent temperature-controlled fan system based on single chip microcomputer is designed and manufactured in this article. The circuit system is mainly composed of 51 single-chip microcomputer, digital integrated temperature sensor, digital tube display, mechanical fan, four buttons and so on.The simulation circuit diagram of intelligent temperature control fan is obtained based on Proteus. According to the circuit diagram, the hardware circuit is manufactured and debugged. The debugging results show that: by connecting the physical object with the power supply and setting the preset temperature critical point, the intelligent temperature control fan can change gear based on the ambient temperature. The intelligent temperature control fan has stable performance and strong applicability. It can be used not only as a cooling fan for automobiles, but also as a heat sink for other mechanical or electronic equipment.
關键词:温控风扇;单片机;DS18B20
Key words: temperature control fan;MCU; DS18B20
0 引言
风扇作为一种散热装置在人们的生产和生活中都有着非常广泛的应用。比如:在汽车水箱的内侧需要安装冷却风扇,以保证发动机水温保持在60-80摄氏度,使发动机具有较高的热转换效率;电子设备的生产和运行对环境温度要求较高,需要风扇系统及时散热;在我国工业发展进程中,大型机械所产生的热量与日俱增,对温控散热装置也提出了越来越高的要求以及人们在日常生活中经常要用到空调或电风扇来纳凉降温等。本文设计的智能温控风扇可根据环境温度自动变换工作档位,工作性能稳定,使用便捷。
1 温控风扇系统的硬件设计
本次设计选用的器件主要包括STC89C51单片机、DS18B20集成温度传感器、数码管显示器、机械风扇和一些边缘按键等。温控风扇系统使用STC89C51单片机作为控制核心[1-2],用数字式集成温度传感器DS18B20直接为单片机提供实时采集的环境温度信号[3],单片机对温度信号进行处理进而控制风扇电机的运转状态。……
