R4 not working with DY-SC84 Audio in UART

I am trying to get my R4 working with the DY-SV84 in UART mode. I found this library and documentation and have tried troubleshooting as much as I can. I could really use help. Even with the "PlayAllSounds" file, which uses UART to tell the module to start, I get nothing. If I can even get that to start working, I can likely figure out everything else I need.

The manual for the DY

Wiring is not a problem; I can trigger files with a strong sound in non-UART modes, and I have the CON configuration correct (1 Off, 2 Off, 3 On). V+ and Ground connected to Arduino, and Module TX to Arduino RX, Module RX to Arduino TX. The file is named correctly (0001.mp3)

The UART stuff is pretty new to me so I appreciate the help... even if it ends up stupidly basic.

You do know that, unlike the R3, on the R4, the UART pins are Serial1, not Serial, right?

....if that's the answer, I'm going to be so annoyed for the 5 hours I just spent troubleshooting...

I had been trying to use that dyplayer library, so if I DID want to use it, does that mean I would need to go through all the files in that library and change all instances of "Serial" to "Serial1"?

Probably not, according to the link you provided:

You may use any Serial port on the board, you will have to pass it to the begin() function. Like this:

DY::Player player(&Serial2);

That is a second option that is commented out in the examples - I had tried uncommenting that, and commenting out the "DY:Player player;" like below, but it did not work.

// Initialise the player, it defaults to using Serial.
//DY::Player player;

// Alternatively initialise on another serial port.
DY::Player player(&Serial2);

Obviously, change Serial2 to Serial1.

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