Power Supplies

DC Power Supplies Explained: Linear, Switching and Variable

A DC power supply turns mains AC into steady DC for electronics. Compare linear, switching and variable supplies, learn the symbols, and see how each type fits your project.

On this page
  1. What a DC power supply does
  2. Why electronics use DC
  3. Linear and switching supplies
  4. Fixed, variable and bench supplies
  5. Symbols and terms
  6. DC outlets, inverters and UPS units
  7. Choosing a DC power supply
  8. Safety basics
  9. Where to go next

What a DC power supply does

A DC power supply takes energy from a source, usually the mains AC in a wall socket, and delivers a steady DC voltage that electronics can use. Most circuits, from a microcontroller board to a small motor driver, need a fixed voltage and a current they can safely draw. The supply’s job is to hold both steady when the mains or the load changes.

Most supplies do this in four stages:

  • Transformation: Steps the mains voltage down to a lower AC voltage. Switch-mode designs work differently, as explained below.
  • Rectification: Diodes pass current in one direction only, which turns AC into pulsing DC.
  • Filtering: Capacitors, and sometimes inductors, smooth the pulses. What remains is called ripple, a small repeating variation in the DC.
  • Regulation: A feedback circuit holds the output at its set voltage, or its set current limit, when the input or the load changes.

Why electronics use DC

Transistors and integrated circuits are designed for a fixed polarity and a fixed supply voltage, so they need DC. AC is useful for moving power over distance, because a transformer can easily change its voltage, but most electronic parts cannot run directly from it. That is why most gadgets contain a converter between the wall and the chips.

Linear and switching supplies

The two main ways to regulate a supply are linear and switching.

Linear supplies place a regulator in series with the output. The regulator holds the voltage steady by dropping the extra voltage and turning it into heat. The design is simple and the output is quiet, but it wastes energy when the input is much higher than the output. A 7805 regulator with 12 V in and 1 A out has about 7 W to shed as heat, which is the voltage drop multiplied by the current.

Switching supplies (SMPS) rectify the mains first, then switch a transistor on and off at high frequency through a much smaller transformer or inductor. The output is controlled by changing the switching pattern. This is more efficient and allows smaller, lighter designs. The trade-off is that fast switching creates electrical noise that needs filtering, and the circuit has more parts. The downsides are covered in what the disadvantages of SMPS are.

The name “switching power supply” describes how the regulator works, not an on/off switch. An SMPS is named after the transistor that switches inside it.

Linear Switching (SMPS)
How it regulates Burns the extra voltage as heat Switches a transistor on and off at high frequency
Efficiency Lower, especially with a large voltage drop Higher
Size and weight Larger, heavier transformer Smaller transformer and components
Output noise Usually quieter Needs filtering to reduce switching noise
Circuit complexity Simpler More complex

Fixed, variable and bench supplies

  • Fixed-output adapters give one voltage, such as 5 V, 12 V or 19 V, for a specific device. Most are sealed. The label gives the ratings, which are explained in how to read a wall adapter label.
  • Variable supplies let you set the voltage. Many also let you set a current limit. Bench supplies are the usual example.
  • Constant voltage and constant current. In constant voltage (CV) mode, the supply holds its set voltage. If the load tries to draw more than the current limit, the supply switches to constant current (CC) mode and the voltage falls. Many bench supplies show which mode they are in. For how to set the limit, see setting the current limit on a bench power supply.

Symbols and terms

  • DC: A solid line above a dashed line is the standard symbol for direct current. AC is marked with a tilde (~).
  • DC source: Usually a cell-style symbol with long and short parallel lines and + and − marks, or a circle containing a DC symbol.
  • Variable supply: Schematics show that a source is adjustable with an arrow or a note beside the source symbol. Drawing styles differ, so check the legend on the schematic.
  • Voltage source: The part of a circuit that provides the voltage, such as a battery or a power supply.

DC outlets, inverters and UPS units

These terms are often mixed up:

  • A DC outlet is any socket or port that supplies DC, such as a 12 V car socket or a barrel jack. See what a DC outlet is.
  • A power supply converts AC to DC, or changes one DC voltage into another.
  • An inverter does the reverse of a power supply. It takes DC from a battery or solar panel and produces AC. See whether DC to AC is a converter or an inverter.
  • A UPS (uninterruptible power supply) combines a battery, a charger and a way to switch to battery power, so that equipment keeps running during an outage. A standalone inverter may take longer to switch over, which makes it suited to different jobs.

Choosing a DC power supply

  1. Voltage. Match the device’s rated voltage. A supply with too high a voltage can damage the device.
  2. Current. The supply’s maximum current must be at least what the device needs. A higher current rating is usually fine, because a device draws only the current it needs. The voltage rule is covered in can you use a higher voltage power adapter.
  3. Polarity and connector. Check the polarity symbol and the plug size before connecting anything.
  4. Current limit. When you test a new or unproven circuit, use a current limit on a bench supply so that a fault cannot draw unlimited current.
  5. Safety marks. For sealed adapters, look for recognised safety certification marks for your country.

Safety basics

Mains wiring can be lethal. Do not open sealed adapters or switch-mode supplies. Their capacitors can keep a dangerous charge after the unit is unplugged. If a unit smells hot, smokes or has a damaged cord, stop using it and replace it.

Where to go next

Keep exploring

Guides from other topics

All topics →