基于单片机的风扇温控仪设计学生专业:电子信息工程学生姓名:王丹阳导师姓名:吕中志摘要电风扇在我们日常生活和工作中是必不可少的工具,尤其是夏天更能给人带来凉爽。但是随着当今能源匮乏,环保节能意识加强,传统电风扇已不足以满足现在的需求。基于单片机的智能控制,本文设计了一款新型智能风扇温控系统,可以自动控制风速。通过感知和检测周边现场的环境温度,风扇会适当的调节自身的转速和频率,根据环境温度也会做出启动,停止等动作,不需要人为操控,具备很强的便捷性。在该智能电风扇的控制系统当中,运用STC89C52单片机作为系统控制的核心;房间温度采用温度传感器DS18B20收集。此项设计弥补了传统风扇的种种不足,一方面在日常生活中运用智能温控技术,另一方面可以达到自动调控节省了自然资源。关键词:单片机,交流电机,温度传感器DS18B20DesignofFanTemperatureControlInstrumentBasedonSingleChipMicrocomputerAbstractElectricfansareindispensabletoolsinourdailylifeandwork,especiallyinsummer.However,withthelackofenergyandtheawarenessofenvironmentalprotectionandenergysaving,traditionalelectricfansarenotenoughtomeetthecurrentdemand.WedesignanintelligenttemperaturecontrolfansystemwithautomatictemperaturecontrolandwindspeedcontrolbasedonSCMintelligentcontrol.Whentheambienttemperaturerises,thefanwillchangeitsspeedaccordingtothetemperature.Whenthetemperatureisreduced,itcanalsoreducethefrequency,withouthumanmanipulation,ithasastrongconvenience.Itcandetecttheambienttemperatureaccuratelyandautomaticallycontrolthestarting,stoppingandwindspeedoftheelectricfanaccordingtothechangeoftheambienttemperature.ThehightemperatureandlowtemperaturevaluesarestoredintheE2ROMofthetemperaturesensorDS18B20.Afterthepowerfailure,thelastsettingvaluecanbesaved,theperformanceisstableandthecontrolisaccurate.ThecontrolsystemoftheintelligentelectricfanisusedasthecoreofthesystemcontrolbysinglechipmicrocomputerSTC89C52,andthetemperatureacquisitionisaccomplishedbyusingthetemperaturesensorDS18B20intheindoortemperaturecollection.Thisdesignmakesupfortheshortcomingsofthetraditionalfan,ontheonehand,theuseofintelligenttechnologyindailylife,ontheotherhand,canachieveautomaticcontrolandsavethenaturalresources.Keywords:singlechipmicrocomputer,intelligentcontrol,temperaturesensorDS18B20目录第1章绪论....................................................11.1电风扇的工作原理........................................11.2电风扇的发展现状和前景..................................11.3本设计任务和主要内容....................................1第2章系统器件的选型..........................................32.1温度传感器的选型........................................32.2微处理器的选择..........................................52.3显示器件的选型..........................................7第3章系统的硬件设计..........................................93.1硬件设计的综述..........................................93.2温度检测电路............................................93.3电机调速电路............................................103.4按键电路设计............................................123.5LED数码管显示电路设计.................................12第4章系统软件设计...........................................144.1主程序................................................144.2数字温度传感器模块和显示子模块........................154.3按键模块................................................15第5章系统的调试与仿真.......................................185.1硬件调试............................................