您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 基于单片机的智能温控风扇设计
苏州市职业大学电子信息工程学院毕业设计I摘要本设计为智能温控风扇系统,该系统可以实现风扇随实时环境温度而智能变速功能。系统主要选用STC89C52单片机作为控制中心,DS18B20数字温度传感器采集实时温度,再经单片机处理后通过三极管放大信号后驱动直流风扇的电机。用户可以预设上限、下限温度值,当测得环境温度值在预设上下限值区间中时,此时风扇以半速转动;当温度升高并大于预设上限温度值时,风扇会自动调速,以全速转动;当温度降低并低于预设的下限温度值时,这时风扇电机自动停止转动。全程实现风扇转速随外界温度而智能自变。关键词:温控风扇,STC89C52单片机,DS18B20数字温度传感器,智能自变苏州市职业大学电子信息工程学院毕业设计IIAbstractThisdesignfortheintelligenttemperaturecontrolfansystem,thesystemcanrealizethefanintelligentvariablespeedfunctionaccordingtothereal-timeenvironmentaltemperature.STC89C52single-chipmicrocomputersystemismainlyusedasthecontrolcenter,DS18B20digitaltemperaturesensortocollectreal-timetemperature,thenthroughsinglechipthroughtriodeamplifiersignalafterdrivedcfanmotor.Userscanpresetupperlimitandlowerlimittemperature,whentheenvironmenttemperaturemeasurementinthepresetupperandlowerlimitrange,thefanrotatesathalfspeed;Whenthetemperatureisgreaterthanthepresetlimittemperature,fanspeedautomatically,withfullrotation.Whenthelowerlimitoftemperatureislowerandlowerthanthepresetvalue,thefanmotorautomaticallystoprunning.Theentireimplementationandintelligencefromchangefanspeedvarieswithtemperature.Keywords:temperaturecontrolfan,STC89C52SinglechipmicrocomputerandDS18B20digitaltemperaturesensor,smartsincethechange苏州市职业大学电子信息工程学院毕业设计III目录摘要...................................................................................................IAbstract............................................................................................II1绪论.................................................................................................11.1本设计的背景及意义..........................................................................11.2发展现状.............................................................................................11.3本设计的主要内容..............................................................................12系统整体设计................................................................................22.1系统整体设计框图..............................................................................22.2系统各模块选用方案论证..................................................................22.2.1温度传感器的选用..................................................................22.2.2主控机的选用..........................................................................42.2.3显示电路的选用......................................................................42.2.4调速方式的选用......................................................................43系统硬件设计................................................................................63.1系统硬件原理图..................................................................................63.2主控芯片介绍......................................................................................63.2.1STC89C52简介.......................................................................63.2.2STC89C52主要性能参数........................................................73.2.3STC89C52单片机引脚说明....................................................83.2.4STC89C52单片机最小系统....................................................83.3DS18B20温度采集电路.....................................................................103.3.1DS18B20引脚功能介绍........................................................103.3.2DS18B20主要性能参数........................................................113.3.3DS18B20的工作原理及时序................................................113.4数码管显示电路................................................................................123.5风扇驱动电路....................................................................................133.6按键模块...........................................................................................134系统软件设计..............................................................................15苏州市职业大学电子信息工程学院毕业设计IV4.1主程序流程图....................................................................................154.2DS18B20子程序流程图.....................................................................164.3按键子程序流程图............................................................................164.4数码管显示子程序流程图................................................................185系统调试......................................................................................195.1系统功能...........................................................................................195.1.1系统实现的功能....................................................................195.1.2系统功能分析........................................................................195.2软硬件调试.......................................................................................195.2.1系统硬件实物介绍................................................................195.2.2按键显示部分的调试.............................................................205.2.3温度传感器DS18B20温度采集部分调试............................205.2.4风扇调速电路部分调试.........................................................21结论................................................................................................22致谢...........................................................................................
本文标题:基于单片机的智能温控风扇设计
链接地址:https://www.777doc.com/doc-3329485 .html