Request for DFPlayer Mini Driver/Library for ESP8266 with Moddable SDK #1441
-
Hi, Moddable SDK community! I’m working on a project with ESP8266 and the DFPlayer Mini module, aiming to play MP3 files stored on an SD card. I’ve tried implementing communication using bit-banged serial, but it’s been quite challenging and not reliable. Before investing more time in a custom solution, I wanted to ask: Is there an existing driver or library for DFPlayer Mini that works with the Moddable SDK? Thank you for any pointers or support! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Welcome! I'm not familiar with the DFPlayer Mini module. You mention "bit-banged serial." Is there a reason that you are not just using the serial driver? The ECMA-419 Serial IO module is available for ESP8266. The standard itself is a little challenging to read, but there are a couple of examples in this repository that should get you started: continuouswrite and echo. I'm happy to try to answer any questions you may have about that. |
Beta Was this translation helpful? Give feedback.
Finally, it works! It turns out that I needed to include
onReadable
. It seems to be required to forward commands sent to the Serial. Perhaps I wasn't careful enough when reading the documentation.I might release the DFPlayer library soon after this. Thank you!