Introduction: The Serial Port - Software Setup

If you are trying to control something in the real world using your computer, the serial port is perhaps the easiest means of communication. I shall walk you through the process of setting up a serial port and hyperterminal on a computer running windows XP.

Step 1: Find Your Serial Port

In order to set it up, first you have to find it on your computer. Long long ago, almost all computers had two serial ports, called "COM1" and "COM2", one a with a nine pin and the other with a 25 pin connector.

Now times have changed and the serial port has vanished.

Don't give up hope, however. The USB to serial converter has arrived, and it can be used instead. It is usually a dongle which plugs into a USB port, with a nine pin male connecter at the other end.

On my desktop computer, the motherboard has two built in serial ports. The third seial port, here labelled COM4, belongs to the USB to serial adapter I have plugged in.

So, to find the serial port on your computer, scout around its back. If you find a nine pin male connector (two rows, five and four, pins sticking out inside a metal shell) it has a serial port built in.

Or get a USB to serial converter and plug it in.

Open up Device Manager. Right click on "My Computer" and select properties (at the bottom of the list that pops up). Click on the "Hardware" tab. Click on the "Device Manager" button and a something similiar to this picture should appear.

Click on the '+' sign on the left of the "Ports (COM & LPT) to expand it. The list of printer and Serial ports available will be shown. Make a note of those, you will need them in the steps that follow.

Step 2: Open Up Hyperterminal

Hyperterminal is a communication program that comes along with windows. You get it by clicking on "all programs", moving on to "Accessories", "Communications" and then there you have it.

If you are opening it up for the first time it will ask you some questions as to country and region, unless you have something to hide it might be better to answer them truthfully.

Step 3: Enter the Serial Port Info

You can select the serial port to use for connecting. You set up a serial connection by specifying a name (anything goes) an icon (select one) and then you come to this screen which lets you specify the exact serial port to use.

You can also get to this screen by clicking on the little hand-on-document icon below the title bar.

Select the serial port you intend to use. If you are unsure, try each in turn until you stumble on the right one.

Step 4: Set Connection Parameters

Next, you will have to set up the connection speed, number of bits, parity and stop bit settings.

They are dependent on what is on the receiving end of the link. You have to use the same settings at both the ends or the link will not work.

As an example, I have set up the connection for a speed of 9600 baud, eight data bits, no parity, one stop bit and no handshaking.

Step 5: The Serial Connection - Signals

To connect to the serial port, a minimum of three lines are needed - the transmitted data TxD(pin3), the received data RxD(pin2), and Ground(pin5).

Data comes out from the computer as positive and negative excursions of the voltage on the TxD pin with respect to the System Ground pin. This voltage would be somewhere in the fifteen to twelve volt range.

Data goes into the computer as positive and negative excursions of the RxD pin. At least three volts would be required for the computer to get the data without error.

Step 6: Loopback Test

When hyperterminal has been correctly setup, whatever you type into its window gets sent out to the wild yonder through the TxD pin. Whatever gets in through the RxD pin gets displayed on the screen.

By default, if you open up hyperterminal and start typing, nothing gets shown on screen. This is normal.

However, if you connect the RxD and TxD pins together, they wiggle together and so whatever you type gets printed to the screen as well. This is the loopback test.

You can make a loopback plug by taking a nine pin female connector (socket) and soldering a wire between pins 2 and 3. This is then inserted into the connector of the serial port to be tested.

Or, alternatively, you can take a bit of wire and wrap it around pins 2 and 3 of the relevant serial port as shown in the figure.

Step 7: Start Typing

With the loopback plug in place, click inside the hyperterminal window and press a few random keys on the keyboard.

Whatever you type should get shown there. If so, congratulations.

If not, you have gone wrong somewhere, so go back and select a different port or something and in effect press every button until you get it working.

A word of warning, though.

Hyperterminal has an option to "echo" characters, which means it will show the characters typed on the keyboard as well as the characters coming in through the RxD pin. Check that this is not the case, before concluding that you have been successful. It is simple, really. Removing the loopback connection will stop the echo via the serial connection.

Step 8: Double Echo

If you enable local echo and connect the loopback plug, you will get the effect shown here: each character you type will be printed twice.

This is useful when you have your robot, or whatever, to send back status reports in response to commands received via the serial port. Ordinarily you will get to see only the robot's half of the conversation, so by enabling local echo you can get to see the commands sent to it too.


Lynxspring made it!(author)2017-02-09

I use ComPortLookup

electronics-base made it!(author)2017-01-11

Hyper terminal? really :)

this was written in the dark ages of PC communications :)

Why not simply using

Or some other similar software..

GeorgeN76 made it!(author)2016-11-17

wow its awesome

AlexxGreen made it!(author)2016-08-26

Also you can easily create virtual COM ports using software solution, like Virtual Serial Port Driver ( You won't see the difference between real and virtual serial ports, because virtual serial ports are absolutely the same copies of real ones.

Derin made it!(author)2008-07-07

HELP!!!!!vista does not have hyperterminal!

LornaR made it!(author)2015-08-06

Try PuttyTel.

ReCreate made it!(author)2009-03-25

Err...try windows Xp Try again on a windows XP PC

neelandan made it!(author)2008-07-08

You can try downoading the program from the link above.

LornaR made it!(author)2015-08-06

Excellent article! I will share with my team. Shorting the send/receive pins is a great way to test that your USB Serial Controller is working correctly and has the correct drivers without having a serial port to connect it to.

My Windows 7 laptop doesn't seem to have HyperTerminal, so I downloaded PuttyTel.

On Mac you can use the native Screen command. This page gives you a simple example of configuring screen on Mac:

nastier made it!(author)2010-01-15

That is the correct pinout if you are looking directly at the female and it is correct if you are looking at the back of the male, where the cable connect. If you are looking at the front of the male or the rear of the female it will confuse you.

papalevies made it!(author)2009-09-08

Nice tutorial. May I also suggest "PuTTy" for those who don't have hyperterminal (Vista/Linux/Mac users).

papalevies made it!(author)2009-09-08

Are you sure this is the pinout? Because mine only works if you short out the 3rd and 4th from the left of the top row.

Callum+Snowden made it!(author)2009-07-05

Forget my last message, I worked out how to do it, set "Flow control" to "none".

Callum+Snowden made it!(author)2009-07-05

Can somebody please help me, the other day i bought myself a MAX233CPP chip and a serial connector from maplin, I soldered up a 4 conductor cable to the Rx pin (pin2), the Tx pin (pin 3) and ground (pin 5) but when I try sending data to it to view on my oscilloscope, nothing works. I tried DOS and Hyperterminal but they don't work. Can somebody please help me get it to work.

ReCreate made it!(author)2009-03-25

Oh man somethings not right here,It tells me "Another program is using the selected telephony service" "Try again after the other program finishes" Whats this? Please HELP!!!

ReCreate made it!(author)2008-10-02

I cant find it is it supposed to be in the default windows programs? Like stuff that are there when you install it. Can i have the exe of hyperterminal because i cant find it

russ_hensel made it!(author)2008-03-16

Actually the usb port is usually easier to work, it sets itself up. Except when it doesn't. Also worth mentioning is that some usb devices set themselves up as virtual serial ports ( and if you do not have a serial port this is how usb to rs232 converters work). Very useful, you might want to extend it to include the usb virtual rs232.

Derin made it!(author)2008-07-07

you mean FTDT232 chips?

GorillazMiko made it!(author)2008-03-12

Wow, nice macro pictures of that loopy part. Great job.

jinventive made it!(author)2008-03-14

I think neelandan used a scanner as it says in his other instructables. Must admit though, very good pictures.

rimar2000 made it!(author)2008-03-12

Very interesting instructable. Can you give us any examples of things can be done with this?

neelandan made it!(author)2008-03-12

Sure - the hardware part is going to come up next as an instructable.

sideways made it!(author)2008-03-12

Nicely done Instructable. I have an old 486 laptop w/o USB or a cd-rom, so I keep a small DOS partition on one desktop. I boot the desktop to DOS and run Intersvr/Interlink on a serial between the two to move files to the laptop. Hey it's a kludge but it works. Don't laugh at my 486 laptop! I use it for a bookreader and it was dirt cheap. That little trick of wiring the two pins together was great, never come across it before.

About This Instructable




Bio: I'm Chandra Sekhar, and I live in India. I am interested in electronics, and building small one-off circuits around tiny chips (the electronic kind).
More by neelandan:Gooseneck Light and MagnifierWireless L E D9V battery case for projects
Add instructable to: