Transistor Problems

I'd use a DAC to provide the voltage to the regulator.