Summary of Arduino MP3 Player
This Arduino project is a standalone MP3 player inspired by vintage radios, built using a VS1002d-based MP3 module (or compatible VS1003/VS1053), an SD card, and a 4x20 character LCD. The Arduino controls the MP3 module and SD card via SPI communication, with buttons and an encoder for navigation. Level shifting via resistor voltage dividers is used to interface 3.3V modules with the Arduino's 5V logic. The LCD operates in 4-bit mode to conserve pins, delivering a compact, self-contained MP3 playback device.
Parts used in the Arduino MP3 Player:
- Arduino board
- MP3 module based on VS1002d/VS1003/VS1053 chip
- SD card module
- 4x20 character LCD
- Small amplifier
- Two speakers
- Buttons (Forward, Back)
- Rotary encoder (Encoder A and Encoder B)
- Resistors (for voltage divider level shifting)
I present this new Arduino project: A full MP3 player based on Arduino.
As you can see in the photo, the idea was to build a standalone player, in the style of antique radios or ‘tapes’, in the age of Iphones ….
The player uses a small module based on the VS1002d chip (now discontinued, but who had a drawer). The module in question I bought at Futurlec . Currently you can get similar modules on ebay for a bit more than 10$, although the chip is the VS1003 o VS1053. You can also use a SparkFun MP3 shield, but significantly more expensive (this shield already includes an SD slot).
The three chips are quite compatible in terms of programming, and indeed almost all initialization the I have taken from the library to the SparkFun MP3 Shield 😉
This is a table with the connections between Arduino and the other components. In parentheses, the name of the individual connections on modules (and the pin in the SD card).
PIN Arduino | MP3 Module | SD Card | LCD | Buttons |
0 | — | — | — | Forward |
1 | — | — | — | Back |
2 | DREQ | — | — | — |
3 | — | — | RS | — |
4 | — | — | ENABLE | — |
5 | (RESET) | — | — | — |
6 | CS (XCS) | — | — | — |
7 | DCS (BSYNC) | — | — | — |
8 | — | — | — | Encoder A |
9 | — | CS (CD/DAT3-1) | — | — |
10 | — | — | — | Encoder B |
11 | MOSI (SI) | MOSI (CMD-2) | — | — |
12 | MISO (SO) | MISO (DATO-7) | — | — |
13 | CLK (SCLK) | CLK (5) | — | — |
A0 | — | — | D4 | — |
A1 | — | — | D5 | — |
A2 | — | — | D6 | — |
A3 | — | — | D7 | — |
A4 | — | — | — | — |
A5 | — | — | — | — |
- Arduino
- Mp3 module based on chip VS 1XXX
- SD Module (It is also available on ebay)
- 4×20 characters LCD
- Small amplifier
- 2 speakers.