2022-08-22 01:39 AM
I want to take a voltage reading over the voltage divider circuit I prepared with the STM32f030f4p6 module. I divided the voltage as 1 by 13. When I run the code in debug mode, for example, if I give 14V, I need to read 1V, but the value I see in the debug window is around 700mV. When I remove and reconnect the 3rd leg of the voltage divider circuit(ground pin), the problem is completely resolved. Anyone know why?
2022-08-22 04:01 AM
Welcome, @MYara.2, to the community!
Have you looked at AN2834, which deals with ADC and its accuracy?
Reasons could be that you have used too high impedance resistors for the voltage divider and that you are measuring too fast without the ADC input having settled.
Good luck!
Regards
/Peter