Measure separate voltage of each battery connected in series

The project requirement is that to measure the voltage of each battery separately from the whole connection of 4 battery that connected in series. This is my connection and with always explode the resistor when I start to connect the second or third battery. Is there any solution for this? Please help.
If I put this schematic connection in to the arduino simulator on thinkercad its shown 0.00vol for A2, A3, A4 but A5 shown correct value.

You know there’s a button or tab on that F**ing system called “Schematic”? Use it. It may take a little more effort to get it looking neat without overlapping lines but it’s a thousand times more readable.

Multiple overlapping wires and pictures of batteries you don’t have are distractions to the problem.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

If you actually draw a proper circuit diagram of your project, you will see why you have a problem.

Thanks.. Tom... :slight_smile: