微軟 micro:bit 創意課程系列--Inchworm

2017-10-01 21:28

微軟 micro:bit 創意課程系列--Inchworm

做一個有趣的蚯蚓機器人!

Duration

持續時間

3活動,約30-45分鐘,每個基於熟悉編碼概念

物料

紙板片(回收!)

•膠槍(膠帶,膠帶和/或包裝膠帶)

•可剪切紙板的剪刀

•micro:bit x 1,電池座和2節AAA電池

•3個鱷魚夾

•微伺服9g SG90 x1

•回形針x1

Materials

Preparation                                 

Activities+

 

Let’s get started!

 

Edit this page on GitHub

 

 

 

 

Make

Turn a piece of cardboard into an inchworm!

Duration: ~45 minutes

把一塊紙板轉成蚯蚓!

時間:〜45分鐘

物料

•紙板

•剪刀或刀具

•膠槍或膠帶

•1張回形針

步驟1:紙板

切開紙板矩形。 您可以使用micro:bit作為標尺來計算出大小。

Step 2: center fold

步驟2:中心折疊

將紙板折疊在短邊上一半。

Step 3: legs

步驟3:腿

折疊每一端,使它們平放在地面上。

Step 4: front teeth

步驟4:前牙

折疊紙板一端的每個角落。 這將是應該抓住地面的蚯蚓的前面

Step 5: back teeth

步驟5:後牙

使用剪刀或切割器(手指!),在另一邊緣切出各種條紋。 一個接一個地折疊。

Step 6: mounting the board

步驟6:安裝板

使用膠帶或膠槍,將micro:bit安裝在一側,將microservo安裝在cardobard上。

Step 7: mounting the servo

步驟7:安裝伺服

將伺服機構安裝在另一個紙板邊的邊緣。

Step 8: Cable clean up (optional)

步驟8:電纜清理(可選)

使用磁帶將電纜很好地佈置在蚯蚓上。

Step 9: attaching paper clip to servo

步驟9:將回形針連接到伺服

展開一個回形針並將其連接到伺服臂上。

Step 10: attaching paper clip to cardboard

步驟10:將紙夾連接到紙板上

將文件夾夾子滑入紙板,並使用膠帶固定。 您可能需要用夾子的大小玩弄,以便伺服旋轉足夠打開蚯蚓。

Step 11: it’s ready!

Your inchworm is ready!

 

NEXT: Code    Edit this page on GitHub

Code

Add code to make the inchworm move.

Duration: ~30 minutes

Step 1: walk forever

添加代碼使蚯蚓移動。

時間:〜30分鐘

步驟1:永遠走

為了使蚯蚓移動,微:位需要以一定的速度命令伺服器在0和180度之間。 在下面的代碼中,用戶按下按鈕A啟動蚯蚓。

You may have noticed that the inchworm can be rather slow or simply won’t move. Try to improve the design of your legs, teeth so that the inchworm goes as fast as possible. Trying it on carpet also great helps avoiding skidding.

你可能已經註意到,蚯蚓可能相當緩慢或根本不會動。 嘗試改善你的雙腿,牙齒的設計,使蚯蚓盡可能的快。 嘗試在地毯上也很有幫助避免打滑。

 

NEXT: Connect

 

Edit this page on GitHub

 

 

Connect

Remote control your inchworm with another micro:bit

Duration: ~30 minutes

遙控你的蚯蚓與另一個micro:bit

時間:〜30分鐘

您將需要micro:bit x2 這部分。 通過使用收音機,我們可以使蚯蚓由另一個微處理器控制:位。 將下面的代碼下載到micro:bit on the inchworm和另一個“controller”micro:bit。 按下A,蚯蚓將移動一次。

Microbit 台灣 商店

Microbit 中文 課程 : Python , Javascript, 物聯網

              中國

Edit this page on GitHub

 

—————

返回