Skip to content
You Start with one site
Amounts in Start with one site
Electronics · Concept

Linear and switching regulators

One idea Beginner 5 min read
Found this useful?

A tap that adjusts itself can hold a steady pressure after it, whatever the pressure before it. But all the water still passes through the tap, and the pressure it removes is lost. A voltage regulator gives a steady output voltage from an unsteady input. A linear regulator works like that tap and turns the voltage it removes into heat. A switching regulator switches the input fully on and off and wastes very little.

The load5 V × 0.5 A2.5 W of work
The regulator7 V × 0.5 A3.5 W of heat
The supply12 V × 0.5 A6 W paid for

See it

Predict first

A linear regulator makes 5 V from 12 V for a 0.5 A load and makes 3.5 W of heat. The input is changed to 24 V, with the same load. How much heat does it make now?

See it: two ways to make 5 V

Heat, linear
Heat, switching at 90%
Linear efficiency

The linear regulator is a 7805: it needs at least 7 V in, and in its usual TO-220 package it can lose only about 1 to 2 W with no heatsink. The switching regulator is taken as 90% efficient. Both bars use the same scale, so the height is the power you pay for.

The idea

A linear regulator behaves as a resistor between the input and the output that adjusts itself all the time. The whole load current passes through it, so the current in equals the current out. The voltage it removes stays across it, and becomes heat:

P = (Vin − Vout) × I

P is the heat in watts, Vin and Vout the input and output voltages, I the load current in amperes

Its efficiency is Vout ÷ Vin, so a large drop wastes most of the power. It also needs a minimum difference, the dropout voltage: 2 V for the 7805, much less for a low dropout (LDO) regulator. Its output is very quiet.

A switching regulator turns its input fully on and off about 100,000 times a second, and a coil and a capacitor smooth the pulses. A switch fully on or fully off wastes almost nothing, so 85 to 95% of the power reaches the load, and stepping down, it takes less current in than it gives out. Its output carries a small ripple.

One worked number

The question

A 7805 makes 5 V from a 12 V supply for a load of 0.5 A. How much heat does it make, what is its efficiency, and does it need a heatsink?

Show the worked solution, 3 steps
  1. The heat

    P = (12 − 5) × 0.5 = 3.5 W.

  2. The efficiency

    5 ÷ 12 = 41.7%. The supply gives 12 × 0.5 = 6 W, and only 2.5 W reaches the load.

  3. The heatsink

    3.5 W is above the 1 to 2 W the package loses alone, so yes. A switching regulator at 90% would make about 0.28 W. The figure opens at this case.

The mistake to avoid

A linear regulator lowers the current from the battery as well as the voltage. It does not. With a 0.5 A load, the battery gives 0.5 A, at the full battery voltage. Only a switching regulator takes less current in than it gives out.

A second trap: a 1 A rating does not mean 1 A at any input. From 24 V at 1 A, a 5 V linear regulator would lose 19 W. Calculate the heat first.

Check yourself

Question 1

An LM1117-3.3 regulator makes 3.3 V from a 5 V supply for a load of 0.3 A. How much heat does it make?

Question 2

A 12 V battery feeds a linear regulator that gives 5 V at 0.2 A to a logger. What current does the battery give?

Question 3

A remote site has a 24 V battery bank. A controller needs 3.3 V at 0.5 A. Which regulator do you choose?

Where you meet it

  • Solar sites and battery banksA logger and a modem on a 24 V or 48 V battery are fed by a switching regulator, so the battery lasts longer.
  • Controllers in panelsA controller fed from 24 V DC has a switching regulator to 5 V, often followed by an LDO.
  • Measurement boardsAn energy meter or a sensor amplifier is fed by an LDO, because its output is quiet.
  • Battery sensor nodesThe regulator decides how many months a node runs on one battery.
Key points
  • A linear regulator turns the voltage it removes into heat: (Vin − Vout) × I.
  • Its input current equals its output current.
  • A switching regulator wastes 5 to 15% and takes less current in when it steps down.
  • Linear for a small drop and a quiet output. Switching for a large drop, a high current or a battery.
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.