WALKPi Breadboard Version

by Arnov Sharma in Circuits > Raspberry Pi

1178 Views, 7 Favorites, 0 Comments

WALKPi Breadboard Version

WALK-Pi the DFPlayer Raspberry Pi Pico Audio Player Project
Image1.jpg
03.gif
IMG_20240929_123407.jpg

Greetings everyone and welcome back, Here's something loud and musical.

Similar to a traditional walkman, WalkPi is an audio player setup that plays audio files stored on an SD card by pairing a Raspberry Pi Pico with the DFMini Player. It has an SSD1306 OLED screen, an interactive menu with various buttons for selecting tracks, volume controls, and additional functions.

We are currently working on this setup, which is essentially a breadboard arrangement for an audio player.

The Raspberry Pi Pico, the project's brain, is linked to the DF Mini Player, a compact, inexpensive MP3 module that has a simplified output directly to the speaker.

We may choose and play tracks with the help of an OLED screen and a few push buttons that are attached to the Pico's I/O pins.

As the DF Mini has an internal amplifier chip that we can connect a speaker to, we are utilizing a 3 Ohm speaker directly attached to the speaker input pins of the DF Player.

Let us get started with the construction since this Instructables is about the entire process of constructing this basic setup, including the code and other specifics.

Supplies

These were the materials used in this build.

  1. DF Mini Player (Got from PCBWAY GIFTSHOP)
  2. Raspberry Pi Pico
  3. SD card with Mp3 Files
  4. Jumper Wires
  5. SSD1306 OLED Screen
  6. Push Buttons
  7. Breadboard
  8. 3 Ohms Speaker

DF Mini Player

Capture.PNG
IMG_20240923_002727.jpg
IMG_20241002_151828.jpg

The star of this project is the DFPlayer Mini, which is a mini MP3 Player Module that is based around a 24-bit DAC IC along with an onboard SD Card reader that fully supports the FAT16 and FAT32 file systems.

This module supports a variety of control modes, I/O control mode, serial mode, AD button control mode, etc., meaning the user can use this board as a standalone device or use an external microcontroller to drive the module.

We could have used the barebone setup, which only requires push buttons to be added to a few of the module's I/O pins,, if our application was limited to playing tracks and shuffles. However, we needed a display with a proper menu that allowed us to select songs, so we used a Pico and paired its TX and RX pins with the TX and TX pins of the module.

We use Pico in conjunction with the DF player; Pico uses the TX and RX pins to operate the DF Player, and the OLED displays the music details and menu.

For more info about this module, you can checkout its product wiki published by DFROBOT.

https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299

PCBWAY Giftshop

01.gif
Capture4.PNG
Capture3.PNG
unnamed.png

As for sourcing this Audio Player Module, we got it from PCBWAY's Giftshop.

https://www.pcbway.com/project/gifts_detail/Mini_MP3_Player_Module_with_Simplified_Output_Speaker_U_disk_TF_SD_for_Arduino.html

PCBWAY gift shop is an online marketplace where you can get a variety of electronics modules and boards for their genuine price, or you could use the PCBWAY currency, which is called beans.

You get beans after ordering something from PCBWAY as reward points, or you can also get them by posting any project in the PCBWAY community.

Also, PCBWay is hosting its 7th Project Design Contest, a global competition that invites electronics enthusiasts, engineers, and makers to showcase their innovative projects. The contest provides a platform for participants to share their creativity and technical expertise with the broader community.

This year’s competition includes three major categories: electronic project, mechanical project and SMT 32 project

With prizes awarded for the most exceptional designs, the contest aims to inspire and support innovation, making it an exciting opportunity for both professionals and hobbyists to gain recognition and connect with like-minded creators.

You guys can check out PCBWAY if you want great PCB service at an affordable rate.

Breadboard Setup

raspberry-pi-pico-gpio - Copy.png
Image3.jpg
Image5.jpg
IMG_20240929_123415.jpg
IMG_20240929_123425.jpg
IMG_20240929_123429.jpg
  1. First, we combined the Pico, DFPlayer, Buttons, OLED, and Speaker by joining them all together according to the wiring diagram.
  2. We connect the OLED to the Pico by connecting its VCC to VBUS, GND to GND, SDA to GPIO4, and SCL to GPIO5.
  3. Next, we paired the DFPlayer with the Pico by connecting the VCC of DFPlayer with the VBUS of Pico, GND to GND, the RX of DFPlayer will be connected to GPIO7, which is the TX of PICO, and the TX of DFPlayer will be connected to GPIO8, which is the RX of PICO.
  4. Speaker's positive is connected with DFPlayer's Speaker 1 port, and negative is connected with Speaker 2 port.
  5. We utilized a test board created for projects like this one, where we have to put together a setup on a breadboard, and it had a lot of buttons, so we used it for the buttons.
  6. The GND ports on each button are linked to one another and will be connected to PICO's GND. GPIO10 is connected to the Next button, GPIO11 to the Previous button, GPIO12 to the Select button, GPIO13 to GPIO14 to the Volume up and Volume down buttons, respectively.

CODE

This code implements a basic user interface for an audio player that can navigate through a list of songs, play the selected song, adjust volume, and display basic visualizations during playback.

The OLED display is used for displaying song titles and volume levels, while buttons allow user interaction with the DFPlayer Mini module for controlling music playback.

Make sure you install all the libraries needed for this code, including the ones listed below, before using the sketch.

#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <DFRobotDFPlayerMini.h>

Also, you need to change the name of songs to SONG 1, 2, etc., which matches the array in code.

Downloads

Result

WALK-Pi the DFPlayer Raspberry Pi Pico Audio Player Project
Image3.jpg

This extremely basic build culminated in a working audio player that can play music that is stored on the SD card. We can select the song we wish to listen to and control the volume with buttons.

Three songs that we added to the SD card, are read by the DFPlayer and output through a 3 Ohms 5W speaker.

The speaker in this instance is being powered straight from the DFPlayer; an audio amplifier can be connected to the output of the DFPlayer if we wish for creating a louder setup.

There is a lot of space for improvement when it comes to the menu. Additionally, we can add a visualizer or other such graphics to be displayed while the song is playing.

Additionally, two more buttons are required so that the user can rewind or fast-forward the song.

But for now, this arrangement seems to be working really nicely.

What's Next? THIS!

DSCF4012.jpg
3bd40f78cd444de833933c0d40234d11.jpg
IMG_20241004_001625.jpg

We will now be getting ready for building a device like a Walkman, which will be composed of both 3D printed and PCB elements. In order to pair it with the audio player, it will also have a tiny built-in speaker and a 3.5mm Jack output.

Stay tuned for the upcoming update, which will have some graphical modifications, a few tweaks to the menu's user interface, and more buttons.

Overall, this project was a success and needs no further revisions.

In addition, we appreciate PCBWAY's support of this project. Visit them for a variety of PCB-related services, such as stencil and PCB assembly services, as well as 3D printing services.

Thanks for reaching this far, and I will be back with a new project pretty soon.

Peace.