* SPICE netlist
R2 N002 N001 560k tol=1 pwr=0.6
R4 0 N003 560k tol=1 pwr=0.6
R3 N003 V2 10k tol=1 pwr=0.6
R1 N001 V1 10k tol=1 pwr=0.6
R_ADC_M Vout_M N002 100k tol=1 pwr=0.6
V1 V2 0 15.07
RM V1 V2 0.01 tol=1 pwr=1
IM V1 0 3
R6 N005 N004 360k tol=1 pwr=0.6
R8 0 N006 360k tol=1 pwr=0.6
R7 N006 V4 10k tol=1 pwr=0.6
R5 N004 V3 10k tol=1 pwr=0.6
R_ADC_5 Vout_5V N005 100k tol=1 pwr=0.6
V_regulator V4 0 5
R5V V3 V4 0.01 tol=1 pwr=1
I5V V3 0 0.035
XU1 N006 N004 V2 0 N005 opamp2 LM324 ;pnba In+)In-)V+)V-)OUT
XU2 N003 N001 V2 0 N002 opamp2 LM324 ;pnba In+)In-)V+)V-)OUT
.op

* LTspice schematic (.asc)
Version 4
SHEET 1 1424 1008
WIRE 360 -504 328 -504
WIRE 40 -424 -120 -424
WIRE 88 -424 40 -424
WIRE 152 -424 88 -424
WIRE 296 -424 232 -424
WIRE 376 -424 296 -424
WIRE -120 -376 -120 -424
WIRE 40 -376 40 -424
WIRE 360 -360 360 -504
WIRE 296 -344 296 -424
WIRE 328 -344 296 -344
WIRE 456 -328 456 -424
WIRE 456 -328 392 -328
WIRE 520 -328 456 -328
WIRE 712 -328 600 -328
WIRE 328 -312 296 -312
WIRE -120 -264 -120 -296
WIRE -504 -248 -504 -280
WIRE 40 -232 40 -296
WIRE 88 -232 40 -232
WIRE 152 -232 88 -232
WIRE 296 -232 296 -312
WIRE 296 -232 232 -232
WIRE 392 -232 296 -232
WIRE 536 -232 472 -232
WIRE 40 -200 40 -232
WIRE 360 -168 360 -296
WIRE -712 -136 -712 -216
WIRE -504 -104 -504 -168
WIRE 24 136 -120 136
WIRE 72 136 24 136
WIRE 136 136 72 136
WIRE 248 136 216 136
WIRE 360 136 248 136
WIRE -120 168 -120 136
WIRE 24 184 24 136
WIRE 312 200 312 56
WIRE 248 216 248 136
WIRE 280 216 248 216
WIRE 440 232 440 136
WIRE 440 232 344 232
WIRE 504 232 440 232
WIRE 696 232 584 232
WIRE 280 248 248 248
WIRE -120 280 -120 248
WIRE 24 328 24 264
WIRE 72 328 24 328
WIRE 136 328 72 328
WIRE 248 328 248 248
WIRE 248 328 216 328
WIRE 328 328 248 328
WIRE 472 328 408 328
WIRE 24 392 24 328
WIRE 312 408 312 264
WIRE 24 504 24 472
FLAG -120 -264 0
FLAG -504 -104 0
FLAG 712 -328 Vout_M
FLAG 536 -232 Vref
FLAG 88 -232 V2
FLAG 88 -424 V1
FLAG 328 -504 V_batteries
FLAG 24 504 0
FLAG 696 232 Vout_5V
FLAG 472 328 Vref
FLAG 72 328 V4
FLAG 72 136 V3
FLAG 312 56 V_batteries
FLAG 312 408 0
FLAG -120 280 0
FLAG -712 -216 Vref
FLAG -712 -136 0
FLAG 360 -168 0
FLAG -504 -280 V_batteries
FLAG 40 -200 V_batteries
DATAFLAG 176 64 ""
DATAFLAG 176 256 ""
DATAFLAG -64 256 ""
DATAFLAG -80 80 ""
DATAFLAG 528 720 ""
DATAFLAG 528 160 ""
DATAFLAG -32 608 ""
SYMBOL res 472 -440 R90
SYMATTR InstName R2
SYMATTR Value 560k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL res 488 -248 R90
SYMATTR InstName R4
SYMATTR Value 560k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL res 248 -248 R90
SYMATTR InstName R3
SYMATTR Value 10k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL res 248 -440 R90
SYMATTR InstName R1
SYMATTR Value 10k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL res 616 -344 R90
SYMATTR InstName R_ADC_M
SYMATTR Value 100k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL voltage -504 -264 R0
SYMATTR InstName V1
SYMATTR Value 15.07
SYMBOL res 24 -392 R0
SYMATTR InstName RM
SYMATTR Value 0.01
SYMATTR SpiceLine tol=1 pwr=1
SYMBOL current -120 -376 M0
SYMATTR InstName IM
SYMATTR Value 3
SYMBOL res 456 120 R90
SYMATTR InstName R6
SYMATTR Value 360k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL res 424 312 R90
SYMATTR InstName R8
SYMATTR Value 360k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL res 232 312 R90
SYMATTR InstName R7
SYMATTR Value 10k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL res 232 120 R90
SYMATTR InstName R5
SYMATTR Value 10k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL res 600 216 R90
SYMATTR InstName R_ADC_5
SYMATTR Value 100k
SYMATTR SpiceLine tol=1 pwr=0.6
SYMBOL voltage 24 376 R0
SYMATTR InstName V_regulator
SYMATTR Value 5
SYMBOL res 8 168 R0
SYMATTR InstName R5V
SYMATTR Value 0.01
SYMATTR SpiceLine tol=1 pwr=1
SYMBOL current -120 168 M0
SYMATTR InstName I5V
SYMATTR Value 0.035
SYMBOL OpAmps\\opamp2 312 168 R0
SYMATTR InstName U1
SYMATTR Value2 LM324
SYMBOL OpAmps\\opamp2 360 -392 R0
SYMATTR InstName U2
SYMATTR Value2 LM324