# Sugar感應器

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FAAVTCxpOXGKICZpV3vPZ%2Fimage.png?alt=media&#x26;token=121effa9-c8a0-41b7-b15b-53c3448e3f77" alt=""><figcaption></figcaption></figure>

Sugar感應器的編程積木

### 參考程式1: 數位感應器

{% hint style="info" %}
數位感應器包括按鍵模組，磁力模組，碰撞模組，巡線模組，人體紅外，觸摸模組等
{% endhint %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FaMnYb0uhNbLyDHCmWNOy%2Fimage.png?alt=media&#x26;token=4de1d1de-3573-4f5d-b639-ea38a69299d3" alt=""><figcaption></figcaption></figure>

### 參考程式2: 模擬感應器

{% hint style="info" %}
模擬感應器包括光敏模組，火焰模組，旋轉電位器，灰度感應，泥土濕度，雨滴水位，聲音模組，水溫模組
{% endhint %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FIL6LPzmJ4VV2j97QnRNI%2Fimage.png?alt=media&#x26;token=29ad7ce4-e886-49e3-a681-b91d2107384b" alt=""><figcaption></figcaption></figure>

### 參考程式3: I2C感應器

{% hint style="info" %}
I2C感應器包括鐳射測距模組，溫濕度模組，氣壓模組，搖桿模組，PM2.5模組
{% endhint %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FkxqFfyoDtBfUWPYGnqki%2Fimage.png?alt=media&#x26;token=a74c504b-c590-46f4-9c23-25e7140ee1e2" alt=""><figcaption></figcaption></figure>

### 參考程式4: 執行器

{% hint style="info" %}
執行器包括振子，蜂鳴器，霧化器，雷射模組
{% endhint %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FkBLG48S0DZQfmeuFxWKE%2Fimage.png?alt=media&#x26;token=2adacf48-f3ef-4a3b-95a6-e4869b4d94a4" alt=""><figcaption></figcaption></figure>

### 參考程式5: 顯示類模組

{% hint style="info" %}
顯示類模組包括LED模組及數碼顯示模組
{% endhint %}

#### LED模組

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FLbIjizIGm672RbCbvbW0%2Fimage.png?alt=media&#x26;token=9a301af2-5a92-41ce-a403-c4c6f8c81e91" alt=""><figcaption></figcaption></figure>

#### 數碼顯示模組

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FEh3PRiPAoonL9utekMuJ%2Fimage.png?alt=media&#x26;token=75eb1b56-55a7-4c97-b130-5ffbf9300d54" alt=""><figcaption></figcaption></figure>

### 參考程式6: 貓耳超聲波

添加插件即可啟用貓耳超聲波的積木

<div><figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FVm3CltRqGlD2m0w7Zswr%2Fimage.png?alt=media&#x26;token=b87afbc7-24e0-4ec6-80bf-07edc8d9bf33" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FDnA0tvmL89fU157tmFI7%2Fimage.png?alt=media&#x26;token=b1d99b1b-025f-491d-989c-a74bac82f2b4" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FL90dARnCsJw2h1ztPlYG%2Fimage.png?alt=media&#x26;token=33c84d29-55a4-45e0-8a62-72d19b38ed00" alt=""><figcaption></figcaption></figure>

### 參考程式7: 觸碰鍵盤

添加插件即可啟用觸碰鍵盤的積木

<div><figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FVm3CltRqGlD2m0w7Zswr%2Fimage.png?alt=media&#x26;token=b87afbc7-24e0-4ec6-80bf-07edc8d9bf33" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FPU9ysSfrXmb6QE6Q8Naf%2Fimage.png?alt=media&#x26;token=691d0c34-7301-4545-b9ea-6e2bcafdea00" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fn3QACLKydK8aahAHCVzL%2Fimage.png?alt=media&#x26;token=2fbf4122-d176-477c-8dbb-b0b920b206c1" alt=""><figcaption></figcaption></figure>

### 參考程式8: 二氧化碳模組

添加插件即可啟用二氧化碳模組的積木

<div><figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FVm3CltRqGlD2m0w7Zswr%2Fimage.png?alt=media&#x26;token=b87afbc7-24e0-4ec6-80bf-07edc8d9bf33" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F9CuuYyBzRIQmJp8PyDtE%2Fimage.png?alt=media&#x26;token=4cf6ad3f-75c8-49f3-9981-b8f737400c8f" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FgxF82uUYBgFviIrzRkKg%2Fimage.png?alt=media&#x26;token=f33687f2-2edf-43e2-ab1e-f681173825c1" alt=""><figcaption></figcaption></figure>

### 參考程式9: 紫外線模組

添加插件即可啟用紫外線模組的積木

<div><figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FVm3CltRqGlD2m0w7Zswr%2Fimage.png?alt=media&#x26;token=b87afbc7-24e0-4ec6-80bf-07edc8d9bf33" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FCFW9MIdUtohelsZr3Peo%2Fimage.png?alt=media&#x26;token=1995a294-875d-4298-a148-0a630f8872d5" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fzc8u3d6BTxpez39wb4ww%2Fimage.png?alt=media&#x26;token=eb8f9b95-7273-416b-aeea-32cc50418f5a" alt=""><figcaption></figcaption></figure>

### 參考程式10: 稱重模組

添加插件即可啟用稱重模組的積木

<div><figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FVm3CltRqGlD2m0w7Zswr%2Fimage.png?alt=media&#x26;token=b87afbc7-24e0-4ec6-80bf-07edc8d9bf33" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F05Q78AR0BuBQUmxYy3pN%2Fimage.png?alt=media&#x26;token=90d8d079-03a0-4b0f-980a-d8766fc66245" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FvTOksvYCD9nBEc9kg8W3%2Fimage.png?alt=media&#x26;token=a45383ab-08da-46dd-ad34-bf4df6c9cf9d" alt=""><figcaption></figcaption></figure>

### 參考程式11: 太陽能模組

添加插件即可啟用太陽能模組的積木

<div><figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FVm3CltRqGlD2m0w7Zswr%2Fimage.png?alt=media&#x26;token=b87afbc7-24e0-4ec6-80bf-07edc8d9bf33" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FTd5KP3uInAuYFXuZV2A7%2Fimage.png?alt=media&#x26;token=e462e35a-0df2-41bb-aa05-8e77e89763b3" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FtsKhv5QLXM9zA04HYdGz%2Fimage.png?alt=media&#x26;token=53a690c8-b9cb-428f-a4f9-14ce7c97ba1f" alt=""><figcaption></figcaption></figure>
