I'm using an arduino nano to read some info such as voltage, temperature, current from a small battery pack consisting of three 18650 batteries in series to hit 12V.
I want to be measuring the voltage of each 18650 battery at all times and since their voltage go from 2.5 to 4.2 V, it's safe to connect it directly to the analog pins.
So I would connect the positive of each battery to pins A0, A1 and A2, but the problem comes when connecting the negatives to ground; since they are in series, if I connect all three negatives to the same ground, I'll short circuit two of the batteries.
How could I fix this?
