§ 瀏覽學位論文書目資料
  
系統識別號 U0002-2206200617474100
DOI 10.6846/TKU.2006.00701
論文名稱(中文) 設計與實現智慧型路邊停車系統之FPGA晶片
論文名稱(英文) Design and Implementation of FPGA for Intelligent Parallel-Parking System
第三語言論文名稱
校院名稱 淡江大學
系所名稱(中文) 電機工程學系碩士班
系所名稱(英文) Department of Electrical and Computer Engineering
外國學位學校名稱
外國學位學院名稱
外國學位研究所名稱
學年度 94
學期 2
出版年 95
研究生(中文) 陳翔逸
研究生(英文) Hsiang-Yi Chen
學號 692380883
學位類別 碩士
語言別 繁體中文
第二語言別
口試日期 2006-06-21
論文頁數 94頁
口試委員 指導教授 - 蕭瑛東
委員 - 黃培華
委員 - 周至如
委員 - 陳昭榮
委員 - 劉志文
委員 - 蕭瑛東
關鍵字(中) 智慧型停車
模糊
可程式規劃邏輯閘
關鍵字(英) intelligent parking
fuzzy
FPGA
第三語言關鍵字
學科別分類
中文摘要
本論文旨在應用模糊控制晶片實現自動路邊停車之自動化,同時具有判斷車位大小是否容許停車,其中並探討如何利用模糊邏輯去設計與研製具智慧型路邊停車之控制晶片。根據駕駛專家經驗,設計模糊路邊停車控制法則,以操控車子達成路邊停車自動化的目標。本論文以硬體描述語言進行硬體架構之設計,並對各硬體單元做介紹與說明,包括FPGA晶片、快閃記憶體單元、直流伺服馬達單元、紅外線感測器、ADC單元、超音波感測器。感測器所量測的數據是決定轉彎角度與前進距離的依據,其控制法則則是以模糊邏輯為基礎來進行控制。利用Matlab進行模擬測試路邊停車系統之機制,其中依各種車種之實際大小來進行模擬。最後以硬體描述語言(Verilog)來進行模組化的硬體電路設計,並對各模組與模組整合做模擬驗證。
英文摘要
This thesis is to design and implement the fuzzy control chip for realizing automatic Parallel-Parking motion, with judging capability to detect the size of the parking space. According to experiences of the expert, this thesis proposes the fuzzy parallel-parking control schema to parking a car at roadside. The system architecture of the parallel-parking system is described in the first part f this thesis, the hardware unit of the intelligent parking system includes FPGA chip, flash memory, DC servo motor unit, infrared sensor, A/D unit, ultrasonic sensor unit and so on. The input data of the fuzzy controller are obtained from the sensor for controlling the steering angle and motioning action. In addition, the simulating result of parallel-parking route is simulated by Matlab. This study tests various simulating cars regarding various actual size of cars. Then, the schema of the parallel-parking system motion is realized by hardware description language. All modules of the intelligent parking control system are tested and verified.
第三語言摘要
論文目次
目錄

中文摘要…………………………………………………………………….Ⅰ
英文摘要…………………………………………………………………….Ⅱ
誌謝………………………………………………………………………….Ⅲ
目錄……………………………………………………………………..….. Ⅳ
圖索引……………………………………………………………………... .Ⅷ
表索引……………………………………………………………………..XⅢ

第一章 緒論………………………………………………………………….1
1.1 研究背景……………………………………………………..…1
1.2研究動機與目的………………………………………………...2
       1.3 研究步驟與方法………………………………………………..3
1.4 論文內容組織…………………………………………………..3
第二章 路邊停車晶片系統架構……………………….................................5
 2.1 前言…………………………………………………………….5
   2.2 系統架構概觀…………………………………………………..5
   2.3 可程式化系統晶片……………………………………………..7
       2.4 感測系統………………………………………………………10
           2.4.1 紅外線感測器簡介及工作原理……………………….11
           2.4.2 超音波感測器簡介及工作原理……………………….18
       2.5 馬達系統………………………………………………………22
       2.6 電壓調整器……………………………………………………23
第三章 系統分析與控制器設計…………………………………………..25
       3.1 前言 …………………………………………………………..25
       3.2 車動態系統分析………………………………………………26
       3.3 模糊控制系統…………………………………………………28
           3.3.1 模糊化機構…………………………………………….29
           3.3.2 模糊化規則庫………………………………………….30
           3.3.3 模糊推論引擎………………………………………….31
           3.3.4 解模糊化機構………………………………………….33
第四章 路邊停車系統模糊控制器之設計………………………………..35
           4.1 路邊停車動作步驟分析…………………………………35
           4.2 車位大小偵測……………………………………………37
           4.3 路邊停車系統控制器之設計……………………………38
           4.4 路邊停車系統控制器之模擬測試………………………42
           4.5 結果討論…………………………………………………55
第五章 數位電路設計……………………………………………………..56
       5.1 前言……………………………………………………………56
       5.2 可程式邏輯元件之發展………………………………………56
       5.3 電路設計之流程……………………………………………….58
5.4 可程式化系統晶片(SOPC)設計………………………………63
     5.4.1 SOPC特色與架構..…………………………………….64
     5.4.2系統發展環境…………………………………………..64
第六章 晶片設計實現與功能驗證………………………………………...67
       6.1 前言……………………………………………………………67
       6.2 晶片硬體電路設計與模擬結果………………………………67
           6.2.1 偵測車庫模組………………………………………….68
           6.2.2 路邊停車模糊控制模組……………………………….69
           6.2.3 PWM模組………………………………………………79
           6.2.4 紅外線模組…………………………………………….81
           6.2.5 超音波模組…………………………………………….83
       6.3 晶片整合模擬結果 …………………………………………..85
       6.4 結果討論………………………………………………………87
第七章 結論與未來展望…………………………………………………..89
       7.1 結論……………………………………………………………89
       7.2 未來研究方向…………………………………………………89
參考文獻…………………………………………………………………….91

圖索引

圖2.1 路邊停車系統架構……………………………………………………7
圖2.2 快閃記憶體方塊圖……………………………………………………9
圖2.3 UART架構圖………………………………………………………...10
圖2.4 路邊停車動態………………………………………………………..11
圖2.5 感測器裝置位置……………………………………………………..11
圖2.6 Sharp GP2D12 距離感測器…………………………………………12
圖2.7 Sharp GP2D12 距離感測器大小規格………………………………12
圖2.8 Sharp GP2D12 距離感測器工作曲線………………………………13
圖2.9 ADC0804外觀及接線圖…………………………………………….15
圖2.10 ADC0804控制時序圖(1)…………………………………………...17
圖2.11 ADC0804控制時序圖(2)…………………………………………..18
圖2.12 POLAROID 6500 超音波感測器………………………………….19
圖2.13 POLAROID 6500 超音波感測器測具模組……………………….19
圖2.14 超音波測距模組內部電路…………………………………………20
圖2.15 單頭反射型…………………………………………………………21
圖2.16 Typical Beam Pattern at 50kHz……………………………………..22
圖2.17 42.5%責任週期…………………………………………………….23
圖2.18 7805電壓調整器電路接線圖……………………………………..23
圖2.19 LM317電壓調整器電路接線圖……………………………………24
圖3.1 車子行徑動態…………………………………………………….....26
圖3.2 模糊化系統基本架構圖…………………………………………….29
圖3.3 模糊推論 Simplified Fuzzy Singleton 法運算流程……………….33
圖4.1 路邊停車動作步驟流程圖………………………………………….36
圖4.2 路邊停車標準示意圖……………………………………………….37
圖4.3 車身與車位距離定義……………………………………………….39
圖4.4 輸入變數d_1r歸屬函數……………………………………………41
圖4.5 輸入變數d_2r歸屬函數.……………………………………………41
圖4.6 輸出變數 歸屬函數………….……………………………………..41
圖4.7 車位大小偵測1………….…….…………………………………….44
圖4.8 車位大小偵測模擬結果數據1..…………………………………….44
圖4.9 車位大小偵測2..…………………………………………………….45
圖4.10 車位大小偵測模擬結果數據2.……………………………………45
圖4.11 自動路邊停車模擬結果……………………………………………47
圖4.12 自動路邊停車模擬結果數據………………………………………47
圖4.13 自動路邊停車模擬結果……………………………………………48
圖4.14 自動路邊停車模擬結果數據………………………………………48
圖4.15 自動路邊停車模擬結果……………………………………………49
圖4.16 自動路邊停車模擬結果數據………………………………………49
圖4.17 小型車自動路邊停車模擬結果……………………………………50
圖4.18 小型車自動路邊停車模擬結果數據………………………………50
圖4.19 大型車自動路邊停車模擬結果……………………………………51
圖4.20 大型車自動路邊停車模擬結果數據………………………………51
圖4.21 兩輛車大小車位之自動路邊停車模擬結果1…………………….53
圖4.22 兩輛車大小車位之自動路邊停車模擬結果數據1……………….53
圖4.23 兩輛車大小車位之自動路邊停車模擬結果2…………………….54
圖4.24 兩輛車大小車位之自動路邊停車模擬結果數據2……………….54
圖5.1 邏輯晶片分類…………………………………………………….….58
圖5.2 電路設計流程圖……………………………………………….…….59
圖5.3 Nios 系統發展平台……………………………………………...….66
圖6.1 路邊停車系統硬體架構………………………………….………….68
圖6.2 車庫大小偵測模組之BDF示意圖………………………………….69
圖6.3 車庫大小偵測模組模擬結果………………………………………..69
圖6.4 路邊停車模糊控制模組………………………………………..……70
圖6.5 d1、d2歸屬度…………………………………………………….….72
圖6.6 模糊化模組之BDF示意圖………………………………..……..…72
圖6.7 模糊化結果……………………………………………………….….73
圗6.8 模糊推論決策之BDF示意圖………………………………..…..…75
圗6.9 模糊推論決策模擬結果……………………………………………..75
圗6.10解模糊化模組之BDF示意圖……………………………………...76
圗6.11 解模糊化模組模擬結果……………………………………..……..77
圗6.12 路邊停車模糊控制模組之BDF示意圖………………………..…78
圗6.13 路邊停車模糊控制模組之模擬結果………………………………78
圖6.14 PWM脈波寬度調變器電路設計方塊圖……………………….…79
圖6.15 PWM產生器模擬結果……………………………………...……..80
圗6.16 PWM模組之BDF示意圖……………………………….…………81
圗6.17 PWM模組模擬結果…………………………………………….….81
圖6.18 ADC的控制驅動模擬結果…………………………………………82
圗6.19 紅外線模組之BDF示意圖………………………………………..83
圗6.20 紅外線模組模擬結果………………………………………………84
圗6.21 超音波模組之BDF示意圖………………………………………..84
圗6.22 超音波模組模擬結果………………………………………………84
圗6.23 路邊停車系統模組之BDF示意圖………………………………..87
圗6.24 路邊停車系統模組模擬結果………………………………………87


表索引

表2.1 Cyclone EP1C20F400C7規格………………………………………...8
表2.2 Sharp GP2D12 距離感測器規格表…………………………………13
表2.3 ADC0804腳位功能說明……………………………………………..16
表4.1 車沿壁行走轉角控制之決策堆論邏輯規則表……………………..42
表5.1 邏輯電路比較……………………………………………………….58
表6.1 模糊化模組資料表示型態…………………………………………..71
表6.2 模糊化模組輸出入埠之規格………………………………………..73
表6.3 路邊停車系統模組資料表示型態…………………………………..86
表6.4路邊停車系統模組輸出入埠之規格…………………………….......86
參考文獻
[1] G. G. Rigatos, “Fuzzy Stochastic Automata for Intelligent Vehicle Control,” Proc. of the IEEE Int. Conf. on Industrial Electronics, Vol. 50, Issue 1, Feb. 2003, pp. 76 – 79.
[2] L. A. Zadeh, “Fuzzy Sets,” Inform. Contrl, Vol. 8, 1965, pp. 338-353.
[3] C. W. Cheng; S. J. Chang , “Parallel-Parking Control of Autonomous Mobile Robot,” Proc. of IEEE Int. Conf. on Industrial Electronics, Control and Instrumentation, Vol. 3, 9-14 Nov. 1997, pp. 1305 – 1310.
[4] K. Jiang, “A sensor guided Parallel Parking System for nonholonomic vehicles,” Proc. of IEEE Int. Conf. on Intelligent Transportation Systems, 1-3 Oct. 2000, pp. 270 – 275.
[5] D. Lyon, “Parallel Parking with Curvature and Nonholonomic Constraints,” Proc. of IEEE Int. Conf. on intelligent Vehicles, 29 June-1 July, 1992, pp. 341-346.
[6] M. Ohkita, H. Miyata, M. Miura and H. Kouno, “Traveling Experiment of an Autonomous Mobile Robot for a Flush Parking, ” Proc. of IEEE Int. Conf. on Fuzzy System, Vol. 1, 28 March-1 April, 1993, pp. 327-332.
[7] I. E. Paromtchik and C. Laugier, “Motion Generation and Control for Parking an Autonomous Vehicle,” Proc. of the IEEE Int. Conf. on Robots and Automation, Vol. 4, 1996, pp. 3117-3122.
[8] H. Miyata, M. Ohki, Y. Yokouchi, and M. Ohkita, “Control of 
   The Autonomous Mobile Robot DREAM-1 for A Parallel Parking,”
   Mathematics and Computers in Simulation, Vol. 14, 1996, pp. 129 –138.
 [9] “mnl_nios2_board_cyclone_1c20,”
http://www.altera.com/literature/manual/mnl_nios2_board_cyclone_1c20.pdf
[10] “Sharp GP2D12 IR Analog Distance Sensor,”
    http://www.playrobot.com/menu05_c31_1.htm
[11] “Sharp GP2D12 Detector Package,”
    http://www.acroname.com/robotics/parts/R48-IR12.html
[12] 盧毅編譯,VHDL與數位電路設計,文魁資訊股份有限公司,2000。 
[13] 孫宗瀛、黃金定編著,常用線性IC 資料手冊,全華科技出版社,1996。
[14] “ADC0804 - 8-Bit µP Compatible A/D Converters,”
    http://www.national.com/pf/AD/ADC0804.html.datasheet.pdf
[15] “Acroname Products: SensComp 6500 Ranging Module,”
    http://www.acroname.com/robotics/parts/R11-6500.html
[16] “LM117/LM317A/LM317 3-terminal adjustable regular data sheet,” National Semiconductor, Inc., 1997.  
http://www.national.com.
[17] E. H. Mamdani, “Application of Fuzzy Logic to Approximate Reasoning using Linguistic Synthesis,” IEEE Trans. on Computers, Vol. C-26, 1977, pp. 1182-1191.  
[18] L. A. Zadeh,” Fuzzy Algorithms,” Inform. Contrl, Vol. 12, 1968, pp. 94-102.
[19] C. C. Lee, “Fuzzy Logic in Control System: Fuzzy Logic Controller-Part Ⅰ&Ⅱ,” IEEE Trans. on System, Man and Cybernetics, Vol. 20, 1991, pp. 404-435.
[20] S. P. Wang , P. H. Yang, “Nonlinear modeling and analysis of vehicle planar motion dynamics,” Proc. of the IEEE Int. Conf. on Mechatronics, 10-12 July 2005, pp. 90 – 95.
[21] Mitsuhi Sampi, Tkeshi tamura, Tadaaru Kovaysahi, and Nobuhiro
Shibui, “Arbitraty path tracking control of articulated vehicles using
nonlinear control theory,” IEEE Trans. on Control Systems
Technology, Vol. 3, No. 1, March 1995, pp. 125-131.
[22] E. Freund, R. Mayr, “Nonlinear path control in automated vehicle guidance,” IEEE Transactions on Robtics and Automation, Vol. 13,  No. 1, Feb. 1997, pp. 49 – 60.
[23] H.P. Huang and P.C. Lee, “A Real Time Algorithm for Obstacle
Avoidance of Autonomous Mobil Robots,” Robotica , Vol. 10, 1992, pp. 217-227.
[24] G. Chen and D. Zhang, “Back-Driving a Truck with Suboptimal
Distance Trajectories: A Fuzzy Logic Control Approach,” IEEE
Transactions on Fuzzy System, August 1997, pp. 369-380.
[25] Laumond, J. –P., P. E. Jacobs, M. Taix, and R. M. Murray, “A Motion Planner for Nonholonomic Mobile Robots,” IEEE Trans. On Robotics and Automation, Vol. 10, No. 5, 1994, pp. 577-593.
[26] J. Barraquand and J. C. Latombe, “On Nonholonomic Mobile Robots and Optimal Maneuvering,” Proc. of IEEE Int. Conf. on Intelligent Control, 25-26 Sept. 1989, pp. 340-347.
[27] P. M. Larsen, “Industrial applications of fuzzy logic control,” Int. J. Mach. Studies, Vol. 12, 1980, pp. 3-10.
[28] Y. Tsuakmoto, “An Approach of Fuzzy Reasoning Method,” Advances in Fuzzy Set Theory and Applications, M. M. Gupta, R. K. Ragade and R. R. Yager, Eds. Amsterdam: North-Holland, 1979.
[29] T. Takagi and M.Sugeno, “Fuzzy Identification of Systems and its Applications to Modeling and Control,” IEEE Trans. on System, Man and Cybernetics, Vol. SMC-15, no. 1, 1985, pp. 116-132.  
[30] Mizumoto, M., “Product-sum-gravity method = fuzzy singleton-type reasoning method = simplified fuzzy reasoning method, ” Proc. of the 5th IEEE Conf. On Fuzzy Systems, New Orleans, Vol.3, 1996, pp. 2098-2102. 
[31] 林傳生,使用VHDL電路設計語言之數位電路設計,儒林圖書有限公司,台北,中華民國, 1999。
[32] “intro_to_quartus2_trad_chinese,” 
    http://www.altera.com/support/software/sof-index.html.
[33] “Embedded Processor System Design,” http://www.Altera.com .
[34] “mnl_nios2_board_cyclone_1c20,”
http://www.altera.com/literature/manual/mnl_nios2_board_cyclone_1c20.pdf
論文全文使用權限
校內
校內紙本論文立即公開
同意電子論文全文授權校園內公開
校內電子論文立即公開
校外
同意授權
校外電子論文立即公開

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