# Noise when measuring OCV in a battery using Arduino and Adafruit ADC

I want to measure the Open Circuit Voltage of an electrochemical battery. When I measure this voltage using a multimeter, I get the measure correctly (around 1.12 V and without noise).

However, when I use an Arduino Mega with an Adafruit ADC1115, I get different readings (around 1 V, but with noise, because the reading changes in time in the range of centivolts and also sometimes in decivolts).

I would like to get the same reading as with the multimeter. What do I need to do? Maybe use a filter?

I think that the ADC is working fine, because if I measure a 1.5V AA battery, the measurement matches the one of the multimeter.

The electrochemical battery is continuously doing a series of charge/discharge cycles, so the voltage increases/decreases slowly in one direction per series (centivolts per second).

• To average this change with a low ESR Cap, we need to know your tolerance for change dV over time and the battery ESR resistance with any current measurements you might have then C=V/R(=Ic) * dt/dV Jan 29, 2022 at 12:52
• What is the output impedance of your cell? If it is high then you may need a buffer between the cell and the ADC. Jan 29, 2022 at 13:09
• You say your readings vary by centivolts and then you say that the battery is also changing by centivolts/sec. So what is your problem? Jan 29, 2022 at 13:14
• Are there bubbles forming in a wet electrolyte? If so ... possibly related electronics.stackexchange.com/questions/531190/… Jan 29, 2022 at 14:11
• @bardulia if you are doing serious research on AL ION, ask a more pertinent question for all uncertain goals. Jan 29, 2022 at 14:43

simulate this circuit – Schematic created using CircuitLab

If the dV/dt is small, meaning dt >> dV and dV is ~ 1% then adding bulk very low ESR capacitors will filter only some of this instant change.

Otherwise, a compromise between digital filtering and expectations for decay time and standard-deviation comes from knowing why it changes.

This simple model is not enough as there are more than one RC equivalent circuit in every battery cell, the obvious parallel plates and the double-electric charge layers. But let's use it anyways.

$$\V_{bat}= V_{C1} - I_{bat}*R_1\$$

So there will be burst drops in decivolts due to I*R1 and gradual drops in mV due to C1 being discharged.

While batteries have ESR*C time constants in the order of seconds to minutes, low ESR e-caps have time constants on the order of 10 us ,so filtering above is only useful for preventing aliasing sampling errors in the step voltage changes due to burst loads.

The time constants are also extended greatly by increasing the resistance of the load ( reduce load current) relative to the source. This is almost the definition of Load Regulation Error. which is merely the ratio of source ESR to load R % or the measured Vdrop in % for rated current.

## Recommendations:

1. Define the stability limits you want. i.e. tolerance spec