没有合适的资源?快使用搜索试试~ 我知道了~
基于单片机的自动调温风扇系统设计.doc
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 4 浏览量
2023-07-03
15:38:35
上传
评论 1
收藏 1.17MB DOC 举报
温馨提示
试读
73页
基于单片机的自动调温风扇系统设计.doc
资源推荐
资源详情
资源评论
摘 要
在现代化的工业生产中电流、电压、温度、压力、流量、流速和开关量都
是常用的主要被控参数。温度作为一个基本物理量,它是一个与人们的生活环
境、生产活动密切相关的重要物理量。在现代化的工业生产过程中温度作为一
种常用的主要被控参数,在很多生产过程中我们需要对温度参数进行检测。例
如:在冶金工业、化工生产、电力工程、造纸行业、机械制造和食品加工等诸
多领域中,人们都需要对各类加热炉、热处理炉、反应炉和锅炉中的温度进行
检测。采用单片机来对温度进行控制,不仅具有控制方便、组态简单和灵活性
大等优点,而且可以大幅度提高被控温度的技术指标,从而能够大大提高产品
的质量和数量。利用单片机系统作为平台,把输入的室内温度、被风扇作用后的
温度与人体舒适温度进行比较,从而确定电风扇的转速,以此来形成一个经济的
温控智能电风扇降温系统。
本文设计了基于单片机的自动调温风扇系统,采用单片机作为控制器,利
用温度传感器 DS18B20 作为温度采集元件,并根据采集到的温度,通过一个达
林顿反向驱动器 ULN2803 驱动风扇电机。根据检测到的温度与系统设定的温度
的比较实现风扇电机的自动启动和停止,并能根温度的变化自动改变风扇电机
的转速,同时用 LED 八段数码管显示检测到的温度与设定的温度。
关键词: 单片机 DS18B20 自动调温 风扇
ABSTRACT
Current, voltage, temperature, pressure, flow, flow rate, and switch are
commonly used in modern industrial production is mainly controlled parameter.
Temperature as a fundamental physical quantity, it is a people's living environment,
and production activities are closely related to important physical quantities.
Commonly used as a main parameter to be controlled, the temperature in the modern
industrial production processes and in many production processes, we need detects
the temperature parameters. For example: in the metallurgical industry, chemical
production, power engineering, the paper industry, machinery manufacturing and
food processing and many other areas, people need various types of furnaces, heat
treatment furnaces, reactors and boilers for detecting the temperature.
Microcontroller to control the temperature, not only easy to control the configuration
of the advantages of simplicity and flexibility, and can greatly improve the
temperature was charged with the technical specifications, which can greatly
improve the quality and quantity of the products. The use of single-chip system as a
platform, the input of the indoor temperature, compare comfortable temperature and
body temperature after the action of the fan, so as to determine the rotational speed
of the fan, in order to form an economic thermostat smart fan cooling system.
This article is designed based on the thermostat fan of the single-chip system,
using SCM as the controller, the use of temperature sensor DS18B20 as the
temperature acquisition components, and according to the collected temperature, by a
Darlington reverse drive ULN2803 drive fan motor. According to the set temperature
detected by the temperature and the system to achieve automatic start and stop of the
fan motor, and to root temperature automatically change the rotational speed of the
fan motor, with eight LED digital display at the same time the detected temperature
and set temperature.
Keywords:microcontroller DS18B20 thermostat fan
目 录
摘 要 ...........................................................................................................................I
ABSTRACT ................................................................................................................II
绪 论 ............................................................................................................................1
1 基于单片机的自动调温风扇系统设计 ..................................................................2
1.1 自动调温风扇的研究意义............................................................................2
1.2 系统整体设计思路........................................................................................2
2 方案选择及论证 ......................................................................................................4
2.1 温度传感器的选择.........................................................................................4
2.2 控制核心的选择............................................................................................4
2.3 温度显示器件的选择.....................................................................................5
2.4 调速方式的选择.............................................................................................5
3 各单元模块的硬件设计 ..........................................................................................7
3.1 系统器件简介.................................................................................................7
3.1.1 DS18B20 单线数字温度传感器简介 ..........................................................7
3.1.2 AT89C52 单片机简介 ...............................................................................8
3.1.3 LED 数码管简介 ....................................................................................11
3.2 部分电路设计...............................................................................................12
3.2.1 开关复位与晶振电路.............................................................................12
3.2.2 数码管显示电路....................................................................................12
3.2.4 温度采集电路 .......................................................................................13
3.2.5 系统复位和按键部分电路......................................................................14
3.2.6 风扇部分控制电路的设计......................................................................15
3.2.7 蜂鸣器电路...........................................................................................16
4 系统软件的设计 ....................................................................................................17
4.1 系统软件功能描述.......................................................................................17
4.2 系统部分模块流程图....................................................................................18
4.2.1 主程序流程图 .......................................................................................18
4.2.2 按键扫描子程序流程图 .........................................................................19
4.2.3 设置上下限温度值程序流程图...............................................................20
4.2.4 温度显示子程序流程图 .........................................................................22
4.2.5 DS18B20 复位与检测子程序...................................................................23
5 系统调试 ................................................................................................................24
5.1 用 Proteus 进行软件仿真..............................................................................24
5.1.1 Proteus 简介........................................................................................24
5.1.2 本设计基于 Proteus 的仿真 ..................................................................25
5.2 硬件电路调试...............................................................................................28
5.2.1 按键显示部分的调试.............................................................................28
5.2.2 传感器 DS18B20 温度采集调试...............................................................29
5.3 系统功能.......................................................................................................29
总 结 ..........................................................................................................................31
致 谢 ..........................................................................................................................33
参考文献 ....................................................................................................................34
附录 1:电路总图 .....................................................................................................35
附录 2:PCB 图 ..........................................................................................................36
附录 3:实作使用说明 .............................................................................................37
附录 4:源程序 .........................................................................................................38
附录 5:设计程序 .....................................................................................................59
绪 论
生活中,我们经常会使用一些与温度有关的设备。比如,现在虽然不少城
市家庭用上了空调,但在占中国大部分人口的农村地区依旧使用电风扇作为降
温防暑设备,春夏(夏秋)交替时节,白天温度依旧很高,电风扇应高转速、
大风量,使人感到清凉;到了晚上,气温降低,当人入睡后,应该逐步减小转
速,以免使人感冒。虽然电风扇都有调节不同档位的功能,但必须要人手动换
档,睡着了就无能为力了,而普遍采用的定时器关闭的做法,一方面是定时时
间长短有限制,一般是一两个小时;另一方面可能在一两个小时后气温依旧没
有降低很多,而风扇就关闭了,使人在睡梦中热醒而不得不起床重新打开风扇,
增加定时器时间,非常麻烦,而且可能多次定时后最后一次定时时间太长,在
温度降低以后风扇依旧继续吹风,使人感冒;第三方面是只有简单的到了定时
时间就关闭风扇电源的单一功能,不能满足气温变化对风扇风速大小的不同要
求。又比如在较大功率的电子产品散热方面,现在绝大多数都采用了风冷系统,
利用风扇引起空气流动,带走热量,使电子产品不至于发热烧坏。要使电子产
品保持较低的温度,必须用大功率、高转速、大风量的风扇,而风扇的噪音与
其功率成正比。如果要低噪音,则要减小风扇转速,又会引起电子设备温度上
升,不能两全其美。为解决上述问题,我们设计了这套温控自动风扇系统。本
系统采用高精度集成温度传感器,用单片机控制,能显示实时温度,并根据使
用者设定的温度自动在相应温度时作出小风、大风、停机动作,精确度高,动
作准确。
剩余72页未读,继续阅读
资源评论
老帽爬新坡
- 粉丝: 79
- 资源: 2万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于MFC的校园导航程序(使用最短路径dijkstra算法).rar
- Android Studio android APP 视频作为视图背景需要源代码或想了解其实现原理的可以私心我
- com.ZeroneGames.GreenProject.apk
- Python自动化开发入门教程
- 4399GameSem_116_13955_207551_6.apk
- python 3.9.19源码编译包
- php-8.2.18-Win32-vs16-x64.rar
- 字节跳动青训营-抖音项目
- SQL资料手册,语句教程,高级查询语句语法
- 上位机和串口建立 Modbus 协议进行数据传输,并使用 Mysql 数据库存储,能够实现实时温湿度显示和动态变化曲线,历史数据
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功