> 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/uv.md).

# Sugar 二期紫外線感應模組

<figure><img src="/files/9AkhJw2hxwAweYeryGOy" alt=""><figcaption></figcaption></figure>

這是一個紫外線感應模組，可以檢測到環境的紫外線強度。

模組檢測的紫外線強度僅為參考值，並不是絕對讀數。

## 產品參數：

* 操作電壓：3.3\~5V
* 重量：5.2g
* 尺寸：24 x 24 x 16 mm
* 類型：I2C 模組

## 產品接線

#### Robotbit EDU

<figure><img src="/files/lvrofQnNipZf6vu1nRpN" alt=""><figcaption></figcaption></figure>

#### Robotbit 2.2

<figure><img src="/files/MDyC7qFaA1Tkfw5XRQLp" alt=""><figcaption></figcaption></figure>

## 參考程式

#### MakeCode編程教學

#### 加載Sugar插件：

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

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

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

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

#### [詳細方法](/programmingplatforms/makecode/kittenbotandmakecode.md)

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

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