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

Part

# 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.

See every part

- 2 pins
- 1 setting
- In 10 projects
- In 1 lesson

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

At a glance

## 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)

Pins

## 2 pins

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

Pin

What it does

V+

The center pin, positive.

V-

The sleeve, negative. Nothing connects it to ground but a wire.

How to use 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.

Part pin

Board pin

V+

LM2596 IN+

V-

LM2596 IN-

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 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.

Projects

## See the DC jack and adapter in a project

10 built-in projects use it. Each opens in the editor, already wired.

Lessons

## Where it turns up in a lesson

One lesson places it in its own circuit.

### Learn articles

1 lesson

- LM2596 Buck Converter: Power an Arduino From 12 V

Boards

## The boards it is shown on

This board has a built-in project with the DC jack and adapter in it.

- Arduino Uno R3

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 DC jack and adapter

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
