STM32F407 What is normal ADC accuracy error?
Hello. I have an external circuitry that I want to monitor voltage. It can go up to 48V hence I have used a big voltage divider. I am using 220K and 10K resistors for my voltage divider.
At the moment, I am measuring 24V external voltage. After the voltage divider, the voltage is: 1.030V (Measured with multimeter), according to the voltage divider formula, it should be 1.043V but that slight deviation is probably due to the accuracy of the resistors.
If I see 1.030V on the pin using the multimeter, the measured voltage should be 23.69V but the actual voltage that my STM32 is measuring on the ADC pin is 23.3V which is quite a bit off. Is this a normal ADC error for the STM32 or I am doing something wrong?
Is there any way to achieve slightly better accuracy? I dont want to hardcode the offset value as I am not certain it will be the same for other devices.