基于单片机的温控风扇

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

本科毕业设计(论文)

题目基于单片机的温控风扇

学院名称山东轻工业学院

专业班级电子信息科学与技术

学生姓名姜茂山

导师姓名孙吉红

[键入文字]

目录

摘要..............................................................................................错误!未定义书签。Abstract ............................................................................................错误!未定义书签。第一章整体方案设计 .. (1)

1.1 前言 (1)

1.2 系统整体设计 (1)

1.3方案论证 (2)

1.3.1 温度传感器的选择 (2)

1.3.2 控制核心的选择 (3)

1.3.3 温度显示器件的选择 (3)

1.3.4 调速方式的选择 (3)

第二章各单元模块的硬件设计 (5)

2.1系统器件简介 (5)

2.1.1 DS18B20单线数字温度传感器简介 (5)

2.1.2 达林顿反向驱动器ULN2803简介 (5)

2.1.3 AT89C52单片机简介 (6)

2.1.4 LED数码管简介 (7)

2.2 各部分电路设计 (8)

2.2.1 开关复位与晶振电路 (9)

2.2.2 独立键盘连接电路 (9)

2.2.3 数码管显示电路 (10)

2.2.4 温度采集电路 (11)

2.2.5 风扇电机驱动与调速电路 (12)

第三章软件设计 (14)

3.1 程序设置 (14)

3.2 用Keil C51编写程序 (14)

3.3 用Proteus进行仿真 (15)

3.3.1 Proteus简介 (15)

3.3.2 本设计基于Proteus的仿真 (16)

第四章系统调试 (21)

4.1 软件调试 (21)

4.1.1 按键显示部分的调试 (21)

4.1.2 传感器DS18B20温度采集部分调试 (21)

4.1.3 电动机调速电路部分调试 (21)

4.2 硬件调试 (22)

4.2.1 按键显示部分的调试 (22)

4.2.2 传感器DS18B20温度采集部分调试 (22)

4.2.3 电动机调速电路部分调试 (22)

4.3 系统功能 (23)

4.3.1 系统实现的功能 (23)

4.3.2 系统功能分析 (23)

结论 (24)

1

[键入文字]

参考文献 (25)

致谢 (26)

附录1:电路总图 (27)

附录2:程序代码 (28)

2

[键入文字]

摘要

利用单片机设计了电风扇的自动控制系统,分析了硬件电路与软件设计。利用单片

机监测18B20采集的温度,根据温度高低,单片机的P2.7脚输出高电平或者低电平,

来控制继电器线圈中能否有电流经过,根据继电器线圈通电时,常开触点闭合,没电流

经过时,常开触点保持断开,从而实现自动控制电风扇的启停,根据温度高低实现自动

控制,方便于夏天人们晚上睡觉时使用。实践证明该系统可靠性高,工作稳定,成本低,实现了弱电控制强电,有较高的应用价值。

关键词:AT89S52 单片机;温度采集;电风扇;自动控制

Electric Fan Design of Auto Temperature Control Based on AT89S52 (Project Huai’an of Higher Vocational Schools,Huai’an, 223200, China) Abstract: The electric fan control system is designed by using single chip computer, the hardware and software design are analysed . The temperature collected by 18B20 is detected by single chip computer , according to high and how temperature, single chip computer P2.7-pin output high level or low level to control relay whether there is current in the coil through ,according to the coil power relay, normally open contact is closed ,no current passing ,often a disconnect to maintain contacts so as to achieve the automatic control from the fans stopped. The system has changed the traditional manual control from the fans stopped ,automatic control is realized according to temperature to facilitate the summer when people sleep at night .Practice prove that the system has high reliability, stability and low cost, a strong, weak control and higher value are achieved.

Keywords: AT89S52; temperature collection ; electric fans; automatic control

I

相关文档
最新文档