ESP32-S3 - 2msps ADC

FallingSnow
Posts: 2
Joined: Wed Aug 31, 2022 4:03 am

ESP32-S3 - 2msps ADC

Postby FallingSnow » Wed Aug 31, 2022 4:12 am

Hello.

I'm trying to read an analog video signal at around 1.75msps and store that in PSRAM. I have the 16N8R ESP32-S3. A signal frame is about 1MB and processing the frame only takes about 22ms so I'm hoping I can read the ADC into PSRAM and every 1MB process the frame.

I've read in a few posts that you can get the ADC up to 2msps but the code (https://github.com/espressif/arduino-es ... caps.h#L63) lists an ADC limit of 83khz. I've also seen posts about using the I2S to drive the ADC but the docs seem to suggest that's only possible on the ESP32.

Is it possible to get the ESP32-S3 ADC to sample at 2msps into PSRAM?

Thank you.

bobolink
Posts: 98
Joined: Mon Feb 26, 2018 4:17 pm

Re: ESP32-S3 - 2msps ADC

Postby bobolink » Wed Aug 31, 2022 11:09 am

If you want repeatable results across devices, temperature and other parameters, I’d stick with the rates specified and tested in a document such as this:
https://www.espressif.com/sites/default ... pdf#page52

FallingSnow
Posts: 2
Joined: Wed Aug 31, 2022 4:03 am

Re: ESP32-S3 - 2msps ADC

Postby FallingSnow » Wed Aug 31, 2022 7:55 pm

That's unfortunate, limited to 100ksps. It's an analog video signal so it doesn't need to be perfect, just not a complete miss.

What about using the ULP's ADC instruction? https://docs.espressif.com/projects/esp ... t-with-adc

I'm not really sure how many cycles the instruction takes because I don't know what values like SAR_AMP_WAIT1, SAR_AMP_WAIT2, SARx_SAMPLE_CYCLE, etc are.

bobolink
Posts: 98
Joined: Mon Feb 26, 2018 4:17 pm

Re: ESP32-S3 - 2msps ADC

Postby bobolink » Thu Sep 01, 2022 10:40 am

I’m guessing the hardware front-end is the limitation. But if it’s not a deliverable and not to be produced go ahead and experiment. Hackers do remarkable things with video and hardware that’s not supposed to work.
Add:
Check out the work of Charles Lohr
https://github.com/cnlohr/channel3

Who is online

Users browsing this forum: No registered users and 180 guests