EDUVISION PODCAST with M5Stack by Arduino IDE
2021-10-19 | By M5Stack
License: General Public License Arduino
* Thanks for the source code and project information provided by @Majed Abouhatab, P.E.
In this project we're using a Wi-Fi manager to make the project portable. When we power on the device, it will connect to the last known Wi-Fi. If it is not available, the device will start its own Wi-Fi and wait for us to connect and tell it which Wi-Fi to connect to.
Once online, the device will automatically play the latest episode. We can then swipe the screen to the left to listen to previous episodes.
The list of episodes came from https://anchor.fm/s/6859654c/podcast/rss which is RSS link found at https://anchor.fm/arduino. Data about episodes including mp3 file location are in XML format so we could have used a parser for XML, but it was a lot easier to just grab the information we needed from HTTP response.
To further simplify things, we will use Arduino IDE.
First, we need to add ESP32 Board (M5Stack will not work here) in Arduino IDE. Details on how to do that are here. In summary, the correct URL to add in File > Preferences is:
https://dl.espressif.com/dl/package_esp32_index.json
We can now install the board in Board Manager.
The second library needs to be downloaded as zip file from https://github.com/schreibfaul1/ESP32-audioI2S/archive/refs/heads/master.zip. Once downloaded, we can go to Sketch > Include Library > Add.ZIP Library... to add it.
Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.
Visit TechForum