Skip to content

Power Supplies: Batteries, Adapters, and Regulators (Beginner’s Guide)

Introduction

Every electronic device needs a power source. Without it, your clever circuits are just lifeless collections of components. But not all power is created equal—plugging the wrong voltage into a circuit can burn it out faster than you can say “magic smoke.”

In this guide, we’ll explore the most common power supplies for electronics:

  • Batteries (portable)
  • Adapters (plug‑in wall power)
  • Regulators (to give stable, safe voltage like 5V or 3.3V)

We’ll also touch on famous regulators like the 7805LM317, and the modern buck converter so you’ll know exactly how to feed your circuits reliably.

See The Video Tutorial

What is a Power Supply?

power supply provides the electrical energy that runs a device. It converts raw input power (like AC from a wall socket or charge from a battery) into a safe, usable voltage and current.

👉 Think of it as the “diet plan” for your circuit—feeding it exactly the right amount of energy, not too much (burnout) or too little (doesn’t run).

Types of Power Sources

  1. Batteries
  • Provide portable DC power.
  • Available in many types: AA, AAA, coin cells, Li‑ion, 9V.
  • Great for small projects and portability.
  • ⚠ Downside: Limited life, need recharging or replacing.
  1. Wall Adapters (Power Bricks)
  • Convert household AC (110/230V) into low‑voltage DC (like 12V, 9V, 5V).
  • Commonly used for Arduinos, routers, and small electronics.
  • Advantage: Provide steady power as long as you’re plugged in.
  1. Bench Power Supplies
  • Adjustable lab devices used by engineers.
  • Can dial in exact voltages and currents.
  • Ideal for testing, but too bulky for daily use in mobile projects.

Popular Voltage Regulators

  1. 7805 Voltage Regulator
  • Fixed 5V linear regulator from the 78xx family (where xx = output voltage).
  • Very popular for powering Arduino, LEDs, and sensors.
  • Works like: Input 7–12V → Output steady 5V.
  • Simple and cheap, but wastes power as heat (not efficient for high currents).
  1. LM317 Adjustable Regulator
  • Linear regulator with adjustable output (1.25V to ~37V).
  • Needs two external resistors to “set” the output voltage.
  • Used when you need a custom voltage supply for specific circuits.
  • Again, less efficient than switching regulators, but precise and easy to use.
  1. Buck Converter (Switching Regulator)
  • Modern, efficient regulators.
  • Step‑down (buck) converters reduce higher DC to lower DC efficiently.
  • Advantage: Very little energy wasted as heat.
  • Example: 12V down to 5V with >90% efficiency (vs ~60% for linear regulators).
  • Perfect for projects with batteries where you want longer runtime.

Quick Comparison: 7805, LM317, Buck Converter

Feature 7805 (Fixed) LM317 (Adjustable) Buck Converter (Switching)
Output Voltage 5V fixed 1.25–37V adjustable Adjustable (step‑down)
Efficiency Low (heat) Low‑medium High (>90%)
Complexity Very simple Simple (needs resistors) Moderate (inductor + switch)
Use Case Classic 5V circuits Custom voltages Battery saving / efficiency

Applications of Power Supplies

  • Arduino Projects: 9V battery (with 7805 regulator) gives safe 5V.
  • Robotics: Batteries with buck converters power motors + logic.
  • Laptops/Chargers: Adaptors with regulated outputs (like USB‑C 5V/9V/12V).
  • DIY Electronics: LM317 used to create custom lab supplies.
  • LED Strips: Buck converters regulate down from 12V supplies.

Quick Comparison: 7805, LM317, Buck Converter

Feature 7805 (Fixed) LM317 (Adjustable) Buck Converter (Switching)
Output Voltage 5V fixed 1.25–37V adjustable Adjustable (step‑down)
Efficiency Low (heat) Low‑medium High (>90%)
Complexity Very simple Simple (needs resistors) Moderate (inductor + switch)
Use Case Classic 5V circuits Custom voltages Battery saving / efficiency

Safety Tips for Beginners

  • Always check your input power source (don’t blow a 5V circuit with a 12V supply).
  • Heat sinks required for linear regulators (7805/LM317 at high current).
  • Double-check polarity: backwards connection = fried regulator.
  • Don’t short circuit your power rails—it’ll cook components and regulators.

FAQs

Q: Why not power Arduino directly from a 9V battery?
A: You can, but battery drains very fast. Use a regulator (like 7805 or a buck converter) for efficiency.

Q: What’s better: Linear regulator or buck converter?
A: Linear regulators (7805, LM317) = simplicity, low noise, but wasteful. Buck converters = efficient, best for battery projects.

Q: Can I step up voltage with these regulators?
A: No, 7805 and LM317 only step down. For stepping up, you need a boost converter.