cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f070c6 ADC values are not zero. when the pin was floating(not connected to any analog sensor)

RKUMA.2
Associate II

Hello,

I AM working on the stm32f0760c6 custom designed board in that our controller adc values are not zero when the pin was floating(not connected to any analog sensor). how can we make it is zero(when sensor is not connected), if I use a capacitor due to its charging and discharging effect when we take the continuous readings it is showing the adc value gradually increase from zero. how can I avoid this effect, how to reduce the adc values to zero (when analog sensor is not connected)., if you have idea please give a suggestion.

Best Regards

Raj

1 REPLY 1
S.Ma
Principal

Try to use the gpio pull up xor down to polarize the floating input level.