> For the complete documentation index, see [llms.txt](https://sharinghub-eng.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-eng.kittenbot.hk/functional_module/powerbrick/mp3.md).

# MP3 Music Module

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

This is a music module with a speaker and a microSD card slot, it is able to play MP3 files. It can be used as an MP3 player with the built-in buttons, or be used with an Armourbit.

### Details

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

### Specifications

* Voltage: 3V-5V
* Dimensions: 56mm X 24mm X 16mm
* Connector: 4Pin PH2.0
* Flash Card: microSD card, up to 32G, supports FAT32
* File Formates: MP3, WAV
* Buttons: Play, Previous, Next
* Uploading: Put the files onto the microSD card with a computer.

### Precautions

* PowerBrick Kit set does not come with an SD Card.
* Music can only be played if there are music files on the SD Card.
* When installing the SD Card, push it into the slot until there is a click.
* To remove the SD Card, gently push the SD Card, the SD Card will be unlocked and can be taken out. Do not pull the SD Card from the slot without unlocking first.

### Connecting the module

Connect the Music Module to Armourbit with a 4Pin cable

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

### MakeCode Coding Tutorial

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

#### Load Powerbrick Extension:

#### Search "Powerbrick" in the search bar.

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

#### Or search the following link.

<https://github.com/KittenBot/pxt-powerbrick>

#### MP3 Module Blocks

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

#### Playing an MP3 file

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

[Sample Program](https://makecode.microbit.org/_1zuJ9JUkK3WT)

#### Choosing an MP3 file with a number

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

[Sample Program](https://makecode.microbit.org/_PqF5VqYgp6Yu)

#### Choosing an MP3 file with a name

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

```
File name can only contain alphabets and numerics, length cannot exceed 8 letters.
```

[Sample Program](https://makecode.microbit.org/_2uChE8PtC8fT)

#### Makecode Video

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

### Extension Version and Updates

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

[MakeCode Extension Update](/programming-platforms/makecode-tutorial/makecode-extension-updates.md)

### KittenBlock Coding Tutorial

![../../\_images/kbbanner.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbbanner.png)

#### Load Powerbrick Extension

Select Powerbrick from the hardware column.

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

#### MP3 Module Blocks

![../../\_images/kbmp3blocks1.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbmp3blocks1.png)

#### Playing an MP3 file

![../../\_images/mp3play1.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/mp3play1.png)

[Sample Code Download](https://bit.ly/PowerbrickM10_01sb3)

#### Choosing an MP3 file with a number

![../../\_images/mp3playbyid1.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/mp3playbyid1.png)

[Sample Code Download](https://bit.ly/PowerbrickM10_02sb3)

#### Choosing an MP3 file with a name

![../../\_images/mp3playbyname1.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/mp3playbyname1.png)

```
File name can only contain alphabets and numerics, length cannot exceed 8 letters.
```

[Sample Code Download](https://bit.ly/PowerbrickM10_03sb3)

### FAQ

1：Why is there no reaction when I click the blocks?

Make sure you have connected the Micro:bit correctly and flash the firmware again.
