MonkMakes Connector 配合 mp3 player 播放音樂

在不少專題我們都會希望加入一些特別的音效 ,
「Serial MP3 player Module」+ mini mp3 speaker 可以播放自定義的音效 , 而不是 micro:bit 上的 default 電子音 ,這代表我們可以自訂/錄製內容 , 例如產品介紹錄音 , 語音提醒等等...
所需材料 :
- micro:bit x 1
- MonkMakes Connector x 1
- jumper wire F/F x 2
- Crocodile Clip with Pigtail - female jumper connector x 2
- Serial MP3 player Module x 1
- mini mp3 speaker x 1
- mini SD Card x 1
設定 mp3 folder 的名稱 :

為了在編程時能夠載入 mp3 folder , folder 的名稱必需改為 "01", “02”, etc
設定 mp3 file 的名稱 :

sound file 的格式差不多 , 需名為 「001」,「002」etc
格式可為 .mp3 或 .wav 。
然後將整個 folder 複製至你的 mini SD card上
電線接駁教學 :
- Serial MP3 的 「VCC」 --> MonkMakes Connector 的 「3V」
- Serial MP3 的 「GND」 --> MonkMakes Connector 的 「GND」
- Serial MP3 的 「TX」 --> 利用鱷魚夾夾至 MonkMakes Connector 的 「P0」
- Serial MP3 的 「RX」 --> 利用鱷魚夾夾至 MonkMakes Connector 的 「P1」
加入 makerbit-mp3 extension :

在左面的 coding block 選擇 「Extensions」

輸入「mp3」並加入「makerbit-mp3」extension。