HOW TO - Make a Roomba Serial Interface

94722499 2F8E6D0B11-1
Here's how to make a serial cable to control a Roomba with your Mac/PC. iRobot Roomba manufactured after October 2005 contain an electronic and software interface that allows you to control or modify Roomba's behavior and remotely monitor its sensors. This interface is called the Roomba Serial Control Interface or Roomba SCI. When you're done making this cable/board you can download free software to control the Roomba.

HOW TO - Make a Roomba Serial Interface
By Tod E. Kurt & Mike Kuniavsky

A week ago I got my OSMO//hacker Roomba firmware updater from iRobot. It worked like a charm, giving me a serial port to fully control the Roomba.

An interface was needed however, since the crazy mini-DIN 7-pin on the Roomba is very unstandard. So the first attempt at a robust interface between a Roomba and a standard PC serial port is my Roomba Serial Interface.

The Roomba Serial Connector
It seems people are confused by the mini-DIN 7-pin connector, citing difficulties in obtaining that specific plug. It turns out that mini-DIN 8-pin plugs will mechanically mate with the 7-pin jacks, with the center key hole in the 7-pin female jack taking the middel pin of the 8-pin plug. Mac high-speed serial cables from the 1990's work great for this, and I have a ton of those from all my misspent youth doing MIDI on a Mac. So chop up those old Mac serial cables! If you can't find one, Jameco will sell you one for $3.29.

The PC Serial Connector
Some computers have an RS-232 serial port. Most don't. To hook this serial interface cable up to your Mac or other modern computer without an RS-232 port, use a Keyspan High Speed USB Serial Adapter. Supported on all platforms and the choice of Mac hardware-hackers worldwide.

Step-by-Step Construction details
The Roomba SCI is a serial interface protocol to let you control your Roomba, but the port on the Roomba doesn't conform to RS232 standards. This board does the conversion.

There are two boards shown here. The first version (larger, encased in lexan), and the second version (smaller, encased in a blue floss box).

89008228 E3A51C66De

Circuit is simply a 7805 +5V voltage regulator and MAX232 RS-232 transceiver, appropriate capacitors to make it work and a 'power on' LED. Because everything needs an LED. Flickr photo with notes here.

Below are parts lists from Jameco (and one from Radio Shack). Jameco doesn't have the cheapest parts, but they do have an easy-to-use site, ship fast, and carry just about everything that a weekend electronics geek would need. If you want to really scrimp, shop at Digikey or Mouser, and you'll probably save a few bucks on these parts.

Parts
95542287 A453490418
Flickr photo with notes here.

Parts list (from Jameco):
- 1 x Mac mini-din 8-pin cable ($3.29)
- 1 x serial cable with DB9 9-pin female connector ($3.95)
- 1 x 78L05 +5VDC voltage regulator ($0.27)
- 1 x MAX232 RS-232 transceiver ($2.19)
- 1 x green LED ($1.40 for 10)
- 1 x 220 ohm resistor ($0.69 for 100)
- 6 x 1 uF electrolytic capacitor ($1.20 for 10)

And from Radio Shack:
- 1 x prototyping pc board ($1.79)

Luckily I had all these parts in my part drawer, so the actual cost for me was zero. If you've ever done any little projects, you probably have some of these parts laying around too.

Tools needed
95542782 2661Df8B70
Flickr photo with notes here.

Cutting the cable
96085602 2E899F10D4

Strip off the big plastic cover, then strip off about 1/4" from all the wires inside. Then do a continuity test on each wire to figure out which colored wire goes to which pin on the jack. Each cable I've done has had a different color-to-pin mapping.

Circuit diagram
94701997 B7E868Bc59
Larger version here.

Putting the components on the prototyping board
95543222 597E191301
Cut the prototyping board in two, since only half the space is needed.
Place the chip so it straddles the two big verticle bus lines, then start placing parts around it , using the connected pads to minimize the amount of wiring needed. Of course, a few wires are always needed. For that use snipped leads from parts.

Also, create test points using snipped leads to check voltages.

95543713 A90F2A2381
It's really handy to have the vertical bus lines and the three pads joined. This board is like the best thing Radio Shack sells. :)

96085777 7B1C8788D8
Wire up the cables as shown in the schematic and the pin-to-cable color diagram made for the particular cable, solder them down, and hot-glue the cables to the board for strain relief. Flickr photo with notes here.

Testing the voltage
96085472 503B023A5A
After all the parts are soldered, use the +9VDC wall wart power supply to power up the circuit, and check voltages. The LED should light up and +5VDC should be coming out of the regulator.

89008681 Ffcb880B5D

89008467 5F10A135B4
The LED lighting up means the interface is getting voltage from the Roomba.

The enclosure is a floss container. Consumer products have a lot of interesting plastic enclosure styles, and so cheap! This one was something like $2.49. A little time with the diagonal cutters and soldering iron allowed the board to fit.

Once it's in the enclosure, hook up the +9VDC wall wart again and measure voltages on every pin on each cable, to make sure the circuit doesn't fry the Roomba or the computer's serial interface.

96085897 7D24308Dff

96086026 8732Cfb780

Get the software
94722499 2F8E6D0B11

Now drive your Roomba around like a little tank and play music on it! For more details on the software, see my blog post.

Special note: This how to will also be posted to the Roomba wiki. If you build any Roomba project and would like to contribute to the wiki email torrone@gmail.com.

Posted by Phillip Torrone | Feb 15, 2006 12:37 PM
DIY Projects, Electronics, Robotics | Permalink | Comments (2)

Recent Entries

Comments

Oldest comments listed first.

  • You can also buy a serial, USB, or Bluetooth Roomba interface at www.roombadevtools.com and start programming right away.

    Posted by: roombahead on April 17, 2006 at 5:28 PM

  • You can also buy a serial, USB, or Bluetooth Roomba interface at www.roombadevtools.com and start programming right away.

    Posted by: roombahead on April 17, 2006 at 5:30 PM


Your comment will be posted in the background and may take a few minutes to appear on the site; you do not need to re-post.

Allowable html: a href,br/,p,b,strong,em,i,ol,ul,li,blockquote,pre

Name:

Comment:


Please enter the security code you see here

Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now

How-to videos for Makers and Crafers!


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out... Welcome to the Make Blog!

Features and more @ MAKE!

MAKE @ The NYC Toy Fair 2008 - Covering DIY!
HOW TO - Build the arms of assistance.

MADE in Japan - Part I.
MADE in Japan - Part II.
MADE in Japan - Part III.

Make store - Blinky bug kit - Blink!
Make store - Loud Objects Noise Toy Kit

Makers - MAKE Flickr pool contest. Win cool stuff!
Makers - Join the MAKE Facebook page - Meet other makers.
MAKE on Twitter - Tweet! Tweet!
What you're reading in MAKE - Data!
Add MAKE to your RSS reader - Real simple.


Advertise here with FM.

Why advertise on MAKE?
Read what folks are saying about us!

Click here to advertise on MAKE!

Subscribe to MAKE Magazine!


Phillip Torrone.Phillip Torrone
Senior Editor
Tel: 707-827-7311


Gareth BranwynGareth Branwyn
Robot Maker


Jonah Brucker-Cohen Jonah Brucker-Cohen
Researcher

Suggest a Site!

Natalie Zee DrieuNatalie Zee Drieu
Senior Editor
CRAFT


Becky Stern Becky Stern
Culture jammer


Collin CunninghamCollin Cunningham
Sound Maker


Marc de Vinck Marc de Vinck
CNC Maker

Current Podcast

itunes_p.jpg AHAB High Altitude Ballooning - Best of Weekend Projects mp4|mov|hd|3gp|3g2|itunes This week on Best of Weekend Projects, we look back at part two of the AHAB (High Altitude Balloon Adventure). In this epic Bre & Co. travel to Eastern Washington to launch a GPS and camera enabled balloon... More...

Get the Make blog sent via email

Enter your email to receive the Make blog each day:



WOW! Thanks to everyone involved with Maker Faire Austin: attendees, makers, exhibitors, sponsors, volunteers, and crew...it was AMAZING! Over 350 Makers and 20,000 attendees! Be sure to check out the photos @ Flickr, and our Maker Faire posts for all the action! Next year, scheduled Maker Faire's are: Bay Area: May 3rd & 4th, 2008 - San Mateo County Fairgrounds and Austin: Oct. 18th & 19th, 2008 - Travis County Expo Center!

Make Categories

www.flickr.com
photos in MAKE More photos in MAKE Flickr Pool
www.flickr.com
photos in Craft More photos in Craft Flickr Pool

Advertise here.
Why advertise on MAKE?
Read what folks are saying about us!

Click here to advertise on MAKE!
Subscribe to MAKE Magazine!

Recent Projects

From the Instructables MAKE group


Important please read

Recent Posts from the Craft: Blog

Recent Posts from the Hackszine Blog