【正文】
江西理工大學(xué) 2020 屆本科生畢業(yè)設(shè)計(jì)(論文) I 摘 要 本設(shè)計(jì)是 根據(jù)步進(jìn)電機(jī)的工作方式,結(jié)合所學(xué)單片機(jī)、數(shù)字設(shè)備接口等專業(yè)理論知識和基本技能,對實(shí)際問題進(jìn)行研究與解決 的一次綜合訓(xùn)練。通過設(shè)計(jì)全過程,培養(yǎng)了 利用所學(xué)的知識解決實(shí)際問題的能力和創(chuàng)新精神。 本設(shè)計(jì)對步進(jìn)電機(jī)的工作原理和步進(jìn)方式作了深刻的研究。 步進(jìn)電機(jī)是一種將電脈沖轉(zhuǎn)化為角位移的執(zhí)行機(jī)構(gòu)。當(dāng)接收到一個(gè) 脈沖信號,就驅(qū)動步進(jìn)電機(jī)按設(shè)定的方向轉(zhuǎn)動一個(gè)固定的角度 ;同時(shí)其轉(zhuǎn)速也將與脈沖頻率成正比率改變。結(jié)合步進(jìn)電機(jī)的這個(gè)特性,本設(shè)計(jì)將實(shí)現(xiàn)步進(jìn)電機(jī)的各項(xiàng)基本功能,如: 步進(jìn)電機(jī)的 正轉(zhuǎn)、反轉(zhuǎn)、加速、減速、制動等。任何復(fù)雜的步進(jìn)電機(jī)的工作都是基于這些功能 設(shè)計(jì)而成,這使得步進(jìn)電機(jī)設(shè)計(jì)應(yīng)用非常簡便,也非常廣泛。 本設(shè)計(jì)主要包括硬件設(shè)計(jì)和軟件設(shè)計(jì)。硬件設(shè)計(jì)是系統(tǒng) 重要組成部分,是系統(tǒng)運(yùn)行實(shí)現(xiàn)的平臺, 包括 脈沖發(fā)生模塊、電流驅(qū)動模塊、 LED 顯示模塊和鍵盤選擇模塊等。軟件設(shè)計(jì)更具靈活, 其設(shè)計(jì)將根據(jù)具體功能要求來實(shí)現(xiàn)。 根據(jù) 步進(jìn)電機(jī)控制系統(tǒng) 功能設(shè)計(jì)要求, 本設(shè)計(jì) 完成了步進(jìn)電機(jī)多功能的按鍵選擇和 LED指示顯示 ,并且使得每個(gè)模塊完成各自功能又相互影響、合作 。 關(guān)鍵字: 步進(jìn)電機(jī) ; 電脈沖 ; 脈沖發(fā)生 器 ; 步進(jìn)電機(jī)控制系統(tǒng) Abstract The design is based on the stepper motor work, bined with the microcontroller, digital equipment interface and other professional theoretical knowledge and basic skills, to study and solve a prehensive training on practical problems. Through the whole process of design, training the knowledge solution actual problem ability and creative spirit. The design of the working principle and the stepper mode makes a profound study on. Stepping motor is a kind of electrical pulses into angular displacement of the implementing agencies. When receiving a pulse signal, will drive the stepper motor rotate in the direction set by a fixed point of view。 at the same time, the speed 江西理工大學(xué) 2020 屆本科生畢業(yè)設(shè)計(jì)(論文) II and pulse frequency positive rate change. The characteristics of stepping motor, the basic functions, the design of the stepper motor to achieve such as: stepper motor forward, reverse, acceleration, deceleration, brake etc.. Any plex stepper motor work is a design based on these functions, which makes the design application of stepping motor is very simple, also very widely. This design mainly includes hardware design and software design. The hardware design is an important part of the system, the system is a platform, including pulse generating module, current drive module, LED display module and keyboard selection module. The software design is more flexible, the design will be based on the specific functional requirements to achieve. According to the design of control system for stepping motor functional requirements, pleted the design of stepper motor function selection keys and LED display, and their respective functions and influence each other, so that each module cooperation. Keywords: Stepper motor; Electric pulse; Pulse generator ; Stepper motor control system 江西理工大學(xué) 2020 屆本科生畢業(yè)設(shè)計(jì)(論文) 目 錄 摘 要 .......................................................................................... I Abstract......................................................................................... I 第一章 緒論 ............................................................................. 1 概述 ..................................................................................... 1 步進(jìn)電機(jī)控制系統(tǒng)研究目標(biāo)與內(nèi)容 .................................... 1 步進(jìn)電機(jī)控制系統(tǒng)研究目標(biāo) .......................................... 1 步進(jìn)電機(jī)控制系 統(tǒng)研究內(nèi)容 .......................................... 2 第二章 微控制器 ..................................................................... 3 處理器的選型 ...................................................................... 3 STM32F10X 系列微控制器簡 介 .......................................... 3 STM32F10X 系列微控制器概述 .................................... 3 ARM CortexM3 內(nèi)核處理器概述 ..................................... 4 STM32F10x 系列微控制器特性 .................................... 6 STM32F10x 內(nèi)部結(jié)構(gòu) ......................................................... 6 STM32F10X 的系統(tǒng)結(jié)構(gòu) ............................................... 6 STM32F10X 的時(shí)鐘結(jié)構(gòu) ............................................... 7 STM32F10X 的 GPIO 結(jié)構(gòu) ...........................................10 STM32F103C8 微控制器簡介 ............................................. 11 第三章 主要元器件 ............................................................... 12 步進(jìn)電機(jī) ............................................................................12 江西理工大學(xué) 2020 屆本科生畢業(yè)設(shè)計(jì)(論文) 特性與應(yīng)用 ...................................................................12 工作原理 ......................................................................12 ULN2020 達(dá)林頓陣列驅(qū)動芯片 ..........................................15 特性與應(yīng)用 ...................................................................15 工作原理 ......................................................................15 按鍵開關(guān) ............................................................................16 發(fā)光二極管 ........................................................................17 第四章 系統(tǒng)硬件設(shè)計(jì) ........................................................... 18 硬件系統(tǒng)設(shè)計(jì)概要 ..............................................................18 脈沖發(fā)生模塊 .....................................................................18 電流驅(qū)動模塊 .....................................................................19 步進(jìn)電機(jī) ............................................................................20 LED 顯示模塊 ....................................................................21 按鍵模塊 ............................................................................22 系統(tǒng)功能模塊動作說明 ......................................................23 第五章 軟件系統(tǒng)設(shè)計(jì) ........................................................... 25 軟件系統(tǒng)設(shè)計(jì)概述 ..............................................................25 系統(tǒng)軟件設(shè)計(jì)環(huán)境 ..............................................................26 Keil MDK 簡介 .............................................................27 uVision4 IDE 集成開發(fā)環(huán)境 .........................................28 工程設(shè)置 ......................................................................29 系統(tǒng)初始化配置 .................................................................30 江西理工大學(xué) 2020 屆本科生畢業(yè)設(shè)計(jì)(論文) 系統(tǒng)時(shí)鐘初始化配置 ....................................................30 嵌套向量中斷控制器配置 ............................................