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

# 1.聲音測量

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FU1NQKOt5z4AaHc4AY3g7%2Fimage.png?alt=media&#x26;token=72e9f9c9-72d7-4647-9003-b5d8c20a8e1a" alt=""><figcaption></figcaption></figure>

人類的活動例如工廠、交通等都會造成噪音。噪音亦是污染的一種，噪音污染除了會影響市民心情外亦會有機會影響市民聽力。

### 實驗準備

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

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

### 未來板Lite版本

#### 硬件接線

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

<figure><img src="/files/4aGSqCdxNclTxsBwWW9u" alt=""><figcaption></figcaption></figure>

#### 開啟程式

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

<figure><img src="/files/1H0GbBQgVlOAjdfOV56x" alt=""><figcaption></figcaption></figure>

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

#### 進行測量

未來板Lite會一直顯示測量到的音量(分貝)。

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

#### Datalogging頁面

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

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

數據儲存在dbdata資料夾

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

### Micro:bit版本

#### 硬件接線

<figure><img src="https://sharinghub.kittenbot.hk/~gitbook/image?url=https%3A%2F%2F879637118-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6uJvpXC43onNIIwhMlWo%252Fuploads%252Fzx5gJAyiRPw9ONns2Qv5%252Fsound_wire.png%3Falt%3Dmedia%26token%3D17b54525-b8f7-4eed-84b6-8f3bc57ae1f6&#x26;width=768&#x26;dpr=1&#x26;quality=100&#x26;sign=5a34efd0&#x26;sv=1" alt=""><figcaption></figcaption></figure>

#### 參考程式

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

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