Source: https://mokxi.com/parts/usbpower
Updated: 2026-11-16

Part

# USB power

USB power: a 5 V USB-C or micro-USB breakout, or a PD trigger asking a charger for 9 to 20 V.

See every part

- 2 pins
- 2 settings
- In 1 project

Drawn live by the editor's own code, at the size you see it.

At a glance

## The USB power in brief

What it is, and every setting the properties panel gives it.

A USB-C or micro-USB breakout brings USB’s 5 volts out on two header pins, VBUS and GND, for a breadboard. A PD trigger board, a CH224K or ZY12PDN style module, goes further and asks a USB Power Delivery charger for 9, 12, 15 or 20 volts. Mokxi’s part is the bench supply’s model with its knobs fixed: the voltage behind 10 milliohms up to a current limit set by what the cable is plugged into. A computer’s port gives 0.5 amps, a USB 2.0 port’s limit; a micro-USB charger 1.5 amps; a USB-C charger 3 amps; and the PD kinds 3 amps at their voltage. Past the limit the rail falls, so a 5 ohm load on a computer port sits at 2.5 volts. The common mistakes are running a motor from a laptop’s half an amp, and a 20 volt PD trigger on a 5 volt part. The negotiation itself is not modeled: a PD kind always gets its voltage, where a real trigger in a computer port stays at 5 volts, and a real overloaded port switches off rather than limiting.

Family

Power and wiring

Pins

2

kind

usb-c (or micro-usb, pd-9v, pd-12v, pd-15v, pd-20v)

source

charger (or computer)

Pins

## 2 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

What it does

VBUS

The USB supply.

GND

Ground.

How to use it

## How to use a USB-C power breakout

Wire VBUS to the breadboard’s red rail and GND to the blue one, then set source to computer or charger to match what the cable is plugged into. The project here feeds an AP2112K-3.3 regulator from a computer port, and its 3.3 V output lights a red LED through 330 ohms, about 5 mA.

Put a 4.7 ohm resistor across VBUS and GND while it runs: an amp is more than a computer port’s half an amp, and VBUS falls. Set source to charger and it holds 5 V. A PD trigger kind gives its 9 to 20 V right away, so check what is on the rail first.

Part pin

Board pin

VBUS

Red rail, to the regulator’s IN

GND

Blue rail, to the regulator’s GND

An AP2112K-3.3 from 5 V is how most ESP32 boards make their 3.3 V, so this is the same supply an ESP32 runs on.

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

How it is modeled

## What is true about the USB power, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Modeled

It is a supply with a limit. The bench supply's model with its knobs fixed at the
volts and amps above: the voltage behind 10 milliohm until the load asks for more
than the port gives. A 5 ohm load on a computer's port would draw an amp at 5 V; the
port holds half an amp and the rail falls to 2.5 V.

### Not modeled

Not every trigger chip offers every voltage. The CH224K asks for 5, 9, 12, 15 or 20
V; the IP2721 only for 5, 15 or 20 V, so a 9 V or 12 V board is a CH224K or
similar. A PD trigger only gets its voltage from a USB PD charger. Plugged into a computer
port or an older charger it stays at 5 V, which the part does not do: source does
not apply to the PD kinds, and they always give what they ask for. The negotiation
itself, data, a long cable's voltage drop, and the way a real port switches off when
it is overloaded are not modeled either.

From USB power, in full.

Projects

## See the USB power in a project

One built-in project uses it. It opens in the editor, already wired.

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the USB power

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
