Howdy all. I'd like an Arduino to monitor the charging of 2 3-packs of NiMH cells by reading their voltages independently.
When the charger is connected to a steady supply of coulombs (i.e., the wall wart is plugged in) the atmega (a 328 in my case, though that's probably immaterial) will join the packs together, and an LM317 will juice up the 6 cells.
To read the voltages, I'd like to split the battery of 6 cells into two batteries of 3 cells, and then read the voltages directly on an analog pin.
Here's the circuit (which doesn't work) that I designed.

When the digital signal goes high, the not gate drops to like 38 milivolts.
What I'd
like to happen is this:
Digital Signal goes High, Ground Splitter stops conducting, Ground joiner starts conducting, and A5 Protector starts conducting.
But that doesn't happen.
I don't understand transistors very well.
Help?
Thanks.
Oh, the transistors are all 3055 NPN in TO220 packages, if that makes any difference.