Set VCC, target voltage, duty cycle, and frequency, then watch how PWM drives an LED and a motor.
Estimated energy distribution from source to useful load and losses.
PWM (Pulse Width Modulation) controls power by switching ON and OFF very fast. The key is the ON-time ratio, called duty cycle.
If supply voltage is VCC, average output is approximately VCC multiplied by duty cycle. So even with digital pulses, the load receives a controllable analog-like average power.
In this demo, low frequency shows stronger flicker behavior on the LED, while motor speed changes more gradually to illustrate inertia.