Play Audio With Arduino & DF Player Mini

How to Play Audio With Arduino & DF Player Mini

Jan 14, 2022

5359 views

2 respects

Components and supplies

1

Arduino Nano R3

1

Bread Board

1

1k Resistor

1

Jumper wire

1

Df Player Mini

1

Speaker

Project description

Code

Code

arduino

Comments

Only logged in users can leave comments

PaulVdB

2 years ago

Hi Muhammad_Munir, Your program works fine, but it plays only a few songs. Is there a way to play song-after-song without interruption ? I read the "BUSY" pin on the MP3 shield with (A7) to see if the song is playing or not, it works, but after a few songs it stops playing... here is the sketch I use : void loop() { if (digitalRead(A7) == LOW) { a = random(1,299); Serial.print("playing : a = "); Serial.println(a); execute_CMD(0x03, 0, a); delay(1000); } Thanks in advance !

munir03125344286

16 Followers

60 Projects

2

1