Ugenz Academy/IoT Tutorial

Power Supplies

12 min read2,224 words

Reading progress

Keep learning

Power Supplies in Electronics

1. Introduction

A power supply is an electronic device or circuit that provides the electrical energy required to operate electronic components and systems. It supplies the required voltage and current to devices such as microcontrollers, sensors, computers, amplifiers, and communication equipment.

Most electronic circuits require a stable DC (Direct Current) supply, while the electricity available from a wall outlet is typically AC (Alternating Current). A power supply can convert AC into DC and regulate the output to meet the requirements of the connected circuit.

Power supplies are essential in computers, mobile chargers, televisions, IoT devices, laboratory equipment, and industrial control systems.

2. Functions of a Power Supply

A power supply performs several important functions:

  • Voltage conversion: Changes the input voltage to a suitable level.
  • Rectification: Converts AC into unidirectional voltage when required.
  • Filtering: Reduces unwanted fluctuations in the rectified output.
  • Voltage regulation: Maintains a reasonably stable output voltage.
  • Protection: May provide protection against overcurrent, overvoltage, overheating, or short circuits.

Not every power supply uses all these stages. For example, a battery already provides DC, while a switching power supply may use high-frequency conversion rather than a traditional line-frequency transformer.

3. Types of Power Supplies

Power supplies can be classified according to their output, operating principle, and application.

The main types include:

  1. AC power supplies
  2. DC power supplies
  3. Linear power supplies
  4. Switching-mode power supplies (SMPS)
  5. Regulated power supplies
  6. Unregulated power supplies
  7. Programmable power supplies
  8. Battery-based power supplies

4. AC Power Supply

An AC power supply provides alternating voltage or current. In AC, the direction of current changes periodically.

AC electricity is commonly used in residential, commercial, and industrial power distribution.

Characteristics

  • Voltage alternates periodically.
  • Commonly used for transmitting and distributing electrical power.
  • Can be transformed to different voltage levels using suitable transformers.
  • Many electronic devices convert AC input into DC internally.

Applications

  • Household electrical equipment
  • Industrial machinery
  • AC motors
  • Laboratory testing
  • Electrical distribution systems

5. DC Power Supply

A DC power supply provides direct current or a DC voltage with a fixed polarity. Its output may be constant or may contain some ripple, depending on the design.

DC power is widely used by electronic circuits because transistors, integrated circuits, sensors, and microcontrollers typically require DC supply rails.

Characteristics

  • Has defined positive and negative terminals.
  • Provides power suitable for DC electronic circuits.
  • May be regulated or unregulated.
  • Can be supplied by batteries, adapters, or electronic conversion circuits.

Applications

  • Arduino and ESP32 boards
  • Sensors and actuators
  • Computers and communication equipment
  • LED circuits
  • Electronic development boards

6. Basic Block Diagram of a DC Power Supply

A traditional AC-to-DC power supply commonly contains four main stages.

AC Input

Alternating voltage

Transformer

Changes AC voltage when required

Rectifier

Converts AC into pulsating DC

Filter

Reduces output ripple

Voltage Regulator

Stabilizes the output voltage

Regulated DC Output

This is a simplified block diagram of a conventional linear-style supply. Many modern switching supplies use different circuit arrangements.

7. Transformer

A transformer is an electrical device that transfers energy between two or more windings through electromagnetic induction.

In a traditional power supply, a transformer may step down a high AC voltage to a lower AC voltage suitable for electronic circuits.

Types of transformers

  • Step-down transformer: Reduces AC voltage.
  • Step-up transformer: Increases AC voltage.
  • Isolation transformer: Provides electrical isolation between circuits.

For an ideal transformer, the voltage ratio is:

VsVp=NsNp\boxed{\frac{V_s}{V_p}=\frac{N_s}{N_p}}

Where:

  • VsV_s = secondary voltage
  • VpV_p = primary voltage
  • NsN_s = number of secondary turns
  • NpN_p = number of primary turns

Applications

  • AC-to-DC power supplies
  • Electrical isolation
  • Voltage conversion
  • Power distribution

Traditional transformers require changing magnetic flux, so they operate with AC rather than steady DC. Switching power supplies may instead use compact high-frequency transformers.

8. Rectifier

A rectifier converts alternating current into a unidirectional output using semiconductor devices, usually diodes.

Rectification is an important stage in many AC-to-DC power supplies.

Types of rectifiers

8.1. Half-Wave Rectifier

A half-wave rectifier typically uses one diode to pass one half-cycle of an AC input while blocking the other half-cycle.

Characteristics:

  • Simple circuit
  • Uses only one half-cycle
  • Produces relatively high ripple
  • Has lower average output for a given AC input than a full-wave rectifier

Applications: Basic demonstrations and some low-power circuits.

8.2. Full-Wave Rectifier

A full-wave rectifier uses both half-cycles of the AC input to produce a unidirectional output.

Common implementations include:

  • Centre-tapped full-wave rectifier
  • Bridge rectifier

A bridge rectifier commonly uses four diodes.

Advantages:

  • Uses both half-cycles.
  • Produces a higher average output than a half-wave rectifier under comparable conditions.
  • Has ripple at twice the AC input frequency.

Applications: Adapters, chargers, and conventional DC supplies.

9. Filter Circuit

The output of a rectifier contains fluctuations called ripple. A filter circuit reduces these fluctuations to produce smoother DC.

A capacitor is commonly connected across the rectifier output. It charges near the waveform peaks and discharges into the load between peaks.

Types of filters

  • Capacitor filter
  • Inductor filter
  • LC filter
  • Pi filter

Capacitor filter

A capacitor filter is simple and commonly used in low-power DC supplies.

Its effectiveness depends on capacitance, load current, ripple frequency, and the rectifier arrangement.

Applications

  • DC adapters
  • Amplifier power supplies
  • Sensor circuits
  • Electronic equipment

10. Voltage Regulator

A voltage regulator maintains the output voltage within a specified range despite changes in input voltage or load current, provided the device operates within its limits.

Voltage regulation is important because electronic components can malfunction or become damaged if the supply voltage is unsuitable.

Types of voltage regulators

Linear regulators

These regulate voltage by controlling a series or shunt element. They are generally simple and produce low output noise, but can waste considerable power when the voltage drop is large.

Examples include the 7805 fixed-voltage regulator and adjustable LM317.

Switching regulators

These regulate voltage by rapidly switching electronic devices and transferring energy through inductors, capacitors, or transformers.

They are generally more efficient than linear regulators for large voltage changes.

Applications

  • Microcontroller supply rails
  • Sensor power circuits
  • Communication devices
  • Battery-powered electronics
  • Industrial control boards

11. Linear Power Supply

A linear power supply regulates voltage using a linear regulating element. A traditional design commonly includes a transformer, rectifier, filter, and linear regulator.

Advantages

  • Simple design
  • Low output noise in many implementations
  • Good regulation for suitable operating conditions
  • Useful for sensitive analog circuits

Disadvantages

  • Lower efficiency when the voltage drop is large
  • Can produce significant heat
  • Often heavier when using a line-frequency transformer
  • May require a large heatsink

Applications

  • Laboratory bench supplies
  • Analog audio circuits
  • Sensitive measurement equipment
  • Low-noise electronic circuits

12. Switching-Mode Power Supply (SMPS)

A Switching-Mode Power Supply (SMPS) regulates voltage by switching electronic components at high frequency and controlling the transfer of energy.

SMPS designs can convert AC to DC, DC to DC, or DC to AC, depending on the circuit topology.

Working principle

  1. The input is converted into a suitable electrical form.
  2. Switching devices operate at high frequency.
  3. Energy is transferred through inductors, capacitors, or transformers.
  4. Feedback circuitry adjusts switching operation to regulate the output.

Advantages

  • High efficiency in many applications
  • Compact size and lower weight
  • Suitable for a wide range of input and output voltages
  • Less heat generation than an equivalent linear design in many cases

Disadvantages

  • More complex circuitry
  • Can generate electrical noise and electromagnetic interference
  • Requires careful circuit layout and filtering
  • Troubleshooting can be more difficult

Applications

  • Laptop adapters
  • Mobile phone chargers
  • Computer power supplies
  • LED drivers
  • Networking equipment
  • Embedded systems

13. Linear Power Supply vs. SMPS

FeatureLinear power supplySMPS
Regulation methodLinear controlHigh-frequency switching
EfficiencyOften lower for large voltage dropsOften higher
Size and weightMay be larger and heavierUsually smaller and lighter
Output noiseGenerally lowSwitching noise may be present
Circuit complexityUsually simplerUsually more complex
Heat generationCan be highOften lower for equivalent power
Common useLow-noise bench suppliesChargers and computer supplies

The best choice depends on the required output, noise level, efficiency, cost, and application.

14. Regulated and Unregulated Power Supplies

Regulated power supply

A regulated power supply is designed to maintain its output voltage within a specified range despite reasonable changes in input voltage or load.

It is useful for circuits that require a stable supply.

Unregulated power supply

An unregulated power supply does not actively maintain a constant output voltage. Its output may change significantly as the input voltage or load current changes.

Comparison

FeatureRegulatedUnregulated
Output stabilityBetter within operating limitsVaries more with load and input
Circuit complexityUsually higherUsually lower
Typical costMay be higherMay be lower
Common useDigital and sensitive circuitsSimple applications with tolerant loads

15. Important Power Supply Parameters

Several specifications are used to select a suitable power supply.

  • Input voltage: The voltage the supply is designed to accept.
  • Output voltage: The voltage delivered to the load.
  • Output current rating: The maximum current the supply is designed to deliver under specified conditions.
  • Power rating: The maximum rated output power.
  • Efficiency: The proportion of input power converted into useful output power.
  • Ripple: Residual periodic variation in the DC output.
  • Load regulation: How much the output changes as the load changes.
  • Line regulation: How much the output changes as the input changes.
  • Protection: Features such as overcurrent, overvoltage, thermal shutdown, and short-circuit protection.

Power calculation

Electrical power in a DC circuit is calculated as:

P=VI\boxed{P=VI}

Where:

  • PP = power in watts
  • VV = voltage in volts
  • II = current in amperes

For example, a 5 V supply delivering 2 A provides:

P=5×2P=5\times2 P=10 W\boxed{P=10\text{ W}}

The supply must be suitable for the load's voltage, current, and transient requirements.

16. Common Power Supplies Used in Electronics

USB-A Port PD 18W Wall Charger,Wall/Car Charger

USB Power Adapter

Converts mains electricity into a regulated low-voltage output for compatible electronic devices.

Applications: phones, development boards, small electronics.

Source d'alimentation de laboratoire 0-120V/0-3A | Lumimania

Laboratory Bench Power Supply

Provides adjustable voltage and usually adjustable current limiting for testing circuits.

Applications: electronics labs, circuit development, troubleshooting.

Bravvo - LM7805-5V 1A regulator in TO-220 package

Voltage Regulator Module or IC

Regulates a suitable input voltage to a stable output within the component's operating limits.

Applications: microcontrollers, sensors, low-voltage circuits.

18650 3.7V 2000mAh Lithium Ion Battery Lithium Rechargeable Battery Cells - 18650 2000mAh 3.7V Cell and 18650 Lithium Ion Battery Cell

Battery-Based Supply

Stores chemical energy and delivers DC power without requiring a mains connection.

Applications: portable electronics, robotics, IoT projects.

17. Power Supplies in IoT and Microcontroller Projects

Power supplies are especially important in projects using Arduino, ESP32, sensors, relays, and motors.

For example:

  • An ESP32 development board may accept USB power, but its onboard regulator and board design determine the usable input range.
  • Sensors may require 3.3 V, 5 V, or another specified voltage.
  • Motors and servos often require a separate supply capable of handling their startup and stall currents.
  • A common ground is generally required when separate DC supplies power devices that exchange logic signals, unless the interface is intentionally isolated.

The supply must meet the voltage and current requirements of each component. An inadequate supply can cause resets, unstable readings, overheating, or component damage.

18. Power Supply Safety

Electrical safety is essential when working with power supplies.

  • Never touch exposed mains-voltage conductors.
  • Use properly rated, insulated power supplies and cables.
  • Disconnect power before changing circuit connections.
  • Check polarity before connecting DC power.
  • Avoid short-circuiting battery terminals.
  • Use suitable fuses and overcurrent protection where required.
  • Do not exceed the voltage, current, or thermal ratings of components.
  • Remember that capacitors may retain dangerous charge after a supply is disconnected.

For beginners, use a certified, isolated low-voltage adapter or a current-limited bench supply rather than working directly with mains electricity.

19. Summary

A power supply provides the electrical energy required by an electronic circuit. It may convert voltage, rectify AC, filter ripple, regulate the output, and protect connected components.

Linear supplies are often chosen for simplicity and low noise, while SMPS designs are widely used for their efficiency and compact size. Understanding voltage, current, power, regulation, ripple, and safety helps ensure that electronic circuits operate reliably.

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy