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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://sharinghub.kittenbot.hk/sciencekit/hpa.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
