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);
ss.begin(9600);
Serial.println("running");
if(!mp3. begin(ss)){
Serial.println("controllo cavi");
while(true);
}
mp3.volume(30);
mp3.play(1);
}
void loop() {
// put your main code here, to run repeatedly:
}