基于单片机的智能电风扇设计
资料介绍:
基于单片机的智能电风扇设计(任务书,开题报告,论文16000字)
摘要
目前在家电市场上所销售的电风扇是绝大部分用户所选择的避暑工具,而目前家电市场上的绝大部分电风扇只能由用户自己控制开关,而当进入夜晚温度下降后,由于用户熟睡无法及时控制电风扇工作状态,从而容易导致用户着凉而感冒。课题所设计的智能电风扇与普通电风扇相比有个最大的特点,就是用户可以自主设定最低工作温度,并同时检测环境温度,将二者进行比较后自动选择电风扇工作状态。课题主要采用AT89S52为核心单片机,利用DS18B20进行温度采集,最后通过单片机内部对收集到的数据与信息进行比较,进而进行判断,最终确定电风扇的工作状态。从而实现了电风扇根据环境温度自主调解工作状态的功能。并且用户还能通过一个LCD1602显示器清楚直观的看到当前电风扇所处的工作状态和当前所处环境的温度值。课题所提出的智能电风扇的设计,让老式电风扇具有了自我思考判断的能力,其人机关系也变得更加和谐。解决了老式电风扇无法自动控制工作状态的问题。
关键词:单片机;温度控制;直流电机;LCD1602
The design of electronic fan based on microcontroller
[资料来源:http://doc163.com]
ABSTRACT
Now in the home appliance market sales of the electric fan is the vast majority of the user selected to bring cool summer tools. At present, on the home appliance market most of the electric fan can control switch only by himself. When the temperature drops in the night, it is because the user cannot control electric fan work in time when user sleeping, thus easy to cause users to catch a cold. In Subject, the intelligent fanner compared with ordinary electric fan have a biggest characteristic, is the user can set its own minimum working temperature, and survey ambient temperature at the same time. The electric fan selected working condition automatically after we compare the two temperatures. The electric fan control system using AT89S52 as the central processing unit as the core of the control system, The use of temperature sensor DS18B20 indoor temperature acquisition, finally compare the data and information through the MCU internal collection, and then judge, ultimately determine the working state of electric fan. This design realized the function that the electric fan regulates working state according to the environment temperature. And user can through LCD1602 to see the current electric fan working status and temperature value of the current environment clearly and intuitively. The design of intelligent electric fan in the Subject, let the old electric fan have self thinking ability, and man-machine relationship became more harmonious. This subject solve problem that the old electric fan can't control the working state automatically.
[资料来源:Doc163.com]
Key words: single-chip microcomputer; temperature- control; fan;
[资料来源:www.doc163.com]
目 录
摘要 I
ABSTRACT II
第一章 绪论 1
1.1智能温控电风扇概论 1
1.2 智能温控电风扇简介 1
1.3设计任务和主要内容 1
1.4课题设计目的 2
1.5全文结构 2
[来源:http://www.doc163.com]
第二章 硬件电路设计 3
2.1系统硬件设计 3
2.1.1 系统总体设计 3
2.2单片机模块 4
2.2.1 单片机选择 4
2.2.2 AT89S52简介 4
2.2.3 单片机时钟电路的设计 7
2.2.4 单片机复位电路的设计 7
2.3直流电机模块 8
2.3.1 电机选择 8
2.3.2 转速控制方法 8
2.4温度传感器模块 9
2.4.1 传感器选择 9
2.4.2 传感器工作原理 10
2.5液晶显示模块 11
2.5.1 显示器选择 11
2.5.2 显示器工作原理 11
2.6独立式按键模块 12
2.7红外测速模块 13
第三章 系统软件设计 15
3.1程序设计原则和语言选择 15 [资料来源:www.doc163.com]
3.2系统整体流程图 16
3.2.1 系统软件设计总体流程概述 16
3.3系统主程序介绍 17
3.3.1 LCD显示模块程序设计 18
3.3.2 温度传感器模块程序设计 19
3.4程序调试与编译 20
3.5程序下载 20
第四章 系统组装与调试 21
4.1 系统原理图制作 21
4.2 系统硬件的搭建 21
4.2.1 硬件焊接注意事项 21
4.2.2 硬件调试过程与结果 22
4.3系统的调试 23
4.4 系统软硬件调试 23
4.4.1 Keil uVision3调试程序 23
4.4.2 系统软硬件联合调试 23
第五章 总结与展望 24
5.1总结 24
5.2展望 25
参考文献 26
附录一 系统原理图 27 [资料来源:http://doc163.com]
附录二 系统实物图 28
附录三 系统运行界面 29
附录四 智能温控调速风扇的设计总程序清单 30
致谢 39
[资料来源:https://www.doc163.com]