I am currently working on a project that requires me to measure a capacitor voltage that can reach up to 250 V.
To measure such a high voltage I first created a voltage divider with very high resistor values so the capacitor doesn't discharge very fast (resistor1 = 10 MΩ, resistor2 = 200 kΩ). The problem is that with such high resistor values the Arduino doesn't measure the voltage exactly, since the max. resistor recommendation for the Arduino ADC is 10 kΩ.
I decided to wire an op-amp as a voltage follower to have lower impedance on the output, but the voltage follower doesn't measure capacitor voltages lower than 100 V (or 1.96 V after the divider) and what happens is that, when the voltage falls below that, the follower produces a small voltage by itself (around 1.9 V), thus tricking the Arduino into calculating the wrong voltage of the capacitor. The op-amp I'm using is the UA741 and I'm powering it with single rail supply.
Does anyone know why the voltage follower doesn't work?