3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Using the iRobot Create's Command Module with Linux

Using the iRobot Create\
Since iRobot hasn't provided linux users with a way to use the command module, I had to figure it out myself.

Don't be intimidated, its not hard at all, really. All you need to do is run a couple of scripts.

Lets get started, shall we?
 
Remove these adsRemove these ads by Signing Up
 

Step 1Get the goods

For this tutorial, I'm assuming you have an apt-based package manager. (i.e. you use a Debian derivative, or an Ubuntu derivative) Simply because apt = good.

If you don't, I assume that there are the same packages for yum, but I can't test that. (Fedora doesn't like me)



Now, you must run a long and complicated thingymabober:
sudo apt-get install avrdude avr-libc gcc-avrsudo apt-get remove brltty

And yes, removing that package is safe. (Tip from here) If it gives you an error saying its not installed, you're good, don't worry.
« Previous StepDownload PDFView All StepsNext Step »
22 comments
Jul 16, 2009. 1:35 PMEnki-][ says:
I haven't heard about this iRobot Create thing before, but it's good to know that there is Linux support. I may just go out and get one, since at least I know it'll be usable :-). You mentioned apt-based package managers, but why not just link the source (for those of us who prefer not to use package managers)?
Jul 16, 2009. 1:40 PMEnki-][ says:
The source, patches, and build instructions for the packages you mentioned all appear to be available here: http://www.nongnu.org/avr-libc/

For anyone who doesn't want to bother with yum/apt/rpm/whatever, this is probably a good place to go. That said, the debian packages may be patched up or may just work differently due to version differences. I don't know.

I've gone through a full from-source avr-libc / avr-gcc / avrdude install before, and it's not too hard.
Nov 10, 2008. 1:35 PMmscs says:
Hi, has anyone managed to get the iRobot Create working on linux without a command module, ie hooked up directly to a laptop with a DB9-USB converter ? If so which exact model of DB9-USB cable turned out to be compatible with linux and the Create ? Also how did you interface with the robot on the linux side... can you just write C or C++ programs that make use of the Open Interface and send raw bytes to the robot for control ? feel free to pm me if you wish to do so. thanks in advance.
Nov 11, 2008. 5:53 AMmscs says:
forgot to post this, another person with serial-usb cable(Aten) trouble... though i'm not sure if that's related to C++ specifically or the actual cable/linux drivers:

http://irobotcreate.lithium.com/irobotcreate/board/message?board.id=Create_Support&thread.id=1836
Nov 11, 2008. 5:47 AMmscs says:
Thanks for the reply :)

I've been searching and reading about this robot on the net for several days and went through all the manuals but couldn't find this info and iRobot email support didn't get back to me of course since i am an *unsupported* linux user... so thanks for clarifying.

One more thing though, regarding the serial-usb cable (more specifically a male DB9 to usb), apparently whether this cable works or not depends on the chipset that comes with it, which means it needs to be compatible with linux + compatible with the serial protocol of the Create ?

The following thread highlights this issue, the guy ended up getting (an expensive) PCMCIA-Serial card which isn't an option in my case:
http://createforums.irobot.com/irobotcreate/board/message?board.id=Create_Support&thread.id=1698&view=by_date_ascending&page=2

For anyone interested here is some useful info on various serial-usb chipsets under linux, i believe most cables are PL2303.
http://www.nslu2-linux.org/wiki/Peripherals/USB2Serial
Feb 24, 2009. 6:14 AMtharveypa says:
I tried a cheap USB-serial cable that did not work. Now I'm using a Keyspan 19HS which has worked well from several platforms (linux,mac,win).
Aug 3, 2008. 7:28 AMtamrin says:
i'm husni, i'm a newbie...how to get example project with avr-gcc..used to i make line follower with linux
Jan 24, 2008. 6:49 PMkinghezy says:
You tips seem pretty good for getting started with Linux+iRobot. I had no idea where to start. Hopefully I'll be able to add my own instruction later on. I have Fedora installed and gcc-avr is avr-gcc.
Aug 6, 2007. 12:50 PMtechnick29 says:
Cool. I'm using Fedora 7 and I found all of the files using my Package Manager except for avrp avr-prog and avra. Working on getting them now... do you know where I could find them online?
Aug 6, 2007. 2:43 PMtechnick29 says:
Ok, just making sure. I've tried compiling and loading programs, and make all works, but make program works. It's writing to the USB device that's weird (there's no ttyUSB0 file in /dev). I think once I find the substitute for the USB file on Fedora, I'll be fine. Any advice finding the right one without testing a bunch that might be right? ;) Thanks.
Jul 29, 2007. 11:14 PMstone3408 says:
Down with Billy G. and up with linux! Anything develpoed by a community and not a trillion dollar comany truely fits the instructable mindset. Great instructable.
Jul 27, 2007. 3:55 PMHungry_Myst says:
*Stares at create* *Sits patiently in front yard* Have you tried using the serial cable (the one that plugs directly into the iRobot) with linux?
Jul 26, 2007. 9:23 PMroyalestel says:
Heh. Showoff! ;) Thanks, bud. I'm sticking with winders.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
19
Followers
6
Author:zachninme(olopede industries)
I decided a long time ago to change this text. Now, it still says this.