ESP32 Audio / WebServer overhead
Posted: Tue Oct 02, 2018 7:17 am
Hello,
I have an ESP32 running a basic web server, as well as a whole load of other things, PWM, Serial and so on.
I need to play audio constantly in the background, which will need to be stored on external flash. The ESP is also booting from a separate external flash chip, since as far as I can tell it wont support larger than 16mbyte boot flash.
First question:
Can I run another 16mbyte flash(to store the audio) on the same SPI bus (with a different CS pin) as well as the boot flash and the(now unused) internal flash?
Second Question:
Will the ESP have enough overhead to stream the audio from flash, over the I2S into a codec, whilst running everything else? The audio will be 16K mono most likely. Quality isnt a huge issue, but hearing glitches and stuttering will be.
Any advice would be welcome!
Sam
I have an ESP32 running a basic web server, as well as a whole load of other things, PWM, Serial and so on.
I need to play audio constantly in the background, which will need to be stored on external flash. The ESP is also booting from a separate external flash chip, since as far as I can tell it wont support larger than 16mbyte boot flash.
First question:
Can I run another 16mbyte flash(to store the audio) on the same SPI bus (with a different CS pin) as well as the boot flash and the(now unused) internal flash?
Second Question:
Will the ESP have enough overhead to stream the audio from flash, over the I2S into a codec, whilst running everything else? The audio will be 16K mono most likely. Quality isnt a huge issue, but hearing glitches and stuttering will be.
Any advice would be welcome!
Sam