VL
Initializing Lab Environment...

PWM & Motor / Servo Control

PWM & Motor / Servo Control Sandbox
Motor: 1800 RPMLED: 60%Servo: 108ยฐ
PWM Pin60%Avg V_DC3.0VPWM Square Pulse vs Average DC Voltage โ†’

PWM Metrics

Avg Voltage3.00 V
ON Time1.20 ms

Parameters

%
0100
Hz
502000
V
3.312

Auto-Sweep Engine

2x

PWM & Motor / Servo Control

PWM

Pulse Width Modulation (PWM) switches a digital pin rapidly between 0V and Vcc. Changing the Duty Cycle (% time ON) smoothly controls DC motor speed, LED brightness, and servo position.

Vavg=Duty100ร—VCCV_{\text{avg}} = \frac{\text{Duty}}{100} \times V_{CC}

Whiteboard Solver Steps

Step 1

1. Average Equivalent Voltage

Rapidly switching a digital pin ON and OFF controls average power without wasting heat in a resistor.

Vavg=Duty100ร—VCC=60%ร—5 V=3.00 VV_{\text{avg}} = \frac{\text{Duty}}{100} \times V_{CC} = 60\% \times 5\text{ V} = 3.00\text{ V}
Step 2

2. Pulse Timing

Motor speed scales to 1800 RPM and LED brightness scales proportionally to duty cycle.

T=2.00 ms,TON=1.20 msT = 2.00\text{ ms}, \quad T_{\text{ON}} = 1.20\text{ ms}