跳到主要內容

臺灣博碩士論文加值系統

(216.73.216.35) 您好!臺灣時間:2026/03/14 22:55
字體大小: 字級放大   字級縮小   預設字形  
回查詢結果 :::

詳目顯示

: 
twitterline
研究生:徐上益
研究生(外文):Shang Yi Hsu
論文名稱:基於ARM處理器之平衡控制系統設計與實現
論文名稱(外文):Design and Implementation of Balance Control System Based on ARM Processor
指導教授:張永華張永華引用關係
指導教授(外文):Y. H. Chang
學位類別:碩士
校院名稱:長庚大學
系所名稱:電機工程學系
學門:工程學門
學類:電資工程學類
論文種類:學術論文
論文出版年:2019
畢業學年度:107
語文別:中文
論文頁數:81
中文關鍵詞:ARM處理器函式佇列調度結構平衡控制PID控制器
外文關鍵詞:ARM processorfunction-queue-schedulingbalance controlPID controller
相關次數:
  • 被引用被引用:0
  • 點閱點閱:144
  • 評分評分:
  • 下載下載:5
  • 收藏至我的研究室書目清單書目收藏:0
由於單晶片結構的微處理器其價格低、開發簡易,因此許多應用在工業控制與家電產品,又以8051系列晶片最具經典代表。隨著單晶片的成熟技術與完備功能,其中ARM公司的晶片最受矚目之一在於技術開發簡易和產品應用領域的多樣性。ARM即Advance RISC Machine的簡寫,ARM的核心以高性能、體積小、低功率耗損、並與多家知名供應商合作而聞名。因此本文基於ARM處理器,設計一倒單擺的機械結構來實現一平衡控制系統,目的在於嵌入所撰寫的程式結構下可以達到維護靈活、擴充方便、在程式執行上可以達到時間的即時性與時序上的需求下完成平衡控制。所以本文透過改變程式系統結構中的函式佇列調度結構,藉由改變後的信息佇列調度結構,可以達到程式的維護靈活、擴充方便且不需要使用到像即時作業系統結構其複雜度高的程式系統結構,即可以使得程式在運行時在時序上的表現達到即時的效果。實現倒單擺的平衡控制系統,在每次取得平衡姿態的狀態所用的時間,可以維持固定的時間週期、處理器在分析平衡狀態與控制器的處理下,可以完整執行控制器指令的動作。
Since the single-chip structure of the microprocessor is low in price and easy to develop, the 8051 series chip is the most classic representative. With the mature technology and complete functions of single-chip, one of ARM's most popular chips is the diversity of technology development and product application. The thesis is based on ARM processor, the purpose is to embed the system program to achieve maintenance flexibility, easy to expand, and can realize the balance control of the time and timing of the system program execution. Therefore, by modifying the structure of the function-queue-scheduling in the system program , the system program can be maintained in a flexible and scalable manner by using structure of the message-queue-scheduling , and it does not need to be used in a real-time operating system. The system program structure can make the program achieve the immediate effect on the timing performance at runtime. The balance control system for implementing the inverted pendulum can maintain the fixed time period every time the state of the balanced posture is obtained, and the processor can completely execute the action of the controller command under the condition of analyzing the balance state and the controller.
目錄
指導教授推薦書
口試委員審定書
誌謝 iii
摘要 iv
Abstract v
目錄 vi
圖目錄 viii
表目錄 xi
1 緒論 1
1.1 研究背景與動機 1
1.2 文獻探討 3
1.3 研究目的 4
2 ARM微處理器之平衡系統硬體規劃與設計 6
2.2 硬體單元規劃 7
2.2.1 電源單元 7
2.2.2 控制單元 7
2.2.3 檢測單元 9
2.2.4 執行單元 10
2.3 系統實體架構與建構 13
3 ARM微處理器嵌入式系統韌體設計 16
3.1 系統開發環境與工具 16
3.2 系統結構 17
4 ARM微處理器平衡控制設計 24
4.1 檢測任務程序 24
4.2 控制任務程序 28
4.2.1 馬達特性與驅動 28
4.2.2 控制器特點與應用 32
4.3 系統結構與控制整合 41
5 實驗結果與分析 53
5.1 微處理器的嵌入式系統在時間時序的表現 53
5.2 感測器數值的取得與資料的轉換 57
5.3 馬達的驅動與控制 58
5.4 系統與整合 62
6 結論與未來展望 64
6.1 結論 64
6.2 未來展望 64
參考文獻 66

圖目錄
圖 1.1 賽格威隨意車 (Segway HT )圖[3] 2
圖 1.2 Flying Octopus四軸飛行器圖[5] 2
圖 2.1 系統功能方塊圖 6
圖 2.2 DC轉DC實體模組圖[9] 7
圖 2.3 微處理器開發核心板圖[10] 7
圖 2.4 ARM微處理器STM32F103C8T6接腳圖[12] 9
圖 2.5 GY-521 模組(a)正面(b)背面圖[14] 9
圖 2.6 馬達驅動器模組圖[15] 10
圖 2.7 馬達驅動器模組接腳圖[15] 11
圖 2.8 馬達模組圖[16] 12
圖 2.9 馬達接線圖[16] 12
圖 2.10 系統功能關係方塊圖 13
圖 2.11 微處理器開發核心板與感測器接線圖 15
圖 2.12 微處理器開發核心板與驅動器和馬達接線圖 15
圖 3.1 Keil C系統開發環境[17] 16
圖 3.2 檢測設備 17
圖 3.3 輪轉循環結構圖 18
圖 3.4 帶有中斷的輪轉循環結構圖 19
圖 3.5 函式佇列調度結構圖 20
圖 3.6 即時操作系統結構圖 21
圖 3.7 信息佇列調度結構圖 22
圖 4.1 座標系統圖 25
圖 4.2 姿態傾斜之感測器座標簡化圖[19] 25
圖 4.3 直流馬達電樞的穩定等效電路圖[20] 29
圖 4.4 不同PWM工作週期時序改變馬達轉速圖[22] 31
圖 4.5 H型橋式(a)正轉(b)反轉電流流向圖 31
圖 4.6 馬達搭配正交編碼器(a)正轉(b)反轉狀態圖 32
圖 4.7 包含PID控制器之閉迴路系統方塊圖 32
圖 4.8 P控制器方塊圖 34
圖 4.9 I控制器方塊圖 34
圖 4.10 D控制器方塊圖 35
圖 4.11 開迴路步階響應圖[23] 36
圖 4.12 差分運算圖 38
圖 4.13 處理控制程序方塊流程圖 40
圖 4.14 信息的資料結構圖 42
圖 4.15 環形佇列結構圖 42
圖 4.16 主循環程序流程圖 43
圖 4.17 時間中斷流程圖 47
圖 4.18 派送信息索引編號流程圖 49
圖 4.19 派送信息索引編號ID_SYS之參數流程圖 50
圖 4.20 派送信息索引編號ID_SENSOR之參數流程圖 50
圖 4.21 派送信息索引編號ID_MOTOR之參數流程圖 51
圖 4.22 派送信息索引編號ID_CONTROLLER之參數流程圖 51
圖 5.1 MPU6050 一次取樣時序圖 54
圖 5.2 MPU6050取樣週期圖 54
圖 5.3 程式時間順序關係圖 55
圖 5.4 整體時序關係圖 56
圖 5.5 微處理器將MPU6050資料透過RS232傳到電腦端圖 57
圖 5.6 操作MPU6050座標X軸數值取樣圖 58
圖 5.7 MPU6050資料擷取時間與傾斜角度反映圖 58
圖 5.8 不同PWM 工作週期時序圖 59
圖 5.9 PWM 工作週期與時序線性圖 60
圖 5.10 PWM 工作週期與角速度線性圖 61
圖 5.11 倒單擺樣式圖 (a)倒單擺完成樣式圖 (b)倒單擺靜止傾斜圖 (c)倒單擺平衡後圖 62
圖 5.12 倒單擺平衡響應圖 62

表目錄
表 2.1 微處理器開發核心板功能元件表 8
表 2.2 驅動器控制方法表[15] 11
表 2.3 馬達接線腳位定義[15] 12
表 2.4 馬達規格表[16] 13
表 3.1 系統結構比較表 23
表 4.1 Z-N調諧表[23] 37
表 4.2 信息索引編號分類說明表 43
表 4.3 信息參數功能說明表 44
表 4.4 信息操作功能表 44
表 4.5 信息參數名稱與代號對應表 45
表 4.6 ARM微處理器內部資源分配表 48
表 5.1 不同PWM 工作週期時序線性關係表 60
表 5.2 PWM 工作週期與角速度線性關係表 61
參考文獻
[1] 何謂嵌入式系統,https://www.csie.ntu.edu.tw/~b6506031/Osd/embedsys.htm,
[2] 陀螺儀,維基百科,https://zh.wikipedia.org/wiki/陀螺儀,
[3] 賽格威隨意車,https://upload.wikimedia.org/wikipedia/commons/2/28/Segway_01.JPG
[4] Uses for gyroscopes , http://www.gyroscopes.org/uses.asp , gyroscopes.org
[5] 美國製造的四軸飛行器,https://commons.wikimedia.org/wiki/File:De_Bothezat_Quadrotor.jpg,
[6] 8051,https://www.newton.com.tw/wiki/8051,中文百科
[7] 51、AVR、PIC、MSP430、ARM五大單片機全解析!,https://read01.com/kEMDP4.html#.XTRLEI4zY-4,壹讀
[8] Data Sheet, LM2596 3.0 A Step-Down Switching Regulato , Semiconductor Components Industries, LLC, 2008
[9] 直流降壓模塊LM2596 DC-DC 降壓模組,https://goods.ruten.com.tw/item/show?21509511168830 ,TNA168賣場
[10] STM32F103C8T6最小系統板,https://goods.ruten.com.tw/item/show?21904716434809,DIY_LIB
[11] Data Sheet of the STM32F103x8 , STMicroelectronics NV
[12] Reference manual , RM0008 ,STMicroelectronics NV
[13] Data Sheet of the MPU-6000 and MPU-6050 Product Specification Revision 3.4, InvenSense, Inc.
[14] InvenSense GY-521 MPU6050 MPU-6050 6DOF 陀螺儀+加速度模組,https://www.taiwaniot.com.tw/product/invensense-gy-521-mpu6050-mpu-6050-6dof-陀螺儀+加速度模組(附排針)/,台灣物聯科技
[15] L298N馬達驅動板模塊,https://goods.ruten.com.tw/item/show?21110116129218,微控制器科技
[16] JGA25-371直流減速電機,https://goods.ruten.com.tw/item/show?21530172919145,BUY360-IC
[17] Keil C系統開發環境, http://www.keil.com/product/,Keil C官網
[18] David E. Simon,An Embedded Software Primer , Pearson Education. Inc 1999
[19] 加速度計和陀螺儀融合得到精確角度,https://www.arduino.cn/thread-18392-1-1.html,arduino ARDUINO 中文社區
[20] 王宜楷,DC SERVO 123 直流伺服控制系統,今古文化,民84
[21] Wemer Leonhard , Control of Electrical Drives , Springer-Verlag Berlin Heidelberg 1996
[22] Heath Steve , Embedded systems design Second edition., EDN series for design engineers ., 2003
[23] Gene F. Franklin J.David Powell Abbas Emami-Naeini, Feedback Control of Dynamic Systems Sixth Edition, Pearson Education Limited publishing 2009
[24] Farid Golnaraghi, Benjamin C. Kuo , Automatic Control System 10/e , Mcgraw-Hill. Inc 2017
[25] Norman S. Nise , Control Systems Engineering, 5Th Ed , John Wile & Sons , Inc. , 2017
[26] H. Desborough, PID control Chapter 10, pp. 300-322, 2000
[27] O. Katsuhiko, Discrete-Time Control Systems Second Edition, A. Simon And Schuster Company, New Jersey 1995
[28] Stephen J. Chapman , Electric Machinery Fundamentals fifth edition , The McGraw-Hili Companies, Inc. , 2012
[29] 林錫龍,成為 Linux 大師的第一步嵌入式系統的撰寫,佳魁資訊,2016
[30] 沈金鐘,PID控制器理論、調整與實現,滄海書局,2001
[31] 詹前茂,電機驅動控制理論與實驗,新文京開發,民92
[32] 吳岳,Linux C系統整合開發,佳魁資訊,2013
[33] 曾百由,微處理器原理與應用:C語言與PIC18微控制器,五南圖書出版股份有限公司,2013。
[34] M. Laskawski, and M. Wcislik, Sampling rate impact on the tuning of PID controller parameters, International Journal of Electronics And Telecommunications, vol. 62, no. 1, pp. 43-48, 2015.
[35] Dingyu Xue , YangQuan Chen , Derek P. Atherton , Linear Feedback Control: Analysis and Design with MATLAB , Chapter 6 , pp. 183-198, 2007
[36] J. A. Michael and M. H. Moradi, PID Control New Identification and Design Methods, London: Springer-Verlag, 2005

[37] B. Mirsaleh and T. S. Mohammad, A new view to Ziegler-Nichols step response tuning method: Analytic, Journal of Process Control, vol. 33, pp. 23-33, 2013
[38] P. M. Meshram and R. G. Kanojiya , Tuning of PID controller using Ziegler-Nichols method for speed control of DC motor , IEEE International Conference on Advances in Engineering, Science and Management, pp. 117-122, 2012.
[39] Rui Zhang, Gang Xiong, Changjian Cheng, Xiuqin Shang, Yonghong Ma, Zichen Lu , Control System Design for Two-Wheel Self-Balanced Robot Based on the Stepper Motor , IEEE 2013, pp. 241-244
[40] Meei-Ling Hung, Chon-Wen Lai, Jun-Juh Yan1 Min-Chang Chiou , Sho-Jon Liu , OPTIMAL PID CONTROLLER DESIGN FOR DC MOTOR POSITIONING CONTROL. , Journal of Technology, Vol. 20, No. 2, pp. 195-200 , 2005
連結至畢業學校之論文網頁點我開啟連結
註: 此連結為研究生畢業學校所提供,不一定有電子全文可供下載,若連結有誤,請點選上方之〝勘誤回報〞功能,我們會盡快修正,謝謝!
QRCODE
 
 
 
 
 
                                                                                                                                                                                                                                                                                                                                                                                                               
第一頁 上一頁 下一頁 最後一頁 top