DY-SV8F Help with button configuration

I wonder if anyone can help

I have a Dy-sv8f

I've wired pins

IO0 to button 1
IO1 to button 2
IO2 to button 3

I would like 6 in total but if I name one mp3 file 0001.mp3 it plays from pin IO0, if I name a file 0002.mp3 it plays from pin IO1, if I name a file 0004.mp3 it plays from pin IO2, meaning if I rename 0004 to 0003 it won't play, and if I add more mp3 files and name them accordingly in numerical order they won't play, only the first 3 buttons will work but files names are 1, 2 and 4

I'm quite new to this so any help would be greatly appreciated as I'd like pin 0 to play mp3 1, and pin 1 to plays mp3 2 and so on

I just want 6 push buttons to play 6 MP3's

Hello jezasaurus

Welcome to the worldbest Arduino forum.

We need some additional information.
Post your sketch, well formated, with well-tempered comments and in so called code tags and schematic to see how we can help.

Have a nice day and enjoy coding in C++.

1 Like

You have the DP switches set wrong (the 3 red switches):
Should be like this:

So with number 2 up it should work?

yes

Unfortunately this doesn't seem to have fixed it

As you can see I have one cabe running to GND which is running to all 6 buttons and I have 6 buttons all running their own positive (pin IO0 has just came off) 3 white and 3 red, the first 3 work

Pin IO0 is 00001.mp3
Pin IO1 is 00002.mp3
Pin IO2 is 00004.mp3

00005.mp3 and 00006.mp3 do not work on the buttons

Your solder connectiond do not look good.
If IO0 came of, then your solder joints are bad.
Redo the soldering

Here is a good guide that shows how a good solder joint should look;

Make sure you look at the "Common soldering problems page"

1 Like

Thanks

I can work on that but the device it's in requires it to be screwed on for installation, it's a prototype thing I'm working on

Still need to find out why the other buttons won't work though

Well, like I said , it looks like all of your connections are bad.
Re-do them and I'm sure it will work

They don't, even testing them separately, so soldering isn't the issue

Hi.
I have a DY-SV8F mp3 module. I couldn't get it to work.
With the code I see above, it reads the songs continuously.
This is the code:

#include <SoftwareSerial.h>
SoftwareSerial myMP3_TX (10.11); // RX, TX
// for the sound card to play music/sounds (04 = select file 00004.mp3, 0B select, 11 play)
byte SOUND_1_MUSIC[] = {0x01, 0x0B, 0x11};
byte SOUND_STOP = {0x13};

void setup(){
Serial.begin(9600);
myMP3_TX.begin(9600);
}

void loop(){
myMP3_TX.write(SOUND_1_MUSIC, 4);
delay(3000);
myMP3_TX.write(0x13);
delay(40000);
}

What I want is; I have about 200 mp3 files. It will start and end from the song I selected via Serial connection with Arduino Nano. It will only play 1 song I want and stop.

I searched many sources but none of the code worked.
Can you help me?
Best Regards



Hello

Try

SoftwareSerial myMP3_TX (10,11); // RX, TX
1 Like

Hi.
The whole code is as follows. And it reads all the parts in order. I just want it to start and stop at the part I want. Unfortunately it doesn't.

#include <SoftwareSerial.h>
SoftwareSerial myMP3_TX (10,11); // RX, TX
// for the sound card to play music/sounds (04 = select file 00004.mp3, 0B select, 11 play)
byte SOUND_1_MUSIC[] = {0x01, 0x0B, 0x11};
byte SOUND_STOP = {0x13};

void setup(){
Serial.begin(9600);
myMP3_TX.begin(9600);
}

void loop(){
myMP3_TX.write(SOUND_1_MUSIC, 4);
delay(3000);
myMP3_TX.write(0x13);
delay(40000);
}

4

Hi.
Problem solved. In many trials, the solution is in the key pin numbers.
You can use the picture below for combinations.
Thanks...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.