Introduction: PiPod Shuffle
🎧 PiPod Shuffle
The PiPod Shuffle is a DIY digital music player built using a Raspberry Pi. It automatically plays MP3 files from a local folder in order or shuffle mode, with simple keyboard controls. Designed to mimic the minimalist charm of the iPod Shuffle, it runs headless or with a GUI, and features:
- Automatic playback on boot
- Shuffle & skip controls via keyboard
- Favorite tracks system
- Freeze recovery to skip stuck songs
- Customizable, compact, and perfect for offline music listening!
Supplies
-Raspberry Pi, with audio jack. Must be able to run MPG123(ie. 2 or higher)
-Micro SD card or USB(If USB boot is enabled)
-Power source
-Phripherals(Mouse, screen, keyboard, headphones)
-MP3 files
Step 1: Prepare Your Music Folder
- On your Pi desktop, open the File Manager.
- Navigate to /home/pi (your home folder).
- Create a folder called Music if it doesn’t already exist.
- Copy your MP3 files into /home/pi/Music/ using drag-and-drop or USB.
Step 2: Install MPG123
Open a Terminal window on your Pi.
Run:
Step 3: Copy the PiPod Python Script
Create a new file play_music.py in your home folder:
- Right-click on the desktop or in your home folder and select New Document → Empty File.
- Name it play_music.py.
- Open it with a text editor (like Mousepad or Leafpad).
- Paste your PiPod Shuffle Python code inside and save.
Step 4: Run the PiPod Shuffle Script
- Open Terminal.
- Run:
- You should hear your playlist start playing.
- Use keys while focused in terminal to control playback:
- n = next track
- s = toggle shuffle
- f = favorite current song
Step 5: (Optional) Autostart on Boot With GUI
If you want the PiPod Shuffle to start automatically when the Pi boots into desktop:
- Click the Raspberry menu → Preferences → Add/Remove Software → search for “Startup Applications” and open it.
- Click Add.
- Name: PiPod Shuffle
- Command:
- Save and reboot your Pi to test.
Step 6: (optional) Enclosure
Sadly, Pi 3's don't fit into Altoids tins, but you could make one out of cardboard, laser cut wood, or make one with a 3d printer. I used an old green plastic box and modified it with tin snips.

