1、前言 基于单片机的洗衣机设计 摘要 洗衣机是人们日常生活中常见的一种家电,已经成为人们生活中不可缺少的家用电器。在工业生产中应用也十分广泛。但是传统的基于继电器的控制,已经不能满足人们对洗衣机的自动化程度的要求了。随着单片机技术 的发展,用单片机来作为控制器,能更好的控制洗衣机 ,并且控制方式灵活多样,控制模式可以根据不同场合的应用而有所不同。 单片机以微小的体积和编程的灵活性而产生多种控制功能 ,完全可以满足设计 的需求。本系统采用 AT89C51 单片机作为控制系统, 设计目的主要是为了熟悉单片机系统设计的基本方法并实现基本 的洗衣机功能。系统的 控制面板 主要 由按键 开关 组成 , 按
2、键选择洗衣机工作 模式,并且可以根据需要调整洗涤时间长短。 LED 液晶 显示器则显示洗衣机 的工作模式和 洗涤时间 。 洗衣机的整体电路模块包括 按键 矩阵、 液晶显示、 电机 及 驱动 电路 。 控制程序设计包括定时中断服务程序、 时间设定程序、 外中断服务程序及主程序 。 整体 来说 系统设计基本达到设计目标。 关键词:单片机 控制 洗衣机 液晶屏 电机 Abstract Washing machine is the Peoples Daily life common kind of home appliance, life has become a indispensable hous
3、ehold electrical appliances. In the industrial production is also widely used. But the traditional relay-based control, cannot have satisfied people to the requirements of the automation degree of the washing machine. Along with the development of the single chip microcomputer by using single chip p
4、rocessor to as a controller, and can better control washing machines, and to control the way agile diversity, control mode according to different situation the application can be different. With a small volume and microcontroller programming flexibility and produce DuoZhong control function, and can
5、 meet the design requirements. The system USES 前言 AT89C51 single chip microcomputer as control system, the design purpose mainly to familiar with single-chip microcomputer system the basic method to design and realize the basic function of the washing machine. The system control panel composed mainl
6、y by button switches, key choice washing machine work mode, and may, according to needs to adjust the washing time length. LED LCD display of the washing machine is working mode and washing time. The washing machine of the whole circuit module includes key matrix, liquid crystal display, motor and p
7、ower circuit. Control program design including timing interrupt service procedure, time setting process, and outside the interrupt service routine and main program. Overall system design to meet the design basic goals. Keywords: Single-chip microcomputer control washing machine LCD screen motor 目录 摘 要 1 ABSTRACT 1