By Kevin McAleer, 6 Minutes
Page last updated November 24, 2026

By the end of this lesson you will be able to choose a power source for a project, explain why grounds must be shared, and say why motors never run from a Pico pin.
A robot with great code and the wrong power supply will reset, stutter or give strange readings. Power is the quiet reason behind many mysterious faults. In this lesson we cover the power choices you will meet, the number one rule about grounds, and the reason motors never run from the Pico.
Battery life is easy to estimate:
# Run on your computer or the Pico
# Estimate battery life
capacity_mah = 2000 # typical AA alkaline
load_ma = 40 # Pico plus LED, roughly
hours = capacity_mah / load_ma
print(f"About {hours:.0f} hours ({hours / 24:.1f} days)")
Output:
About 50 hours (2.1 days)
Real life is somewhat less, because capacity drops under heavier loads.
Your robot may have a 6 V battery but chips that want 3.3 V or 5 V. A regulator converts one to the other.
# Run on your computer or the Pico
# How much heat does a linear regulator make?
vin, vout, amps = 9.0, 5.0, 0.2
watts = (vin - vout) * amps
print(f"Wasted as heat: {watts:.1f} W")
Output:
Wasted as heat: 0.8 W
0.8 W is enough to make a small regulator too hot to touch, so a buck converter is better here.
The Pico’s chip runs at 3.3 V. Its GPIO pins are not 5 V tolerant: feeding 5 V into a pin can damage it. The Pico can be powered from:
Two supplies, two positive lines, one shared ground:
flowchart LR
U["USB 5 V"] --> P["Pico<br>makes its own 3.3 V"]
B["Battery pack"] --> M["Motor or big load<br>via a transistor"]
P -->|"signal from a GPIO pin"| M
P --- G["Common ground"]
B --- G
M --- G
If two supplies are connected to the same circuit, say the Pico on USB and a battery pack for the LED, their grounds must be joined. Voltage is a difference between two points, so signals need a common reference. Without it, the transistor’s base has no defined voltage compared with its emitter, and nothing switches reliably.
Rule: separate positive supplies, shared ground.
Give motors their own battery, use a driver to switch them, and join the grounds. We cover this in the Motors and motor drivers course.
Why this matters: half of “my robot resets when the motors start” stories end here.
Common mistakes:
Teachers: keep classroom projects on AA cells or USB. LiPo cells are a fire risk if shorted, crushed or charged badly, so many schools ban them, and charging should only ever be done by an adult with a proper charger. Fit new batteries out of reach of any metal tools, and never let learners connect battery packs end to end or to mains-powered chargers.
Why: The load pulls the shared voltage down for a moment.
Quick quiz 1 of 3
Two separate supplies power one circuit. What must you connect together?
Quick quiz 2 of 3
Why is a linear regulator going from 9 V to 5 V at 200 mA a poor choice?
Quick quiz 3 of 3
Why should motors not be powered from the Pico’s 3V3 pin or GPIO pins?
Comments