Powering Your Projects

Batteries, regulators, 3.3 V versus 5 V, common ground, and why you never power motors from the Pico.

By Kevin McAleer,    6 Minutes

Page last updated November 24, 2026


Course Cover Image


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.

Overview

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.

Batteries

  • AA alkaline: 1.5 V each (1.6 V fresh, dropping as they drain). Easy, cheap, safe. Three give 4.5 V, four give 6 V.
  • AA NiMH rechargeable: 1.2 V each. Four give 4.8 V, which is great for the Pico’s VSYS pin.
  • LiPo / Li-ion: 3.7 V nominal each (4.2 V full, 3.0 V empty). Light and powerful, but they need respect. A short circuit, a puncture or a crush can cause fire. Never short them or damage them, never discharge below about 3.0 V per cell, and charge them only with a proper LiPo charger. Use a protected cell or add a protection board, and never leave a charging battery unattended.
  • 9 V PP3: tiny capacity, high resistance. It is usually a poor choice for robots.

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.

Regulators

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.

  • Linear regulator (for example the 7805, AMS1117): simple, quiet, but it burns the extra voltage as heat. Heat is (Vin - Vout) x current.
  • Buck converter (switching): much more efficient, a bit noisier. Cheap modules are widely available.
# 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.

3.3 V versus 5 V

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:

  • USB: 5 V arrives at the VBUS pin (physical pin 40), and the Pico makes its own 3.3 V.
  • VSYS (physical pin 39): accepts roughly 1.8 V to 5.5 V, so three AA cells work nicely. Check the polarity twice before connecting a battery.
  • 3V3(OUT) (physical pin 36): a 3.3 V output for your circuits, up to about 300 mA shared between everything you hang on it.

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

Common ground

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.

Why not power motors from the Pico?

  • Current: a small motor draws 200 mA running and more than 1 A when stalled. The Pico’s 3V3 pin gives up to about 300 mA and a GPIO pin only a few milliamps.
  • Noise: motors create electrical spikes that can reset the Pico or corrupt ADC readings.
  • Brownouts: if the motor takes a gulp of current, the voltage sags, and the Pico reboots.

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:

  • Shorting battery terminals, even for a moment. Keep wires tidy, and fit a fuse on bigger packs.
  • Joining a 5 V signal to a Pico pin.
  • Forgetting the common ground.

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.

Try it Yourself

  1. Work out how long your battery pack would last running a 100 mA load.
  2. Measure the voltage of your battery pack with a multimeter under no load, then with the LED circuit connected.
  3. Challenge: work out the heat from a 7805 running 12 V to 5 V at 300 mA. Would you add a heatsink?

Common Issues

  • Problem: The Pico resets when something else switches on.
  • Solution: Give the big load its own supply, and add a capacitor (100 uF) across the Pico’s power.
  • Why: The load pulls the shared voltage down for a moment.

  • Problem: A transistor does not switch when the load has its own supply.
  • Solution: Connect the two grounds together.
  • Why: The base voltage needs the same zero as the emitter.

Check your understanding

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?

< Previous Next >

Was this lesson helpful?

Course complete

Congratulations, you finished Electronics basics!

That's all 16 lessons done. Let people know, it's a great way to inspire someone else to start.

Share card: I completed Electronics basics on KevsRobots
Post Bluesky LinkedIn Facebook


What are you looking for?
Watch Videos Get Ideas Learn Something Read a Review Read the Blog Search
... Z Z z