4 to 20mA Current Source using PWM

1-5 volts is just as easy. If your circuit converts 5V to 20mA then 1V equals 4mA.