How to Power a Raspberry Pi Pico: USB, VSYS, Batteries and More
The Raspberry Pi Pico is very relaxed about power. Its on-board regulator accepts anything from about 1.8 V to 5.5 V and turns it into the 3.3 V the chip needs, so you can run it from a USB cable, a phone charger, a power bank, AA batteries or a single lithium cell. Here's how each option works, which pins to use, and how to avoid the common mistakes.
This post contains affiliate links. As an Amazon Associate I earn from qualifying purchases, at no extra cost to you.
The power pins
All the power pins are grouped together at the USB end of the board. They're the same on the Pico and Pico W:
- Pin 40 – VBUS: the 5 V from the micro-USB port. It's only live when USB is plugged in.
- Pin 39 – VSYS: the main power input. It accepts 1.8 V to 5.5 V and feeds the on-board regulator.
- Pin 38 – GND: ground (there are other GND pins around the board too).
- Pin 37 – 3V3_EN: pull this to ground to switch the regulator off, which turns the Pico off.
- Pin 36 – 3V3 (OUT): regulated 3.3 V for sensors and modules. Keep the total load under 300 mA.
Option 1: micro-USB
The simplest option. Plug the Pico into a computer, a phone charger or a USB power bank and it just works. This is also the only option that lets you program the board at the same time.
One catch with power banks: some switch themselves off when the current draw is very low, which a Pico running simple code can trigger. If yours keeps turning off, look for a power bank with an "always on" or low-current mode.
Option 2: batteries on VSYS
For portable projects, connect the battery's positive to VSYS (pin 39) and negative to GND (pin 38). Good choices are:
- 3 × AA or AAA batteries: about 4.5 V when fresh, dropping as they run down, all within range.
- 2 × AA batteries: about 3 V, which also works and wastes less energy in the regulator.
- A single lithium-ion or LiPo cell: 3.7 V nominal and 4.2 V when full, a perfect match. Use a proper charging board with battery protection, and never let the cell discharge completely.
Never connect more than 5.5 V to VSYS. A 9 V battery or a 12 V supply will damage the Pico. To use a higher voltage, add a regulator or buck converter that brings it down to 5 V first, then feed that into VSYS.
Using USB and a battery at the same time
The Pico has a Schottky diode between VBUS and VSYS. If you wire a battery straight to VSYS and then plug in USB, the USB supply can push current back into the battery, which is bad news for most batteries.
The fix is to add your own Schottky diode (a 1N5817 is a common choice) between the battery's positive and VSYS, with the stripe facing VSYS. The two sources are then joined safely: whichever voltage is higher powers the Pico, and nothing flows back into the battery. The diode drops a few tenths of a volt, which the Pico doesn't mind.
Option 3: an external 5 V supply
A regulated 5 V supply (for example from a 5 V adapter or a buck converter) can go into VSYS. Feeding it into VSYS rather than VBUS keeps it separate from the USB port, so you won't push power back into your computer if you plug in a USB cable while it's connected.
Switching the Pico off
Wire a switch between 3V3_EN (pin 37) and GND. Closing the switch turns the regulator off, and the Pico with it, without disconnecting the battery. Note that the battery is still connected, so a small current continues to flow. For long-term storage, disconnect the battery completely.
Measuring the supply voltage in MicroPython
On the original Pico, the VSYS voltage is divided by three and connected to the ADC on GPIO29, and GPIO24 tells you whether USB power is present. That makes it easy to check your battery level:
from machine import ADC, Pin
import time
vsys = ADC(29) # ADC3: VSYS divided by 3 (original Pico)
usb_power = Pin(24, Pin.IN) # high when USB power is connected (original Pico)
while True:
volts = vsys.read_u16() * 3 * 3.3 / 65535
source = "USB" if usb_power.value() else "battery"
print("VSYS: {:.2f} V, powered from {}".format(volts, source))
time.sleep(5)
On the Pico W, GPIO29 and GPIO24 are shared with the wireless chip, so this code needs changes there. Check the Pico W datasheet for the details.
Making batteries last longer
- A Pico running simple code typically draws around 20 mA. At that rate, AA batteries rated at about 2,000 mAh last roughly four days of non-stop running.
- Use
machine.lightsleep(ms)between readings instead oftime.sleep(), so the Pico idles at a much lower current. - On a Pico W, switch WiFi off with
wlan.active(False)when you don't need it. The wireless chip is one of the biggest power users. - Turn off LEDs and sensors you aren't using, or power them from a GPIO pin so you can switch them off in code.
Quick reference
- Easiest: micro-USB from a charger, computer or power bank
- Batteries: 2–3 × AA, or one lithium cell, on VSYS (pin 39) and GND
- USB plus battery: add a Schottky diode between the battery and VSYS
- Never: more than 5.5 V on VSYS
- On/off switch: between 3V3_EN (pin 37) and GND

Comments
Post a Comment
Questions, corrections and tips are welcome. Comments are checked before they appear, so yours may take a little while to show up. Please don't post personal details.