# MP3播放魔塊

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

這是一塊MP3播放魔塊，內建小喇叭和microSD卡插槽，可以播放SD卡裏的mp3檔案。上面還自帶按鍵，包括播放、上一首和下一首。配合Armourbit使用，可以用程式播放SD卡的指定歌曲等。

### 詳細介紹

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

### 產品參數

* 支援電壓：3V-5V
* 尺寸：56mm X 24mm X 16mm
* 接口：4pin防反插接口
* 内存卡支持：microSD卡，最大支持32G,FAT32格式
* 支援音頻格式：MP3、WAV
* 自帶按鍵：播放、上一首、下一首
* 音頻上載：將microSD卡插入電腦，將檔案拖曳到卡上即可

### 使用注意事项

* PowerBrick套件並沒有附送microSD卡，請自行購買。
* MP3播放魔塊一定要有內存卡，且内存卡中存有可播放的音頻，才可以播放音樂。
* 安裝microSD卡時請注意，聽到「卡嚓」一聲才代表安裝好。
* 取出microSD卡時請不要直接用力拔，按一按microSD卡即會彈出。

### 接線方法

將MP3播放魔塊用4pin排線連接至Armourbit。

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

### MakeCode編程教學

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

#### 加載PowerBrick插件：

#### 在擴展頁直接搜尋powerbrick (PowerBrick已經過微軟認證，可以直接搜尋)

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

#### 你亦可以用插件地址搜尋

PowerBrick插件地址：<https://github.com/KittenBot/pxt-powerbrick>

#### [詳細方法](/programmingplatforms/makecode/kittenbotandmakecode.md)

#### MP3播放魔塊積木塊

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

#### 音頻播放

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

[參考程式網址](https://makecode.microbit.org/_1zuJ9JUkK3WT)

#### 指定序號播放音頻

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

[參考程式網址](https://makecode.microbit.org/_PqF5VqYgp6Yu)

#### 指定名稱播放音頻

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

```
名稱只支援英文和數字，長度不能長於8位。
```

[參考程式網址](https://makecode.microbit.org/_2uChE8PtC8fT)

#### Makecode教學短片

{% embed url="<https://www.youtube.com/watch?v=h2XQ463V5CE>" %}

### 插件版本與更新

插件可能會不定時推出更新，改進功能。亦有時候我們可能需要轉用舊版插件才可使用某些功能。

詳情請參考: [Makecode插件版本更換](/programmingplatforms/makecode/makecodeextupdate.md)

### KittenBlock編程教學

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

#### 加載PowerBrick插件

在左上角小貓logo旁邊的硬件欄選擇PowerBrick，加載Microbit與Powerbrick插件。

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

#### MP3積木塊

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

#### 音頻播放

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

[參考程式下載](https://bit.ly/PowerbrickM10_01sb3)

#### 指定序號播放音頻

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

[參考程式下載](https://bit.ly/PowerbrickM10_02sb3)

#### 指定名稱播放音頻

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

```
名稱只支援英文和數字，長度不能長於8位。
```

[參考程式下載](https://bit.ly/PowerbrickM10_03sb3)

### FAQ

1：為什麼我點擊積木塊沒有反應呢？

首先確保已經連接好Microbit，然後上載韌體再試一試。


---

# 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/functional_modules/pwmodules/mp3.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.
