toit icon indicating copy to clipboard operation
toit copied to clipboard

Support for ESP32-CAM

Open floitsch opened this issue 3 years ago • 4 comments

Support the ESP32-CAM.

  • [ ] Taking pictures and constantly uploading them
  • [ ] Taking pictures and saving them locally in the microSD card, to be queried and downloaded remotely
  • [ ] Videos
  • [ ] Image processing (C bridge?)

floitsch avatar Dec 29 '21 11:12 floitsch

On a similar note, I am looking for support for two non-MEMS microphones (yep, I need the traditional analogue signal to be "ADCed") being mixed into one stereo-signal which I can then both in real-time transfer over network as well as save the very same stream to a flash memory.

Any plans to support such use-cases?

dumblob avatar Jun 27 '23 09:06 dumblob

@mikkeldamsgaard do you know what is already possible and what would need to happen for audio signals?

floitsch avatar Jun 27 '23 16:06 floitsch

@floitsch @dumblob The ESP32 has two ADC's that are supported by toit already and the flash is also supported. The issue will be to get a constant sample rate, as the ADC's are not currently supported in toit on the I2S.

The specification for the ADC's in the esp32 are not optimal for audio sampling anyway (12-bit and very bad SNR), so if you want good quality digital recordings, I would recommend adding a dedicated audio codec/adc to the system and interface that to the ESP32 via I2S.

mikkeldamsgaard avatar Jun 30 '23 08:06 mikkeldamsgaard

The specification for the ADC's in the esp32 are not optimal for audio sampling anyway (12-bit and very bad SNR)

Oh, thanks for the nudge! I would not have thought of this myself.

dumblob avatar Jun 30 '23 20:06 dumblob