ESP32 LyraT Audio Player / Internet Radio

Some time ago, actually by now already some years ago, I got myself an ESP32 LyraT audio development board.

This is basically a pretty simple board demonstrating a bunch of interesting features of the ESP32 SOC, here embedded in the ESP32 WROVER module accompanied by an ES8388 audio codec connected via I2S to the ESP32, two NS4150 amplifiers to drive two 4 Ohm speakers, two microphones, headphone out and AUX input via 3.5mm jacks and a set of four capacitive touch buttons. Pretty neat! At the time the LyraT was available for around 40€ which, to me, brings a lot of value for the money. The schematics are publicly avbailable here.

The only problem so far for me was that there was only little code for the LyraT outside the Espressif SDK and so the PCBs layed dormant in my drawer for some time.

Last week I finally dug them out again and started hacking a bit. And see, it only took me an afternoon to get some noise out of them 😉 And an hour later a stereo internet radio stream made it through my headphones! But that was of course only due to existing Arduino libraries that now exist out there. Some code for the codec setup was directly added to my small project, the full code can be found here:
https://github.com/nica-f/ESP32-LyraT-Playground

But be warned, this is just my playground, this is not production quality 😉 But I wanted to put it into the public nonetheless since there is still only little code available for it.

I have also attached external speakers and put it temporarily on a shoe box, good enough for right now:

BTW before you have to go through the same search, the plugs for battery and speakers on the LyraT are JST PH.

It is pretty amazing what the ESP32 can do… in this application it connects to WiFi, streams an MP3 stream from the internet, feeds the MP3 into a software only MP3 decoder and feeds the resulting PCM audio stream via I2S to the codec. To save some energy I even clocked down the ESP32 to 160MHZ (from 240MHz) which indeed keeps it quite significantly cooler.

I have an idea for building some software and also hardware for media, like audio, streaming and playback, this experiment with the ESP32 LyraT is one of the first steps in this direction.

 

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert