I摘要随着电子技术的飞速发展,人们生活水平的提高及生活节奏的加快,家电产品是越来越深入人们的日常生活。本系统研究的内容就是以单片机为中心的洗衣机控制系统设计,系统采用常见的价廉物美的ATMEL单片机AT89C51作为控制核心。为防止因电源过低或电源间断性供电而引起电脑工作状态混乱,设计了欠压检测保护电路。如有脱水误开盖或脱水不平衡等状况,蜂鸣器鸣叫,提示用户进行处理,保证洗衣机及人身安全。本设计按键较少,采用单端直接输入方式,使电路简单。功率驱动电路先由三极管进行电流放大后再加到继电器的控制极上,作为继电器的触发信号。由继电器实施对电动机、进水阀、排水阀的控制。显示电路采用三只发光二极管作程序选择键功能显示。电源电路经变压,整流,滤波后经三端集成稳压器7805输出稳定的5V直流电压,作为程序控制器的主电源。关键词:单片机;洗衣机;程序;电源IIAbstractAlongwithelectronictechnologyswiftdevelopment,thepeoplelivingstandard'senhancementandrhythmoflife'squickening,theelectricalappliancesproductismoreandmorethoroughpeople'sdailylife.Thissystemresearch'scontentistakethemonolithicintegratedcircuitasthecentralwashercontrolsystemdesign,thesystemusesthecommonlow-pricequalitymerchandiseATMELmonolithicintegratedcircuitAT89C51totakethecontrolcore.Inordertopreventbecauseofthepowersourcetobeexcessivelyloworthepowersourcediscontinuitypowersupplycausesthecomputeractivestatustobechaotic,hasdesignedtheundervoltageexaminationprotectioncircuit.Ifhasthedehydrationtouncaporthedehydrationbymistakenotbalancedandsoonconditions,thebuzzersounds,toprompttheusertocarryonprocessing,guaranteesthewasherandthepersonalsafety.Thisdesignpressedkeyarefew,selectsthesingleenddirectinputmethod,makestheelectriccircuittobesimple.Thepowerdrivingcircuitcarriesonfirstafterthetriodetubetheelectriccurrentenlargesaddstorelay'scontrolagainonextremely,takesrelay'striggerpip.Implementsbytherelaytotheelectricmotor,theinletvalve,draw-offvalve'scontrol.Thedisplaycircuitusesthreelightemitterdiodestomaketheprogramselectionkeyfunctiondemonstration.Thepowercircuitpassesthroughthelivepressure,therectification,afterthefilter,afterthreeendintegrationmanostat7805outputstable5VDCvoltage,takesprogramtimer'smainpowersource.keyword:Monolithicintegrated;Thewashingmachine;Program;PowersupplyIII目录1绪论.....................................................................................................................................11.1课题开发背景.............................................................................................................11.2目的意义.....................................................................................................................21.3国内外现状及水平.....................................................................................................21.4设计内容.....................................................................................................................42硬件设计.............................................................................................................................52.1硬件系统总体设计.....................................................................................................52.1.l单片机按键控制电路.........................................................................................52.1.2稳压电源电路.....................................................................................................62.1.3时间及进程显示电路.........................................................................................62.1.4蜂鸣器电路.........................................................................................................72.1.5电机控制电路.....................................................................................................82.1.6单片机的驱动复位电路.....................................................................................92.2系统的水位检测.......................................................................................................102.3器件的选择...............................................................................................................113软件设计...........................................................................................................................123.1软件总体设计...........................................................................................................123.1.1洗衣机控制器时间程序设计...........................................................................133.1.2洗衣机控制器电机控制程序设计...................................................................134系统电路仿真...................................................................................................................154.1系统注水并准备运行仿真.......................................................................................154.2电机转动仿真...........................................................................................................164.3系统脱水仿真...........................................................................................................174.4LED显示灯的仿真电路............................................................................................175调试...................................................................................................................................19IV5.1硬件调试...................................................................................................................195.2软件调试...................................................................................................................20结论.........................................................................