I am working on a project that has 4 sets of batteries as the power source. Each battery pack (3.6V) is in series with one another so that the power source equals 14.4V. I have to use the negative terminal of each battery pack as my ground in order to measure the correct voltage. (If I measure a voltage point with respect to the power source as a whole's ground, it will give me the measurement of that battery pack as well as those between my point and the pack's ground) The problem is that I am interfacing each battery pack with an ATtiny13a microcontroller. When I connect the positive voltage to the Tiny13's ADC input, it reads a different value because it is trying to read the value compared to the 5V regulator's ground. I know this is confusing but hopefully the schematic helps (I only show 2 of the 4 batteries). I need to find a way to get the readings from the shunt regulator and voltage divider in so that the microcontroller can read it correctly. Is there a way of changing ground potentials like this? The VCC shown is a 5V buck regulator that is taken from the 14.4V supply and the VDD is the converted side of a DC/DC converter which has the buck regulator's 5V on the other side. Thank you!
Attachments
-
21.7 KB Views: 41