【正文】
Tianjin University of Technology and Education 畢 業(yè) 設(shè) 計(jì) 專 業(yè): 班級學(xué)號: 學(xué)生姓名: 指導(dǎo)教師: 副教授 二 ○ ○ 九 年 六 月 天津工程師范學(xué)院本科生畢業(yè)設(shè)計(jì) 基于 51單片機(jī)的洗衣機(jī)控制器設(shè)計(jì) Based on 51serial single chip puter Controller design for washing machine 2020 年 6 月 摘 要 模糊控制是以模糊數(shù)學(xué)為基礎(chǔ)發(fā)展起來的一種新的非線性的控制方法,對那些無法取得數(shù)學(xué)模型或數(shù)學(xué)模型相當(dāng)粗糙的系統(tǒng)可以取得較滿意的控制效果,解決了一些用傳統(tǒng)方法無法解決的問題。近年來,模糊控制在家用電器控制中得到較廣泛的應(yīng)用,采用模糊控制技術(shù)的洗衣機(jī)具有自動識別衣質(zhì)、衣量,自動識別骯臟程度,自動決定水量,自動投入恰當(dāng)?shù)南礈靹┑裙δ?,不僅 實(shí)現(xiàn)了洗衣機(jī)的全面自動化,也大大提高了洗衣的質(zhì)量,具有很強(qiáng)的實(shí)用性和較好的發(fā)展前景。 基于模糊控制的全自動洗衣機(jī)自動控制系統(tǒng) ,以單片機(jī) AT89C51 為核心 ,可以實(shí)現(xiàn)洗衣機(jī)的智能控制 ,提高洗衣質(zhì)量 ,節(jié)約能源。硬件結(jié)構(gòu)框圖及軟件流程圖是該系統(tǒng)的重要組成部分 ,在整個(gè)控制過程中 ,模糊控制軟件起了決定性的作用 基于 51 單片機(jī)的洗衣控制系統(tǒng),控制面板由按鍵、指示燈和 LED 顯示器組成。按鍵選擇洗衣機(jī)工作方式,指示燈配合按鍵工作, LED 顯示器則顯示洗衣機(jī)洗滌和脫水時(shí)間。洗衣機(jī)的整體電路模塊包括鍵盤矩陣、指示燈、電動機(jī)控 制及電源電路??刂瞥绦蛟O(shè)計(jì)包括定時(shí)中斷服務(wù)程序、外中斷服務(wù)程序及主程序。 關(guān)鍵詞: 模糊控制 ; 洗衣機(jī) ; 全自動 ; 洗衣控制系統(tǒng) ; 51 單片機(jī) ; 控制程序 ABSTRACT Fuzzy control is a new nonlinear control method based on fuzzy math, get better control effect in some special situation and can solve issues which can not be fixed by traditional control method. In recent years, fuzzy control make wide application in the appliance, washing machine with fuzzy control has many abilities such as automatic recognizing the kind of clothes, mount of clothes, dirt condition, automatic controlling the mount of water, automatic determining the mount of detergent. Not only it acplishes overall automation of wash machine, but also greatly enhances washing quality and has powerfully practical ability and bright prospect. Based on fuzzy control, pletely automatic washing machine control system has AT89C51single chip puter as a core, can realize intelligent control to save energy and enhance quality. The hardware diagram and software flow chart are important part of the system. The fuzzy control software play a decisive role in the whole control process. Based on 51 serial single chip puter, control system of washing machine consists of a control panel which includes the pressing keys, displaying lamps and LED device. The pressing keys select washing operation mode, the displaying lamps cooperate with the pressing keys. LED device displays time span for washing and dehydration. The circuit module includes key matrix, lamp, motor control and power supply. The software includes interruption program and main program. Key Words: Fuzzy control。 washing machine。 pletely automation。 control system for washing。 51serial single chip puter。 control program 目 錄 1 引言 1 問題的提出 .......................................................................................................... 1 課題研究的意義 .................................................................................................. 1 2 設(shè)計(jì)任務(wù) 2 設(shè)計(jì)的主要內(nèi)容 ...................................................................................................... 2 主要技術(shù)指標(biāo) .......................................................................................................... 2 3 方案論證 3 選用單片機(jī) AT89S52 .............................................................................................. 3 選用電機(jī)驅(qū)動模塊 L298N ...................................................................................... 4 4 硬件電路設(shè)計(jì) 5 系統(tǒng)整體框圖 .......................................................................................................... 5 人機(jī)交互硬件 .......................................................................................................... 5 液晶顯示屏 ................................................................................................... 5 鍵盤 ............................................................................................................. 12 LED 及蜂鳴器 .............................................................................................. 13 電機(jī)驅(qū)動模塊 L298N ........................................................................................... 13 功能特性 ...................................................................................................... 13 引腳定義 ...................................................................................................... 14 單片機(jī) AT89S52 .................................................................................................... 15 AT89S52 功能特性 ...................................................................................... 15 芯片結(jié)構(gòu) ..................................................................................................... 15 引腳功能 ..................................................................................................... 16 5 軟件設(shè)計(jì)