【正文】
在步進電機上,使得對步進電機進行數(shù)字化的控制變得更為容易實現(xiàn)。在國內(nèi),過去用大力矩步進電動機[2]實現(xiàn)機床數(shù)控,有實力的公司現(xiàn)在也采用交流電動機驅(qū)動數(shù)控機床,而在驅(qū)動設(shè)備上國內(nèi)與國外還存在著很大的差距,主要差距是國外對交流電動機的控制理論與工程分析和應(yīng)用能力強,先進的控制理論作為軟件,并寫在控制器內(nèi)部。而在小功率的場合依舊廣泛使用步進電機,比如一些工業(yè)器材工業(yè)生產(chǎn)裝備、包裝機、銀行自動柜員機、打印機及速印機等等。我國在建國初期就已經(jīng)能夠生產(chǎn)和應(yīng)用,較早是在江浙一帶、北京、四川等地都有對其進行生產(chǎn),并且在各行業(yè)中已被廣泛使用。因此,用微型單片機控制步進電機己經(jīng)成為了一種必然的趨勢,也符合數(shù)字化的時代發(fā)展要求。 傳統(tǒng)的步進電機控制系統(tǒng)采用分立元件的控制回路,或者集成電路,不僅調(diào)試安裝復(fù)雜,要消耗大量元器件,而且一旦定型之后,要改變控制方案就一定要重新設(shè)計電路,不利于系統(tǒng)的改進升級。由于它不需要變換就能直接將數(shù)字脈沖信號轉(zhuǎn)換為角位移,很適合采用微型計算機控制 。正是由于脈沖電信號與步進電機轉(zhuǎn)角存在著這種線性關(guān)系,并且在負(fù)載能力范圍內(nèi)這些關(guān)系不會因電源電壓、負(fù)載大小、環(huán)境條件的波動而變化,這使得步進電機不會出現(xiàn)誤差的累積現(xiàn)象,因而步進電機在速度控制、位置控制等方面得到了廣泛的應(yīng)用。其功用是將脈沖電信號變換為相應(yīng)的角位移或直線位移,即給一脈沖電信號,電動機就轉(zhuǎn)動一個角度或前進一步。s running state on the move and other information are displayed by LCD. In order to meet the practical application, with the PC as the platform, the system achieves a PC of strong manmachine interactive interface. Besides, it realizes the twoway munication application of the singlechip and the PC through the serial port. On the interface of PC, the remote control operati seron is realized by the program design for each stepper motor in its coordinate direction. In this way, the system achieves the start, stop, forward, back, and aies of corresponding actions like these of each stepper motor as well as the realtime type and display of the relevant revolving speed value and coordinate value in the process so as to reach the effect of remote monitoring. Keyword: stepper motor, PC, LCD 東北大學(xué)秦皇島分校畢業(yè)設(shè)計(論文) 第 II 頁目 錄1 緒 論 .................................................................1 設(shè)計的背景及目的 .....................................................1 國內(nèi)外研究現(xiàn)狀 .......................................................1 論文構(gòu)成及研究內(nèi)容 ...................................................22 系統(tǒng)總體方案設(shè)計 ........................................................4 方案的選擇與論證 .....................................................4 系統(tǒng)各部分組成及其功能簡介 ...........................................63 系統(tǒng)的硬件設(shè)計 ..........................................................8 單片機最小系統(tǒng) .......................................................8 AT89S52 簡介 ......................................................8 單片機最小系統(tǒng)設(shè)計 ...............................................13 單片機 I/O 口分配及實現(xiàn)的功能 .....................................14 步進電機簡介 ........................................................14 步進電機的分類 ...................................................14 兩相步進電機的結(jié)構(gòu)及其工作原理 ...................................15 步進電機驅(qū)動模塊設(shè)計 ................................................19 ULN2022A 簡介 ....................................................19 電機驅(qū)動電路設(shè)計 .................................................21 串口通信模塊與上位機的設(shè)計 ..........................................22 LCD12864 字符型液晶屏顯示模塊設(shè)計 ...................................23 LCD12864 字符型液晶屏簡介 ........................................24 LGM12641BS1R 中 KS0108 控制器的指令功能說明 .....................25 LGM12641BS1R 中 KS0108 控制器的基本編程原理 .....................27 鍵盤模塊設(shè)計 ........................................................304 系統(tǒng)軟件設(shè)計 ...........................................................33 系統(tǒng)軟件的整體設(shè)計 ..................................................33 系統(tǒng)初始化模塊設(shè)計 ..................................................34 鍵盤輸入與液晶顯示程序模塊 ..........................................34 步進電機運行控制模塊 ................................................35 上位機模塊的軟件設(shè)計 ................................................36結(jié) 論 ................................................................39致 謝 .................................................................40參考文獻 .................................................................41附 錄 ...............................................................42附錄 A..................................................................42 東北大學(xué)秦皇島分校畢業(yè)設(shè)計(論文) 第 III頁附錄 B..................................................................51附錄 C..................................................................52 東北大學(xué)秦皇島分校畢業(yè)設(shè)計(論文) 第 0 頁1 緒 論 設(shè)計的背景及目的步進電動機在國外通常被稱為 Steppingmotor、Pulse motor 或 Stepper servo,其應(yīng)用及其發(fā)展已有約 80 年的歷史。s revolving speed value, travel distance and running state in three coordinate axises. Corresponding revolving speed and travel distance of each motor, coordinate figure39。s realtime display. Threedimensional workbench being as controlled objective, corresponding ball spiral wire rod mechanical device is driven by a stepper motor in every direction to realize the accurate motion in each coordinate direction, accordingly, it imitates the cutting machine39。s design which are controlled by the stepper motor, therefore, it realizes the stepper motor39。關(guān)鍵詞:步進電機,上位機,液晶顯示 東北大學(xué)秦皇島分校畢業(yè)設(shè)計(論文) 第 I 頁Control system of two phase stepper motor based on AT89S52 singlechip Author:Mai mingjie Tutor:Song aijuanAbstract Based on AT89S52 singlechip, stepper motor driver chip ULN2022A, character type LCD and keyboard array, the thesis builds a stepping motor control system integrating stepper motor controller and driver. Making the singlechip as the cyberic core of the stepper motor, the system pletes hardware circuit39。為滿足實際運用需要,本系統(tǒng)以 PC 機作為平臺,基于 VB 語言設(shè)計完成了一個人機交互性強的界面的上位機的實現(xiàn),并通過由 RS232 構(gòu)成的串口通信方式,實現(xiàn)單片機與上位機串口的雙向通信運用。以三維工作臺作為被控對象,每個方向由一個步進電機驅(qū)動相應(yīng)的滾珠絲竿機械裝置進而實現(xiàn)完成了各個坐標(biāo)方向的精確運動,以此模擬實現(xiàn)切割機上下、前后的精確切割。 畢 業(yè) 設(shè) 計 ( 論 文 )基于 AT89S52 單片機的兩相步進電機控制系統(tǒng)2022 年 6 月 13 日 東北大學(xué)秦皇島分校畢業(yè)設(shè)計(論文) 第 頁基于 AT89S52 單片機的兩相步進電機控制系統(tǒng)摘 要本文應(yīng)用 AT89S52 單片機、步進電機驅(qū)動芯片 ULN2022A、字符型 LCD 液晶顯示屏和鍵盤陣列,構(gòu)建了集步進電機控制器和驅(qū)動器為一體的步進電機控制系統(tǒng)。系統(tǒng)以單片機作為步進電機的控制核心,完成了步進電機的控制的硬件電路設(shè)計以及軟件的設(shè)計,實現(xiàn)了步進電機的啟停、正反轉(zhuǎn),以及轉(zhuǎn)速的實時顯示。由鍵盤模塊實時鍵入相應(yīng)數(shù)值來控制三個坐標(biāo)軸上各個步進電機的轉(zhuǎn)速值、行進距離以及運行狀態(tài),并通過 LCD 液晶顯示屏顯示各個電機對