@mixal @MLE_online Normally the best practice is to use PWM to directly drive your lights or motor or loudspeaker or whatever other physical thing ultimately matters, which can naturally "ignore" the PWM's high carrier frequency. Perhaps use minimal filtering like ferrite beads, only for the sake of limiting radio noise you spew into the world. For audio driving a speaker, usually use a dedicated power supply to minimize the PSRR problem.