# Sugar 二期MQ2煙霧感應器模組

![](https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F7wm4qpB5QQrkFr3loj75%2Fmq2.png?alt=media\&token=40264ed7-2fdc-4f24-a490-03971a157c7b)

這是一個煙霧感應器。

### 產品參數

* 尺寸：24 x 24 x 23 mm
* 類型：Analog 模擬模組

### 產品接線

#### Robotbit Edu

用3Pin 連接線將模組與Robotbit Edu連接起來。

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FnCoyeb14ettBAq220F3D%2Fmq2_wiring_edu.png?alt=media&#x26;token=a78a3893-3afb-46ee-b92d-c6babfc7d79e" alt=""><figcaption></figcaption></figure>

#### Robotbit 2.2

用3Pin 連接線將模組與Robotbit 2.2連接起來。

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FDS9qckIDirczFGEpNRtG%2Fmq2_wiring_2.2.png?alt=media&#x26;token=902354ab-98a0-46e2-a514-c7895e96d291" alt=""><figcaption></figcaption></figure>

#### Armourbit

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FJBPxJ3bHsNFvJWuZcKu3%2Fmq2_wiring_armourbit.png?alt=media&#x26;token=e4756533-2ca2-466a-86d5-81e5846b5606" alt=""><figcaption></figcaption></figure>

### 編程教學

#### MakeCode編程教學

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

#### 加載Sugar插件：

#### 在擴展頁直接搜尋sugar (sugar已經過微軟認證，可以直接搜尋)

![](https://kittenbothk.readthedocs.io/en/latest/_images/sugar_search.gif)

#### 你亦可以用插件地址搜尋

Sugar插件：<https://github.com/KittenBot/pxt-sugar>

#### [詳細方法](https://sharinghub.kittenbot.hk/programmingplatforms/makecode/kittenbotandmakecode)

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

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