0PricingLogin
Arduino & IoT Academy · Lesson

What PWM Actually Does

Fast on/off pulses that act like a dimmer.

A Pin That Only Knows On or Off

A digital pin can only output full voltage or none at all. So how do you get a dim LED instead of just bright or dark? 💡

The Trick: Switch Very Fast

The answer is PWM: turn the pin on and off so quickly that your eye blends the flickers into one steady, in-between brightness.

All lessons in this course

  1. What PWM Actually Does
  2. analogWrite 0–255
  3. Fade an LED Up and Down
  4. Knob Controls LED Brightness
← Back to Arduino & IoT Academy