基于单片机的智能遥控感应风扇设计摘要本设计为一种智能温控和湿控风扇系统,具有灵敏的温度感测、湿度感测和显示功能,系统STC89C52单片机作为控制平台对风扇转速进行控制。可由用户设置高、低温度值,测得温度值在高低温度之间时打开风扇弱风档,当温度升高超过所设定的温度时自动切换到大风档,当温度小于所设定的温度时自动关闭风扇,控制状态随外界温度而定所设高低温值保存在温度传感器DS18B20内部E2ROM中,掉电后仍然能保存上次设定值,性能稳定,控制准确。通过温湿度传感器DHT11监测温度,当湿度超过所设定的高湿度值时自动打开加热片去湿,当湿度小于所设定的低湿度值时自动打开水泵加湿。关键词:STC89C51单片机;STC89C52单片机;温湿度传感器;智能控制。IAbstractThisdesignisanintelligenttemperaturecontrolandhumiditycontrolfansystem,withsensitivetemperaturesensing,humiditysensinganddisplayfunctions,thesystemSTC89C52microcontrollerasacontrolplatformtocontrolthefanspeed.Highandlowtemperaturevaluescanbesetbytheuser.Whenthemeasuredtemperaturevalueisbetweenhighandlowtemperature,theweakwindshieldofthefanwillbeopened.Whenthetemperaturerisesbeyondthesettemperature,thefanwillbeautomaticallyswitchedtothehighwindshield.ThesethighandlowtemperaturevalueissavedintheinternalE2ROMofthetemperaturesensorDS18B20.Afterpoweroff,thelastsetvaluecanstillbesavedwithstableperformanceandaccuratecontrol.ThetemperatureismonitoredthroughthetemperatureandhumiditysensorDHT11.Whenthehumidityexceedsthesethighhumidityvalue,theheatingelementisautomaticallyopenedtodehumidify;whenthehumidityislessthanthesetlowhumidityvalue,thewaterpumpisautomaticallyopenedtohumidify.Keywords:STC89C51single-chipmicrocomputer;STC89C52singlechipmicrocomputer;Temperatureandhumiditysensor;Intelligentcontrol.II目录摘要....................................................................................................Error:ReferencesourcenotfoundAbstract....................................................................................Error:Referencesourcenotfound第1章绪论.................................................................................................................................1第1节智能遥控感应风扇的背景.......................................................................................1第2节智能遥控感应风扇的内容.......................................................................................1第3节智能遥控感应风扇的创新点....................................................................................................2第2章智能遥控感应风扇设计过程..........................................................................................3第1节风扇硬件设计...........................................................................................................5第2节风扇软件设计...........................................................................................................9第3章智能遥控感应风扇的功能与测试结果.........................................................................14第1节智能遥控感应风扇的功能.....................................................................................14第2节智能遥控感应风扇功能测试结果.........................................................................15结论............................................................................................................................................18参考文献...................................................................................