Why doesn't this battery voltage measurement circuit work?
The issue is that you're using a low-side switch configuration in a high-side switch application. You can keep most of what you have if you just change to a high-side switch using PNP instead of NPN transistors. Something like this:







simulate this circuit &ndash; Schematic created using CircuitLab