NIGHT_TYPE

Mike Garcia

until your eyes bleed

2. February 2014 439 words ~4 minutes read

Raspberry Pi: Setting up USB to Serial connection

When I purchased the “Raspberry Pi Ultimate Starter Kit” off Amazon a while back…. it came with a neat little USB adapter to connect to my main PC & use my Raspberry Pi remotely. It’s called a USB to TTL Serial Cable and looks like this:

usb2serial

Those 4 pins on the other end plug into your Raspberry Pi’s GPIO pins. There’s a Red power pin which you should NOT USE because if you also plug in the main power USB cable, you’ll fry that shit. Then there’s a Black ground pin, a White TXD (transmit pin), and a Green RXD (receive signal pin).

(I’ve included a more detailed diagram of the GPIO pins at the bottom of this page)

Turn off your Pi, and follow the pic below:

gpio-00

 

Once you’ve connected the pins as above, plug the other end of that adapter into your main computer. Plug the regular micro USB into your Pi for power (NOT the red GPIO pin).

If you’re on a Windows machine, you should see the Device Manager notification pop up, letting you know that it’s installing the serial drivers. Now open your Device Manager so you can get the “COM” # of your attached Pi. You’re gonna need that to enter into PuTTY.

Go here Download PuTTY and choose the “Installer” under “A Windows installer for everything except PuTTYtel”. Install & come back.

Now open PuTTY and your Device Manager. Now fill in the PuTTY settings as I’ve highlighted below, and make sure to use the COM# that corresponds to what YOUR device manager reads.

putty-config

 

Now, go ahead and save these settings by typing a Saved Sessions Name and clicking “Save”. Then go ahead & “Open” the connection. You’ll be greeted by a blank terminal window:

blankputty

Type your Username (default for Raspbian is “pi”), hit return, and it’ll prompt you for your password (default for Raspbian is “raspberry”).

After that you should be in!

gpio-diagram

 

Some info & images sourced from a smart man Bart Bania