cancel
Showing results for 
Search instead for 
Did you mean: 

ADC reading are not constant

rishavnath satapathy
Associate II
Posted on July 20, 2017 at 12:26

Hello There,

I am using STM3F4 discovery board. I am able to print the ADC value on display. I am using PA0 as ADC i/p. The value is constant 4095 if I connect to 3V from board. If I connect PA0(ADC i/p) to my external circuit which is a rail potentiometer the ADC reading is not constant. The last 2 digit are toggling continuously from 822 to 830. Anybody has faced same problem. Any suggestion how to fix the toggling of last 2 digit is welcome.

Video - 

https://www.youtube.com/watch?v=Lodb4PKB_R0&feature=em-upload_owner

 
10 REPLIES 10
Posted on July 21, 2017 at 07:51

The SPL (Standard Peripheral Library) for the STM32F4 and the Firmware package for the F4 Discovery contain examples for ADC initialization, including (AFAIK) calibration.

Both are still available as download.

Never used Cube, though..