I had some open issue, that the LyraT Mini Audio Board was not working with my AudioTools and AudioDrivers library, so I was digging into this board a bit deeper.
Here are the main two differences to the regular supported LyraT or AudioKit boards:
- It uses a ES8311 codec chip which supports only mono to manage the amplifer and aux output. My driver library was supporting this chip, so I had the audio output working quite quickly.
- You need to switch off the power amplifier if you want to use the headphones. Otherwise the output is highly distorted. See the output example how to do this.
- The input buttons needs to be determined with the help of an analogRead(): each pin has it’s specific value. This is a new concept, so I needed to extend the driver and audio tools library. Now I delegate the check if a button is pressed to the driver library, so that I can handle the different implementations between the different boards.
- The microphone was quite tricky: The ES7243 codec chip is used on a separate I2S port to provide the microphone data. Please note that the ES8311 codec chip must be active as well!
- The SD is working via the SDMMC library that is included in the ESP32 Arduino in 1 bit mode: you need to make sure to set the power pin to low!
What’s not working
- I did not manage to have the SD library working: I don’t quite understand what the issue is, because the pins are the same as with the LyraT and there it is working w/o any issues. Any feed-back from you would be greatly appreciated!
- Since the microphone and audio output are on different I2S interfaces, it is not possible to use a single I2S in douplex mode to read and write audio data.
Arduino Sketches
Here is the link to the Arduino Sketches, that demonstrate the functionality.
Dependencies
You need to install the latest updates of the following libraries:
0 Comments