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.
- 2 pins
- 2 settings
- In 1 project
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)
2 pins
Named as the editor names them, so a wire lands where you expect 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.
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.
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.
See the USB power in a project
One built-in project uses it. It opens in the editor, already wired.
The rest of the bench
Every one of these is drawn and simulated the same way.
Wire up the USB power
Open the editor and push it into the breadboard. It is free, and it runs on your own machine.