Bird
0
0

If a Raspberry Pi PWM signal has a frequency of 500 Hz and a duty cycle of 20%, what is the ON time duration in milliseconds per cycle?

medium📝 Predict Output Q5 of 15
Raspberry Pi - PWM Output
If a Raspberry Pi PWM signal has a frequency of 500 Hz and a duty cycle of 20%, what is the ON time duration in milliseconds per cycle?
A0.4 ms
B2 ms
C4 ms
D20 ms
Step-by-Step Solution
Solution:
  1. Step 1: Calculate period of one PWM cycle

    Frequency = 500 Hz means period = 1 / 500 = 0.002 seconds = 2 ms per cycle.
  2. Step 2: Calculate ON time using duty cycle

    ON time = duty cycle * period = 20% * 2 ms = 0.2 * 2 = 0.4 ms.
  3. Step 3: Re-check calculations

    Wait, 20% of 2 ms is 0.4 ms, so 0.4 ms matches.
  4. Final Answer:

    0.4 ms -> Option A
  5. Quick Check:

    ON time = duty cycle x period [OK]
Quick Trick: ON time = duty cycle x (1/frequency) [OK]
Common Mistakes:
  • Confusing frequency with duty cycle
  • Calculating period incorrectly
  • Mixing milliseconds and seconds

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes