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

# 5.水溫測量

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fwfrwq78znTkMbFksBsIP%2Fimage.png?alt=media&#x26;token=27978591-caf9-44be-b4e8-68ee866e0d10" alt=""><figcaption></figcaption></figure>

河水海水的溫度是生態鏈重要的一環，人類的工業活動有機會會影響自然環境水溫，影響水中的生物。

### 實驗準備

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

* 未來板Lite 顯示板 / Micro:bit + Robotbit
* 水溫測量儀器
* 白色連接線

### 未來板Lite版本

#### 硬件接線

請同學將水溫儀器連接到未來板Lite顯示板上。

<figure><img src="/files/0HyI3KVsmMi3P3l874Ej" alt=""><figcaption></figcaption></figure>

#### 開啟程式

請同學在未來板Lite上開啟「05\_Temp\_p1.py」檔案。

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

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

#### 進行測量

未來板Lite會一直顯示測量到的水溫(攝氏)。

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

#### Datalogging頁面

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

<figure><img src="/files/5WfIAJkVpF2YwMrRGAap" alt=""><figcaption></figcaption></figure>

數據儲存在tempdata資料夾

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

### Micro:bit版本

#### 硬件接線

<figure><img src="https://sharinghub.kittenbot.hk/~gitbook/image?url=https%3A%2F%2Fkittenbothk.readthedocs.io%2Fen%2Flatest%2F_images%2Fwatertemp_wire.png&#x26;width=768&#x26;dpr=1&#x26;quality=100&#x26;sign=cc215f6&#x26;sv=1" alt=""><figcaption></figcaption></figure>

#### 參考程式

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

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