# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub.kittenbot.hk/sciencekit/uv.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
