# 1. 掌上壓測試

以超聲波測距檢測用戶完成掌上壓的次數，然後上傳至物聯網平台。

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

### 搭建說明書

[搭建說明書下載](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/fitness/images/situp.pdf)

### 參考接線

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

### 參考程式

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

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

### 使用方法

1. 將整組感應器放在地上，並將超聲波感應器固定在胸前的地上。
2. 開動Robotbit，等待WifiBrick連接到MakerCloud。
3. 當用戶做掌上壓時，身體進入超聲波感應器15cm範圍內就會響一下示意到達最低點。當用戶撐起身體，身體與感應器距離大於25cm時就會再響一下示意到達頂點。
4. 按下A鍵查看完成掌上壓次數。
5. 按下B鍵上傳數據至物聯網。
6. 按下A+B鍵重置感應器，將次數歸0。


---

# 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/kits/fitness/pushup.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.
