Controlling current through low value inductor
Add a capacitor to your circuit in parallel to the inductor:







simulate this circuit &ndash; Schematic created using CircuitLab

Pick the capacitance value so that the resonant frequency of your LC circuit is much lower than the PWM frequency yet much higher than the frequency of the current variations you want to produce. That way the resonance effects won't interfere significantly with the signal you're trying to generate.