基于单片机的全自动洗衣机控制系统设计
摘 要
随着数字技术的快速发展,洗衣机成为家庭中不可或缺的家用电器。因此,设计了基于单片机的全自动洗衣机控制系统。本系统实现了对洗衣机整个洗衣过程的控制,包括用户参数输入,洗衣,脱水和结束报警四个阶段.控制系统主要由电源电路,单片机控制系统和外部硬件三大模块组成。通过单片机的控制,外部硬件随着用户参数的输入,洗衣机按照用户的选择要求进行运作。
本系统给AT89S52单片机载入软件程序后,能够实现全自动洗衣机的基本功能.使得洗涤、漂洗、排水、脱水等各种功能的操作都不需要手动。并可以通过选择洗涤方式来选择时间,还可以选择洗涤的强弱等多种方式。控制器通常设有强洗、弱洗两种洗涤程序,对不同的衣物可提供用户选择。本设计实现了多种洗衣功能,能够满足现代家庭的基本洗涤要求,具有一定的实用性。
关键词:单片机89S52;洗涤;全自动洗衣机;控制器
I
II
Design of control system of automatic washing machine based
on the microcontroller
Abstract
With the rapid development of digital technology, washing machine has become indispensable household appliances. Therefore, the design of the control system of automatic washing machine based on single chip microcomputer. This system realizes the control of the washing machine and the whole washing process, including user input parameters, washing, dehydration and end alarm four stages. The control system is mainly composed of a power supply circuit, SCM control system and the external hardware three modules. Through the MCU control, external hardware with user input parameters, washing machine according to the user's choice for operation.
This system downloading the program to AT89S52 microcontroller, to achieve the basic functions of automatic washing machine washing, rinsing, drainage. So, dehydration and other various functional operation does not need manual. And can choose the washing way to choose the time, can also choose the washing strength etc.. The controller usually provided with a strong, the weak wash wash two kinds of washing procedures, for different clothing can provide user selection. Design and implementation of the various washing function, can satisfy the basic washing the requirements of the modern family, has a certain practicality.
Key Words: Singlechip 89S52; washing; full automatic washing machine; controll
III
IV
目 录
摘 要 ............................................................................................................................................ I Abstract ......................................................................................................................................... III 第1章 绪论 ................................................................................................................................... 1
1.1课题的目的和意义 ........................................................................................................... 1 1.2洗衣机的发展全景及待解决的问题 ............................................................................... 1 1.3课题设计任务与要求 ....................................................................................................... 3 第2章 全自动洗衣机的设计方案 ............................................................................................... 5
2.1系统方案选择 ................................................................................................................... 5 2.2具体设计方案 ................................................................................................................... 7
2.2.1按键 ........................................................................................................................ 7 2.2.2洗衣机自检 ............................................................................................................ 7 2.2.3洗衣程序 ................................................................................................................ 8 2.2.4显示 ........................................................................................................................ 8 2.3控制系统的功能 ............................................................................................................... 8 第3章 系统硬件设计 ................................................................................................................... 9
3.1系统硬件总体设计 ........................................................................................................... 9 3.2各单元电路设计 ............................................................................................................. 15
3.2.1电源电路 .............................................................................................................. 15 3.2.2控制电路 .............................................................................................................. 15 3.2.3检测电路 .............................................................................................................. 17 3.2.4执行电路 .............................................................................................................. 17 3.2.5显示电路 .............................................................................................................. 19 3.2.6蜂鸣器报警电路 .................................................................................................. 20 3.3电路设计及本章小结 ..................................................................................................... 21 第四章 系统软件设计 ................................................................................................................. 23
4.1软件主程序设计 ............................................................................................................. 23 4.2软件子程序设计 ............................................................................................................. 23
4.2.1洗衣程序设计 ...................................................................................................... 27
V