Project 3 - Making an MP3 Jukebox

Summary

In this project, you will build an MP3 player, or jukebox-style device. The project comprises an Arduino sketch, a Python script, and a prototype circuit that contains: an LCD screen on which to display track information; two buttons for browsing through the MP3 files on the microSD card; and a button to start playing a track.

To build this kind of project on other Arduinos, you usually need a shield (such as the Wave Shield or MP3 Player Shield). However, OpenWrt-Yun on the Arduino Yún can use small, cheap, USB audio devices to connect the Yún to speakers or headphones.

The Arduino sketch handles button presses and sending text to the LCD display. The Python script (and OpenWrt-Yun’s built-in support for audio devices) handles playing MP3 files through the audio interface.

Parts List

  • An Arduino Yún, connected to your local network over Ethernet or Wi-Fi
  • A microSD card, with the OpenWrt-Yun Linux file system expanded onto it
  • A USB audio interface - example here
  • Desktop PC speakers, with a 3.5 mm stereo jack plug and their own power supply. Or a set of headphones with a 3.5mm stereo jack plug.
  • A parallel 16x2 LCD display with HD44780 driver
  • A potentiometer, between 10 kΩ and 47 kΩ
  • (Optional) An LED and 220 Ω resistor
  • Three 10 kΩ resistors
  • Three momentary push buttons
  • A solderless breadboard and jumper wires

Useful Links

Circuit Diagrams

Source Code Download Here

ArduinoMeetsLinux-P3.ino

player.py

Start Building Today

book cover Start Reading Now

Your guide to Yún developement. Arduino Meets Linux includes:

  • Over 320+ pages of content
  • OpenWrt-Yun Linux tutorials
  • Python and shell scripting
  • 7 in-depth Arduino projects

Take your Arduino projects to the next level. This book shows you how.