r/Embedded_Electronics
•
u/Embedded-Guy
•
Nov 03 '25
•
1
How Does PWM Work?
Credits: Robonyx | YouTube
1
1
1
u/Cr4zyT1mes00 Nov 03 '25
I’m just starting to learn about PWM. What I understood from the animation of this video is that what we want to update to change the frequency is basically just the duty cycle? Please correct me if I’m wrong.
1
u/Smart-Button-3221 Nov 03 '25
That's exactly it. Uptime vs. downtime is what matters. It's also gotta be quick enough such that you can't detect the steps.
1
1
u/replikatumbleweed Nov 03 '25
There are voltage performance response curves for these things.. it's just that controlling the voltages at the desired current levels can be tricky. PWM is kind of a hack, and comes with side effects.
In LEDs, you see flickering, and in fans/motors, if continuous torque matters.. look elsewhere.
1
0
1
u/im_just_using_logic Nov 03 '25
There is probably some sort of low-pass filtering inside the led or the motor