Modifying PWM frequency and smoothing

Thanks :slight_smile: