USB vs barrel jack: power and programming on a board
A board can be powered and programmed through its USB connector, or supplied through the VIN input of an external adapter. Our records describe the connector and the pin, not a product preference.
Study guideElectronicsPower
The recorded difference
The board data records a USB-B connector for the Uno and a Mini-USB connector for the Nano. It also records pins 0 and 1 as the serial line: when a sketch uses those pins, the serial monitor stops working. That is the practical reason our guides keep the serial pair free while students print sensor values.
The circuit pin model lists VIN as a separate named pin next to the 5V and 3V3 pins. The barrel jack name refers to the common connector used on an external adapter feeding that VIN path; our circuit pages do not specify an adapter or make a recommendation about one. The servo guide makes the same general point from the load side: take motor current from a separate supply line and join the grounds.
USB vs barrel jack side by side
| Question | USB | barrel jack |
|---|---|---|
| Connector recorded in our model | USB-B (Uno), Mini-USB (Nano) | External adapter into the VIN pin |
| Also carries data | Yes: serial monitor uses pins 0 and 1 | No data line in our model |
| Board pins involved | Serial pins 0 and 1 | VIN, 5V, 3V3, GND |
| Guide warning | Using pins 0 and 1 blocks the serial monitor | Join grounds when a separate supply is used |
Read both columns against the same question. A difference in interface or recorded range is a reason to choose, not a claim that one part is generally better.
Evidence from our own material
USB types
The Uno record names USB-B and the Nano record names Mini-USB in the board data file. (source: js/arduino-kart.js)
Serial pair
Pins 0 and 1 share the serial line; a sketch that uses them disables the serial monitor. (source: js/arduino-kart.js)
VIN pin
The circuit pin map lists VIN at number 25, with 5V at 26 and 3V3 at 27. (source: server/asistan-cekirdek/motor/devre-kurucu.js)
Which one to pick
Best for a beginner reading values on a screen: the USB path, keeping pins 0 and 1 unused so the serial monitor stays available.
Best when a circuit needs a separate supply line: the VIN path described in the pin model, with the grounds joined as the servo guide requires. This page records no adapter brand, cost figure or recommendation.
A short check you can do now
Question 1. Which USB connector does the Uno record?
Question 2. Why should a sketch avoid pins 0 and 1?
Question 3. Which board pin is named VIN?
If you can answer all three without rereading, move on. If not, go back to the table and one source note — that is usually enough.
Next steps in the library
Continue with a hands-on guide, a browser simulator or a free account.
Generated from DersTeders' own material. Source files: js/arduino-kart.js (USB and serial records) · server/asistan-cekirdek/motor/devre-kurucu.js (VIN pin map) · en/devre/servo-motor-ile-konum-kontrolu.html. Names such as Uno, Nano, DHT11, DHT22, HC-SR04, VL53L0X, servo and stepper are used as component identifiers only. This page records documented behaviour and interface differences; it makes no cost comparison, no maker ranking, no commercial endorsement and no performance promise.
Save your progress. Create a free account to keep your place across lessons, quizzes and circuits.
Topic tracking