# What's the Capacitor Across the Output of a Voltage Regulator For?

**URL:** <https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707>\
**Category:** Factual Questions\
**Created:** [March 11, 2004, 3:23pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707 "2004-03-11T15:23:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [March 11, 2004, 3:23pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/1 "2004-03-11T15:23:38Z")

</div>

I needed a small 10v DC power supply, so I dug around on the internet, and found schematics at several sites like [this](http://members.shaw.ca/roma/supply-2.html). With a solid state regulator, it’s a simple, cheap circuit to make (parts cost me $7). However, in every version of the circuit I found, there’s a small capacitor placed across the output, and I don’t understand why it’s there. Could someone please shed some light on this mystery?

(Voltage regulator intro: [Linear and Switching Voltage Regulator Fundamentals](http://www.national.com/appinfo/power/files/f4.pdf) )

---

<div class="post-metadata">

**Author:** ![Mort\_Furd](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@Mort\_Furd](https://boards.straightdope.com/u/Mort_Furd)\
**Post date:** [March 11, 2004, 3:47pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/2 "2004-03-11T15:47:03Z")

</div>

> [@Squink](#):
>
> I needed a small 10v DC power supply, so I dug around on the internet, and found schematics at several sites like [this](http://members.shaw.ca/roma/supply-2.html). With a solid state regulator, it’s a simple, cheap circuit to make (parts cost me $7). However, in every version of the circuit I found, there’s a small capacitor placed across the output, and I don’t understand why it’s there. Could someone please shed some light on this mystery?
> 
> (Voltage regulator intro: [Linear and Switching Voltage Regulator Fundamentals](http://www.national.com/appinfo/power/files/f4.pdf) )

'Cause if it ain’t there the regulator may oscillate causing it to heat up and fail. The capacitor damps the oscillations so that it doesn’t build up to be a problem.

There are lots of regulators that won’t oscillate in normal operation, but then there are lots that look the same (same part number, same type, different manufacturer) but tthat will oscillate. I know becuase we had a small problem with this at the place I used to work. Like you, we needed a simple regulated voltage in a circuit. The guy who built the gadget forgot to put in the cap. The first test units were fine, then we had some more made up that used a regulator from a different manufacturer - plain 7805. The new ones oscillated, and toasted themselves.

---

<div class="post-metadata">

**Author:** ![Mort\_Furd](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@Mort\_Furd](https://boards.straightdope.com/u/Mort_Furd)\
**Post date:** [March 11, 2004, 3:48pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/3 "2004-03-11T15:48:54Z")

</div>

Eh. that was in reference to linear regulators. Swictching power supplies have a pulsing output that has to be smoothed, usually by a combination of inductance and capacitance. Totally different animal.

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [March 11, 2004, 4:38pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/4 "2004-03-11T16:38:43Z")

</div>

Thanks Mort. I figured that the capacitor was some sort of disaster prevention device, but didn’t know _which_ disaster. Now I do.  
The supply, with capacitor, is up and running happily. I’ll burn a lightbulb with it for a day or two before hooking it up to my motor controller.

---

<div class="post-metadata">

**Author:** ![Baa-Baas](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Baa-Baas](https://boards.straightdope.com/u/Baa-Baas)\
**Post date:** [March 11, 2004, 4:59pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/5 "2004-03-11T16:59:49Z")

</div>

The capacitor is there to smooth the DC output.

Think of it this way:  
The cap will store voltage so when whatever circuit needs 10V and the regulator is only supplying 9.8V the cap will supply the 0.2V.

Hope that helps

---

<div class="post-metadata">

**Author:** ![epepke](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@epepke](https://boards.straightdope.com/u/epepke)\
**Post date:** [March 11, 2004, 6:08pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/6 "2004-03-11T18:08:35Z")

</div>

Also, there are high-frequency components that the regulator doesn’t have time to adjust for. Power lines make great antennas. That’s why you’ll often see a capacitor on the order of 0.01 microfarad in parallel with a larger capacitor. It isn’t for the extra capacitance; it’s because it’s better at conducting the high frequencies to ground.

---

<div class="post-metadata">

**Author:** ![Crafter\_Man](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/crafter_man/32/458_2.png) [@Crafter\_Man](https://boards.straightdope.com/u/Crafter_Man)\
**Post date:** [March 11, 2004, 7:30pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/7 "2004-03-11T19:30:31Z")

</div>

An ideal regulator doesn’t need an output decoupling capacitor. It maintains a constant DC output voltage regardless of what is (or isn’t) hanging on the output. It also maintains a constant DC output voltage regardless of fluctuations at its input terminals.

But there’s no such thing as an ideal regulator. A _practical_ regulator has the following problems:

1. Speed, or lack thereof. A regulator has difficulty maintaining constant voltage when there’s a fast-and-sudden (i.e. transient) demand for output current.

2. Low steady-state frequency response. There’s a certain frequency above which it has difficulty regulating. High frequency fluctuations are the result of high frequency load noise and/or high frequency components propagating through the regulator from the input.

Putting a capacitor on the output helps reduce the effects of both of the above-mentioned problems.

Sometimes you’ll see _two_ caps in parallel on the output: A _high_ value cap (10 uF to 1000 uF) and a _low_ value cap (less than 0.1 uF). Due to its low output impedance and high capacity, a high value cap does a good job of sourcing current (and maintaining voltage) when there’s a fast-and-sudden (i.e. transient) demand for output current. It can usually do this much faster than the regulator itself. (Of course, it can’t do this under a steady state condition - only under a transient condition - which is why you still need the regulator.) Thus a large cap is good at addressing the _first_ problem. But because of its inductance, a large cap is not good at filtering high frequency noise, and thus doesn’t do a very good job at addressing the second problem. This is where a smaller, non-electrolytic cap is often employed… a small cap usually has very low series inductance, and thus excels at filtering high frequency noise.

---

<div class="post-metadata">

**Author:** ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)\
**Post date:** [March 11, 2004, 8:18pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/8 "2004-03-11T20:18:03Z")

</div>

> [@Squink](#):
>
> The supply, with capacitor, is up and running happily. I’ll burn a lightbulb with it for a day or two before hooking it up to my motor controller.

You probably already know this, but: you probably want some sort of current protection diode as well if the motor controller doesn’t have one. Motors are notoriously inductive, meaning that they don’t like to change current quickly. Inductive loads like to arc across switches (or capacitors, or power supplies) to keep the current flowing after you turn them off; a common solution is a high-current diode, reverse-biased across the load (and as close to the inductive load as possible).

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [March 11, 2004, 10:01pm UTC](https://boards.straightdope.com/t/whats-the-capacitor-across-the-output-of-a-voltage-regulator-for/233707/9 "2004-03-11T22:01:15Z")

</div>

> [@Omphaloskeptic](#):
>
> you probably want some sort of current protection diode as well if the motor controller doesn’t have one.

The motor’s internal controller takes two inputs. 110vAC which it inverts to run a DC brushless motor, and 0-10vDC which it senses in order to control the motor speed. For reasons which escape me, the controller didn’t come with a 10vDC pinout, so I needed to build a separate supply for _that_. I devoutly hope that the unit is designed so that massive inductive currents don’t come surging back through the logic of its comparator circuit. That’d blow it for sure :eek:
