* Z:\tmp\asc_dec_bjh7r6w2\07d5c7778427_MultiCellBatteryMeterSim_dec0.asc
* Generated by LTspice 26.0.1 for Windows.
R32 N014 0 20k
XU12 N023 N024 Vs+ 0 Mux2 LM324/NS ;pnba In+)In-)V+)V-)OUT
V7 TRUE 0 3.3V
R25 N021 N022 20K
V3 Cell4_v Cell3_v 4V
R38 ShuntOut N004 20k
R17 N003 N001 20K
RShunt1 N001 Vshunt 0.1 pwr=10W
XU7 N012 N011 Vs+ Vs- N011 LM324/NS ;pnba In+)In-)V+)V-)OUT
V2 Vs+ 0 12V
XU9 N006 N003 Vs+ N008 N002 LM324/NS ;pnba In+)In-)V+)V-)OUT
R_load BATT_POS BATT_NEG 100R
R21 N024 Mux1 20K
V8 N001 N010 {VSIM}
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 3916 1784
WIRE 1600 -448 1312 -448
WIRE 2032 -432 2000 -432
WIRE 1600 -384 1600 -448
WIRE 1744 -384 1600 -384
WIRE 1872 -384 1824 -384
WIRE 1920 -384 1920 -432
WIRE 1920 -384 1872 -384
WIRE 2768 -384 2640 -384
WIRE 2880 -384 2848 -384
WIRE 1312 -368 1312 -448
WIRE 1600 -368 1600 -384
WIRE 1872 -336 1872 -384
WIRE 1920 -336 1872 -336
WIRE 2032 -320 2032 -432
WIRE 2032 -320 1984 -320
WIRE 2512 -320 2032 -320
WIRE 2672 -320 2640 -320
WIRE 1920 -304 1872 -304
WIRE 2880 -304 2880 -384
WIRE 2880 -304 2736 -304
WIRE 2944 -304 2880 -304
WIRE 1744 -288 1712 -288
WIRE 1872 -288 1872 -304
WIRE 1872 -288 1824 -288
WIRE 2672 -288 2640 -288
WIRE 1600 -272 1600 -288
WIRE 1648 -272 1600 -272
WIRE 1712 -272 1712 -288
WIRE 1712 -272 1648 -272
WIRE 1952 -256 1952 -288
WIRE 2000 -256 1952 -256
WIRE 2672 -256 2640 -256
WIRE 1872 -208 1872 -288
WIRE 1312 -192 1312 -288
WIRE 2000 -176 2000 -256
WIRE 3472 -112 3376 -112
WIRE 2512 -80 2512 -256
WIRE 2512 -80 2432 -80
WIRE 2672 -80 2672 -256
WIRE 3376 -64 3376 -112
WIRE 1600 -32 1600 -272
WIRE 2512 -32 2512 -80
WIRE 3376 32 3376 16
WIRE 3488 32 3376 32
WIRE 3552 32 3488 32
WIRE 3376 48 3376 32
WIRE 2432 80 2432 -80
WIRE 2496 80 2496 32
WIRE 2496 80 2432 80
WIRE 3488 80 3488 32
WIRE 2528 96 2528 32
WIRE 2560 96 2528 96
WIRE 2672 96 2640 96
WIRE 2528 144 2528 96
WIRE 3376 192 3376 128
WIRE 3472 192 3376 192
WIRE 3440 256 3376 256
WIRE 3376 304 3376 256
WIRE 1216 400 1168 400
WIRE 1600 400 1216 400
WIRE 3376 416 3376 384
WIRE 3440 416 3376 416
WIRE 1168 464 1168 400
WIRE 3568 544 3456 544
WIRE 1952 560 1920 560
WIRE 2048 560 2032 560
WIRE 2080 560 2048 560
WIRE 2048 608 2048 560
WIRE 2048 608 2000 608
WIRE 3568 608 3568 544
WIRE 1168 624 1168 528
WIRE 1216 624 1168 624
WIRE 1408 624 1216 624
WIRE 1792 640 1600 640
WIRE 1920 640 1920 560
WIRE 1920 640 1872 640
WIRE 2000 640 2000 608
WIRE 1920 656 1920 640
WIRE 1968 656 1920 656
WIRE 2080 672 2032 672
WIRE 2192 672 2080 672
WIRE 1968 688 1920 688
WIRE 1792 736 1744 736
WIRE 1920 736 1920 688
WIRE 1920 736 1872 736
WIRE 1968 736 1920 736
WIRE 1168 768 1168 624
WIRE 3568 768 3568 688
WIRE 1968 784 1968 736
WIRE 2080 784 2080 672
WIRE 1744 864 1744 736
WIRE 1952 912 1920 912
WIRE 2048 912 2032 912
WIRE 2080 912 2048 912
WIRE 2048 960 2048 912
WIRE 2048 960 2000 960
WIRE 1744 992 1744 864
WIRE 1792 992 1744 992
WIRE 1920 992 1920 912
WIRE 1920 992 1872 992
WIRE 2000 992 2000 960
WIRE 1920 1008 1920 992
WIRE 1968 1008 1920 1008
WIRE 2080 1024 2032 1024
WIRE 2144 1024 2080 1024
WIRE 1968 1040 1920 1040
WIRE 1792 1088 1744 1088
WIRE 1920 1088 1920 1040
WIRE 1920 1088 1872 1088
WIRE 1968 1088 1920 1088
WIRE 1968 1136 1968 1088
WIRE 2080 1136 2080 1024
WIRE 2080 1136 2048 1136
WIRE 1744 1248 1744 1088
WIRE 1744 1248 1600 1248
WIRE 1952 1264 1920 1264
WIRE 2048 1264 2032 1264
WIRE 2080 1264 2048 1264
WIRE 2048 1312 2048 1264
WIRE 2048 1312 2000 1312
WIRE 1744 1344 1744 1248
WIRE 1792 1344 1744 1344
WIRE 1920 1344 1920 1264
WIRE 1920 1344 1872 1344
WIRE 2000 1344 2000 1312
WIRE 1920 1360 1920 1344
WIRE 1968 1360 1920 1360
WIRE 2080 1376 2032 1376
WIRE 2144 1376 2080 1376
WIRE 2192 1376 2192 1088
WIRE 2192 1376 2144 1376
WIRE 1968 1392 1920 1392
WIRE 1792 1440 1744 1440
WIRE 1920 1440 1920 1392
WIRE 1920 1440 1872 1440
WIRE 1968 1440 1920 1440
WIRE 1968 1488 1968 1440
WIRE 2080 1488 2080 1376
WIRE 2080 1488 2048 1488
WIRE 1744 1584 1744 1440
WIRE 1744 1584 1600 1584
WIRE 2144 1584 1744 1584
WIRE 2208 1584 2144 1584
SYMBOL res 1936 544 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R32
SYMATTR Value 20k
SYMBOL Opamps\\opamp2 2000 1440 M180
SYMATTR InstName U12
SYMATTR Value LM324/NS
SYMBOL voltage 3568 592 R0
SYMATTR InstName V7
SYMATTR Value 3.3V
SYMBOL res 1888 1104 M270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R25
SYMATTR Value 20K
SYMBOL Misc\\cell 1168 464 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 4V
SYMBOL res 2864 -400 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R38
SYMATTR Value 20k
SYMBOL res 1840 -400 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R17
SYMATTR Value 20K
SYMBOL res 1584 -384 R0
SYMATTR InstName Shunt1
SYMATTR Value 0.1
SYMATTR SpiceLine pwr=10W
SYMBOL Opamps\\opamp2 2448 0 R270
SYMATTR InstName U7
SYMATTR Value LM324/NS
SYMBOL voltage 3376 -80 M0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 12V
SYMBOL Opamps\\opamp2 1952 -384 R0
SYMATTR InstName U9
SYMATTR Value LM324/NS
SYMBOL res 3392 288 M0
SYMATTR InstName R_load
SYMATTR Value 100R
SYMBOL res 1888 1456 M270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R21
SYMATTR Value 20K
SYMBOL voltage 1312 -384 R0
SYMATTR InstName V8
SYMATTR Value {VSIM}
FLAG 3488 80 0
FLAG 3472 -112 Vs+
FLAG 1216 624 Cell3_v
FLAG 1216 400 Cell4_v
FLAG 3440 416 BATT_NEG
FLAG 3440 256 BATT_POS
FLAG 3472 192 Vs-
FLAG 1952 -352 Vs+
FLAG 2000 1408 Vs+
FLAG 2000 1056 Vs+
FLAG 2000 704 Vs+
FLAG 2144 1376 Mux2
FLAG 2144 1584 Mux1
FLAG 1648 -272 Vshunt
FLAG 2080 560 GND
FLAG 2080 912 GND
FLAG 2080 1264 GND
FLAG 2944 -304 ShuntOut
FLAG 2704 -272 Vs-
FLAG 2544 0 Vs-
FLAG 2704 -336 Vs+
FLAG 2480 0 Vs+
FLAG 3552 32 GND
FLAG 3568 768 0
FLAG 3456 544 TRUE