SPI bandwidth for analog to digital device

rnleao
Posts: 3
Joined: Tue Nov 03, 2020 10:53 pm

SPI bandwidth for analog to digital device

Postby rnleao » Mon Nov 09, 2020 9:14 am

Hi All,

I am trying to hook the esp32 to a ADC that is capable to send 24bit resolution 8 channel data via SPI with speeds that vary from 500 to 16000 samples/s. Could the esp32 handle it? 8 data samples (24 bit) at 10KHz? thanks for the help!

Scott.Bonomi
Posts: 73
Joined: Mon Mar 09, 2020 7:36 pm

Re: SPI bandwidth for analog to digital device

Postby Scott.Bonomi » Mon Nov 09, 2020 10:18 pm

It depends on what you planning to do with the data. Also on who the master is. If the ADC is master then all the ESM32 has to do is respond to interrupts, copy the data, and send it out on WiFi. That is likely doable with a single processor. If you plan to do any data processing, you will need to spread the data out from 24 bits to 32, run a filter, and do that in 12.5 uSecs for each sample. With a dual processor system the answer is probably, if you only need a few fixed point biquads for filtering. After that I would be concerned about staying up with real time.

rnleao
Posts: 3
Joined: Tue Nov 03, 2020 10:53 pm

Re: SPI bandwidth for analog to digital device

Postby rnleao » Tue Nov 10, 2020 12:57 pm

thank you! yes, the ADC is the master and I just want to send the data via wifi, no processing.

Who is online

Users browsing this forum: JohnnyZ and 96 guests