- 3
- 0
- 约2.05万字
- 约 29页
- 2016-12-30 发布于辽宁
- 举报
目 录
1 引言 4
2 方案设计 5
2.1 系统整体设计 5
2.2 方案论证 5
2.2.1 温度传感器的选择 6
2.2.2 红外探测的选择 6
2.2.3 控制核心的选择 6
2.2.4 显示器件的选择 7
2.2.5 调速方式的选择 7
2.2.6 驱动方式选择 8
3 硬件设计 8
3.1系统各器件简介 8
3.1.1 单线程数字温度传感器DS18B20 8
3.1.2 AT89S52单片机简介 9
3.1.3 桥式驱动电路L298N简介 10
3.1.4 LCD1602简介 11
3.2 各部分电路设计 12
3.2.1 开关复位与晶振电路 12
3.2.2 独立控制键盘电路 13
3.2.3 LCD显示电路 13
3.2.4红外探测电路...................................................................................................................................................13
3.2.5 温度采集电路 14
3.2.6 风扇驱动电路 14
4 软件设计 15
4.1 主程序流程图 15
4.2 液晶显示子程序 17
4.3 DS18B20温度传感器子程序 19
4.3.1 温度读取程序 19
4.3.2 温度处理程序 21
4.4 键盘扫描子程序 23
4.5 温度比较处理子程序 24
4.6 电机控制程序(包含红外探测) 26
4.7 软件设计中的问题与分析 28
4.7.1 LCD显示程序的问题 28
4.7.2 DS18B20的显示程序问题 28
5 硬件调试 29
5.1 按键电路的调试 29
5.2 温度传感器电路的调试 29
5.3 电机电路的调试 29
5.4 红外感应电路的调试 29
5.5 硬件调试遇到的问题 29
6 结论 29
参考文献 30
基
基于单片机的智能风扇控制
南京 210044
摘要:风扇是人们日常生活中必不可缺的工具,尤其是在夏天,因其价格便宜,用电量较之空调有很大优势,故在中国还有较大市场。本文将以AT89S52为主控芯片,辅以DS18B20温度传感器,结合红外探测装置,来实现一种智能温控电扇的设计。此风扇通过液晶显示器来显示温度和风速,配备2个温度设定按键,由DS18B20读取外界温度,红外探头探测是否有人,通过设定的温度配合程序来调节风速,最后通过L298N来驱动电机。经过调试,风扇可以按照温度智能变速,无人自动关闭,实现了智能温控的目标。
关键词:DS18B20;AT89S51;红外探头;液晶显示器1602;L298N
Smart fan control based on MCU
Wang Xuelei
NUIST,Nanjing 210044,ChinaAbstract:The fan is an indispensable tools in peoples daily life , especially in the summer. because their price is cheap and their electricity consumption has a great advantage compared with air-conditioning, so they have a large market so far in China. This article will use AT89S52 as the main chip and combined with DS18B20 temperature sensor, infrared detection device, to achieve an intelligent temperature control fan design. This fan through the LCD display to show the temperature and wind speed, we can set temperature by two buttons. At the same time,the DS18B20 read the outside temperature ,infrared sensor to detect whether someone and analyse the above datas by AT89S52 to adjust the wind speed by setting the temperature with the program, and finally thr
您可能关注的文档
- 本科毕设论文---每天3000吨小区中水回用设计 环境工程等专业.doc
- 本科毕设论文---美的电器现金流量表分析.doc
- 本科毕设论文---美国中学生性教育中品格教育探究.doc
- 本科毕设论文---美容美发市场调查总结研究报告连锁领导店市场可行性分析.doc
- 本科毕设论文---煤矿乏风的预热催化氧化试验研究终稿.doc
- 本科毕设论文---蒙牛冰加市场推广方案研究.doc
- 本科毕设论文---煤田火灾无线自组网钻孔温度远程监控系统的开发研究.doc
- 本科毕设论文---蒙牛冰加市场推广方案研究大学生.doc
- 本科毕设论文---面粉厂综合管理系统.doc
- 本科毕设论文---镁合金拱顶高度胀形系数成形性能.doc
原创力文档

文档评论(0)