Schematic
Library
Before we make this music player shield, we found that there are already have many music player shields that basic on VS1053 chip in market, but those shields will not be so easy to use – you need to write many codes for reading the data from SD card and sending them to VS1053 chip for decodeing, and then you can make the music played.
To make it easier, we build this new ITEAD Music Player Shield basic on CECL08D. The CECL08D chip can be used to decode MP3/WAV format audio file. The music player shield has SD card socket and USB interface, supporting USB and SD card play. When you plug the SD card or U Dist in, the chip will source the care and disk, and just need to use some I/O operation, you can make it played !
- The A0(D14) pin controls "Play/Pause" button which used to play or pause the music
- The A1(D15) pin controls the ”Next/Volume+” button which be used to change to next song. And it will turn the volume loudly when you keep pressing it.
- The A2(D16) pin controls the ”PREV/Vol-“button which be used to change previous song. And it will turn the volume quietly when you keep pressing it.
- The A3(D17) pin controls the “POWER” button which used to make music player shield into low-power standby state.
Here we porive an Arduino Library for this shield, you now you can easily use it to control the shield and play the music.
Music.play();
Play the music
Music.pause();
Stop the music
Music.next();
To next song
Music.prev();
Restart / To prever song
Music.volume(Direct, Volumevalue);
Direct : UP – turn to higer volumevalue, DOWN – Turn to lower volumevalue
Music.power(Powerstatus);
Powerstatus: ON – Turn on the music player shield; OFF – Turn off the music player shield.