How to filter a PWM current source?
Since you said you are familiar with the simple RC filter applied to voltage. One approach would be to consider the equivalent circuits below:







simulate this circuit &ndash; Schematic created using CircuitLab

The two circuits inside the two boxes are equivalent. So choose R1 to get the voltage range that you want. Now you can add C1 to form a familiar RC filter on the voltage.