成都理工大学工程技术学院毕业论文基于51单片机的全自动洗衣机设计作者姓名:XXXXXXXXX专业名称:XXXXXXXXX指导教师:XXXXXXXXXX讲师基于51单片机的全自动洗衣机设计-I-摘要随着数字技术的快速发展,数字技术被广泛应用于智能控制的领域中。单片机以体积小、功能全、价格低廉、开发方便的优势得到了许多电子系统设计者的青睐。它适合于实时控制,可构成工业控制器、智能仪表、智能接口、智能武器装置以及通用测控单元等。本文以AT89C52单片机为核心设计了全自动洗衣机控制系统,本系统实现了对洗衣机整个洗衣过程的控制,包括用户参数输入、进水、洗衣、泡洗、脱水、出水和结束报警等几个阶段。控制系统主要由电源电路、单片机控制系统和外部硬件电路三大模块组成。电源电路为单片机主控系统提供5v的直流电压;单片机主控系统负责控制洗衣机的工作过程,主要由AT89C52单片机、数码管、按键、蜂鸣器、LED指示灯组成;外部硬件电路有继电器、三极管、LED灯组成。本系统的电路并不复杂,给AT89C52单片机载入软件程序后,能够实现全自动洗衣机的基本功能。虽然不能与电器市场上的洗衣机控制系统媲美,但也具有一定的实用性。关键词:AT89C52用户参数继电器控制系统LED蜂鸣器基于51单片机的全自动洗衣机设计-II-AbstractWithitsrapiddevelopment,digitaltechnologyiswidelyusedinthefieldofcontrolsystem.Singlechipmicrocontrollerisfavoredbymanyelectronicsystemdesignersforitssmallness,fullfunction,lowpriceandeasyapplication.Itsprettyfitforreal-timecontrolasacoreinindustrialcontroller,intelligentapparatus,intelligentinterface,intelligentweapondevice,universalmeasurecontrolunit,etc.Thisarticledesignsafull-automaticwashingmachinecontrolsystemwithAT89S51ascore.Thissystemrealizeswholeworkingcourseoffull-automaticwashingmachine,includingfourparts:userparameterinput,wash,dehydrateandendingmusicplay.Hardwaresystemismadeupofthreemodules:powersupplycircuit,digitalcontrolcircuitandmachinecontrolcircuit.PowersupplycircuitprovidessteadyDC5VvoltagefordigitalcontrolcircuitandAC220Vformotor.Digitalcontrolcircuittakeschargeofcontrollingtheworkingcourse.ItconsistsofAT89S51,double-figuredcommon-cathodednumeraldisplay,buttons,buzzer,LED.Machinecontrolcircuitrealizesthefunctionsofwaterleveldetect,motordriven,waterimportandexport,itconsistsofwaterleveldetector,motor,transmissionsystemcomponentsandpenstocks.AfterdownloadingtheprogramtoAT89S51,thiscircuitcanrealizebasicfunctionsoffull-automaticwashingmachine.Itseemshardforthiscontrolsystemtocomparewithperfectonesintheelectricalappliancemarket,butithascertainpracticability.Keywords:AT89C52;Userparameterinput;waterleveldetector;LED;Controlsystem;Buzzer基于51单片机的全自动洗衣机设计-III-目录摘要..............................................................................................................................IAbstract........................................................................................................................II目录.......................................................................................................................III引言.........................................................................................................................11概述.........................................................................................................................21.1课题开发背景..................................................................................................21.2设计的目的和意义..........................................................................................21.3国内外现状及水平..........................................................................................32设计方案......................................................................................................................52.1设计任务..........................................................................................................52.2洗衣机的设计方案..........................................................................................52.2.1按键.......................................................................................................52.2.2洗衣程序...............................................................................................52.2.3设计总方框图.......................................................................................62.3控制系统的功能..............................................................................................63硬件设计.....................................................................................................................83.1控制系统的电路组成.......................................................................................83.2电源电路..........................................................................................................93.3单片机控制电路..............................................................................................93.3.1AT89C52单片机主控系统..................................................................93.3.2单片机的复位电路.............................................................................123.3.3单片机的时钟电路.............................................................................133.3.4显示电路.............................................................................................133.3.5蜂鸣器报警电路.................................................................................163.3.6电动机的控制电路.............................................................................163.3.7进水/排水电路....................................................................................173.4主电路图........................................................................................................18第4章软件设计.........................................................................................................194.1主程序设计