rAs Kids All courses
Robotics with Python · Module 3 of 8
🪨 No device needed

Human PWM

You can make a switch that is only ever fully on or fully off behave like a dial — by flicking it fast.

▉▉__▉▉__ 50% | ▉▉▉▉▉▉_ 85%
Two rows of blocks and gaps drawn in chalk, one half filled, one nearly solid.

🎒 What you need

✋ Do this

  1. Beat time steadily, one beat per second. Turn the torch on for one beat, off for one beat, repeatedly. That is 50 percent duty cycle.
  2. Now do on-on-on-off. That is 75 percent. Draw both patterns as filled and empty boxes on the ground.
  3. Speed up until you are flicking several times per second. Look at the light out of the corner of your eye — it starts to look dim rather than flashing.
  4. Try 25 percent fast. It looks dimmer still. You are controlling brightness with a switch that has no dimmer at all.
  5. Write the formula yourself: average power equals duty cycle times full power. Check it against what you saw.
  6. Last: flick slowly on purpose. The flicker returns. That is why PWM frequency matters as much as duty cycle.

💡 Why it works

This is pulse width modulation, and it is how nearly every motor speed and LED brightness is controlled in real electronics. Transistors are efficient when fully on or fully off and waste energy in between, so instead of throttling the current you switch it rapidly and vary the on-time. A motor's own inertia smooths the pulses the same way your eye smoothed the torch.

🔥 Challenge

Two of you flick torches at different duty cycles at the same speed. Can a third person rank them by brightness without being told the numbers? Test whether people can tell 60 from 70.

📖 New words

PWMpulse width modulation: switching fast and varying the on-time to control power
duty cyclethe percentage of each cycle the switch spends on
frequencyhow many complete on-off cycles happen per second
💡
Pulse Master

Tap when you have finished this module.