基于STC89C92单片机智能温控风扇的设计

基于STC89C92单片机智能温控风扇的设计(任务书,开题报告,外文翻译,论文12300字)
摘要
本设计为智能温控风扇,为了改变传统风扇手动换挡的不足,本设计能依据外界温度的变化调整转速,实现了电风扇的智能家用化,节省能源,绿色环保。
本设计使用STC89C92单片机作为主控模块,用于协调处理各个模块的工作,DS18B20温度传感器将采集到的外界温度发送给单片机并且在数码管上显示,单片机通过周围温度与预设温度上、下限值的对比处理后输出高、低电平,经过三极管放大电路,进而驱动风扇电机。用户可以根据自己的要求来调整预设温度上、下限值,根据外界温度高于上限值、低于下限值或者在两者之间,风扇会满速转动、停止转动或者半速转动,实现了风扇依据周围温度的变化调整转速。该设计顺应低碳生活,成本低廉,控制精确,适应当前的市场需求。
关键词:智能温控风扇;STC98C52单片机;DS18B20芯片
Abstract
The design for the intelligent temperature control fan, in order to change the traditional fan manual shift of the lack of the design can be based on changes in the external temperature to adjust the speed, to achieve the smart fan of the household, saving energy, green. [来源:http://Doc163.com]
The design uses STC89C92 microcontroller as the main control module, used to coordinate the work of each module, DS18B20 temperature sensor will be collected to the outside temperature and sent to the microcontroller and the digital display, the microcontroller through the ambient temperature and the default temperature, The value of the comparison after processing output high and low level, through the transistor amplifier circuit, and then drive the fan motor. The user can adjust the preset temperature and lower limit according to their own requirements, according to the outside temperature is higher than the upper limit, below the lower limit or between the two, the fan will rotate at full speed, stop rotation or half-speed rotation , To achieve the fan according to the ambient temperature changes to adjust the speed. The design conforms to low-carbon life, low cost, precise control, to meet the current market demand.
Key words:Intelligent temperature control fan, STC98C52 microcontroller, DS18B20 chip [资料来源:Doc163.com]
[来源:http://www.doc163.com]




目录
摘要 I
Abstract II [资料来源:www.doc163.com]
第1章绪论 1
1.1研究背景、目的及意义 1
1.2 发展现状和应用领域 1
1.3 本设计的主要内容 2
1.4 本章小结 2
第2章各模块选用方案论证 3
2.1 主控模块的选择 3
2.2 温度传感器的选择 3
2.3 显示电路的选择 4
2.4 风扇驱动电路的选择 4
2.5 本章小结 5
第3章系统的硬件设计 6
3.1 系统的硬件电路原理图 6
3.2 STC89C52单片机控制电路 6
3.2.1 STC89C52简介 6
3.2.2 STC89C52引脚介绍 7
3.2.3 单片机控制电路的设计 8
3.2.4 晶振电路 8
3.2.5 复位电路 9
3.3 DS18B20温度采集电路的设计 9
3.3.1 DS18B20简介 9
3.3.2 DS18B20引脚介绍 10
3.3.3 DS18B20温度采集电路的设计 10
3.4 数码管显示电路的设计 11
3.4.1 LED数码管的简介 11
3.4.2 LED数码管的引脚介绍 12
3.4.3 4位LED数码管显示电路的设计 13
3.5 风扇驱动电路的设计 14
3.5.1 直流风扇简介 14
3.5.2 直流风扇电路的设计 14
3.6 按键电路的设计 15
3.7 本章小结 16
第4章系统的软件设计 17
4.1 主程序流程图 17
4.2 温度采集程序的设计 18
4.3 数码管显示程序的设计 18
4.4 风扇驱动程序的设计 19
4.5 按键程序的设计 20
4.6 本章小结 21
第5章系统调试 22
5.1 软件调试 22
5.1.1 按键显示程序的调试 22
5.1.2 温度采集程序的调试 22 [资料来源:http://doc163.com]
5.1.3 风扇驱动程序的调试 22
5.2 硬件调试 23
5.2.1 按键显示电路的调试 23
5.2.2 温度采集电路的调试 23
5.2.3 风扇驱动电路的调试 24
5.3 系统整体调试 25
5.4 本章小结 26
第6章结论 27
参考文献 28
附录:原理图 29
致谢 30 [资料来源:http://doc163.com]
