【正文】
constant vacuum cleaner。 motor drive circuit。 Technology Nanjing 210044ABSTRACTIn our daily life, in the use of vacuum cleaners often encounter when the wind is not enough because the vacuum cleaner heavier objects can not be sucked or because the motor speed is too fast and cause overheating of the motor burn out phenomenon, greatly affected the quality of our life, in order to solve this problem, we designed a vacuum cleaner intelligent control system. In this paper, the current air pressure detection device detecting the size of nozzle air pressure, and the signal to MCU, MCU will transmit the signal over the signal with the predetermined criteria to pare the size of the current signal is less than the predetermined signal, the microcontroller issued a directive to increase the motor drive circuit current, the current signal is equal to the predetermined signal, the stability of the motor drive circuit current, while setting the upper limit of the motor drive circuit current, to prevent too much current the motor burn. Thus, both easy to learn debris with a vacuum cleaner, and would not burn out the motor, to convenient, fast and security.Keywords: pressure sensor。其次,我要感謝我的同學(xué)們,他們在平時給了我最大的幫助,最后要感謝圖書館、實驗室的老師們。并且張教授嚴(yán)謹(jǐn)?shù)牡闹螌W(xué)態(tài)度給我留下了深刻的印象,是我受益匪淺。這次設(shè)計的系統(tǒng)在現(xiàn)實生活中使用頻繁,具有很大的實用價值。在硬件方面使用的LM32AT89C5霍爾傳感器等都是性能較好的,易于使用的,軟件方面使用的匯編語言也是較為容易上手的。RET。ORL A,3B。MOV R2,A。MOV B,N。DEC R1。DEC R0。CJNE R0,0FFH,JS4。MOV R0 3AH。ORL A,36H。MOV R2 A。MOV B,N。 INC R1。 DEC R0。 CJNER0 0FFH,JS1。MOV P0,A。MOV DPTR,ABC。MOV R0,05H 。FZ: DEC R0。MOVC A,A+DPTR。ZZ1:MOV A,R0。ZZ:INC R0 CJNE R0,06H ZZ1。程序如下:ORG 0000HJNB ZZ。32H~34H——存放絕對參數(shù)(假設(shè)用3個字節(jié)),低位在前;35H、36H——存放加速總步數(shù)(假設(shè)2個字節(jié)),低位在前;37H~39H——存放恒速總步數(shù)(假設(shè)3個字節(jié)),低位在前;3AH、3BH——存放減速總步數(shù)(假設(shè)2個字節(jié)),低位在前;——正轉(zhuǎn)脈沖輸入;——反轉(zhuǎn)脈沖輸入;——正轉(zhuǎn)按鈕K1;——反轉(zhuǎn)按鈕K2;——加速按鈕K3;——減速按鈕K4;定時常數(shù)序列放在以ABC為起始地址的ROM中。圖19 模糊控制器設(shè)計原理框圖5. 系統(tǒng)軟件設(shè)計 設(shè)計框圖根據(jù)設(shè)計任務(wù),可畫出控制步進(jìn)電機(jī)正反轉(zhuǎn),加減速控制,工作方式為雙時鐘,程序框圖如圖20。這種模糊控制器的特點是資源開銷少、靈活性高、通用性強(qiáng)。 地面材質(zhì)的檢測通過檢測灰塵量變化快慢可以檢測出地面材質(zhì),如圖18所示。通過測量脈沖信號的數(shù)目可以判斷灰塵量的多少。當(dāng)灰塵通過時,因紅外線被遮擋,到達(dá)三極管的紅外線的量發(fā)生了變化。LMSILMSLMSLMSLVLVLLVLVLLLLMMVLLMLMMMMSSMMSSVSVSVSVSVS表2 模糊控制表注:表中第一行L、M、S屬于H,表中第二行屬于Q 三項數(shù)據(jù)的檢測 濕度的檢測在吸塵器的灰箱入口處設(shè)置一個濕度傳感器,可連續(xù)高濕使用,脈沖輸出,無須光電隔離,無須A/D 轉(zhuǎn)換,可用測頻率的方式獲得數(shù)據(jù),可檢測出地板灰塵的干濕程度。相應(yīng)地建立其對應(yīng)的模糊子集隸屬函數(shù)如圖14到圖17:圖14 干濕度的隸屬函數(shù)圖15 灰塵量的隸屬函數(shù)圖16 地面材質(zhì)的隸屬函數(shù)圖17 吸力大小的隸屬函數(shù) 模糊規(guī)則庫的建立這個控制規(guī)則可用下述27條模糊條件語句來描述:1) if H=L and Q=L and I=L then X=VL2) if H=L and Q=M and I=L then X=VL3) if H=L and Q=S and I=L then X=L4) if H=M and Q=L and I=M then X=VL5) if H=M and Q=M and I=M then X=VL6) if H=M and Q=S and I=M then X=L7) if H=S and Q=L and I=S then X=L8) if H=S and Q=M and I=S then X=L9) if H=S and Q=S and I=S then X=M10) if H=L and Q=L and I=L then X=VL11) if H=L and Q=M and I=L then X=L12) if H=L and Q=S and I=L then X=M13) if H=M and Q=L and I=M then X=L14) if H=M and Q=M and I=M then X=M15) if H=M and Q=S and I=M then X=M16) if H=S and Q=L and I=S then X=M17) if H=S and Q=M and I=S then X=M18) if H=S and Q=S and I=S then X=S19) if H=L and Q=L and I=L then X=M20) if H=L and Q=M and I=L then X=M21) if H=L and Q=S and I=L then X=S22) if H=M and Q=L and I=M then X=S23) if H=M and Q=M and I=M then X=S24) if H=M and Q=S and I=M then X=VS25) if H=S and Q=L and I=S then X=VS26) if H=S and Q=M and I=S then X=VS27) if H=S and Q=S and I=S then X=VS上述描寫模糊控制的27條模糊條件語句之間是“或”的關(guān)系,可采用最大隸屬度方法,將控制量變?yōu)榫_量,利用單片機(jī)可根據(jù)不同的輸入量預(yù)先計算好控制量U,制成如表2所示的控制表,作為“ 文件”存儲在計算機(jī)中。但其三個輸入?yún)?shù)分別又有幾種狀態(tài): 如灰塵度有濕潤、中性、干燥三種, 灰塵量有較少、一般、較多三種, 地面材料有地瓷板、地木板、地毯等。輸出參數(shù)主要是吸塵器的吸力大小。3)減速過程的總步數(shù):電動機(jī)在減速過程中每