I can't figure out why this tutorial for the DFPlayer mini works. It seems to me that there is a clear error in the programming code. The tutorial:
https://circuitjournal.com/how-to-use-the-dfplayer-mini-mp3-module-with-an-arduinoIf you look at the code there is this section:
static const uint8_t PIN_MP3_TX = 2; // Connects to module's RX
static const uint8_t PIN_MP3_RX = 3; // Connects to module's TX
SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX);
You can clearly see that the item he has commented as "RX" is the "TX" variable. But the TX variable is using the pin that is going to RX in the diagrams.
The RX and TX are swapped in the code but it actually works that way. I tried "fixing" the code and you get no audio. As far as I can tell from the wiring diagram and the documentation on "SoftwareSerial" this code should be incorrect. What am I missing?