Buying guide · Beginner · 3 min read
Choosing a Power Supply
SMPS, Adapters and Wall Chargers
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
Match the voltage exactly and choose a current rating at least 20 to 30% above what your project draws. A wall adapter suits up to about 5 A, an enclosed SMPS suits LED strips and motors at higher current, and USB-C Power Delivery gives 5 to 20 V up to 100 W. Check plug size and polarity, and buy certified supplies, because cheap unbranded ones can be unsafe.
Key specs at a glance
- Voltage
- Match the device exactly (5, 9, 12, 24 V)
- Current
- Device total + 20 to 30% headroom
- Barrel jack
- 5.5 x 2.1 mm or 5.5 x 2.5 mm, usually centre positive
- Enclosed SMPS
- 12 or 24 V, 5 to 30 A, screw terminals; needs a mains cable and enclosure
- USB-C PD
- 5, 9, 12, 15, 20 V negotiated; needs a PD trigger board
- Certification
- BIS mark for supplies sold in India
Sizing a supply in three steps
- 1List the loads: a microcontroller board (0.05 to 0.3 A), sensors, displays, motors and servos (use stall or peak current), LED strips (about 60 mA per WS2812B at full white).
- 2Add them up at the supply voltage, converting through regulators: a 5 V 2 A load on a buck converter from 12 V draws about 1 A at 12 V.
- 3Add 20 to 30% headroom. Supplies run hot and droop near their limit.
The power supply sizing calculator does this for you, and the LED strip power calculator handles strips.
Types of supply
| Type | Range | Pros | Cons |
|---|---|---|---|
| Wall adapter (SMPS) | 5 to 24 V, up to about 5 A | Safe, plug-in, cheap | Limited current; fixed plug |
| Enclosed SMPS ('LED driver' box) | 12/24 V, 5 to 30 A | High current, adjustable trimmer | Exposed mains terminals; must be enclosed |
| USB charger | 5 V, 1 to 3 A | Everywhere | 5 V only unless PD/QC |
| USB-C PD + trigger board | 5 to 20 V, up to 100 W (more with EPR) | One charger for many projects | Needs a PD trigger or PD-capable device |
| Linear transformer supply | Any | Very low noise | Heavy, inefficient |
| Bench power supply | 0 to 30 V adjustable | Current limit protects prototypes | For the bench, not installed projects |
- Wall adapter (SMPS)
- Range:
- 5 to 24 V, up to about 5 A
- Pros:
- Safe, plug-in, cheap
- Cons:
- Limited current; fixed plug
- Enclosed SMPS ('LED driver' box)
- Range:
- 12/24 V, 5 to 30 A
- Pros:
- High current, adjustable trimmer
- Cons:
- Exposed mains terminals; must be enclosed
- USB charger
- Range:
- 5 V, 1 to 3 A
- Pros:
- Everywhere
- Cons:
- 5 V only unless PD/QC
- USB-C PD + trigger board
- Range:
- 5 to 20 V, up to 100 W (more with EPR)
- Pros:
- One charger for many projects
- Cons:
- Needs a PD trigger or PD-capable device
- Linear transformer supply
- Range:
- Any
- Pros:
- Very low noise
- Cons:
- Heavy, inefficient
- Bench power supply
- Range:
- 0 to 30 V adjustable
- Pros:
- Current limit protects prototypes
- Cons:
- For the bench, not installed projects
Plugs, polarity and wiring
Barrel plugs look alike but come in 5.5 x 2.1 mm and 5.5 x 2.5 mm; the wrong one fits loosely and cuts out. Most adapters are centre positive (shown by a symbol with + in the middle), but check, because reversed polarity can destroy a board without protection. Add a series diode or a P-channel MOSFET for reverse protection on your own boards. For high currents, use screw terminals or proper connectors and wire thick enough for the current; see wire gauges.
Safety with mains supplies
Enclosed SMPS units have exposed mains screw terminals. Mount them in a closed box with a strain-relieved, earthed mains cable and a fuse, and keep fingers and loose wires away. Buy supplies with a BIS registration mark and from known brands; very cheap units often lack proper isolation between mains and output. Never open or modify a plugged-in supply, as capacitors inside can hold a charge after unplugging. See AC vs DC.
Try it: Power supply sizing calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Using a higher-voltage adapter 'because the current is higher'.
- Sizing to running current and ignoring motor stall or LED peaks.
- Leaving enclosed SMPS mains terminals exposed.
- Assuming every barrel plug is centre positive.
- Running 10 A through thin jumper wires.
Frequently asked questions
Can I use a 12 V 5 A adapter for a device that needs 12 V 2 A?
Yes. The device draws only what it needs. Voltage must match; a higher current rating is fine.
Can I use a 12 V adapter on a 9 V device?
Not directly. Too much voltage can damage it. Use the correct adapter or a regulator rated for the current.
What is an SMPS?
A switch-mode power supply: it converts mains to DC efficiently by switching at high frequency, making it smaller and lighter than a transformer supply.
How do I power a project from USB-C PD?
Use a USB-C PD trigger board set to the voltage you need (for example 12 V) and a charger that supports that voltage and enough watts.
How much current does my project need?
Add up every load at its peak, including motor stall and LED full-white current, then add 20 to 30% headroom.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
- Mean Well SMPS product documentation
- USB Implementers Forum USB Power Delivery overview
- Bureau of Indian Standards compulsory registration scheme
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



