Hello together,
I got a problem and i hope you can help me. I also started a Project with an Arduino Mini Pro, and a WT5001M02-28P. I use the code below and the problem is that all sounds are playing in loop and wont stop, from the start sound beginnning and then it plays the blast sound throughout without pressing a button. i started to test the programming of the arduino and let it play only one file without buttons or something, that was the same effect and it plays in loop.
The Code:
void setup() {
// start sound
Serial.write(0x7E);
Serial.write(0x04);
Serial.write(0xA0); // A0 for SD card
Serial.write(0x00);
Serial.write(0x3d); // track number
Serial.write(0x7E);
}
void loop() {
}
it only will stop if i add this code
delay(XXXXXX);
Serial.write(0x7E);
Serial.write(0x02); //STOP Sound
Serial.write(0xA4);
Serial.write(0x7E);
after every sound file. but thats no solution for me because i want to programm it also with random sound and then it will not work because of the delay. Is there anyone who can help me please?