If you use PWM, is not DC anymore. What do you mean by controlling the voltage? You can just change the current, as Mechkov said, but it all depends on your circuit.
If you use PWM, is not DC anymore. What do you mean by controlling the voltage? You can just change the current, as Mechkov said, but it all depends on your circuit.