# 手勢控制小車

![](https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FKlguJb6cFjbhCrzBv8xn%2Fkart.png?alt=media\&token=76cb2e99-58dd-421c-a9c9-946fa6c8417d)

透過PoseNet肢體檢測模型，辨識到左手和右手的位置從而控制小車方向。

### 組裝說明書下載

[組裝說明書下載](https://drive.google.com/drive/folders/1wg_edUZFrqyUONA0FJ6vFBkGArRsfnf4?usp=sharing)

![](https://kittenbothk.readthedocs.io/en/latest/_images/kart_wire.png)

### 參考程式 小車接收

{% hint style="info" %}
將此程式下載到機械車的Micro:bit上
{% endhint %}

{% file src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FQ184rtPe41i8OfstAJTo%2F%E6%89%8B%E5%8B%A2%E6%8E%A7%E5%88%B6%E5%B0%8F%E8%BB%8A%E6%8E%A5%E6%94%B6.sb3?alt=media&token=c18e828f-554c-490e-a2f6-3b22743d45ec" %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fmr317jODBL8yiLkGBCEp%2F%E6%89%8B%E5%8B%A2%E6%8E%A7%E5%88%B6%E5%B0%8F%E8%BB%8A%E6%8E%A5%E6%94%B6.png?alt=media&#x26;token=2766d251-f505-4645-bb08-231368c7d0b1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
打開代碼模式然後按上陣，等待完成上傳程式到Micro:bit
{% endhint %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FeCk87PkEdoYFBjADOGsL%2Fimage.png?alt=media&#x26;token=8bb577d2-5fa4-4e17-a565-fae906f14253" alt=""><figcaption></figcaption></figure>

### 參考程式 小車遙控

{% file src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FpXq0J4mU4xHMCzIIrysC%2F%E6%89%8B%E5%8B%A2%E6%8E%A7%E5%88%B6%E5%B0%8F%E8%BB%8A%E9%81%99%E6%8E%A7.sb3?alt=media&token=f446fe18-227d-4356-8602-6383ba6f4542" %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F42uvluCMVe8kMS3aiZST%2F%E6%89%8B%E5%8B%A2%E6%8E%A7%E5%88%B6%E5%B0%8F%E8%BB%8A%E9%81%99%E6%8E%A7.png?alt=media&#x26;token=8f21d3b1-325e-4401-8408-fbc5b6c3696d" alt=""><figcaption></figcaption></figure>

### 應用玩法

1. 連接好Micro:bit和打開Robotbit電源
2. 點擊綠色旗啟動程式
3. 鏡頭會追蹤人體，將左右手的拳頭放在鏡頭裡面做出握著方向盤的姿勢
4. 當雙手高度大致水平，小車就會向前行駛
5. 當其中一隻拳頭明顯較高，小車就會轉向

