2025-07-28 11:47 PM
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.
2025-07-29 2:49 AM - edited 2025-07-29 2:49 AM
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).