DC jack and adapter
A DC barrel jack with a wall adapter in it: 12, 9 or 5 V, center positive, up to its rated current.
- 2 pins
- 1 setting
- In 9 projects
- In 1 lesson
The DC jack and adapter in brief
What it is, and every setting the properties panel gives it.
The 5.5 by 2.1 millimeter barrel jack with a wall adapter in it is where most Arduino projects end up. The jack brings the adapter out on two pins, V+ on the center pin and V- on the sleeve. Mokxi offers 12 V 1 A, 12 V 2 A, 9 V 1 A and 5 V 2 A adapters, each a regulated supply with its knobs fixed: the voltage behind 10 milliohms with 10 microfarads across the output, holding steady until the load asks for more than the label’s current. Into 24 ohms a 12 V adapter gives half an amp at 12 volts; into 6 ohms the 1 A adapter holds 1 amp and its output falls to 6 volts, while the 2 A one stays at 12. The classic mistake is feeding 12 volts to an Uno’s 5V pin: a 7 to 12 volt adapter belongs on VIN or the board’s own jack, through its regulator. Fold-back and hiccup past the rating, ripple, cable resistance and the old unregulated adapters are not modeled.
- Family
- Power and wiring
- Pins
- 2
- adapter
- 12V 1A (or 12V 2A, 9V 1A, 5V 2A)
2 pins
Named as the editor names them, so a wire lands where you expect it.
How to power an Arduino from a wall adapter
Wire V+ to the positive input of whatever comes next and V- to its ground. On an Uno a 7 to 12 V adapter goes through a regulator, the board’s own on VIN or a buck module like the LM2596 here, never straight onto the 5V pin. The project here takes a 12 V 1 A adapter through an LM2596 set to 5 V, and A0 reads the adapter through a 10k and 4.7k divider. Switch the adapter to 9V 1A while it runs and the printed reading follows.
What is true about the DC jack and adapter, here
In its help article’s own words: what the simulation gets right, and where it stops.
Modeled
A regulated adapter is a supply with its knobs fixed. It is the bench supply's model under another name: the adapter's voltage behind 10 milliohm, with 10 uF across the output, until the load asks for more than the rated current. Into 24 ohm a 12 V adapter gives half an amp at 12 V. Into 6 ohm it would have to give 2 A: the 1 A adapter holds 1 A instead and the voltage falls to 6 V, and the 2 A adapter holds 12 V.
Not modeled
What a real adapter does past its rating varies: many fold back or hiccup, switching off and trying again, rather than holding the current, so the model's current limit is the gentlest version of it. Also left out: a switching adapter's ripple, the few percent its label allows, the cable's resistance, and the old unregulated transformer adapters, which read well above their label with nothing on them.
From DC barrel jack and wall adapter, in full.
See the DC jack and adapter in a project
9 built-in projects use it. Each opens in the editor, already wired.
Where it turns up in a lesson
One lesson places it in its own circuit.
The boards it is shown on
This board has a built-in project with the DC jack and adapter in it.
The rest of the bench
Every one of these is drawn and simulated the same way.
Wire up the DC jack and adapter
Open the editor and push it into the breadboard. It is free, and it runs on your own machine.