多功能LED显示电风扇控制器的设计摘要本课题设计了一种使用ATC89C51单片机当做核心控制器的智能系统产品。实现了电风扇的多功能,而且能够将检测到的实时温度使用高清晰的液晶屏来显示。用户还可以通过使用按键对电风扇的启动温度进行设置,超过该值后将使得电风扇转动功能。这款多功能LED显示电风扇控制器内部核心框架是由ATC89C51单片机作为主控部分并且在这款高性能的微处理器芯片外部还配置了LCD1602液晶屏幕、DS18B20温度传感器和有源蜂鸣器等智能模块。通过ATC89C51单片机对这些模块电路的高效控制驱动,实现了对单一功能的电风扇的扩展。整体设计框架方面分为了硬件电路和软件程序两大部分本课题通过模块设计方法将多功能LED显示电风扇控制器的整体部分化繁为简,逐一进行设计,最终实现所有功能指标。课题最终对这款系统的设计结果进行了长时间的功能检测,检测过程中出现的所有问题都进行了优化和改进,实现了非常高的稳定性。关键词:C51单片机,LCD,DS18B20温度传感器,电动机AbstractThissubjectinventedanintelligentsystemproductusingATC89C51singlechipcomputerasthecorecontroller.Themulti-functionalelectricfanisrealized,andthecurrenttemperaturedetectedcanbedisplayedthroughahigh-definitionliquidcrystalscreen.Userscanalsosetthestartingtemperatureoftheelectricfanbypressingkeys,whichwillmakethefanturn.Thecoreframeworkofthismulti-functionalLEDdisplayfancontrollerisATC89C51singlechipmicroprocessorasthemaincontrolpart,andtheintelligentmodulessuchasLCD1602LCDscreen,DS18B20temperaturesensorandactivebuzzerarealsoconfiguredoutsidethechipofthishigh-performancemicroprocessor.ThesemodulesareefficientlycontrolledanddrivenbyATC89C51singlechipmicroprocessortorealizethesinglefunctionofelectricity.Fanexpansion,Theoveralldesignframeworkisdividedintothetwoparts:hardwarecircuitandsoftwareprogram.Thewholepartofthemulti-functionalLEDdisplayfancontrollerissimplifiedbymoduledesignmethodandthedesigncanbecarriedoutonebyone,andfinallyallthefunctionalindicatorscanbeachieved.Finally,Ispentalotoftimeontestinginthedesignresultofthissystem,andalltheproblemsintheprocessoftestinghavebeenoptimizedandimprovedtoachieveveryhighstability.Keyword:C51singlechipmicrocomputer,DS18B20TemperaturesensorLCD,Motor,目录一、引言.................................................................................................................................................................5(一)本课题的研究背景.............................................................................................................................5二、多功能LED显示电风扇控制器的设计........................................................................................................5三、多功能LED显示电风扇控制器硬件电路设计............................................................................................6(一)AT89C51最小系统电路设计..............................................................................................................6(二)报警模块硬件电路设计.....................................................................................................................8(三)温度模块的硬件电路设计.................................................................................................................91.温度传感器........................................................................................................................................92.DS18B20数字温度传感器的工作流程.........................................................................................