I think It’s simplest to pwm some n fets. Calibration for battery voltage needed