droosenb / faust-on-ESP32

11 stars 2 forks source link

Examples not working on ESP32-A1S #1

Open robinrosenberger opened 2 years ago

robinrosenberger commented 2 years ago

Hi! Thanks for the examples, really hard to find them on the internet. Sadly, they dont work as expexted on my ESP32-A1S board featuring the es8388. Initialization seems to work, but no sound is produced. Serial output is attached. esp32-es8388-error.log

robinrosenberger commented 2 years ago

Seems to be related to this issue

droosenb commented 2 years ago

Sorry to take a moment to respond, I haven't been actively developing for this code for a bit. This code was written with the es8388 on the LyraT in mind. If I remember correctly, the examples make an assumption about the i2c/i2s bus pins and these can be variable between boards. From the log, it looks like the i2c connection is working, I'd check the i2s connection to start. I believe that this is defined in the faust code itself, but I may be mistaken; its been a while. I don't have one of the new a1s boards, but if you have a schematic I might be able to help if you haven't already checked this.

VorkHeftruck commented 2 years ago

First of all; thank you so much @droosenb for the es8388 examples! Like many I've been struggling to get Faust to run on the AI thinker audio board mainly due to the change of codec to es8388 and the lack of examples to successfully init these. Your code compiles and runs without modification for me on a ESP32 Audio Kit v2.2 2957. Would be great if your examples found their way to the Faust esp32 getting started guide... @robinrosenberger; Yes, your troubles are most likely related to the issue you mentioned, the I2C and I2S pins changed over different production runs of the Audio Kit board. You'll find more info on serial numbers and ports on the issue thread. Once you've found out which ones your board uses they can be found in the es8388.h file.