Serial MP3 Player A v1.0 Manual
Serial MP3 Player A v1.0 Manual
com
OPEN-SMART
Version: v1.0
©OPEN-SMART
1 / 12
OPEN-SMART Email: [email protected]
1 Description
2 / 12
OPEN-SMART Email: [email protected]
The module is a kind of simple MP3 player device which is based on a high-quality MP3 audio chip.
It can support 8k Hz ~ 48k Hz sampling frequency MP3 and WAV file formats. There is a TF card
socket on board, so you can plug the micro SD card that stores audio files. MCU can control the
MP3 playback state by sending commands to the module via UART port, such as switch songs,
change the volume and play mode and so on. You can also debug the module via USB to UART
module. It is compatible with Arduino / AVR / ARM / PIC.
Features:
- Compatible with Arduino UNO / Leonardo / Mega2560 / DUE
- Support sampling frequency (kHz): 8 / 11.025 / 12 / 16 / 22.05 / 24 / 32 / 44.1 / 48
- Support file format: MP3 / WAV
- Support Micro SD card, Micro SDHC Card
- Onboard 3-watt mono amplifier
- On-board speaker interface XH2.54-2P, can connect to external speakers such as 8 ohm 3-watt, 8
ohm 2 watt, 8 ohm 1 watt
- 30 class adjustable volume
- UART TTL serial control playback mode, baud rate is 9600bps
- Serial communication format: 8N1
- Control logic interface can be 3.3V / 5V TTL
- Working voltage: 3.7 - 5.25VDC
- On-board headphone jack, it can connect headphones or external amplifier
- On-board TF card connector
- It is great for DIY
3 / 12
OPEN-SMART Email: [email protected]
2 Specification
Current(@VCC=5V) / / 200 mA
Micro SD card(<=2G);
Supported Card Type /
Mirco SDHC card(<=32G)
Dimensions 49X24X8.5 mm
Net Weight 5 g
4 / 12
OPEN-SMART Email: [email protected]
3 Interface
Control interface: It is UART TTL interface. A total of four pins (GND, VCC, TX, RX), GND to
ground, VCC is the power supply, TX is the TX pin of the MP3 chip, RX is the RX pin of the MP3
chip.
TF card socket: The micro sd card can be plugged in it.
Playbck indicator: Green light. If it is playing songs, it is on. Otherwise, it is off.
Headphone jack: It can be connected with the headphone or external amplifier.
Speaker: can connect to external speakers such as 8 ohm 3-watt, 8 ohm 2 watt, 8 ohm 1 watt.
Mounting holes: 4 screw mounting holes whose diameter is 2.2mm, so that the module is easy to
install, easy to combine with other modules.
5 / 12
OPEN-SMART Email: [email protected]
4 Usage
4.1 About the commands
4.1.1 Asynchronous serial port control play mode:
6 / 12
OPEN-SMART Email: [email protected]
(1) You need a USB to Uart TTL module (such as USB/Serial Adapter) to connect
(2) After the connection is completed, open the sscom32 serial tool that you can
down load from catalex net disk to send commands. About the specific commands,
7 / 12
OPEN-SMART Email: [email protected]
(3) Click the EXT button and then you can manage the commands to be sent.
(3) Baud rate should be 9600. Tick HEX and HexData so that the command can be
received by the Serial MP3 Player and you can see the feedback information in the
blank of the window. Before sending commands, you should select the [ComNum]
8 / 12
OPEN-SMART Email: [email protected]
(4) Make sure your micro sd card is formatted as FAT16 or FAT32 and there is some
songs in it. May be you should creat folder “01” and “02”, and put some songs
with the name 001xxx.mp3 / 002xxx.mp3 / 003xxx.mp3 in the two folder. Some
(5) After power up, you should send the command [Select device] first. Serial MP3 Player
Then you can send the command [Play with index] to play some song.
You can send the command [Set volume] to set the volume(0 ~ 30 class).
9 / 12
OPEN-SMART Email: [email protected]
(3)Make sure your micro sd card is formatted as FAT16 or FAT32 and there is some songs in it.
May be you should creat folder “01” and “02”, and put some songs with the name 001xxx.mp3 /
002xxx.mp3 / 003xxx.mp3 in the two folder. Some commands need them.
Plug the micro sd card into the TF card socket on the Serial MP3 Player, and then plug the
headphone.
Step3: Power on
Use the USB cable to connect the Arduino UNO R3 and PC.
10 / 12
OPEN-SMART Email: [email protected]
(3)Make sure your micro sd card is formatted as FAT16 or FAT32 and there is some songs in it. May
be you should creat folder “01” and “02”, and put some songs with the name 001xxx.mp3 /
002xxx.mp3 / 003xxx.mp3 in the two folder. Some commands need them.
Plug the micro sd card into the TF card socket on the Serial MP3 Player, and then plug the
headphone.
Step3: Power on
Use the USB cable to connect the Arduino UNO R3 and PC.
Step4: Upload the demo code. If you have download in Project1, skip this step.
Download the demo code (SerialMP3PlayerDemoforArduino-1.0.zip), and unzip it to your code
11 / 12
OPEN-SMART Email: [email protected]
project folder such as ../Arduino-1.0/MyProject. And then upload the code ControlMP3PLayer.ino
to your arduino UNO R3.
5 Part List
1x Serial MP3 Player A Module
https://drive.google.com/folderview?id=0B6uNNXJ2z4CxaFVzZEZZVTR5Snc&usp=s
haring
12 / 12