3
\$\begingroup\$

Assume a simple RC series circuit. Below are screenshots of voltage being measured across the capacitor.

Voltage across C for a High Time Constant RC Circuit

Input voltage is of pulse type with the following parameters:

  • \$V_{on}=5V\$
  • \$V_{off}=0V\$
  • Pulse Duration \$= 20 ms\$ (On Time)
  • Time Period = \$60ms\$ (Off+On Time)

And RC are as follows:

  • \$R=1M\Omega\$
  • \$C=10uF\$

How do I calculate the approximate steady state value ~1.67V?

PS: I could not use the CircuitLabs simulator as it has only a square pulse input signal.

\$\endgroup\$

2 Answers 2

2
\$\begingroup\$

The formula is:

$$V_{avg}=duty\_cycle \cdot (V_{high}-V_{low})$$

You can find the exact mathematical derivation on the web. I'll try to provide some intuition.

So, if the average output voltage of the RC filter driven from a PWM signal is not dependent on RC values, then what is? Mainly two factors:

  1. High RC time constant leads to a longer "charging time" - the time it takes the output voltage to reach its average value. You can think of this time as a "turn-on" time. The "discharging" or "turn-off" time is also increases with the RC time constant.
  2. High RC time constant leads to a lower ripple of the output voltage around its average value.

#1 is easy to explain - just recall that high time constant means longer raise/fall time of the voltage in a simple RC circuit. The same applies to this RC filter.

#2 follows from the same argument - the higher the raise/fall time of the RC filter, the lower the change in voltage that will be seen on the output during the high/low phases of the input PWM signal.

Please note that the above two factors are conflicting - you will (usually) want a fast turn-on/turn-off time and a low output ripple. The former requires low RC while the latter requires high RC. You will choose the RC values according to the constraints of your application, and if they can't be satisfied with a simple RC network - you'll search for a more sophisticated filters.

\$\endgroup\$
4
\$\begingroup\$

Calculating the steady state value is easy enough, it's just the duty cycle times the peak voltage:

\$ \dfrac{20ms}{60ms} \cdot 5V = 1.\overline{666}V \$

\$\endgroup\$
2
  • \$\begingroup\$ From where does that formula come ? Can it be applied to any RC Pulse Input Circuit irrespective of time constant ? \$\endgroup\$
    – user23564
    Commented Aug 15, 2013 at 2:39
  • \$\begingroup\$ Just from thinking about it. Yes, it can be applied irrespective of time constant. I'm sure documents on PWM and circuit theory would have similar examples with explanation. \$\endgroup\$
    – Oli Glaser
    Commented Aug 15, 2013 at 2:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.