Skip to content

DFPlayer Stops Playing #72

Description

@frankstolp80

i Have a arduino R4 Wifi the DFPlayer stops after the track is finisht i have the loop on below some code i used

`int serial1 = 11;
int serial2 = 10;

//HardwareSerial mySerial(2); // Use UART1 (Serial1 on ESP32)
SoftwareSerial mySerial(serial1, serial2); // RX, TX
DFRobotDFPlayerMini myDFPlayer;
`

void setup() { Serial.begin(115200); // Initializes Serial Monitor for debugging (USB output to PC) mySerial.begin(9600); // RX, TX (DFPlayer communication) // DFPlayer Startup Serial.println("Initializing DFPlayer..."); // Tries to initialize DFPlayer and prints error if failed if (!myDFPlayer.begin(mySerial)) { Serial.println("DFPlayer not detected."); // Shown if no communication with DFPlayer while (1); // Stops further execution } Serial.println("DFPlayer connected!"); myDFPlayer.volume(25); // Set volume (0 to 30) Serial.println("DFPlayer volume 25"); //myDFPlayer.play(2); // Play first track (0001.mp3) Serial.println("DFPlayer Intro"); myDFPlayer.loop(2);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions