loading
This Instructable will show you how to build your own Web Connected Robot (using an Arduino micro-controller and Asus eee pc).

Why would you want a Web Connected Robot? To play with of course. Drive your robot from across the room or across the country, using nothing more than Skype and a web browser (nothing to install on the controlling computer). After that? Dig into the software & adapt it however you like, add a GPS so you can watch where you're driving on a map, add temperature sensors to map temperature gradients in your house, or sonar sensors to add controls on what you're web drivers can and cannot run into.

Features:
  • Inexpensive - (~$500 if you purchase all parts new and considerably cheaper if you dig around in your parts bin)
  • Once up and running controlling the robot requires only a web browser - (and Skype if you want to see where you're driving)
  • Open Source and Easily Adaptable - (uses an Arduino micro-controller, Processing for the web server & all software can be run on Linux (all the code is also heavily commented to make jumping in and changing things easy))
  • Modular Design (not a completely integrated system, if you want to use a different video conferencing service no worries, or if you have a Basic stamp rather than an Arduino just right a small piece of code and slot it in)

Here's a quick video of my Web Connected Robot being driven out of the kitchen.

Step 1: Parts & Tools

Only a few parts are required:

Robot: Arduino Controlled Servo Robot - (SERB)
($175 @ oomlout.com ) or (make your own)
  • An open source robot which uses an Arduino micro-controller as it's brain.
(any dual servo robot platform with an arduino can be used (option 1) (please message me if you discover any other options)

Computer: Asus eee PC 4G
($280) (@Best Buy)
  • A small inexpensive laptop that is perfect for this purpose.
(any laptop (or desktop if you want to run with a chord) capable of running Processing sketches can be used)

Laptop Desk: Laser Cut Acrylic
($25 (@ oomlout) ) or (build your own step 3)
  • A few additional acrylic pieces which bolt onto a (SERB) to give it a desk for the laptop to sit on.

Nuts and Bols: (available at home depot)
  • 3mm x 10mm bolt (x4)
  • 3mm x 15mm bolt (x4)
  • 3mm nut (x8)

Step 2: Cutting Pieces & Assembly

There are three options for getting pieces for your laptop desk.

Cutting

Option 1: (Purchasing from oomlout.com)
  • laser cut desk pieces and the neccesary hardware are available from oomlout for $25 (here)

Option 2: (Cutting on your own laser cutter or Ponoko.com)
  • Download the file below (03-WEBB-Acrylic Parts.cdr or 03-WEBB-Acrylic Parts (Ponoko P2).eps)
  • Cut them from 3mm (1/8") Acrylic

Option 3: (Scroll Saw)
  • Download the scroll saw pattern from below (03-WEBB-ScrollSaw Pattern (A4).pdf (for A4 size paper) or 03-WEBB-ScrollSaw Pattern (letter).pdf (for letter sized paper))
  • Double check that it hasn't been scaled when printing (by measuring the printed rulers)
  • Glue to a piece of 3mm (1/8") acrylic and cut the pieces out.

Assembling:

Download the assembly guide (04-WEBB-Assembly Guide.pdf) below and put the laptop desk together.

Step 3: Software - (Arduino)

For those new to Arduino check out the great getting started guide at Arduino.cc

First off the software running on the Arduino. It is a very simple program, what the Arduino does is monitor its serial port for data.

What it is looking for is a conversation 5 bytes long.
  • Byte 1-3 (Check bytes "AAA")
  • Byte 4 Command (Tells the arduino what to do) (Supported commands 'F' - Forward, 'B' - Backward, 'L' - Left, 'R' - Right, 'S' - Speed, 'X' - SetSpeedLeft, 'Y' - SetSpeedRight, 'C' - Stop)
  • Byte 5 Parameter - For the move commands this is interpretted as a time interval (Parameter * 100 ms), and for the speed commands a percentage from 0-100

The code is commented thoroughly and given this framework adding additional commands should be easy.

To Download:
  • Download the attached zip file. (05-WEBB-Arduino Code.zip)
  • Unzip to your Arduino Sketch directory. (default: My Documents\Arduino\)
  • Open your arduino development enviroment and upload to your Arduino.

To Copy and Paste
  • Copy the code from below.
  • Paste into the Arduino development environment.
  • Upload to your Arduino.

Appendix: The Arduino Program
/* * Arduino Controlled Web Connected Robot (WEBB) - Serial Host * For more details visit: http://www.oomlout.com/serb  *  * Behaviour: The Arduino listens to its Serial port for a command *            in format 254, 88, 88, (COMMAND), (TIME) *            Supported Commands - &apos;F&apos; - 70 - Forward *                                 &apos;B&apos; - 66 - Backward *                                 &apos;L&apos; - 76 - Left *                                 &apos;R&apos; - 82 - Right *                                 &apos;S&apos; - 83 - Speed *                                 &apos;X&apos; - 88 - SetSpeedLeft *                                 &apos;Y&apos; - 89 - SetSpeedRight  *                                 &apos;C&apos; - 67 - Stop  *            Supported Times - 0 - 255 (0 to 25.5 Seconds) value * 100 milliseconds  *sp * Wiring: Right Servo Signal - pin 9 *         Left Servo Signal - pin 10  * * License: This work is licenced under the Creative Commons  *          Attribution-Share Alike 3.0 Unported License. To  *          view a copy of this licence, visit  *          http://creativecommons.org/licenses/by-sa/3.0/  *          or send a letter to Creative Commons, 171 Second  *          Street, Suite 300, San Francisco, California 94105,  *          USA. *         */  //-------------------------------------------------------------------------//START OF ARDUINO SERIAL SERVER PREAMBLE//Defining constants corresponding to each command (also the ascii code number) #define FORWARD 70       //F#define BACKWARD 66      //B#define LEFT 76          //L#define RIGHT 82         //R#define SETSPEED 83         //S#define STOP 67          //C#define SETSPEEDLEFT 88  //X#define SETSPEEDRIGHT 89 //Y/*The three check bytes (used to keep the robot from responding to random serial *data) currently "AAA" */#define checkByte1 65   // "A"#define checkByte2 65   // "A"#define checkByte3 65   // "A" //--------------------------------------------------------------------------// START OF ARDUINO CONTROLLED SERVO ROBOT (SERB) PREAMBLE#include <Servo.h>#define LEFTSERVOPIN  10    //The pin the left servo is connected to#define RIGHTSERVOPIN  9    //The pin the right servo is connected toServo leftServo;           Servo rightServo; int leftSpeed = 50;   //holds the speed of the robots leftServo                       //a percentage between 0 and 100int rightSpeed = 100;  //holds the speed of the robots rightServo                        //a percentage between 0 and 100// END OF ARDUINO CONTROLLED SERVO ROBOT (SERB) PREAMBLE//--------------------------------------------------------------------------//Gets everything up and runningvoid setup()                  {  Serial.begin(9600);                //Starts the serial port  serbSetup();                       //sets the state of all neccesary                                      //pins and adds servos to your sketch}//The main program loopvoid loop()                     {  serbPollSerialPort();             //continuously looks to the serial port                                    //if there is data it processes it}//-----------------------------------------------------------------------//START OF ARDUINO SERIAL SERVER ROUTINES/* * Processes commands delivered to the arduino&apos;s serial port */void serbPollSerialPort(){  int dta;                              //variable to hold the serial  byte  if ( Serial.available() >= 5) {       //if 5 bytes are in the buffer (length pf a full request)    dta = Serial.read();     if ( dta = checkByte1){                        //Checks for first check byte        dta = Serial.read();        if ( dta = checkByte2){                    //Checks for second check byte          dta = Serial.read();            if ( dta = checkByte3){                //Checks for third check byte               int command = Serial.read();        //Fourth byte is the command               int param1 = Serial.read();         //Fifth byte is param1               interpretCommand(command, param1);  //sends the parsed request to it&apos;s handler            }        }      }    }}/* * Takes the command and parameter and passes it to the robot */void interpretCommand(int command, int param1){if       (command == FORWARD){goForward(); delay(param1 * 100); goStop();}   //if forward   else if(command == BACKWARD){goBackward(); delay(param1 * 100); goStop();} //if backwards  else if(command == LEFT){goLeft(); delay(param1 * 100); goStop();}         //if left  else if(command == RIGHT){goRight(); delay(param1 * 100); goStop();}       //if right  else if(command == SETSPEED){setSpeed(param1);}                 //if setting speed  else if(command == STOP){goStop();}                               //if stop  else if(command == SETSPEEDLEFT){setSpeedLeft(param1);}           //if setting left speed  else if(command == SETSPEEDRIGHT){setSpeedRight(param1);}         //if setting right speed  else{                            //if unrecognized command do a little shimmey    goLeft(); delay(150); goRight(); delay(150); goStop();  }}//------------------------------------------------------------------------//START OF ARDUINO CONTROLLED SERVO ROBOT (SERB) ROUTINES/* * sets up your arduino to address your SERB using the included routines*/void serbSetup(){  setSpeed(leftSpeed);  pinMode(LEFTSERVOPIN, OUTPUT);     //sets the left servo signal pin                                      //to output  pinMode(RIGHTSERVOPIN, OUTPUT);    //sets the right servo signal pin                                      //to output  leftServo.attach(LEFTSERVOPIN);    //attaches left servo  rightServo.attach(RIGHTSERVOPIN);  //attaches right servo  goStop();}/* * sets the speed of the robot between 0-(stopped) and 100-(full speed) * NOTE: speed will not change the current speed you must change speed  * then call one of the go methods before changes occur.*/ void setSpeed(int newSpeed){  setSpeedLeft(newSpeed);                 //sets left speed  setSpeedRight(newSpeed);                //sets right speed}/* * Sets the speed of the left wheel */void setSpeedLeft(int newSpeed){  if(newSpeed >= 100) {newSpeed = 100;}     //if speed is greater than 100                                             //make it 100  if(newSpeed <= 0) {newSpeed = 0;}         //if speed is less than 0 make                                             //it 0   leftSpeed = newSpeed * 0.9;               //between 0 and 90}/* * Sets the speed of the right wheel */void setSpeedRight(int newSpeed){    if(newSpeed >= 100) {newSpeed = 100;}     //if speed is greater than 100                                             //make it 100  if(newSpeed <= 0) {newSpeed = 0;}         //if speed is less than 0 make                                             //it 0   rightSpeed = newSpeed * 0.9;               //scales the speed to be }/* * sends the robot forwards */void goForward(){ leftServo.write(90 + leftSpeed);  rightServo.write(90 - rightSpeed);}  /* * sends the robot backwards */void goBackward(){ leftServo.write(90 - leftSpeed); rightServo.write(90 + rightSpeed);}  /* * sends the robot right */void goRight(){ leftServo.write(90 + leftSpeed); rightServo.write(90 + rightSpeed);}/* * sends the robot left */void goLeft(){ leftServo.write(90 - leftSpeed); rightServo.write(90 - rightSpeed);}/* * stops the robot */void goStop(){ leftServo.write(90); rightServo.write(90);}//END OF ARDUINO CONTROLLED SERVO ROBOT (SERB) ROUTINES//---------------------------------------------------------------------------

Step 4: Software - Robot Laptop (WebServer)

(Processing is an open source programming language and environment which is super easy to get started with. For more details visit Processing )

The software that runs on the robot laptop is also quite simple. It is a rather rudimentary web-server (listening for web page requests from a web browser), a small user interface (to set it up), and facilities for passing the commands received from the Web Server to the Arduino.

To Install Quickly: (on windows)
  • Download the zip file below (06-WEBB-Processing Webserver (windows exe).zip)
  • Unzip it and run the .exe file (_WEBB_WebServer_RobotComputer.exe)

To Edit in Processing:
  • Download the zip file below (06-WEBB-Processing Webserver (source files).zip)
  • Unzip anywhere on your computer.
  • Open the Processing environment and open (_WEBB_WebServer_RobotComputer.pde)

To Test:
  • Run the program.
  • In box #1 there will be a list of the available comm ports on your computer (click on the one your Arduino is conneced to. (your robot will twitch a few times as the computer connects, and a cyan dot will appear beside the chosen comm port)
  • In box #2 test to see if your Arduino is connected. Click one of the arrows and hopefully your robot will move in the clicked direction for half a second.
  • In box #3 click the "Start" button to start the web server.
  • Open a web browser (on the Robot Laptop) and visit http://127.0.0.1:12345/ControlPage.html (hopefully the control web page with buttons on it will appear) -Details on how to use this page in the next step-

What is happening:
  • The Web Server listens to port 12345 for http requests (what is sent when you type in a web page address)
  • There are two types of requests it responds to.
1. It listens for "ControlPage.html" and will send the control Webpage
2. It listens for requests of the form "/request?command=F&param1=100" (these commands are parsed and sent to the Arduino (this example would result in the robot going Forward for 10 seconds)

Appendix: (The code for the WebServer)

/* * Arduino Controlled Web Connected Robot (WEBB) - Webserver * For more details visit: http://www.oomlout.com/serb  *  * Behaviour: The program listens for http (webpage) requests in the form *            "/request?command=F&param1=100" and then passes them to the *            Arduino               *            Supported Commands - &apos;F&apos; - 70 - Forward *                                 &apos;B&apos; - 66 - Backward *                                 &apos;L&apos; - 76 - Left *                                 &apos;R&apos; - 82 - Right *                                 &apos;S&apos; - 83 - Speed *                                 &apos;X&apos; - 88 - SetSpeedLeft *                                 &apos;Y&apos; - 89 - SetSpeedRight  *                                 &apos;C&apos; - 67 - Stop  *            param1&apos;s - 0 - 255 (0 to 25.5 Seconds) value * 100 milliseconds  * *            also serves the control webpage to the browser if asking for ControlPage.html * * Operation: 1. Click on the Comm port your Arduino is connected to *            2. Use the test buttons to see if your arduino is listening  *               (will move in the direction clicked for half a second) *            3. Click Start and your webserver will be listening for requests * * * License: This work is licenced under the Creative Commons  *          Attribution-Share Alike 3.0 Unported License. To  *          view a copy of this licence, visit  *          http://creativecommons.org/licenses/by-sa/3.0/  *          or send a letter to Creative Commons, 171 Second  *          Street, Suite 300, San Francisco, California 94105,  *          USA. *         */import processing.serial.*;         //import the serial library to use Serial (for talking to Arduino)import processing.net.*;            //import the net library to use Server    (for talking to the internet)/* Serial Port Related Variables */int serialPortIndex = -1;           //the index of the serial port we are using in the Serial.list() listString[] commOptions;               //A variable to store Serial.list() in so there is no need to poll                                     //the serial ports each time we wish to refrence it (polling causes a                                     //jump in the arduino servos)Serial serialPort;                  //Makes the serial port addressable throughout this sketch/* Graphic and Rendering Related Variables */PFont font;                        //makes font public so it only needs to be loaded once (Arial-72)/* Network Related Variables */Server wServer;                    //The Server which handles web requestsint port = 12345;                  //The port the Server listens toint cycleCount = 0;                //Counts the number of times the draw loop executes (used to                                    //animate the "running" text)           /* Utility Variables */ PImage bg;     //The background image currently \WEBB-background.png/* * Button Related Variables * (buttons are implemented very roughly, bounding boxes are stored and graphic and text are *  drawn on the background image) ie. moving button variables will not move appearance of buttons */Button comm1; Button comm2; Button comm3; Button comm4; //The buttons to choose the correct serial portButton up; Button right; Button left; Button down;//The direction buttons to test if the robot is respondingButton webServer;                                       //The button to start the webServer/* * sets evrything up */void setup() {  frameRate(5);                          //Slows the sketch down a little so it is not as taxing on the system  bg = loadImage("WEBB-background.png"); //Loads the background image (stored in the sketch folder)  size(700, 400);                        //Sets the size of the sketch window  font = loadFont("ArialMT-72.vlw");     //Loads the font we will use throught this sketch  commOptions = Serial.list();           //Polls the Serial ports and gets a list of available ports                                          //(doing this only once keeps the robot from twitching everytime it&apos;s                                          //serial port is polled)  defineButtons();            //Defines the bounding boxes for each button  background(bg);             //Paints the background image (this image has all the button graphics on it)}/* The sketches main loop */void draw() {  if(cycleCount==0){  //-- call draw routines    drawCommBox();                        //Draws the emelments in the Comm Box (box 1)    drawTestBox();                        //Draws all the elements in the Test Box (box 2)     drawWebServerBox();                   //Draws all the elements in the WebServer Box (box 3)  }  //-- call working routines  pollWebServer();              //Polls the web server to see if any requests have come in via the network}//----------------------------------------------------------------------------//Start of draw routines (split up just to make code nicer to read)/* * The draw update routine (executed every cycle) for items in the comm box (box 1) */void drawCommBox(){  fill(0,0,0);                                 //Set the fill to black  textFont(font, 15);                          //Set the font to the right size  for(int i = 0; i < commOptions.length; i++){ //For each comm option    text(commOptions[i], 100, 102 + i*70);     //Writes the name of each comm option beside                                                //the appropriate button  }  /* Draw the dot beside the currently active comm port */  if(serialPortIndex != -1){                    //checks to see if a comm port has been chosen    fill(0,147,221);                            //Set fill to cyan    ellipse(180, 96 + 70 * serialPortIndex, 30, 30);     //Draw a circle beside the currently active Comm port  } }/* The draw update routine (executed every cycle) for items in the test box (box 2)*/void drawTestBox(){}/* The draw update routine (executed every cycle) for items in the webserver box (box 3) */void drawWebServerBox(){  fill(0,0,0);                                  //Set the fill to black  textFont(font, 30);                           //Set the font to the right size  if(wServer == null){text("Start", 553, 210);  //If the Webserver has not started writes Start on the button  }else{                                                     String running = "Running.";                        //If the Webserver is running writes running and                                                         //a progression of dots for movement    if((cycleCount / 1) > 0){running = running + ".";} //the number of dots is based on cycleCount         if((cycleCount / 1) > 1){running = running + ".";}    if((cycleCount / 1) > 2){running = running + ".";}    if((cycleCount / 1) > 3){cycleCount=0;}    text(running, 520, 210);  }  cycleCount++;                                     //Every time through cycleCount is incremented by one}  //End of Draw routines//-------------------------------------------------------------//-------------------------------------------------------------//Start of Service routines/* * mousePressed is called everytime the mouse is pressed this  * checks if the mouse is inside any of the button bounding boxes * and if it is the appropriate routine is called*/void mousePressed(){    if(comm1.pressed())      {updateSerialPort(0);}       //Changes to the comm port at index 0 in Serial.list()    else if(comm2.pressed()) {updateSerialPort(1);}       //Changes to the comm port at index 1 in Serial.list()    else if(comm3.pressed()) {updateSerialPort(2);}       //Changes to the comm port at index 2 in Serial.list()    else if(comm4.pressed()) {updateSerialPort(3);}       //Changes to the comm port at index 3 in Serial.list()    else if(up.pressed())    {sendRobotCommand("F", 5);} //Sends a command to move the robot Forward for 0.5 seconds    else if(left.pressed())  {sendRobotCommand("L", 5);} //Sends a command to move the robot Left for 0.5 seconds    else if(right.pressed()) {sendRobotCommand("R", 5);} //Sends a command to move the robot Right for 0.5 seconds    else if(down.pressed())  {sendRobotCommand("B", 5);} //Sends a command to move the robot Backward for 0.5 seconds    else if(webServer.pressed()) {startWebServer();}      //Starts the webServer           cycleCount = 0;    background(bg);                       //Repaints the background image (this image has all the button graphics on it)    draw();}/* * Called once an execution it checks the Server to see if there are any waiting connections * if there is a waiting connection it pulls out the request and passes it to the parseRequest(String) * routine to strip away extra text. This is then sent to the interpretRequest(String) routine to  * call the appropriate action routine (ie send instructions to robot).  * * A Request is passed by entering the computers address and port into a web browser * For local machine "http://127.0.0.1:12345/request?command=F&param1=100" * * Example Request: *   GET /request?command=F&param1=100 HTTP/1.1 *   User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) *   Accept: *//* *   Accept-Language: en-US,en *   Accept-Charset: ISO-8859-1,*,utf-8 *   Accept-Encoding: gzip,deflate,bzip2 *   Host: 127.0.0.1:12345 *   Connection: Keep-Alive * * Example Reply (for processed request) *   HTTP/1.1 200 OK *   Connection: close *   Content-Type: text/html * *   command: F param1: 100    */void pollWebServer(){  if(wServer != null){                               //If the webServer is running    Client request = wServer.available();            //Load the next Client in line in the                                                      //server (null if no requests waiting)    if(request != null){                             //if there is a request process it      String fullRequest = request.readString();     //Store request contents as a string      String ip = request.ip();                      //Store the clients ip address as a string       String requestString = parseRequest(fullRequest.toUpperCase());  //Strip away all the extra                                          //information leaving only the request string (text after GET)                                         //(shifts to upper case to make string testing easier)       if(requestString.indexOf("REQUEST?") != -1){        //Checks if the request has "REQUEST?"         String reply = interpretRequest(requestString);   //Sends the request to the request interpreter         request.write("HTTP/1.1 200 OK\nConnection: close\nContent-Type: text/html\n\n" + reply);                                                             //Sends the reply a 200 to say the request was                                                           //handled and the "reply" string as the response          wServer.disconnect(request);                     //Disconnects the Client       }else if(requestString.indexOf("CONTROLPAGE") != -1){  //If the request is for the control web page         String[] webPageArray = loadStrings("WEBB-ControlPage.html");                                                            //Loads the control webPage from \data\WEBB-ControlPage.html                                                           //(loaded as an array of lines)         String webPage ="";                              //To make editing easier the webpage has been left with                                                           //line breaks so this for loop striops those lines out         for(int i = 0; i < webPageArray.length; i++){           webPage = webPage + webPageArray[i];         }         request.write("HTTP/1.1 200 OK\nConnection: close\nContent-Type: text/html\n\n" + webPage);                                                           //sends the browser the instructions that the request was not                                                           //processed and the webpage as a string         wServer.disconnect(request);                     //Disconnects the client       }else if(requestString.indexOf("/TEST/") != -1){   //For Testing outputs the request as a println         println(fullRequest);         println(ip);         request.write("HTTP/1.1 200 OK\nConnection: close\nContent-Type: text/html\n\n");                                                           //sends the browser the instructions that the request was not                                                           //processed and the webpage as a string         wServer.disconnect(request);                     //Disconnects the client       }else{         request.write("HTTP/1.1 404 FILE NOT FOUND\nConnection: close\n");                                                           //sends the browser the instructions that the request was                                                           //not processed (usually due to a typo) then tells it to                                                           //close the connection         wServer.disconnect(request);                     //Disconnects the client       }    }  } }//End of Service Routines//-------------------------------------------------------------//-------------------------------------------------------------//Start of setup routines (routines called once or not very often/* * Defines all the bounding boxes for the buttons used in this sketch */void defineButtons(){  comm1 = new Button(30, 65, 60, 60);  //Defines the comm1 button  comm2 = new Button(30, 135, 60, 60); //Defines the comm2 button  comm3 = new Button(30, 205, 60, 60); //Defines the comm3 button  comm4 = new Button(30, 275, 60, 60); //Defines the comm1 button  up = new Button(320, 110, 60, 60);   //Defines the up/forward button  left = new Button(260, 170, 60, 60); //Defines the left button  right = new Button(380, 170, 60, 60);//Defines the right button  down = new Button(320, 230, 60, 60); //Defines the down/backward button  webServer = new Button(493, 170, 180, 60); //Defines the webserver button}/* * When the "Start" button in the webserver box is pressed the server starts listening * for incoming connections on port port (12345) defined in the preamble */void startWebServer(){    if(wServer == null) {wServer = new Server(this, port);}  }/* * This takes a verbose http request from a client and * returns only the request line (what comes after GET) */String parseRequest(String fullRequest){  fullRequest = fullRequest.substring(fullRequest.indexOf("GET ") + "GET ".length());                                               //Cuts off everything in the string before GET  fullRequest = fullRequest.substring(0, fullRequest.indexOf(" "));                                                                 //Takes from the begining of the new string to the first space  return fullRequest;                       //returns the shortened request}/* * updates the serial port being used to comunicate with the arduino * portIndex is the index of the port we wish to use in Serial.list(); * as Serial.list() is loaded into memory at startup adding serial ports  * after startup could cause unexcpected operation */void updateSerialPort(int portIndex){  if(commOptions.length > portIndex){ //if the passed portIndex is a valid index in Serial.list()                                       //(ie. not option three in a list of two)     serialPortIndex = portIndex;     //set the serialPortIndex variable to the new serialport index                                       //(this is used to display the dot beside the active port)  }  if(serialPortIndex != -1){                    //check to make sure a port has been chosen sometime previous    if(serialPort != null){serialPort.stop();}  //if a Serial port is already being used stop it before loading a new one     serialPort = new Serial(this, Serial.list()[serialPortIndex], 9600);                                                  //Create a new Serial object to comunicate with the Arduino 9600 Baud  }}/* * Takes a request string (ex: "request?command=F&param1=100") and will strip out the command * and param1 and pass it to the arduino (adding extra parameters or non arduino commands would be done here) */String interpretRequest(String requestString){ String returnValue = "OK";                     //Prepares a returnValue variable String command;                                //Next three lines extract the value after "command="                                                 //(the extra line is in case the command parameter is at the                                                 //end of the request and not followed by an & if(requestString.indexOf("COMMAND=") != -1){   command = requestString.substring(requestString.indexOf("COMMAND=") + "COMMAND=".length());} else{command = "Z";} if(command.indexOf("&") != -1){   command = command.substring(0,command.indexOf("&"));}else{command = command;} String param1String;                         //Next three lines extract the value after "param1="                                               //(the extra line is in case the command parameter is at                                               //the end of the request and not followed by an & if(requestString.indexOf("PARAM1=") != -1){   param1String = requestString.substring(requestString.indexOf("PARAM1=") + "PARAM1=".length());} else{param1String = "0";} if(param1String.indexOf("& ") != -1){   param1String = param1String.substring(0,param1String.indexOf("&"));} else{param1String = param1String;} int param1 = Integer.parseInt(param1String);  //Turns the param1 String into an integer sendRobotCommand(command,param1);            //Sends the command to the routine that sends it to the Arduino returnValue = "command: " + command + " param1: " + param1;  //at the moment just the parsed command but sending                                                               //as html so formatting can be included return returnValue;}/* * Takes a command (currently one letter) and a parameter (one byte 0-255) and sends it to the arduino * which is listening and reasts * Currrently Supported Commands * F -*/void sendRobotCommand(String command, int param1){  println("command: " + command + " time: " + param1);  String checkString = "AAA";  if(serialPort != null){    serialPort.write(checkString + command);    serialPort.write(byte(param1));  }}//End of setup/not very commonly called routines//-------------------------------------------------------------------------------------//Example button and RectButton code from processing.org example with some changes //made mostly to simplify and remove roll over animation//http://processing.org/learning/topics/buttons.html (2008-09-23)class Button{  int x, y;  int width, height;  Button(int ix, int iy, int iwidth, int iheight) {    x = ix;  y = iy;  width = iwidth;  height = iheight;  }    boolean pressed() {    if(overRect()) { return true; }     else {           return false;}      }  boolean overRect() {    if (mouseX >= x && mouseX <= x+width && mouseY >= y && mouseY <= y+height) { return true; }     else { return false; }  }}

Step 5: Software - (Webpage)

Well we're almost finished all that is left is talking to your robot.

To Get Talking: (over a local network -on windows-)
  • Discover the local ip address of the laptop computer. To do this go to "Start\Programs\Accesories\Command Prompt" and when the terminal window opens up type "ipconfig". Write down "IP Address" and head to another computer on your local network.
  • Open a web browser, type "http://(robot computer ip):12345/ControlPage.html
  • The control web page should load, in the "IP Address" box type the robot computers ip.
  • Begin controlling your robot.

To Get Talking: (over the internet)
Now that you have it working locally getting it talking over the internet is just a few short steps away.

  • (most difficult step) Set up Port Forwarding - Your computer needs to be listening to the internet rather than just the local network. To do this you need to tell your router to pass certain requests through to the computer controlling the robot. This is a bit complex and goes far beyond the scope of this Instructable. However if you visit PortForward.com they will give you all you need to know about configuring your router (you need to forward port 12345 to your robot laptop)
  • Next discover your internet IP (visit WhatIsMyIP.com )
  • Finally fire up skype setup a video call and get whomever you are talking to to visit "http://(internet IP):12345/ControlPage.html"
  • Type in the internet IP into the "IP Adress" box in the control webpage and your Web Connected Robot is being driven from afar.

Step 6: Finished

Well that's it. I hope you're having a fun time driving your robot from a far. If you have any issues with the software or hardware feel free to leave a comment and I'll try and help you out.

If you would like to check out more neat projects try visiting: oomlout.com
<p>There is no download link to the laser cut file. It would be great if you could send it or post it.</p><p>ygupta96@gmail.com</p>
can any one help me out <br>while making the connections of my web connected robot i connected the servos with 4 1.5 volt batteries and connected the arduino dumilaenove conector with the 9v battery asinstructed <br>but i dont know what has happened that after that my arduino stops working how ever now i replaced my arduino with a new one and i have run the blinking led programe on it and its working also <br>now i want to know how should i power my arduino that it does not damage
&nbsp;Can someone post the arduino code in an easier form so us NOOBS and use it. I really love this idea and Im already building the chassis now... just need the software.
<div> Here is the code cleaned up. &nbsp;I did not get a chance to test it. &nbsp;It does past check in Arduino though.&nbsp;<br> <br> /*</div> <div> &nbsp;* Arduino Controlled Web Connected Robot (WEBB) - Serial Host&nbsp;</div> <div> &nbsp;* For more details visit: http://www.oomlout.com/serb &nbsp;</div> <div> &nbsp;* &nbsp;</div> <div> &nbsp;* Behaviour: The Arduino listens to its Serial port for a command&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;in format 254, 88, 88, (COMMAND), (TIME)&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Supported Commands - 'F' - 70 - Forward&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'B' - 66 - Backward&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'L' - 76 - Left&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'R' - 82 - Right&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'S' - 83 - Speed&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'X' - 88 - SetSpeedLeft&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Y' - 89 - SetSpeedRight &nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'C' - 67 - Stop &nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Supported Times - 0 - 255 (0 to 25.5 Seconds) value&nbsp;</div> <div> &nbsp;* 100 milliseconds &nbsp;</div> <div> &nbsp;*sp&nbsp;</div> <div> &nbsp;* Wiring: Right Servo Signal - pin 9&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; Left Servo Signal - pin 10 &nbsp;</div> <div> &nbsp;*&nbsp;</div> <div> &nbsp;* License: This work is licenced under the Creative Commons &nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Attribution-Share Alike 3.0 Unported License. To &nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;view a copy of this licence, visit &nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;http://creativecommons.org/licenses/by-sa/3.0/ &nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;or send a letter to Creative Commons, 171 Second &nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Street, Suite 300, San Francisco, California 94105, &nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;USA.&nbsp;</div> <div> &nbsp;* &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div> <div> &nbsp;*/ &nbsp;</div> <div> &nbsp;</div> <div> &nbsp;//-------------------------------------------------------------------------</div> <div> &nbsp;//START OF ARDUINO SERIAL SERVER PREAMBLE</div> <div> &nbsp;//Defining constants corresponding to each command (also the ascii code number)&nbsp;</div> <div> &nbsp;#define FORWARD 70 &nbsp; &nbsp; &nbsp; //F</div> <div> &nbsp;#define BACKWARD 66 &nbsp; &nbsp; &nbsp; //B</div> <div> &nbsp;#define LEFT 76 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //L</div> <div> &nbsp;#define RIGHT 82 &nbsp; &nbsp; &nbsp; &nbsp; //R</div> <div> &nbsp;#define SETSPEED 83 &nbsp; &nbsp; &nbsp; &nbsp; //S</div> <div> &nbsp;#define STOP 67 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //C</div> <div> &nbsp;#define SETSPEEDLEFT 88 &nbsp; //X</div> <div> &nbsp;#define SETSPEEDRIGHT 89 //Y</div> <div> &nbsp;</div> <div> &nbsp;/*The three check bytes (used to keep the robot from responding to random serial *data) currently &quot;AAA&quot;&nbsp;</div> <div> &nbsp;*/</div> <div> &nbsp;#define checkByte1 65 &nbsp; // &quot;A&quot;</div> <div> &nbsp;#define checkByte2 65 &nbsp; // &quot;A&quot;</div> <div> &nbsp;#define checkByte3 65 &nbsp; // &quot;A&quot;&nbsp;</div> <div> &nbsp;//--------------------------------------------------------------------------</div> <div> &nbsp;// START OF ARDUINO CONTROLLED SERVO ROBOT (SERB) PREAMBLE</div> <div> &nbsp;#include &lt;Servo.h&gt;</div> <div> &nbsp;#define LEFTSERVOPIN &nbsp;10 &nbsp; &nbsp;//The pin the left servo is connected to</div> <div> &nbsp;#define RIGHTSERVOPIN &nbsp;9 &nbsp; &nbsp;//The pin the right servo is connected to</div> <div> &nbsp;Servo leftServo; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div> <div> &nbsp;Servo rightServo;&nbsp;</div> <div> &nbsp;int leftSpeed = 50; //holds the speed of the robots leftServo</div> <div> //a percentage between 0 and 100</div> <div> int rightSpeed = 100; //holds the speed of the robots rightServo</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //a percentage between 0 and 100</div> <div> // END OF ARDUINO CONTROLLED SERVO ROBOT (SERB) PREAMBLE</div> <div> //--------------------------------------------------------------------------</div> <div> //Gets everything up and running</div> <div> &nbsp;</div> <div> void setup()</div> <div> { &nbsp;</div> <div> &nbsp; Serial.begin(9600); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Starts the serial port &nbsp;</div> <div> &nbsp; serbSetup(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//sets the state of all neccesary</div> <div> //pins and adds servos to your sketch}</div> <div> //The main program loop</div> <div> }</div> <div> &nbsp;</div> <div> void loop() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div> <div> { &nbsp;serbPollSerialPort(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //continuously looks to the serial port</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //if there is data it processes it</div> <div> }</div> <div> //-----------------------------------------------------------------------</div> <div> //START OF ARDUINO SERIAL SERVER ROUTINES</div> <div> /*&nbsp;</div> <div> * Processes commands delivered to the arduino's serial port&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void serbPollSerialPort()</div> <div> { &nbsp;</div> <div> int dta; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//variable to hold the serial &nbsp;byte &nbsp;</div> <div> &nbsp;</div> <div> if ( Serial.available() &gt;= 5) { &nbsp; &nbsp; &nbsp; //if 5 bytes are in the buffer (length pf a full request) &nbsp; &nbsp;</div> <div> dta = Serial.read(); &nbsp; &nbsp;&nbsp;</div> <div> if ( dta = checkByte1){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Checks for first check byte &nbsp; &nbsp; &nbsp; &nbsp;</div> <div> dta = Serial.read(); &nbsp; &nbsp; &nbsp; &nbsp;</div> <div> if ( dta = checkByte2){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Checks for second check byte</div> <div> dta = Serial.read(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div> <div> if ( dta = checkByte3){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Checks for third check byte</div> <div> int command = Serial.read(); &nbsp; &nbsp; &nbsp; &nbsp;//Fourth byte is the command</div> <div> int param1 = Serial.read(); &nbsp; &nbsp; &nbsp; &nbsp; //Fifth byte is param1</div> <div> interpretCommand(command, param1); &nbsp;//sends the parsed request to it's handler</div> <div> }</div> <div> }</div> <div> }</div> <div> }</div> <div> }</div> <div> &nbsp;</div> <div> /*&nbsp;</div> <div> * Takes the command and parameter and passes it to the robot&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void interpretCommand(int command, int param1)</div> <div> {</div> <div> if &nbsp; &nbsp; &nbsp; (command == FORWARD)</div> <div> {</div> <div> goForward();&nbsp;</div> <div> delay(param1 * 100);&nbsp;</div> <div> goStop();</div> <div> } &nbsp; //if forward &nbsp;&nbsp;</div> <div> &nbsp;</div> <div> else if(command == BACKWARD)</div> <div> {</div> <div> goBackward();&nbsp;</div> <div> delay(param1 * 100);</div> <div> goStop();</div> <div> } //if backwards &nbsp;</div> <div> else if(command == LEFT)</div> <div> {</div> <div> goLeft();&nbsp;</div> <div> delay(param1 * 100);&nbsp;</div> <div> goStop();</div> <div> } &nbsp; &nbsp; &nbsp; &nbsp; //if left &nbsp;</div> <div> else if(command == RIGHT)</div> <div> {</div> <div> goRight();&nbsp;</div> <div> delay(param1 * 100);&nbsp;</div> <div> goStop();</div> <div> } &nbsp; &nbsp; &nbsp; //if right &nbsp;</div> <div> else if(command == SETSPEED)</div> <div> {</div> <div> setSpeed(param1);</div> <div> } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //if setting speed &nbsp;</div> <div> else if(command == STOP)</div> <div> {</div> <div> goStop();</div> <div> } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //if stop &nbsp;</div> <div> else if(command == SETSPEEDLEFT)</div> <div> {</div> <div> setSpeedLeft(param1);</div> <div> } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //if setting left speed &nbsp;</div> <div> else if(command == SETSPEEDRIGHT)</div> <div> {</div> <div> setSpeedRight(param1);</div> <div> } &nbsp; &nbsp; &nbsp; &nbsp; //if setting right speed &nbsp;</div> <div> else</div> <div> { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//if unrecognized command do a little shimmey</div> <div> goLeft();&nbsp;</div> <div> delay(150);&nbsp;</div> <div> goRight();&nbsp;</div> <div> delay(150);&nbsp;</div> <div> goStop();</div> <div> }</div> <div> }</div> <div> &nbsp;</div> <div> //------------------------------------------------------------------------</div> <div> //START OF ARDUINO CONTROLLED S ERVO ROBOT (SERB) ROUTINES</div> <div> &nbsp;</div> <div> /*&nbsp;</div> <div> * sets up your arduino to address your SERB using the included routines</div> <div> */</div> <div> &nbsp;</div> <div> void serbSetup()</div> <div> { &nbsp;</div> <div> setSpeed(leftSpeed); &nbsp;</div> <div> pinMode(LEFTSERVOPIN, OUTPUT); &nbsp; &nbsp; //sets the left servo signal pin</div> <div> //to output &nbsp;</div> <div> pinMode(RIGHTSERVOPIN, OUTPUT); &nbsp; &nbsp;//sets the right servo signal pin</div> <div> //to output &nbsp;</div> <div> leftServo.attach(LEFTSERVOPIN); &nbsp; &nbsp;//attaches left servo &nbsp;</div> <div> rightServo.attach(RIGHTSERVOPIN); &nbsp;//attaches right servo &nbsp;</div> <div> goStop();</div> <div> }</div> <div> &nbsp;</div> <div> /*&nbsp;</div> <div> * sets the speed of the robot between 0-(stopped) and 100-(full speed)&nbsp;</div> <div> * NOTE: speed will not change the current speed you must change speed &nbsp;</div> <div> * then call one of the go methods before changes occur.</div> <div> */&nbsp;</div> <div> &nbsp;</div> <div> void setSpeed(int newSpeed)</div> <div> { &nbsp;</div> <div> setSpeedLeft(newSpeed); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //sets left speed &nbsp;</div> <div> setSpeedRight(newSpeed); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//sets right speed}</div> <div> }</div> <div> /*&nbsp;</div> <div> * Sets the speed of the left wheel&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void setSpeedLeft(int newSpeed)</div> <div> { &nbsp;</div> <div> if(newSpeed &gt;= 100)&nbsp;</div> <div> {</div> <div> newSpeed = 100;</div> <div> } &nbsp; &nbsp; //if speed is greater than 100</div> <div> //make it 100 &nbsp;</div> <div> &nbsp;</div> <div> if(newSpeed &lt;= 0)</div> <div> {</div> <div> newSpeed = 0;</div> <div> } &nbsp; &nbsp; &nbsp; //if speed is less than 0 make</div> <div> //it 0 &nbsp;&nbsp;</div> <div> leftSpeed = newSpeed * 0.9; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //between 0 and 90}</div> <div> }</div> <div> /*&nbsp;</div> <div> * Sets the speed of the right wheel&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void setSpeedRight(int newSpeed)</div> <div> { &nbsp; &nbsp;</div> <div> if(newSpeed &gt;= 100)&nbsp;</div> <div> {</div> <div> newSpeed = 100;</div> <div> } &nbsp; &nbsp; //if speed is greater than 100</div> <div> //make it 100 &nbsp;</div> <div> if(newSpeed &lt;= 0)&nbsp;</div> <div> {</div> <div> newSpeed = 0;</div> <div> } &nbsp; &nbsp; &nbsp; //if speed is less than 0 make</div> <div> //it 0 &nbsp;&nbsp;</div> <div> rightSpeed = newSpeed * 0.9; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //scales the speed to be&nbsp;</div> <div> &nbsp;</div> <div> }</div> <div> &nbsp;</div> <div> /* * sends the robot forwards&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void goForward()</div> <div> {&nbsp;</div> <div> leftServo.write(90 + leftSpeed);</div> <div> rightServo.write(90 - rightSpeed);</div> <div> } &nbsp;</div> <div> &nbsp;</div> <div> /*&nbsp;</div> <div> * sends the robot backwards&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void goBackward()</div> <div> {&nbsp;</div> <div> leftServo.write(90 - leftSpeed);&nbsp;</div> <div> rightServo.write(90 + rightSpeed);} &nbsp;</div> <div> /*&nbsp;</div> <div> * sends the robot right&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void goRight()</div> <div> {&nbsp;</div> <div> leftServo.write(90 + leftSpeed);&nbsp;</div> <div> rightServo.write(90 + rightSpeed);</div> <div> }</div> <div> &nbsp;</div> <div> /*&nbsp;</div> <div> * sends the robot left&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void goLeft()</div> <div> {&nbsp;</div> <div> leftServo.write(90 - leftSpeed);&nbsp;</div> <div> rightServo.write(90 - rightSpeed);</div> <div> }</div> <div> &nbsp;</div> <div> /*&nbsp;</div> <div> * stops the robot&nbsp;</div> <div> */</div> <div> &nbsp;</div> <div> void goStop()</div> <div> {&nbsp;</div> <div> leftServo.write(90);&nbsp;</div> <div> rightServo.write(90);</div> <div> }</div> <div> &nbsp;</div> <div> //END OF ARDUINO CONTROLLED SERVO ROBOT (SERB) ROUTINES</div> <div> &nbsp;</div> <div> //---------------------------------------------------------------------------</div>
Apparently this was just an advertisement for oomlout. <br> <br>They do not respond to any enquiry. Probably gone out of business by now . <br> <br> <br>Apr 4, 2010. 11:45 AMdaveo84 says: <br> Using this code and the wiring diagram supplied, when I connect my arduino board via usb to any machine both servos start spinning... <br> <br>What gives? <br> <br>I had this problem too. <br> <br>I can't work it out either
how do you communicate with the robot with your laptop. as in how do you read values from the robot from your laptop.
if you wanted you should try <a href="http://www.critesintl.com" rel="nofollow">video conference facilities</a>.
The oomlout links for the chassis are not functioning. Are these still available?
Is there a way to bind the keys you use to the keyboard instead of clicking left/right on the screen?
Good Job ! i like robot pc!
Does anyone know how you can run this on linux?
Hy, can someome tell me where can i find the Pattern for the wheels and the lower part of the robot?<br><br>Thanks,
can you give me the code plz i am tring for 2 month still no progress crx.ksa@gmail.com
try using https://www.instructables.com/id/how-to-build-MACKRA-a-serb-variant/step7/the-software-arduino/
can any one sent me The code for the arduino webserver crx.ksa@gmail.com
dude just use vspe , all your problems will be solved, for the video feed use webcam xp
hi i build the robot it took 3days to do it , after i got the code from a member http://www.youtube.com/watch?v=OuyOQKXwtUA ok bye
can you give me the code plz i am tring for 2 month still no progress crx.ksa@gmail.com
really good tutorial :)
&nbsp;Using this code and the wiring diagram supplied, when I connect my arduino board via usb to any machine both servos start spinning...<br /> <br /> What gives?<br />
nice job tooo but missing 05-webb arduino.zip
<span class="short_text" id="result_box"><span style="background-color: rgb(235,239,249);"><font size="5">hello missing file 05-WEBB-Arduino Code.zip? good job</font></span></span>
Could you use Lego mindstorms?
I'm pretty sure Oomlout is an internet store only.<br/>Either <a rel="nofollow" href="http://www.oomlout.com">http://www.oomlout.com</a> or <a rel="nofollow" href="http://www.oomlout.co.uk">http://www.oomlout.co.uk</a><br/>
Congratulations! I liked it very much... but wouldn't it be better if made from a Wishield instead of a netbook? (sorry about the English) <a rel="nofollow" href="http://asynclabs.com/home">http://asynclabs.com/home</a><br/>
Very nice and easy to use. Works well on the first try. Thanks
hay dood i love your web car well thats what i wood call it if i made it i wish that you coud tell me of an oomlout shop near brisbane if you can pleas can you email me at reif@tpg.com.au
You can also use a VPN (LogMeIn Hamachi makes them easy) and write some simple TCP/IP client/server programs, to add proportional joystick support, and get better command-throughput than over HTTP.<br/><br/>I have something a little bit like this, that I built: <a rel="nofollow" href="http://www.youtube.com/watch?v=c4M8YzrSBqc">http://www.youtube.com/watch?v=c4M8YzrSBqc</a><br/>
cant it just take commands from some website? maybe it would look at the blog section for text commands and u could password protect the site so it can do everything as u did here?
never mind - i just realized that thats what u did, i was thinking more about something without all the numbers, so u could just go onto www.(whatever).com , login, and take it from there...
Hi Stuart, Am I right that for a bigger laptop parts should be scaled properly? Bests, Richard
Hi Stuart, you mention the cdr and eps files in step 2 but there is no link to them as it was with SERB. Could you add them? (I already got the electronics working and I have a cardboard prototype robot but now I am thinking about waterjet cutting and these files may be helpful.) Bests, Richard
this is really cool !! 2 questions, Can this work with a windows 98 SE computer ? and Can it work using 9 pin Serial port instead of usb? never really got usb devices to work on old computer
Great Instructable! 5 stars!
i have a eee, (check my instructables, would like to know what you think ) and last night i bought a arduino ..... that is creepy i think i may have to build this, but with tracks :D ( as i have them "in stock") very very nice job you have done by the way.
I cant help but think of this: xkcd ROCKS!
Yeah.
If you wanted to you could add a USB webcam so that you can have the laptop lid closed.
Oh, and that's completely awesome, by the way.

About This Instructable

65,123views

142favorites

License:

More by oomlout:How to Breadboard Arduino Compatible. RGB LED Tutorial (using an Arduino) (RGBL) Solderless Breadboard Layout Sheets (plug and play electronics) 
Add instructable to: