Getting Started? Let’s Try EZMP3 Shield :D

Introduction

Hi everyone, great news! Cytron Technologies has brought you the latest version of mp3 shield, the¬†EasyMP3 Shield! This mp3 shield is very easy to use. All you have to do is just practically plug and play. ūüôā

Despite its features, we love it because the MP3 decoder access the MP3 files directly on the microSD card and free up the Arduino proccessor for other task while MP3 file is being played. Awesome!

Hardware Setup

CT-ARM or CT-UNO

cytron-arm-cortex-m0-a5749-800x800

Earphone/External Speakers with soldering

IE4

Software Required

Steps

  1. Stack up the shield onto the CT ARM¬†board as shown in the picture below. psstt: I was using ct arm but feel free to use any other pin compatible boards like ct uno, genuino uno or genuino mega ūüėČ ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† DSC_0227_opt

2. Put on audio devices of your choice such as earphones or speakers to EasyMP3 Shield with CT ARM.

earphoneez

spea

You need to download the SdFat file first and put it in ‘root directory‘ of your microSD card.

3. Manage storage files

Create a folder named ‚ÄúMP3‚ÄĚ in root directory of your microSD card¬†and store all files into it. EasyMP3 shield supports MP3 and WAV file decoding.

sdhc

4. To play the file accordingly using Arduino sketches, you can rename the file with one of the following options.

For example: to play “ABC”.mp3 in mp3 folder as your first track, rename the file to either:

  1. 0001.mp3
  2. 0001ABC.mp3
  3. 0001_ABC.mp3

mp3file

However, if you want your playlist in shuffle mode, you don’t need to put that ‘0001’, ‘0002’ ….in front of the title.

5. Select D2 for RX and D3 for TX pin for your UART selector.

DSC_0228

6. Download Cytron EasyMP3 Shield from link and extract the files to Documents>Arduino>Libraries.

libraries

7. Connect both board and shield together with microSD card to your PC.

DSC_0229

8. Open Arduino IDE. Determine which COM port CT ARM is connected to and configure the port settings under menu Tools > Port. In this tutorial, I was using  port 9. 

tools

9. If you are using CT ARM for the first time, please go through steps shown below. If you already installed it in your computer, you can skip to step 10.

  • On Arduino IDE, go to File > Preferences, paste this link at ‚ÄėAdditional Boards Manager URLs’
  • https://raw.githubusercontent.com/CytronTechnologies/Cytron-ARM-Arduino-URL/master/package_cytron_index.json
  • preference
  • Click OK, then go to Tools > Board > Boards Manager‚Ķ Find Cytron ARM Boards and click Install. It will take a few minutes, depending on your internet speed.

board arm

  • After the installation complete, you should find CT-ARM listed under Tools > Board. Select CT-ARM.

ct

10. Then, go to File -> Examples -> CytronEasyMP3 and open example sketch PlayATrack. Compile and upload.

playatrack

11. Open and set up Arduino Serial Monitor with 9600 baud rate.¬† Now you are free to do anything with this player such as voluming up, skipping to another song or pause simply by just pressing those cute tiny buttons on the Easymp3 shield’s board. Have fun! ūüėČ

baud

Source Code

Okay, that’s all. If you have any question, feel free to ask in our technical forum as we seldom check the tutorial’s comment section. Thank you.

, , , , , , ,

Related Post

MP3 Shield vs Easy MP3 Shield

EasyMP3 Shield with WiFly Remote

Light Dancing with Music

How to Make your Line Following Robot Faster?

Leave a Reply

Your email address will not be published. Required fields are marked *