Which USB Cable for Arduino Uno, Nano and ESP32? Data vs Charge-Only

Cartoon of three USB cable ends, a blue Type-B plug, a black Type-C plug and a black micro-USB plug, pointing at the Type-C socket of a black ESP32 board

Quick answer: match the cable to the socket on your board, and make sure it is a data cable.

  1. Uno R3 and Mega 2560: USB Type-B, the square printer plug.
  2. Nano V3: Mini-USB (Mini-B). Not micro-USB, not Type-C.
  3. ESP-32 (CH340) 30-pin, ESP32-C2, ESP32-C3 Super Mini, RP2040-Zero, UNO R4: Type-C.
  4. ESP-32 (CP2102), WROOM-32E, ESP-32S, NodeMCU ESP8266, Pico: micro-USB.
  5. Cable in the box: only the Uno R3 and Mega. Add the matching cable for any other board.
  6. Test any cable in 30 seconds: plug the board in and look for a new port in Arduino IDE (Tools > Port). Board LED on but nothing new on the computer means a charge-only cable.

Which cable for which board

Each Arduino or ESP32 board takes the cable that fits its own socket. Two of our 30-pin ESP32 boards look alike and take different cables: the CH340 one has an oval Type-C socket, the CP2102 one a flat micro-USB socket.

Board Socket on the board Cable in the box? Cable to add
Uno R3 (SMD, CH340) USB Type-B Yes None. Spare: Type-B 1 m or 0.3 m
Uno R3 (DIP) USB Type-B Yes None. Spare: Type-B 1 m or 0.3 m
Mega 2560 USB Type-B Yes None. Spare: Type-B 1 m or 0.3 m
UNO R4 WiFi, UNO R4 Minima Type-C No Type-C 1 m or 0.5 m
Nano V3 Mini-USB (Mini-B) No A Mini-B data cable, the kind that came with older cameras, PS3 controllers and external hard disks. Our cable range has no Mini-B, and none of our cables fits the Nano. Setup: Nano V3 getting started
ESP-32 (CH340), 30-pin Type-C No Type-C 1 m or 0.5 m
ESP-32 (CP2102), 30-pin micro-USB No Micro-USB 1 m or 0.5 m
ESP-WROOM-32E, 38-pin micro-USB No Micro-USB 1 m or 0.5 m
ESP-32S, 38-pin micro-USB No Micro-USB 1 m or 0.5 m
ESP32-C2 Type-C No Type-C 1 m or 0.5 m
ESP32-C3 Super Mini Type-C No Type-C 1 m or 0.5 m
NodeMCU ESP8266 V2 micro-USB No Micro-USB 1 m or 0.5 m
RP2040-Zero Type-C No Type-C 1 m or 0.5 m
Raspberry Pi Pico micro-USB No Micro-USB 1 m or 0.5 m

Type-B is the big square plug: ask a computer shop for a printer cable (kabel printer). Mini-B, on the Nano, is a small trapezoid with pinched-in sides (Arduino’s Nano page names it a Mini-B USB connector). Micro-USB is thinner and flatter, and fits only one way up.

Cartoon chart of four USB plugs in a row, a blue square Type-B, a black Mini-B, a thinner black micro-USB and a black oval Type-C, each with its outline shape above it
The four plugs: Type-B (Uno R3, Mega), Mini-B (Nano V3), then micro-USB and Type-C (ESP32, RP2040 and UNO R4 boards, depending on the version). Micro-USB is the thinnest.

Never force a plug that does not seat. A micro-USB plug pushed into a Mini-B socket can damage the socket.

Data cables by plug type

Every cable below is a data cable. Pick the plug that matches your socket.

Parts list

ItemPriceQty
Data Cable Type-A Type-C MicroUSB Type-B 0.5m 1m 30cm 0.3m 100cm Data Transfer Upload Code - TYPE-A TO TYPE-B (0.3M)Data Cable Type-A Type-C MicroUSB Type-B 0.5m 1m 30cm 0.3m 100cm Data Transfer Upload Code - TYPE-A TO TYPE-B (0.3M)ATBC030RM2.90
Data Cable Type-A Type-C MicroUSB Type-B 0.5m 1m 30cm 0.3m 100cm Data Transfer Upload Code - MicroUSB CABLE (0.5M)Data Cable Type-A Type-C MicroUSB Type-B 0.5m 1m 30cm 0.3m 100cm Data Transfer Upload Code - MicroUSB CABLE (0.5M)ATMC050RM4.90
Data Cable Type-A Type-C MicroUSB Type-B 0.5m 1m 30cm 0.3m 100cm Data Transfer Upload Code - TYPE-A TO TYPE-C CABLE (0.5M)Data Cable Type-A Type-C MicroUSB Type-B 0.5m 1m 30cm 0.3m 100cm Data Transfer Upload Code - TYPE-A TO TYPE-C CABLE (0.5M)ATCC050RM4.90

The same data cables, shorter: 0.3 m Type-B, 0.5 m micro-USB and 0.5 m Type-C. Good with a power bank or on a tidy desk, and a shorter cable loses less voltage.

Each cable has a USB Type-A plug (the flat rectangle) on the computer end, except the Type-C to Type-C cable. A laptop with only USB-C ports needs that one for a Type-C board, or a USB-C hub for the Type-B and micro-USB cables.

Is a cable included with the board?

The Uno R3 and Mega 2560 we sell come with a USB Type-B cable in the box. Every other board in the table ships alone, so add a cable to the same order. In a 90-day sample of our chats, 25 of 54 cable conversations asked this, in messages like “uno r3 ni include cable tak?”.

Data cable vs charge-only cable

A USB data cable has four wires inside: 5V, ground, and a pair called D+ and D- that carries the data (USB 2.0 cable wiring). A charge-only cable leaves the data pair out, since a charger only needs the two power wires.

With a charge-only cable 5V still reaches the board, so the power LED lights and an old sketch keeps running. The computer only notices a new device when the board’s USB chip pulls one data wire up to 3.3V. With no data wires that signal never arrives, so no port appears and no driver can help. Suspect first a cable that came free with a power bank or USB fan: those only ever needed power.

Cartoon of two black USB cables cut open, the top one showing four coloured wires inside and the bottom one showing only two
Top: a data cable with four wires. Bottom: a charge-only cable with only the two power wires. From outside they look the same.

The 30-second cable test

The cable test takes one step: plug the board into a computer and watch Tools > Port in Arduino IDE, or Device Manager on Windows. Note the list first, since many laptops already show a COM1 or Bluetooth port that is not your board.

What you see What it means What to do
1. Board LED on. Nothing new in Tools > Port or Device Manager, no connect sound No data is getting through. The cable is charge-only (or its data wires are broken) Change the cable
2. A new entry with a yellow warning mark under Other devices. A CH340 board shows as USB2.0-Serial, a CP2102 board as CP2102 USB to UART Bridge Controller The cable is fine. The computer reached the USB chip through the data wires, and has no driver for it yet Install the driver: see ESP32 not detected
3. A new COM port appears under Ports (COM & LPT) and in Tools > Port. An RP2040-Zero or Pico plugged in with BOOT (BOOTSEL on the Pico) held shows a drive named RPI-RP2 instead Cable and driver are both fine Stop buying cables to make the port appear. If an upload still fails, the same guide covers it
4. Power LED stays off Not even power is getting through: a plug not pushed fully in, a broken cable, or a Type-C board on a Type-C to Type-C cable Reseat both ends and try another cable. On a Type-C board, read the next section

One customer wrote “i change five new usb cable, still cannot use this module”. The board was already showing on COM3 and the upload had started. That is outcome 3, so the cable was never the fault.

The ESP32-C3 Super Mini and the RP2040 boards have no USB bridge chip, so there is no CH340 or CP2102 driver. Their USB port lives inside the main chip. A sketch that sleeps, crashes or skips USB can hide it even on a good cable, so hold BOOT (BOOTSEL on a Pico) while you plug them in: a COM port or the RPI-RP2 drive should appear. A C3 that shows only as “USB JTAG/serial debug unit” on Windows has a good cable and needs Espressif’s driver fix.

A micro-USB or Type-C cable can also be checked with a phone that takes it. Connect the phone to the computer with it: if the phone offers file transfer, the cable has data wires. Charging alone proves nothing. A charge-only Type-B cable is rare, because printers need data.

Type-C to Type-C or Type-A to Type-C?

A Type-C board can stay completely dark on a Type-C to Type-C cable and still work on a Type-A to Type-C cable.

A USB Type-A port has 5V on its power pin all the time. A Type-C port or charger keeps 5V off until it detects a device. It looks on two extra pins, CC1 and CC2: the board has to connect each one to ground through a 5.1 kΩ resistor (Espressif’s Type-C design guide). The port senses that resistance and only then turns 5V on. A board built without the two resistors looks like an empty socket, so a C-to-C cable gives it no power at all (Hackaday on CC resistors).

Good practice on any Type-C board: look beside the socket for two tiny resistors marked 512, meaning 51 followed by two zeros, 5,100 Ω. Our ESP-32 (CH340) has that pair.

Your computer or charger has Cable to take
A USB-A port (the flat rectangle) Type-A to Type-C. It powers every Type-C board
Only USB-C ports Type-C to Type-C. If the board stays dark on it, use a USB-C hub with a USB-A port and the Type-A to Type-C cable

If a board stays dark on C-to-C, try A-to-C on a USB-A phone charger before you blame the board.

Cartoon of a black ESP32 board with a Type-C socket connected to a laptop by a black Type-A to Type-C cable, with glow lines showing the board is on
A Type-A to Type-C cable powers any Type-C board, because a Type-A port has 5V on all the time.

Cable length, thin cables and brownouts

A USB cable loses voltage along its copper wires. The loss is the current multiplied by the wire’s resistance, so it grows when the board pulls more current: an ESP32 switching on Wi-Fi, a servo starting to move. A longer or thinner cable has more resistance. Double the length and the loss doubles. When the 5V sags far enough, the board’s 3.3V regulator can no longer hold its output, so the ESP32 resets and prints “Brownout detector was triggered”.

A computer’s USB 2.0 port is also specified for only 500 mA (five unit loads of 100 mA). If a board resets when Wi-Fi starts, try a shorter cable and a 5V phone charger before changing code (more in Powering ESP32 projects).

FAQ

What is the Arduino Uno cable called?

A USB Type-A to Type-B cable (A-to-B), often sold as a USB printer cable. Our Uno R3 comes with one. The newer UNO R4 uses Type-C instead.

How do I tell a data cable from a charging cable?

Not by looking: the plugs are the same. Plug a board into a computer with it. A new port or device means a data cable. LED on and nothing new means charge-only.

Can I use any Type-C cable for an ESP32?

Any Type-C data cable works, whatever the brand. Type-A to Type-C powers every Type-C board. Type-C to Type-C needs the board’s two CC resistors.

What cable does the Arduino Nano use?

Our Nano V3, like the classic Arduino Nano, uses Mini-USB (Mini-B), a taller plug than micro-USB, so micro-USB and Type-C cables will not fit. The newer Nano Every uses micro-USB and the Nano ESP32 Type-C.

Last updated November 2026. Stuck? Chat with us on WhatsApp.

Leave a Reply

Your email address will not be published. Required fields are marked *