Post your best Lua script examples here
User avatar
By limbo
#71818 dfplayer mini is a great mp3 module for IoT devices.
You can find (almost) full info about it here: https://www.dfrobot.com/wiki/index.php/ ... KU:DFR0299
and of course you can buy some cheap "clones" for less then 2 Euros! (Which are working just fine)
https://www.ebay.com/sch/i.html?_from=R ... i&_sacat=0

I 've created a re-usable lua file to control this little device suing its serial interface. Using this file you can enable your creations to play music (or sound files).
The applications are limitless, from a wifi mp3 player to any automation or IoT device which needs to play rich sounds.

The code is available on GIT https://github.com/limbo666/dfPlayer


Have fun