电子与信息学院《智能家电》期末课程设计题目:基于AT89C52单片机的智能风扇设计专业:应用电子技术教育师范班级:13应用师2班小组成员:魏兆协黄国强黄智敏林建都指导老师:刘炽辉成绩:2015年12月基于89C52单片机的智能风扇设计摘要:传统电风扇多采用机械方式进行控制,功能少,噪音大,各档的风速变化大,耗能大,忘关风扇等情况,新闻曾经报道过因为忘关风扇导致火宅的严重事故。随着科技的发展和人们生活水平的提高,家用电器产品趋向于自动化、智能化、环保化和人性化,使得由微机控制的智能节能电风扇得以出现。单片机具有体积小,成本低,抗干扰能力强,面向控制,可以实现分机各分布式控制等优点。本文阐述了利用单片机的上述优点控制各个模块运作,采用目前市场上性价比比较高的STC89C52单片机控制,以DS18B20温度传感器测温、用人体感应模块感应红外线,以蓝牙模块实现对手机连接,并通过四位共阳数码管显示。系统主要由单片机控制电路,时钟电路,显示电路以及校正电路四个模块组成。本文阐述了系统的硬件工作原理,所应用的各个接口模块的功能以及其工作过程,论证了设计方案理论的可行性。系统程序采用C语言编写,经KEIL软件进行调试后在仿真软件中进行仿真测试,用单片机控制,能显示实时温度,并根据使用者设定的温度自动在相应温度时作出小风、大风、停机动作,精确度高,动作准确,这款智能风扇增加了人体红外感应的功能,实现人来开,人走关的功能,具有广阔的市场应用前景。关键词:智能风扇89C52单片机DS18B20人体感应蓝牙数码管AbstractTraditionalelectricfanusedmorecontrolintheformofmechanicalfunction,lessnoisy,allkindsofwindspeedchangeisbig,bigenergyconsumption,forgettoclosethefan,andsoonandsoforth,newshasreportedbecauseforgettoclosethefanleadtoseriousaccidentsoffire.Withthedevelopmentofscienceandtechnologyandpeoplelivingstandardrise,householdappliancesproductstendtoautomation,intelligent,environmentalprotection,andhumanization,controlledbythemicrocomputerintelligentenergy-savingelectricfantoappear.SCMhassmallvolume,lowcost,stronganti-jammingcapability,tocontrol,canrealizeextensionalltheadvantagesofdistributedcontrol.Thispaperexpoundstheadvantagesofusingthesinglechipmicrocomputercontrolmodules,usingthecurrentmarketpricehigherSTC89C52single-chipmicrocomputercontrol,withDS18B20temperaturesensorinductioninfraredtemperaturemeasurement,usingthehumanbodyinductionmodule,implementedbythebluetoothmoduletomobilephoneconnection,andthroughthefourYangdigitaltubedisplay.Systemismainlycomposedofsinglechipmicrocomputercontrolcircuit,clockcircuit,displaycircuitandcorrectingcircuitoffourmodules.Thispaperexpoundstheworkingprincipleofthehardwareofsystem,theapplicationofthefunctionofeachinterfacemoduleanditsworkingprocess,demonstratesthefeasibilityofthedesigntheory.SystemprogramwrittenusingClanguage,afterKEILsoftwaredebugginginsimulationsoftwaresimulationtest,usingsingle-chipmicrocomputercontrol,candisplayreal-timetemperature,andaccordingtothetemperaturesetbytheuserautomaticallyinthecorrespondingtemperaturetomakelittlewind,wind,stopaction,highaccuracy,precision,theintelligentfantoincreasethefunctionofhumanbodyinfraredsensor,realizepeopletoopen,thefunctionofpeoplegooff,hasthebroadmarketapplicationprospect.Keywords:intelligentfan;89c52.DS18B20.Humanbodyinduction;Bluetooth;Digitaltube目录摘要.........................................................................................................................................................................Ⅰ1前言.......................................................................................................................................................................11.1课题的背景............................................................................................................................11.2课题的主要工作....................................................................................................................11.2.1课题的设计目标.............................................................................................................11.2.2论文章节安排.................................................................................................................22单片机的概述................................................................................................................................................22.1单片机的定义和特点............................................................................................................32.1.1单片机的定义.................................................................................................................32.1.2单片机的特点.................................................................................................................32.2单片机的发展趋势................................................................................................................32.3编程语言的选择...................................................................................................................43设计要求和方案....................................................................................................43.1设计要求...............................................................................................................................43.2单片机芯片的选择方案.......................................................................................................53.3显示模块选择方案...............................................................................................................53.4调速方式的选择.....................................................................................................................53.5电路设计最终方案...............................................................................................................64系统的硬件设计....................................................................................................64.1电路设计框图...................................................................................................