§ 瀏覽學位論文書目資料
  
系統識別號 U0002-0609201622042100
DOI 10.6846/TKU.2016.00211
論文名稱(中文) 基於硬體迴路模擬之馬達控制器設計與實現
論文名稱(英文) Motor Controller Design and Implementation Based on Hardware-in-the-loop Simulation
第三語言論文名稱
校院名稱 淡江大學
系所名稱(中文) 電機工程學系碩士班
系所名稱(英文) Department of Electrical and Computer Engineering
外國學位學校名稱
外國學位學院名稱
外國學位研究所名稱
學年度 104
學期 2
出版年 105
研究生(中文) 周立翔
研究生(英文) Li-Hsiang Chou
學號 603460055
學位類別 碩士
語言別 繁體中文
第二語言別
口試日期 2016-07-15
論文頁數 50頁
口試委員 指導教授 - 周永山(yschou123@gmail.com)
委員 - 許陳鑑(jhsu@ntnu.edu.tw)
委員 - 許駿飛(fei@ee.tku.edu.tw)
關鍵字(中) 硬體迴路模擬
Simulink
FPGA
PID控制
速度控制
關鍵字(英) Hardware-in-the-loop (HIL) Simulation
Simulink
Field Programmable Gate Array (FPGA)
PID Control
Velocity Control
第三語言關鍵字
學科別分類
中文摘要
本論文之主要目的在於建置一套基於硬體迴路模擬系統的軟/硬體共同設計暨功能驗證平台,並以馬達速度控制為例。運用硬體描述語言將所設計之控制器實現在FPGA開發板上,透過Matlab / Simulink與FPGA建置一套硬體迴路模擬系統,將實現於FPGA開發板的硬體控制器之控制效果回傳至Simulink與軟體模擬的控制器效果作比較,驗證硬體控制器設計之可行性,並選用實際直流馬達作為受控體,比較兩控制器效果之差異性。該平台具備以下五項優點:(1)兼顧安全性、可用度及成本考量,可進行系統的必要測試。(2)透過軟體設定硬體參數,加速開發過程。(3)對於非線性時變系統亦可做控制器開發。(4)設定極限範圍避免受控體損壞及(5)可針對多子系統架構進行控制器開發並設定硬體故障植入。本論文分為兩階段進行研究:(1) PID軟/硬體控制器設計及(2) 硬體迴路模擬驗證。在第一部分,設計一PID控制器於FPGA開發板中,並進行馬達速度控制,將軟體控制器的數學關係式轉成離散數學式,透過Kp、Ki及Kd三個參數使控制器滿足設計需求。在第二部分,建置一硬體迴路模擬系統並觀察馬達受控之響應,比較建置於Matlab下之軟體控制器及FPGA下之硬體控制器,觀察兩控制器輸出之誤差值,並驗證本論文設計控制器之可行性。由實驗結果可知本論文建立之驗證平台確實可供設計者開發控制器,並實現於硬體架構下。
英文摘要
The main purpose of this paper is building a verification platform for software and hardware co-design based on hardware-in-the-loop simulation system. And testing in motor velocity control. In this paper, a hardware description language is used to design motor speed controller and implement it within the FPGA development board. Using Matlab/Simulink, FPGA development board, motor driver and DC motor to construct a hardware-in-the-loop simulation system platform, with software and hardware co-design method to verify the feasibility and correctness of the controller design. This platform has five advantages. First, it can carry out the necessary tests with safety, availability and cost considerations. Secend, it can shorten the development time by using software setting hardware paremeter. Third, it can develop nonlinear time-varying system. Four, it avoid donor broken by setting limits. And the last, it can develop controller for subsystem and set some error for test. This paper is divided into two sections. (1) PID software/hardware controller design and (2) the hardware-in-the-loop verification. In first section, a PID motor speed controller is designed in the FPGA development board, and the motor speed control, the transfer the controller mathematical equation into discrete equation. Adjusting the Kp, Ki and Kd. three parameters of the PID controller to meet the design requirements. In second section, this paper constructs a hareware-in-the-loop simulation system and observes the motor speed response. To compare the speed response of PID controller between Matlab and FPGA and observe the error response. Finally, to verify the controller design method and feasibility. From the results, this platform which this paper proposed can help motor controller designer develop and implement in hardware architectures.
第三語言摘要
論文目次
目錄	III
圖目錄	IV
表目錄	VII
第一章	緒論	1
1.1 研究背景與動機	1
1.2 研究方法	3
1.2 論文架構	3
第二章	軟硬體設備與系統架構	4
2.1 軟硬體開發平台與設備規格	4
2.2 系統架構	13
第三章	硬體迴路模擬及控制器實現	16
3.1 模型建立與分析	17
3.2 硬體控制器實現	21
3.3 硬體迴路模擬	23
第四章	模擬與實驗結果	41
第五章	結論與未來展望	47
參考文獻	49
圖目錄
圖 1.1、全球機器人年產量統計圖	2
圖 2.1、DE2-115開發平台上視圖	6
圖 2.2、DE2-115開發平台系統方塊圖	6
圖 2.3、FPGA與Ethernet腳位連接圖	7
圖 2.4、Maxon直流有刷馬達(241370)	8
圖 2.5、Pololu馬達驅動器VNH2SP30上視圖	10
圖 2.6、Pololu馬達驅動器VNH2SP30完整電路圖	11
圖 2.7、四輪驅動電路板完整電路圖	12
圖 2.8、四輪驅動電路板上視圖	12
圖 2.9、硬體迴路系統基本架構圖	13
圖 2.10、硬體架構圖	13
圖 2.11、控制系統架構圖	15
圖 3.1、馬達之等效電路圖	17
圖 3.2、無負載馬達數學模型方塊圖	19
圖 3.3、有負載馬達數學模型方塊圖	19
圖 3.4、Simulink馬達模型	21
圖 3.5、FIL製作流程圖	23
圖 3.6、Matlab與 Quartus連線成功	24
圖 3.7、電腦端IP位置設定	25
圖 3.8、硬體電路架構圖	27
圖 3.9、MATLAB Command Window	28
圖 3.10、Simulink Library	28
圖 3.11、FPGA-in-the-loop工具	29
圖 3.12、FPGA開發板IP設定	30
圖 3.13、匯入元件至開發板	31
圖 3.14、開發板腳位設定	32
圖 3.15、FIL專案檔路徑設定	32
圖 3.16、FIL專案檔編譯	33
圖 3.17、FIL Block生成	33
圖 3.18、錯誤FIL Block示範	34
圖 3.19、硬體控制器模型	34
圖 3.20、軟體控制器模型	35
圖 3.21、硬體迴路模擬系統模型	35
圖 3.22、燒錄程式至FPGA開發板	37
圖 3.23、設定模擬模式	38
圖 3.24、選擇離散模式	38
圖 3.25、訊號轉換設定	39
圖 3.26、網路連線失敗之錯誤訊息	40
圖 3.27、未設定離散訊號之錯誤訊息	40
圖 4.1、硬體迴路模擬測試系統	41
圖 4.2、軟體PID控制器輸出命令	42
圖 4.3、硬體PID控制器輸出命令	42
圖 4.4、軟體與硬體控制器輸出命令比較圖	43
圖 4.5、軟體與硬體控制器輸出命令誤差圖	43
圖 4.6、馬達轉速響應圖	44
圖 4.7、馬達轉速響應圖(局部放大)	44
圖 4.8、速度響應比較圖(速度命令50)	45
圖 4.9、速度響應比較圖(速度命令100)	46


	 
表目錄
表 2.1、Lenovo筆記型電腦Z50-70規格表	4
表 2.2、Maxon馬達(148867)規格表	9
表 2.3、Maxon減速機(203119)規格表	9
表 2.4、Maxon編碼器(228456)規格表	9
表 2.5、Pololu馬達驅動器VNH2SP30規格表	11
表 3.1、馬達模型參數名稱表	20
表 3.2、軟硬體開發環境	24
表 3.3、Simulink建模元件說明	36
參考文獻
參考文獻
[1]	國際機器人協會,URL: http://www.ifr.org/ 
[2]	聯想科技公司網址,
URL: http://shopap.lenovo.com/tw/zh/laptops/lenovo/z-series/z50/
[3]	Altera多媒體開發平台DE2-115網址,
URL: http://university.altera.com/materials/boards/ 
[4]	友晶科技公司網址,URL: http://www.terasic.com.tw/ 
[5]	余家潤,即時人臉偵測及追蹤之軟硬體共同設計,淡江大學電機工程學系碩士論文(指導教授:翁慶昌),2010。
[6]	Maxon Motor公司網址,
URL: http://www.maxonmotor.com.tw/maxon/view/content/index
[7]	Pololu Robotics and Electronics公司網址,
URL: https://www.pololu.com/product/706
[8]	A. Bouscayrol, “Different types of Hardware-In-the-Loop simulation for electric drives,” 2008 IEEE International Symposium on Industrial Electronics (ISIE), pp. 2146-2151, 2008. 
[9]	URL: http://www.ni.com/white-paper/10343/zht/
[10]	吳正偉,硬體迴路測試系統建構與驗證,中央大學光機電工程研究所碩士論文(指導教授:黃衍任),2010。
[11]	M. Shahbazi, P. Poure, S. Saadate and M.R. Zolghadri, “FPGA-based reconfigurable control for fault-tolerant back-to-back converter without redundancy,” IEEE Transactions on Industrial Electronics, vol. 60, no. 8, pp.3360-3371, 2013.
[12]	O.A. Mohammed and N.Y. Abed, “Real-time Simulation of Electric Machine Drives with Hardware-in-the-loop,” The International Journal for Computation and Mathematics in Electrical and Electronic Engineering, vol. 27, no. 4, pp.929-938, 2008.
[13]	A. Sikan and M.T. Aydemir, ”Real time digital simulation (RTDS) software and hardware in the loop (HIL) architecture for brushless DC motors,” 15th IEEE Mediterranean Electrotechnical Conference on (MELECON), pp.779-783, Apr. 2010.
[14]	N. Nise, Control Systems Engineering. sixth ed. Asia: John Wiley & Sons, 2011.
[15]	謝如蕓,全方位移動機器人之運動控制,淡江大學機械與機電工程學系碩士論文(指導教授:王銀添) ,2006。
[16]	陳金聖、李峰吉、陳建旭,應用IP-PI之馬達系統參數鑑別與速度迴路控制器技術介紹,機械工業雜誌,337期,頁15-26,2011。
[17]	吳懿庭,模糊循跡控制系統設計於全方位移動型機器人,淡江大學電機工程學系碩士論文(指導教授:李世安),2015。
[18]	The MathWorks公司網址,URL: http://www.mathworks.com/
[19]	吳達太,權重H2降階控制器設計及硬體迴路模擬,淡江大學電機工程學系碩士論文(指導教授:周永山、李世安),2015。
論文全文使用權限
校內
紙本論文於授權書繳交後5年公開
同意電子論文全文授權校園內公開
校內電子論文於授權書繳交後5年公開
校外
同意授權
校外電子論文於授權書繳交後5年公開

如有問題,歡迎洽詢!
圖書館數位資訊組 (02)2621-5656 轉 2487 或 來信