itslabtime.com

Electronics · Digital and Control

PWM and duty cycle

PWM controls the average driving level based on the ratio of time it is turned on. Even with the same duty cycle, the movement will differ depending on how quickly the target responds.

Related experiment: PWM brightness and speed control →
PWM brightness and speed control
PWM brightness and speed control: simulation view →

Meaning and mechanism

If the duration, in terms of ‘T’ cycles, for which a light is ‘on’ is Ton, then the duty cycle is D=Ton/T. The method for changing the voltage when the light is turned on, and the method for changing the ratio of the ‘on’ time, are different.

When the voltage is switched on and off quickly, or when dealing with objects with significant thermal or mechanical inertia, the effect tends to approach an average. With slow switching, the fluctuation can be noticeable.

Relationships and conditions

The average voltage of the ideal PWM oscillating between 0 and V is DV. We compare the ripple by changing the 1 response time constant and the switching frequency ratio of the target.

The actual relationship between LED brightness and motor speed is not necessarily linear. It’s important to distinguish this from a relative response model that neglects current paths, load torque, and friction.

What to observe in the simulation

Ideal PWM mean voltage is the duty cycle times the supply voltage.

LED brightness is approximated as proportional to voltage; motor load torque and starting friction are omitted. Experiment on screen; do not reproduce this with real power supplies, outlets or high voltage.

Key relationships and symbols

Vavg = DV · τ y′ + y = u(t)

Symbols and units used in the formulas
SymbolMeaningUnit
DDuty cycle Ton/T0~1
TSwitching periods
τTime constant of the system responses

Worked example

At 50% duty and 6 V supply, what is the mean voltage when frequency changes from 100 Hz to 500 Hz?

3 V

Common misconceptions

  • It is not the case that if the average voltage is the same, the switching waveform or instantaneous current will also be the same.

Explore this concept through experiments

References

OpenStax · University Physics Volume 2 (English)