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

# 2.氣壓測量

### 實驗準備

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

* 未來板Lite 顯示板 / Micro:bit + Robotbit
* 氣壓測量
* 黑色連接線

### 未來板Lite版本

#### 硬件接線

請同學將氣壓測量儀器連接到未來板Lite顯示板上。

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

#### 開啟程式

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

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

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

#### 進行測量

未來板Lite會一直顯示測量到的氣壓強度。

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

#### Datalogging頁面

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

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

數據儲存在hpadata資料夾

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

### Micro:bit版本

#### 硬件接線

#### Robotbit Edu

用4PIN連接線將模組連接到Robotbit上的I2C接口。

![](https://kittenbothk.readthedocs.io/en/latest/_images/env_wire1.png)

#### 參考程式

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

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