cancel
Showing results for 
Search instead for 
Did you mean: 

how to use SDADC in stm32F373vct6 evaluation board to read potentiometer values?

Shubham_Intellect
Associate

can anyone give the example code to read pottentiometer values using SDADC in stm32f373vct6 .  i have done  configurations for it but it is giving only 32768  reading even though  i am varying the potentiometer.

Shubham_Intellect_0-1753771574500.png

Shubham_Intellect_1-1753771629537.png

 

 

1 REPLY 1
Imen.D
ST Employee

Hello @Shubham_Intellect ,

Makre sure to select the appropriate input channel, configure the reference voltage, set gain and resolution, and ensure the potentiometer's output voltage is within the SDADC input range. 

Also, perform offset and gain calibration as described for accurate readings.

More detailed guidance for SDADC on the reference manual and this AN4207 application note: Getting started with STM32F37/38xxx SDADC (sigma-delta ADC).

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen