1、 基于单片机的洗衣机设计基于单片机的洗衣机设计 摘要摘要 洗衣机是人们日常生活中常见的一种家电, 已经成为人们生活中不可缺少的 家用电器。在工业生产中应用也十分广泛。但是传统的基于继电器的控制,已经 不能满足人们对洗衣机的自动化程度的要求了。随着单片机技术的发展,用单片 机来作为控制器,能更好的控制洗衣机,并且控制方式灵活多样,控制模式可以 根据不同场合的应用而有所不同。 单片机以微小的体积和编程的灵活性而产生多 种控制功能,完全可以满足设计的需求。本系统采用 AT89C51 单片机作为控制 系统, 设计目的主要是为了熟悉单片机系统设计的基本方法并实现基本的洗衣机 功能。系统的控制面板主要由按
2、键开关组成,按键选择洗衣机工作模式,并且可 以根据需要调整洗涤时间长短。LED 液晶显示器则显示洗衣机的工作模式和洗涤 时间。洗衣机的整体电路模块包括按键矩阵、液晶显示、电机及驱动电路。控制 程序设计包括定时中断服务程序、时间设定程序、外中断服务程序及主程序。整 体来说系统设计基本达到设计目标。 关键词:单片机关键词:单片机 控制控制 洗衣机洗衣机 液晶屏液晶屏 电机电机 Abstract Washing machine is the Peoples Daily life common kind of home appliance, life has become a indispensabl
3、e household 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
4、chip processor 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, a
5、nd can 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 ma
6、inly 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 power 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 t