esp8266 with a DFplayer mini mp3

Hello everyone! we are trying to connect an esp8266 with an DFplayer mini mp3; we found on youtube this code which was originally implemented for arduino uno. Then, we found a picture in which you'll find the entire circuit. Ours questions are the following:

  • what do we have to change to make it works on esp8266?
    -one of the main problem is about the "port" (COM) which is not recognise by IDE.
    -we have only a purpose: we want to reproduce an mp3 track with the esp8266.
    if anyone would like to help us, here we are.
    thank you for your kind attention, hope to hear you soon!

#include "Arduino.h"
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"

SoftwareSerial ss(10, 11);
DFRobotDFPlayerMini mp3;

void setup() {
Serial.begin (9600);
if(!mp3. begin(ss)){
Serial.println("controllo cavi");


void loop() {
// put your main code here, to run repeatedly:

Why not build it with a UNO first and understand how it works. Changing microprocessors is not always an easy task especially if you do not have the experience to do it. Once you understand the code to it with the eSP. Also a circuit diagram is much better then the frizzy thing.

That piece of code is only initilizing serial port that goes to USB.

You need to show more code, is it using SoftwareSerial at all?


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