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

# 2.紫外線測量

### 實驗準備

#### 請同學準備以下實驗硬件:

* 未來板Lite 顯示板 / Micro:bit + Robotbit
* 紫外線測量儀器
* 黑色連接線

### 未來板Lite版本

#### 硬件接線

請同學將紫外線測量儀器連接到未來板Lite顯示板上。

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

#### 開啟程式

請同學在未來板Lite上開啟「2.UV\_i2c.py」檔案。

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

{% embed url="<https://youtu.be/t0IWq0CMLTk>" %}

#### 進行測量

未來板Lite會一直顯示測量到的紫外線強度和光照強度。

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

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

#### Datalogging頁面

{% hint style="info" %}
未來板IP地址/html/uv.html
{% endhint %}

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

數據儲存在uvdata資料夾

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

### Micro:bit版本

#### 硬件接線

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

#### 參考程式

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

[下載參考程式](https://makecode.microbit.org/_1imLMHbRf9mk)
