To calculate the duty cycle from the pulse width, follow these steps:
Measure the period of the system T.
Take the pulse width PW, the time the system is on.
Make sure both quantities have the same units.
Calculate the ratio with the formula:
df = PW/T
This is the duty factor.
If you desire to find the duty cycle as a percentage, multiply the duty factor by 100:
D = df × 100%
Read more