Arduino Robot Hand (for Tw Students Not to Be Flunked)

Introduction: Arduino Robot Hand (for Tw Students Not to Be Flunked)

為了生科作業,我們想破頭都找不到好的主題,後來輾轉看到了arduino機器手臂,覺得超酷就決定做這個了,但因為經費、能力不足我們只好做簡單版的 根據一部youtube影片做出一些改變跟創新,增加了一個開關控制。

Supplies:

Arduino Nano板

塑膠機器手臂(大創買的到)

杜邦線

2個舵機MG90S

兩個小麵包板

鐵線

arduino兩檔扭子開關

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: 硬體裝置簡單步驟

將你的機器手臂拆下來,留前面夾子跟黃色那段手臂就好。將夾子拆開並將兩個爪子連在一起的地方分開,分別纏上鐵線,小心不要互相卡到或纏到。接著把手臂切兩段前面那段只需要10cm,並在後段前方挖兩個洞塞舵機,兩個舵機要有適當距離 差不多5cm,並將兩條鐵線分別連到兩個舵機上。

Step 2: 軟體方面

拿三用電表(電阻方向)測出開關的正負極的腳並如圖接線非常簡單。

程式碼:

#include

Servo myServo1; Servo myServo2;

void setup(){ myServo1.attach(2); myServo2.attach(6);

}

void loop(){ myServo1.write(0); myServo2.write(180); delay(500); myServo1.write(90); myServo2.write(90); delay(500); }

Be the First to Share

    Recommendations

    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    Discussions