Skip to main content
Visitor II
July 29, 2025
Question

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

  • July 29, 2025
  • 1 reply
  • 157 views

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

 

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    July 29, 2025

    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).