MP3
MP3 Micro SD Player
- Overview
- Driver
- Tethered Samples
- Standalone Samples
Play MP3 audio/music from files found on the attached Micro SD card. The audio quality is reasonable and single mono channel. There is no system load as the module only receives and processes simple commands, like start playing, or stop. The files on the Micro SD card are saved in standard FAT16/FAT32 file system and can handle SD cards up to 32GB. Note that you will not have access to the files directly. Only the MP3 decoder can read the files. You will need to move the Micro SD card to a PC to load it with MP3 files.
Micro SD card is required and is not included.
Key features • MP3 decoder | Resources PID: 0x070003 |
Driver Scripts go hand-in-hand with DUELink official firmware. See the Driver Scripts page for further details.
| Function | Description |
|---|---|
SendCmd(c, a) | Send c command & a argument to mp3 module. |
WResponse(t, c, a) | t timeout, c code, a argument. Wait for response. |
Stop() | Stop playing. |
SetVol(v) | Sets v volume. (Min 0, max 30) |
IsBusy() | Returns 1 if busy. |
Loop(r) | Sets r repeat. |
Rst() | Reset mp3 module. |
PlayFile(f, d) | Play file. f Files and d directories must be named in numerics. |
DVer() | This driver version. |
The Code!
loading...
These Tethered samples assume the driver is installed, see the Driver Tab.
- Python
- MicroPython
- JavaScript
- .NET
- Arduino
- MicroBlocks
loading...
loading...
loading...
loading...
loading...
This sample project runs on a MicroBlocks-enabled device that is tethered to this module. Note that this tethered module needs to have the official DUELink firmware and its module driver. See MicroBlocks page to learn more.
Click the button below to open, edit, and run the project directly on MicroBlocks' website.
These samples show how to run DUELink Standalone.
- Script
- Arduino
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the driver to be loaded first, see the Driver Tab.
loading...
See Arduino page for more info.
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink MP3 | GDL-SOMP3-A | $14.95 |