> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/functional_modules/sugar/sugarcam/teachablemachine/serial.md).

# Sugar Cam功能教學: 結合Teachable Machine與MakeCode編程

完成模型訓練之後，可以配合主控板做到Teachable Machine的圖像辨識功能。

### 接線教學

<figure><img src="/files/Ffp8cNHEiKCAXUXn7aaP" alt="" width="375"><figcaption></figcaption></figure>

### MakeCode 編程教學

只需要透過序列數據就可以獲取辨認結果。

{% hint style="info" %}
請按自己的模型修改程式。
{% endhint %}

{% embed url="<https://makecode.microbit.org/_iu7JMC6wu5wi>" %}

[參考程式](https://makecode.microbit.org/_iu7JMC6wu5wi)
