Society of Robots - Robot Forum

General Misc => Misc => Topic started by: JustAubrey on November 26, 2007, 11:44:50 PM

Title: Learning to program with iRobot Create (first robot)
Post by: JustAubrey on November 26, 2007, 11:44:50 PM
So... could anyone direct me to some SUPER beginner info. Are there any tutorials to teach people basic programing with the iRobot Create? (I didn't see any one this site... I mean on other sites that I may not know about)  I googled "My first robot" and "learning to program with iRobot Create"... no dice for me.  I was given one for a project but now I don't know how to make it do what I need for my experiments.  I've done tiny stuff before in C but really I've forgotten everything.   Really I just want to put a couple LEDs on it (I have the command module) and have it run the regular roomba or "drive" code... but almost use the LEDs like a debug mechanism.

For example... hits a wall = light red LED
Going straight ( no obstacles) = light green LED
paused and turning... looking for a new viable path = light yellow LED

Any tips are welcome... I need to do this in a hurry.
God help me... this time I may actually learn to program on my own.
Title: Re: Learning to program with iRobot Create (first robot)
Post by: cooldog on November 27, 2007, 06:34:36 AM
http://www.societyofrobots.com/robot_iRobot_Create_mod.shtml

admin posted this a while ago
Title: Re: Learning to program with iRobot Create (first robot)
Post by: JustAubrey on November 27, 2007, 03:20:24 PM
Thanks for the reply.  I did read over this.  It's still a bit over my skill level.  My prior programing knowledge is really next to nothing.  I understand what's going on... just not how to do it all myself.  I'm trying to find friends to help.
I was really hoping someone knew of a "My first robot/ programing experience- iRobot Create."  I'll get through it.  Thanks
Title: Re: Learning to program with iRobot Create (first robot)
Post by: cooldog on November 27, 2007, 03:22:24 PM
i's prety straight forward just do all the conections and re-read it. it took me 3 reads to under stand what me was talking about
Title: Re: Learning to program with iRobot Create (first robot)
Post by: Rebelgium on November 27, 2007, 05:19:50 PM
Yes, you'll have to start somewhere...
You can search on instructables.com (or .org or whatever) for irobot mods. I've seen some there, but I don't think they will be basic like you'd want.

My two cents is that it would be a good idea to replicate Admins project.  :)
because if cooldog, with exactly 8 typo's in that one line of comment, can understand it it's bound to be easy...



Sorry cooldog :D , it was too tempting.  ::)
Title: Re: Learning to program with iRobot Create (first robot)
Post by: cooldog on November 27, 2007, 05:26:28 PM
thank alot  lol

my key board is messed my sister took off all the buttons and switched them around
Title: Re: Learning to program with iRobot Create (first robot)
Post by: Rebelgium on November 27, 2007, 05:28:10 PM
Maybe you can make a robot that patrols around your room/desk and protects your PC from intruders like your sister. ;)
Title: Re: Learning to program with iRobot Create (first robot)
Post by: cooldog on November 27, 2007, 05:29:32 PM
LOL  :D ;D

Title: Re: Learning to program with iRobot Create (first robot)
Post by: JustAubrey on November 27, 2007, 10:00:00 PM
Ya, I'm going to try to do that.  I need to dig out my range finder though... or what ever you call the thing on top.  I haven't used that thing since the admin helped me with my spider project... and that was -before- this site existed! ;)
This time I need to actually learn to code on my own.
I'll let you know how it goes... I'm pretty shaky with electronics... but I think I can do it.  My background is in design.
Title: Re: Learning to program with iRobot Create (first robot)
Post by: Admin on November 28, 2007, 05:47:33 PM
My personal opinion (non-CS opinion) is that the iRobot Create sample code was not written for beginners . . . it seriously should have been . . . I struggled for like a week to figure out just the basics.

If you study my sample code for a bit, you will see lots of comments and instructions. I tried really hard to simplify the code for less experienced people . . .

I recommend just ignoring their sample code and replicating my stuff . . .