cancel
Showing results for 
Search instead for 
Did you mean: 

Using stm32(Bluepill) as ADC

Tsai.1
Associate

Hello guys, I am working on a acoustic source localization project. I need to sample the amplified signal from Hydrophone. The acoustic source emits a sound frequency of 42khz. I need to sample this signal at a frequency of 100Khz or even 200khz(if possible) and send these values to single board computer using USB communication for just 2 seconds for every minute. Is it possible? if yes how?

Edit: It is totally fine for me to use parallel ADC IC, microcontrollers read digital inputs faster than analog inputs right?

1 REPLY 1
TDK
Guru

> Is it possible?

Most (all?) STM32XXX families have an ADC which can sample at above 200 ksps.

> if yes how?

You have to pick and chip and write the code to sample the ADC and do whatever you want to do with it. There are many examples projects in the STM32CubeMX repositories that use the ADC. Here is one of many:

https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H743ZI/Examples/ADC/ADC_DMA_Transfer

If you feel a post has answered your question, please click "Accept as Solution".