Hello, I am an 11th-grade engineering student working on a project to repair a jukebox for a retirement home.
Our intention is to create a music system using Arduino that can play around 160 songs. Our goal is to allow song selection by entering a three-digit number using the jukebox buttons (0-9), followed by a play button to start the chosen track. Additionally, we want to include a reset function when entering the wrong number.
However, we're struggling to get the basics working, which makes the project challenging.
We initially tried using the DY-SV5W module, but we haven't been able to get any sound to play, despite following multiple tutorials. Even our teacher spent hours troubleshooting without success, and we can’t seem to figure out what’s wrong.
We also have an HW-125 SD card module we can try.
Could someone help us figure out how to get the sound working? Additionally, which Arduino board would be best suited for this project?
Thank you in advance!
You need to post your sketch, using code tags when you do, a schematic of your project, a photo of a hand drawn circuit is good enough, details of how the project is powered and the Arduino board being used
What is that? Please post a link to the tech specs.
Same here
Not in the basis of what you have described so far. Read the forum guide in the sticky post at the top of the forum section to understand better what you need to include in your post to enable others to help
Most Arduino boards would be sufficient. I would recommend a Nano V3 for beginners.
it is generally a question of setting the switches correctly to get the mode required
e..g. using a UART
// Voice Sound Playback Module MP3 connected to UART
// enter track to play (int)
// library https://github.com/SnijderC/dyplayer/blob/main/src/DYPlayer.h
// **** set mode 100 to select UART
#include <Arduino.h>
#include <SoftwareSerial.h>
SoftwareSerial SoftSerial(10, 11); //Rx and Tx
#include "DYPlayerArduino.h"
DY::Player player(&SoftSerial);
#define BUSY 8 // player busy signal - 0 playing - 1 not playing
void setup() {
Serial.begin(115200);
delay(1000);
Serial.println("\n\nVoice Sound Playback Module MP3 UART mode 100\n enter track to play (int)");
pinMode(BUSY, INPUT_PULLUP);
player.begin();
player.setVolume(30); // 50% Volume
}
void loop() {
static int busy = -1; // indicates if playing or not
// if switch pressed or keyboard hit
if (Serial.available()) {
// if (switchi || Serial.available()) {
int x = 0;
x = Serial.parseInt();
player.playSpecified(x);
Serial.println("Start playing track " + String(x));
busy = -1;
delay(500);
}
// Print the number of the sound that is playing.
//Serial.print("Playing sound: ");
//Serial.println((int16_t)player.getPlayingSound());
// check if player Busy status has changed
if (digitalRead(BUSY) != busy) {
if ((busy = digitalRead(BUSY))) {
Serial.println("busy " + String(busy) + " NOT playing");
} else {
Serial.print("busy " + String(busy) + " playing track ");
Serial.println((int16_t)player.getPlayingSound());
}
}
delay(1000);
}
That’s a bit of a dead end without full details then isn’t it!
But anyway I’d suggest you get the far more popular DFR Player. You’ll have a much better chance of forum support. With that and a Uno or Nano your objective should be achievable and fun.
Might not be the best choice, as it’s described as a voice player - perhaps not the best response for music.
Also, does it play stereo for the best results?
I also think that´s not a good choice. Use a DFPlayer mini MP3 module and connect an audio amplifier module. The DFPlayer is stereo and uses a SD-card for playing MP3 audio files on it so you have no memory problem. It has a serial interface and a nice Arduino Library helps to control it in a very simple way. For audio output you can connect mini speakers (8Ohm, 3W) for low music power or one of many audio amplifier modules which are available between 10W - 200W and are very low cost. Just search for audio amplifier modules on any online shop.
With this basic equipment and any small Arduino or ESP32 you can assemble a jukebox inside of a box of cigarettes.