Safety first
When learning, stay with low-voltage sources: batteries, USB power and small regulated adapters. Never open, repair or modify mains-powered equipment, including the inside of a plug-in adapter, unless you are qualified. Batteries can heat, vent or burn if shorted or damaged, so fuse or protect higher-capacity packs and do not improvise with unknown cells. Have a qualified professional do any fixed wiring.
The two numbers that matter
A supply is described mainly by its voltage and its current rating. They play different roles.
- Voltage is set by the supply and expected by the circuit. A circuit designed for 5 volts wants roughly 5 volts. Too low and it may not run or may behave erratically. Too high and parts can be damaged, sometimes instantly.
- Current is demanded by the circuit and offered by the supply. The rating on the supply is the most it can deliver, not an amount it forces through. A circuit draws only what it needs, so a supply rated higher than required is fine, while one rated lower is a problem.
That asymmetry is the core rule. Match the voltage closely, and make sure the current rating is at least what the circuit needs, with some margin. The relationship between voltage and current is explained in more depth in the basics of voltage and current.
Working out how much current you need
Add up what each part draws at its worst case. A hypothetical example, for illustration only:
- a microcontroller board that draws 50 mA
- a sensor that draws 10 mA
- 4 LEDs at 10 mA each, which is 40 mA
The total is 50 + 10 + 40 = 100 mA. Adding about 50 percent as headroom gives 150 mA, so a supply rated for 500 mA or more would be comfortable. Real values come from datasheets and from measuring with a multimeter, and they can differ from a rough guess. Motors, relays, heating elements and radios often have large start-up or peak currents that exceed their average, so size for the peak.
Common sources for small projects
Batteries. They are portable and electrically quiet. Alkaline cells start near 1.5 volts each and drop as they discharge, so a pack’s voltage falls over time. Rechargeable chemistries have different nominal voltages and strict charging rules. Lithium-based cells in particular need proper charging and protection circuits, and the guidance on battery storage matters if you keep them in the workshop.
USB power. A USB charger or port gives about 5 volts, a convenient and widely available option. The current available varies by charger and port, so check the label. Treat USB as a 5 volt source with a limited current, and avoid assuming any port can feed a power-hungry load.
Plug-in wall adapters. These come in many output voltages. Check the label for voltage, current rating and, for older types, whether the output is regulated. Unregulated adapters can output noticeably more than their label when lightly loaded. The connector’s polarity, whether the center pin is positive or negative, is shown by a small symbol and should be confirmed before connecting.
Bench supplies. An adjustable supply with current limiting is a useful tool because you can set the voltage and cap the current, so a wiring error is less likely to destroy parts. If you build or buy one, take it slowly, start from low voltage and watch the current reading.
Regulators and conversion
If your source voltage is higher than the circuit needs, a voltage regulator or converter steps it down. A linear regulator is simple and quiet but wastes the difference as heat, so it can get hot when the gap or the load is large. A switching converter is more efficient but can add electrical noise. Check the regulator’s input and output limits and its maximum current. Many microcontroller boards include a regulator, but its limit is usually modest, which means a motor or long LED strip should not draw from it.
What a poor supply can do
Problems fall into a few groups:
- Overvoltage can destroy chips, capacitors and LEDs, sometimes with a visible failure and sometimes silently.
- Reverse polarity can damage parts with no protection. Some boards include a protective diode, but do not count on it.
- Too little current often does not damage anything. Instead the voltage sags under load, and the circuit resets, flickers, drops a wireless connection or behaves differently each time. These symptoms are easy to blame on software.
- Noise and ripple from a cheap or switching supply can upset sensitive analog readings or radios.
- Overheating can affect a supply that is run near or above its limit for long periods, which is a safety concern as well as a reliability one.
Be wary of unbranded adapters with unrealistic ratings or no safety markings. Certification marks are a reasonable sign of a tested design, though no label is a guarantee.
Practical habits
- Read the voltage requirement from the datasheet or board documentation before connecting power.
- Check the supply label for voltage, current and polarity.
- Measure the supply with a multimeter before connecting your circuit. The section on multimeter readings shows how.
- Share a common ground between parts that exchange signals, even if they have separate supplies.
- Give motors and other heavy loads their own supply path rather than running them from a small regulator.
- Add a fuse or a current limit where a fault could be dangerous, and power up gradually.
If a new build fails to work, the supply is one of the first things to check, a point that fits naturally into any calm circuit troubleshooting routine.