【正文】
mechanical and electrical ponents. Easy openloop precision pared with other types of motor control, no accumulated error, etc, widely used in many fields. This article first simply introduces the development situation and characteristics of stepper motor and working principle. Including the stepper motor drive system, control method and the system shows that the overall scheme of the system design is given and the features and functions of this system. Then is given priority to with AT89C52 singlechip microputer controller, is introduced in detail based on the single chip microputer stepping motor control system. On the basis of the peripheral circuit, the keyboard circuit, reset circuit, etc. Each module circuit design in detail. Then elaborated the stepper motor control software development processes and program design. At the same time gives the step motor and reversing, speed control program list. In this paper, by using the bined method of software and hardware to achieve the optimal control of the stepper motor. Keyword: stepper motor microcontroller 課 程 設(shè) 計 用 紙 目 錄 概述 .......................................................................................................................................1 第 1 章 步進電機的工作原理及其特性 ..........................................................2 步進電機的概念 ..........................................................................................................2 步進電機的特點 ..........................................................................................................2 步進電機的綜述 ..........................................................................................................3 步進電機的工作原理 ...................................................................................................4 步進電機的常用術(shù)語 ...................................................................................................4 步進電機的震蕩和失步 ...............................................................................................5 步進電機的控制方式 ...................................................................................................6 第 2 章 硬件電路設(shè)計 ...............................................................................................8 硬件的設(shè)計與選擇 .....................................................................................................8 步進電機的驅(qū)動 ..........................................................................................................8 單片機的選擇 ........................................................................................................... 10 按鍵電路設(shè)計 ............................................................................................................. 10 時鐘電路設(shè)計 ............................................................................................................. 11 硬件的總體電路設(shè)計圖 .......................................................................................... 12 課 程 設(shè) 計 用 紙 第 3 章 程 序 設(shè) 計 ................................................................................................ 13 程序設(shè)計的總體思路 ............................................................................................... 13 主程序流程圖 ............................................................................................................. 14 ............................................................................................................. 14 正反轉(zhuǎn)流程圖 ........................................................................................................... 15 啟動與停止流程圖 ..................................................................................................... 16 主程序 ........................................................................................................................... 17 第 4 章 調(diào) 試 ................................................................................................................ 21 軟件編寫及調(diào)試 ........................................................................................................ 21 結(jié) 論 ................................................................................................................................ 22 謝 辭 .................................................................................................................................. 23 參 考 文 獻 .............