Establishing a PuTTY serial connection

Raspberry Pi Console Cable – USB to Serial Setup Guide

If you mainly work with the Raspberry Pi via SSH, you know the problem: one typo in the network config and you’re locked out – monitor and keyboard required. A USB serial console cable is the more elegant solution. It connects your Pi directly to your computer via USB and gives you a serial console – completely independent of the network. Perfect for debugging, configuring, or diagnosing boot problems.

What Is a Console Cable Good For?

  • Network config broken? No problem – you still get into the system
  • Diagnose boot problems: see all kernel messages during startup
  • Configure a Raspberry Pi without HDMI output (e.g. Compute Module)
  • Communicate serially with other devices (microcontrollers, sensors)

Hardware: Recommended USB Serial Adapters

The original tutorial recommended cables with the PL2303HX chip – but this has caused repeated driver issues on Windows 10/11. There are better alternatives today:

Chip Windows 10/11 macOS / Linux Price (approx.) Recommendation
FTDI FT232RL Driver via Windows Update Natively supported €8–15 Best quality
CP2102 Driver from Silicon Labs Native on Linux, usually on macOS too (otherwise Silicon Labs driver) €3–8 Affordable, reliable
CH340G Usually automatic via Update Driver needed (macOS) €2–5 Very affordable
PL2303HX Driver issues possible Natively supported €2–4 Not recommended

Our recommendation: an FTDI FT232RL adapter* or a CP2102 adapter*. If you’re on a tight budget, go for a CH340G adapter* – the one linked here comes in a 3-pack and usually works on Windows 10/11 without installing a driver manually.

Links marked with * are affiliate links, which makes them advertising. If you buy through one, I earn a commission at no extra cost to you. As an Amazon Associate I earn from qualifying purchases. Learn more

Wiring

The colors in the table apply to the classic console cable with four loose wires. If you have an adapter board with labelled pins, go by the labels: the adapter’s TX goes to the Pi’s RXD (pin 10), RX to TXD (pin 8), and GND to GND. Transmit and receive always cross over.

Watch out with adapter boards: the Raspberry Pi’s GPIO pins only tolerate 3.3V. Many FT232RL and CH340G boards have a jumper or switch for 5V and 3.3V. Set it to 3.3V before you connect anything, or the 5V signal on the TX line can damage your Pi.

Pinout for the classic console cable:

Cable Color Function Raspberry Pi Pin PIN Number
RED 5V – don’t connect (see note) 5V PIN 2
BLACK GND GND PIN 6
WHITE RXD (adapter receives) TXD (GPIO14) PIN 8
GREEN TXD (adapter transmits) RXD (GPIO15) PIN 10

Important note about the red wire (5V): Leave the red wire unconnected and power the Pi from its usual power supply – the console works fine without it. The red wire would draw power from your computer’s USB port, and a USB 2.0 port only supplies 500mA. Even with nothing attached, a Pi 3, 4 or 5 typically draws 400 to 800mA, and a lot more under load or with USB devices plugged in. Only low-power boards like the Pi Zero or A+ with nothing else attached can run this way, and never together with the power supply.

Enable UART on Raspberry Pi

On current Raspberry Pi OS versions, UART must be explicitly enabled. Open the configuration file:

sudo nano /boot/firmware/config.txt

Add the following line at the end:

enable_uart=1

Save with CTRL+X, Y and ENTER.

On the Raspberry Pi 3, 4, Zero W and Zero 2 W, the full hardware UART is wired to the Bluetooth chip, and GPIO 14 and 15 only get the simpler mini UART. If you don’t need Bluetooth and want maximum UART stability, you can disable it. Open /boot/firmware/config.txt in nano again, as above, and add this line at the end as well:

dtoverlay=disable-bt

You don’t need this on a Raspberry Pi 5, where Bluetooth has a UART of its own. Out of the box, the console sits on the small three-pin UART connector between the HDMI ports. With no cable plugged in there, enable_uart=1 moves it to GPIO 14 and 15 – exactly pins 8 and 10.

Then reboot the Pi:

sudo reboot

The serial console is configured in /boot/firmware/cmdline.txt and runs at 115200 baud by default:

console=serial0,115200 console=tty1 ...

Windows: Driver and Connection with PuTTY

On Windows 10 and 11, CH340 and FTDI drivers are installed automatically via Windows Update in most cases when you plug in the adapter. If not:

After driver installation, open Device Manager (Windows key + R, then type devmgmt.msc). Under Ports (COM & LPT) you’ll see your adapter with its assigned COM port number, e.g. COM4.

Download PuTTY and configure a new serial connection:

  • Connection type: Serial
  • Serial line: COM4 (or your COM port from Device Manager)
  • Speed: 115200

Click Open and press Enter once – you should see the Raspberry Pi login prompt.

macOS: Connect via screen

On macOS the adapter appears as /dev/cu.usbserial-XXXX or similar. Connect directly with the built-in screen command:

screen /dev/cu.usbserial-XXXX 115200

Find the exact device name with:

ls /dev/cu.*

Alternatively minicom also works (installable via Homebrew):

minicom -b 115200 -D /dev/cu.usbserial-XXXX

Exit screen with CTRL+A, then k (lowercase) and y to confirm.

Linux: Connect via screen

On Linux the adapter typically appears as /dev/ttyUSB0. If screen isn’t installed (Raspberry Pi OS Lite, for example, doesn’t ship it), install it on Debian, Ubuntu or Raspberry Pi OS with:

sudo apt install screen

Then connect with:

screen /dev/ttyUSB0 115200

If you don’t have access, you need to add group permissions:

sudo usermod -a -G dialout $USER

Log out and back in, then the connection works without sudo.

Conclusion

A USB serial adapter is one of the most useful tools for any Raspberry Pi user. Especially if you experiment a lot or run Pi projects headless, it saves you a lot of time in critical moments. Our recommendation: pick up an affordable CP2102 adapter and keep it in your drawer – you’ll need it sooner or later.

Similar Posts