Top Banner
電子工程系 電腦遊戲設計組 教學(1) 組裝與測試 吳錫修 Feb 16, 2017
26

mBot 教學1 組裝與測試

Jan 14, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: mBot 教學1 組裝與測試

電子工程系應 用 電 子 組電 腦 遊 戲 設 計 組

教學(1)組裝與測試

吳錫修

Feb 16, 2017

Page 2: mBot 教學1 組裝與測試

shap

e th

e fu

ture

⼀款基於Arduino開源平台之簡易機器人套件,有2.4G及藍牙二種版本,購買時要確認自己的需求

2.4G適用於mBot與電腦間使用WiFi連線

藍牙適用於mBot與手機間使用藍牙連線

mCore主控板內建以下項目

全彩LED * 2

紅外線發射器、紅外線接收器

蜂鳴器

光感測器

mBot簡介 1/2

2 Wu, ShyiShiou Dept. of E.E.

Page 3: mBot 教學1 組裝與測試

shap

e th

e fu

ture

週邊模組

直流減速馬達

超音波感應器

循線感測器

藍牙傳輸模組 或 2.4G無線傳輸模組

mBot簡介 2/2

3 Wu, ShyiShiou Dept. of E.E.

Page 4: mBot 教學1 組裝與測試

shap

e th

e fu

ture

鋁合金機體

mCore主控板

直流減速馬達( x2 )

超音波感應器、巡線感應器

藍牙模組或2.4G Wi-Fi模組

輪轂及輪胎(x2)

萬向輪

電池盒、鋰電池 (選購)

紅外線遙控器

RJ25電線(x2)、六角銅柱、USB線、螺絲、組裝工具(螺絲起子)

mBot套件 1/3

4 Wu, ShyiShiou Dept. of E.E.

Page 5: mBot 教學1 組裝與測試

shap

e th

e fu

ture

mBot套件 2/3

5 Wu, ShyiShiou Dept. of E.E.

Page 6: mBot 教學1 組裝與測試

shap

e th

e fu

ture

mBot套件 3/3

6 Wu, ShyiShiou Dept. of E.E.

Page 7: mBot 教學1 組裝與測試

shap

e th

e fu

ture

1. 安裝驅動馬達

A. 固定右側馬達

mBot組裝 1/13

7

M3 nut * 2M3 × 25 * 2

Wu, ShyiShiou Dept. of E.E.

Page 8: mBot 教學1 組裝與測試

shap

e th

e fu

ture

B. 固定左側馬達

mBot組裝 2/13

8

M3 nut * 2M3 × 25 * 2

Wu, ShyiShiou Dept. of E.E.

Page 9: mBot 教學1 組裝與測試

shap

e th

e fu

ture

2. 安裝後輸

A. 組合輪轂及輪胎

mBot組裝 3/13

9 Wu, ShyiShiou Dept. of E.E.

Page 10: mBot 教學1 組裝與測試

shap

e th

e fu

ture

B. 固定後輪

mBot組裝 4/13

10

M2.2 × 9 * 2

Wu, ShyiShiou Dept. of E.E.

Page 11: mBot 教學1 組裝與測試

shap

e th

e fu

ture

3. 安裝巡線感應器及萬向輪

mBot組裝 5/13

11

M4 × 8 * 2

Wu, ShyiShiou Dept. of E.E.

Page 12: mBot 教學1 組裝與測試

shap

e th

e fu

ture

4. 安裝超音波感測器

mBot組裝 6/13

12

M4 × 8 * 2

Wu, ShyiShiou Dept. of E.E.

Page 13: mBot 教學1 組裝與測試

shap

e th

e fu

ture

5. 安裝主控板銅柱

mBot組裝 7/13

13

M4 × 25 * 4

Wu, ShyiShiou Dept. of E.E.

Page 14: mBot 教學1 組裝與測試

shap

e th

e fu

ture

6. 整理接線

mBot組裝 8/13

14

超音波感測器連接線

巡線感應器連接線

M2

M1

M2連接線

M1連接線

Wu, ShyiShiou Dept. of E.E.

Page 15: mBot 教學1 組裝與測試

shap

e th

e fu

ture

7. 安裝電池盒 (或鋰電池)

A. 黏貼魔鬼氈

mBot組裝 9/13

15 Wu, ShyiShiou Dept. of E.E.

Page 16: mBot 教學1 組裝與測試

shap

e th

e fu

ture

B. 固定電池盒 (或鋰電池)

mBot組裝 10/13

16 Wu, ShyiShiou Dept. of E.E.

Page 17: mBot 教學1 組裝與測試

shap

e th

e fu

ture

8. 安裝mCore主控板

mBot組裝 11/13

17

M4 × 8 * 4

Wu, ShyiShiou Dept. of E.E.

Page 18: mBot 教學1 組裝與測試

shap

e th

e fu

ture

9. 安裝藍牙模組

mBot組裝 12/13

18 Wu, ShyiShiou Dept. of E.E.

Page 19: mBot 教學1 組裝與測試

shap

e th

e fu

ture

10. 連接訊號線

mBot組裝 13/13

19

如果輪子轉動方向錯誤,將M1與M2接線對調

超音波接線太長可纏繞銅柱

Wu, ShyiShiou Dept. of E.E.

Page 20: mBot 教學1 組裝與測試

shap

e th

e fu

ture

安裝mBlock IDE

下載 mBlock安裝程式 http://www.mblock.cc/

執行所下載的執行檔

選擇安裝語言,其餘使用預設值安裝即可

點擊mBlock選單命令「連接>安裝Arduino驅動」,完成Arduino驅動程式安裝 (要開發Arduino或Makeblock系列應用程式才需要)

mBot測試 1/7

20 Wu, ShyiShiou Dept. of E.E.

Page 21: mBot 教學1 組裝與測試

shap

e th

e fu

ture

mBot出廠內建三種模式

使用紅外線操作mBot移動

mBot自動避開障礙物行進

mBot自動巡著黑色軌道線前進

回復出廠程序

1. 使用USB接線連接mBot與PC,開啟mBot電源

mBot測試 2/7

21 Wu, ShyiShiou Dept. of E.E.

Type A Type B

Page 22: mBot 教學1 組裝與測試

shap

e th

e fu

ture

2. 開啟mBlock程式

3. mBlock選單命令「連接>通訊埠>COM x」

4. mBlock選單命令「控制板>mBot (mCore)」

5. mBlock選單命令「連接>恢復出廠程序>mBot」

等待上傳完成,mBot會發出三聲音樂聲兩次

6. 斷開USB接線

mBot測試 3/7

22 Wu, ShyiShiou Dept. of E.E.

Page 23: mBot 教學1 組裝與測試

shap

e th

e fu

ture

mBot紅外線遙控器

mBot測試 4/7

23 Wu, ShyiShiou Dept. of E.E.

Page 24: mBot 教學1 組裝與測試

shap

e th

e fu

ture

使用紅外線操作mBot移動

1. 按⼀下紅外線遙控器A鍵設定mBot進入「紅外線操控」作業模式

2. 按著鍵,mBot前進

3. 按著鍵,mBot後退

4. 按著鍵,mBot右轉

5. 按著鍵,mBot左轉

6. 按⼀下1~9鍵,設定mBot速度,1最慢,9最快

mBot測試 5/7

24 Wu, ShyiShiou Dept. of E.E.

Page 25: mBot 教學1 組裝與測試

shap

e th

e fu

ture

mBot自動避開障礙物行進

1. 按⼀下紅外線遙控器B鍵設定mBot進入「自動避障行進」作業模式

2. mBot行進間使用手擋在mBot前方,觀察mBot行進模式

mBot測試 6/7

25 Wu, ShyiShiou Dept. of E.E.

Page 26: mBot 教學1 組裝與測試

shap

e th

e fu

ture

mBot自動巡線行進

1. 將循線軌跡圖放在平坦地面

2. 將mBot置於黑色軌跡圏內

3. 按⼀下紅外線遙控器C鍵設定mBot進入「自動巡線行進」模式,觀察mBot行進模式

mBot測試 7/7

26 Wu, ShyiShiou Dept. of E.E.