How Voltage Regulators Work
Batteries sag as they drain, wall adapters wobble under load and car electrical systems spike and dip. Yet microcontrollers, sensors and radios need a steady supply, often within a few percent of a target such as 3.3 V or 5 V. A voltage regulator sits between the source and the circuit and holds the output constant even when the input and load change.
There are two main families: linear regulators and switching regulators. They reach the same goal in very different ways, and choosing between them affects efficiency, heat, noise and cost.
The Core Idea: Feedback
Both types use feedback. The regulator measures its own output, compares it to a stable internal reference voltage, and adjusts itself to remove the difference. If the output drifts low, it works harder to raise it. If the output rises, it eases off. This continuous correction is what keeps the output steady.
Linear Regulators
A linear regulator behaves like an automatic variable resistor placed in series with the load. Inside is a pass transistor, an error amplifier and a reference. The amplifier watches the output through a small resistor divider and changes how much the transistor conducts, so the transistor absorbs exactly the extra voltage.
The key limitation is that the excess voltage is turned into heat. The power lost equals the voltage difference between input and output times the current. Dropping 9 V to 5 V at 200 mA dissipates 4 V times 0.2 A, which is 0.8 W in the regulator. That is enough to make a small package hot.
Because the current in equals the current out, a linear regulator can never be more efficient than the ratio of output voltage to input voltage.
Strengths and limits
- Very low output noise and a fast response.
- Simple, with few external parts, often just two capacitors.
- Can only step voltage down.
- Wasteful when the input is much higher than the output.
Dropout and LDOs
Every linear regulator needs the input to stay a minimum amount above the output. That gap is the dropout voltage. A standard regulator may need around two volts of headroom. A low-dropout regulator (LDO) needs far less, which is helpful when running from a battery that gradually falls toward the output voltage.
Switching Regulators
A switching regulator, also called a switch-mode power supply, takes a different path. It turns a transistor on and off thousands or millions of times per second and uses an inductor and capacitor to smooth the result. Energy is stored briefly in the inductor's magnetic field and then delivered to the output, instead of being burned off as heat.
By controlling how long the switch stays on in each cycle, known as the duty cycle, the controller sets the average output voltage. Feedback adjusts the duty cycle to keep the output on target.
Common topologies
- Buck converter: Steps the voltage down. Output is roughly input times duty cycle.
- Boost converter: Steps the voltage up, useful for running 5 V from a single battery cell.
- Buck-boost: Can produce an output either above or below the input, handy when a battery spans both ranges.
Strengths and limits
- High efficiency across a wide range of input and output voltages, which means less heat and longer battery life.
- Can step voltage up as well as down.
- Switching creates ripple and electromagnetic noise, so layout and filtering matter.
- More complex, with an inductor, diode or second switch, and capacitors to select.
Choosing Between Them
- If the input is only slightly above the output and the current is small, a linear or LDO regulator is simple and quiet.
- If the input-to-output difference is large, or the current is substantial, a switching regulator avoids excessive heat.
- If you must raise the voltage, you need a boost or buck-boost design.
- For sensitive analog circuits, a common approach is a switcher for the bulk conversion followed by a small LDO to clean the output.
Practical Notes
- Follow the datasheet for input and output capacitors. Some regulators become unstable with the wrong type or value.
- Calculate heat before building. Check that the regulator package can dissipate the power, and add copper area or a heatsink if not.
- Keep switching loops small on the board, because the fast edges radiate noise.
- Add reverse polarity and overvoltage protection if the input may be abused.
- Check the maximum input voltage, including spikes.
Frequently Asked Questions
Why does my linear regulator get so hot?
It dissipates the voltage difference times the current as heat. A large step down, such as 12 V to 3.3 V, makes it waste most of the input power. Using a switching regulator or a lower input voltage reduces the heat.
Is a switching regulator always better?
No. It is more efficient in many cases, but it adds noise and complexity. For a low current, low noise application where input and output voltages are close, an LDO can be the better choice.
What does regulation mean on a datasheet?
Line regulation describes how much the output changes when the input voltage changes. Load regulation describes how much the output changes when the load current changes. Smaller values mean a steadier output.