When using PWM it can handle the power dissipation, but the current is on/off. Or you generate an analog voltage by low pass filter the PWM and use a circuit like this: Here you can control the current. But I would prefer a FET instead of the NPN.
↧