Add sound or music to your project using the "Grove Serial MP3 Player".
An Arduino UNO will be used to control the Grove Serial MP3 player by sending it specific serial commands. The Grove Base Shield allows for the easy connection of Grove sensor modules to an Arduino UNO without the need for a breadboard. A sliding potentiometer, switch and button will be connected to the Base shield along with the Serial MP3 player. A specific function will be assigned to each of the connected sensor modules to provide a useful interface:
- Sliding Potentiometer – Volume control
- Button – Next Song
- Switch – On/Off (toggle)
VideoWatch the following video to see the project in action
- Arduino UNO or compatible board
- Grove Base Shield
- Grove Serial MP3 Player
- Grove Switch (P)
- Grove Sliding Potentiometer
- Grove Button or Grove Button (P)
- Grove Universal 4 pin cables
- Battery Holder
- SanDisk 8GB Ultra Micro SDHC Memory card
- Portable Powered Speaker or Headphones
- Empty Shoe Box
Putting it Together
Place the Grove Base shield onto the Arduino UNO,
and then connect each of the Grove Modules as per the table below.
If you do not have a Grove Base shield,
you can still connect the modules directly to the Arduino as per the table below:
When you are finished connecting the modules, it should look something like this:
(ignore the battery pack):
As you can see from the picture above. You can cut holes out of the shoebox and stick the modules in place. Please ignore the battery pack, because you won't use it until after you have uploaded the Arduino code.
IMPORTANT: You need to load your MP3 sounds or songs onto the SDHC card before you install it onto the Serial MP3 player.
Once the SDHC card is installed, and your code is uploaded to the Arduino, all you have to do now is connect the MP3 player to some headphones or a powered speaker. You can then power the Arduino and modules with a battery pack or some other portable power supply.
You can design and decorate the shoebox in any way you like. Just print out your picture, glue them on, and before you know it, you will have your very own Arduino Boombox.
I was very surprised by the quality of the sound that came from the MP3 module. It is actually quite good.
This tutorial was an introduction to the Grove Serial MP3 module in it's most basic form. You could just as easily use some other sensor to trigger the MP3 module. For example, you could get it to play an alert if a water leak was detected, or if a door was opened, or if the temperature got too high or too low. You could get it to play a reminder when you walk into your room. The possibilities are endless.
I really liked this module, and I am sure it will appear in a future tutorial.
Visit my ArduinoBasics Google + page.
Follow me on Twitter by looking for ScottC @ArduinoBasics.
I can also be found on Pinterest and Instagram.
Have a look at my videos on my YouTube channel.
However, if you do not have a google profile...
Feel free to share this page with your friends in any way you see fit.