基于单片机的温控风扇设计毕业论文(很全)-(2)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

洛阳理工学院毕业设计(论文)I基于51单片机的温控风扇设计摘要在炎热的夏天人们用电风扇来降温;在工业生产中,大型机械用电风扇来散热等。随着温度控制的技术不断发展,应运而生的温控电风扇也逐渐走进了人们的生活中。温控电风扇可以根据环境温度自动调节电风扇启停与转速,在实际生活的使用中,温控风扇不仅可节省宝贵的电资源,也大大方便了人们的生活和生产。本设计为一种温控风扇系统,具有灵敏的温度感测和显示功能,系统采用STC89C51单片机作为控制平台对风扇转速进行控制。利用DS18B20数字温度传感器采集实时温度,经单片机处理后通过三极管驱动直流风扇的电机。根据采集的实时温度,实现了风扇的自起自停。可由用户设置高、低温度值,测得温度值在高低温度之间时打开风扇弱风档,当温度升高超过所设定的温度时自动切换到大风档,当温度小于所设定的温度时自动关闭风扇,控制状态随外界温度而定。关键词:温控风扇,单片机,DS18B20,自动控制洛阳理工学院毕业设计(论文)IITemperaturecontrolfandesignbasedon51singlechipmicrocomputerABSTRACTInthehotsummer,peopleusecoolingfan;intheindustrialproduction,isusedtoheattheelectricfanlargemachinery.Withthecontinuousdevelopmentofthetechnologyoftemperaturecontrol,temperaturecontrolledelectricfanemergeasthetimesrequiregraduallyintopeople'slives.Temperaturecontrolledelectricfancanbeadjustedautomaticallystopandstartthefanspeedaccordingtotheenvironmenttemperature,theuseofreallife,temperaturecontrolledfannotonlycansavepowerresourcesvaluable,butalsogreatlyfacilitatethepeople'slifeandproduction.Thedesignofatemperaturecontrolledfansystem,sensitivetemperate-easuinganddisplay,thesystemusesSTC89C51microcontrollerasthecontrolplatformtocontrolthespeedofthefan.Thereal-timetemperatureusingDS18B20digitaltemperaturesensor,SCMprocessingthroughthetransistorDCfanmotordrive.Accordingtothereal-timetemperatureacquisition,thefanselfstop.High,lowtemperaturevaluesetbytheuser,themeasuredtemperaturevaluesinthehighandlowtemperaturebetweenopenfanweakwindprofile,whenthetemperatureexceedsthesettemperatureautomaticallyswitchtothefile,automaticallyturnoffthefanwhenthetemperatureislowerthanthesettemperature,thecontrolstatevarieswiththeoutsidetemperature.KEYWORDS:Temperaturecontrolfan,MCU,DS18B20,automaticcontrol洛阳理工学院毕业设计(论文)III目录前言................................................................................................1第1章绪论......................................................................................21.1研究本课题的目的和意义...................................................21.2发展现状...............................................................................2第2章整体方案选择.......................................................................42.1温度传感器的选用...............................................................42.2主控机的选择.......................................................................62.3显示电路................................................................................62.4调速方式................................................................................7第3章系统硬件组成.......................................................................83.1系统结构...............................................................................83.2主控芯片介绍.......................................................................83.2.1STC89C51简介...........................................................83.2.2STC89C51主要功能和性能参数..................................93.2.3STC89C51单片机引脚说明......................................103.2.4STC89C51单片机最小系统........................................123.2.5STC89C51中断技术概述............................................143.3DS18B20温度采集电路......................................................153.3.1DS18B20的特点及内部构造.....................................153.3.3DS18B20的工作原理.................................................173.3.3DS18B20的工作时序.................................................193.4数码管驱动显示电路.........................................................223.4.1数码管驱动电路.......................................................223.4.2数码管显示电路.......................................................233.5风扇驱动电路.....................................................................243.6按键模块.............................................................................26第4章系统软件设计.....................................................................284.1软件介绍.............................................................................28洛阳理工学院毕业设计(论文)IV4.1.1KeilC51.....................................................................284.1.2Protel99SE..................................................................294.1.3Proteus........................................................................304.2主程序流程图.....................................................................324.3DS18B20子程序流程图......................................................334.4数码管显示子程序流程图.................................................344.5按键子程序流程图.............................................................35第5章系统调试.............................................................................375.1软硬件调试.........................................................................375.1.1按键显示部分的调试...............................................375.1.2传感器DS18B20温度采集部分调试.......................375.1.3风扇调速电路部分调试............................................385.2系统功能.............................................................................385.2.1系统实现的功能.......................................................385.2.2系统功能分析...........................................................39结论...........................

1 / 58
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功