Ground problem while reading ADC in STM32f030f4p6 module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-08-22 1: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?
- Labels:
-
ADC
-
STM32F0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-08-22 4: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
