基于单片机的自动洗衣机控制系统的设计摘要:洗衣机是现代人必备的日常生活家电,它的发明和应用使人们的洗衣工作变得省时又省力,很好地缓解了人们在家务劳动方面的压力。一般的数字逻辑电路控制的洗衣机只有两三个程序,也有一按通的傻瓜程序。而基于单片机控制的洗衣机可以复杂程序控制,将水位段细化,漂洗功能细化,加上适用不同衣物等功能,洗涤程序大大增加。本次设计采用AT89C51单片机作为洗衣机控制系统的主控芯片,洗衣机的各种洗衣程序运行都在单片机的控制下,使得洗涤、漂洗、脱水等各种功能的操作都不需要手动。系统的硬件设计包括电源模块、谐振式水位监测模块、洗衣机LED显示、输出控制电路,软件设计包括主程序、内部定时中断服务程序、外部中断服务程序。关键词:洗衣机;单片机;LED显示-IDesignofAutomaticWashingMachineControlSystemBasedonSingleChipMicrocomputerAbstract:Thewashingmachineistheapplianceinpeople’sdailylife,itsinventionandapplicationtothejobgetstime-saving,andrelievesthepressureinthedomesticlabour.Thedigitallogictocontrolcircuitofthewashingmachinehasonlytwoorthreeprograms,alsohasafoolaccordingtotheprogram.Buttherevivificationofwashingmachinecancontrolalargecomplexprogram,andcanturnthewaterlevelandrinsingfunctionsintotiny,becauseofitsdifferentfunctionsinclothing,washingprocedureincreasessignificantly.ThisdesignusesAT89C51asthemaincontrolchip,alltheprogramsofthewashingmachineareunderthecontroloftheCPUsothatwashing,rinsinganddehydrationfunctionsdon’tneedtobeoperatedbymanual.Thehardwaredesignofthesystemincludespowermodule,watermonitoringmodule,LEDdisplayandoutputcontroller,thesoftwarepartiscomposedofthemainprocedure,timingservicesapplicationandexternalservices.Keywords:WashingMachine;SingleChipMicrocomputer;LEDdisplay-II-III目录1绪论....................................................................................................................11.1课题提出的目的及意义.........................................11.2国内外研究现状.................................................................11.3发展趋势.........................................................................................21.4系统的工作流程.................................................................31.5主要研究内容.........................................................................32系统的整体方案设计.............................................................42.1系统的整体构架.................................................................42.2系统技术方案.........................................................................62.3系统功能方案.........................................................................63系统的硬件设计.............................................................................73.1主控电路的设计.................................................................73.1.1关于AT89C51芯片.....................................................73.1.2AT89C51图的引脚图及总线结构图.83.1.3AT89C51外围辅助电路的设计.................103.2各部分电路设计.................................................................103.2.1洗衣机控制器控制面板的设计.103.2.2按键的内部连接.....................................................123.2.3晶闸管驱动控制电路设计.................123.2.4水位监测电路设计.........................................143.2.5开关电源电路设计.............................................163.2.6键盘输入及显示电路设计.................173.2.7报警电路设计...................................................