Build Your Own Eye Robot – A Tutorial

By Steve Griffiths

Robots! It seems like they’re everywhere today. In this golden age of technology, you can buy parts to build your own inexpensively. Here’s how…

First, we need to get some parts for our robot’s body and brain…

Get Your Robot’s Bod

Depending on how sharp you want to make your robot appear, you may need a few other things.

Additional Things You’ll Need

  1. A power drill.
  2. A 3-D printer and screwdriver (optional).
  3. Creativity.
  4. Elon Musk’s blessing. (Heh!)

If you plan on using your robot as soon as it’s built, you’re going to want to start by charging the batteries.

Power UP!

  1. Plug in the Create 2 charging station and dock the robot on it.
  2. Plug in the USB battery pack.
  3. Let both sit overnight so you’ll be charged-up and ready to put everything together the next day.

The Raspberry Pi is a general-purpose computer, so we’ll need to set it up so that it can send commands specific to our robot.

Preparing your Robot’s Brain

  1. Insert the SD card into the slot on the Raspberry Pi.
  2. Connect a HDMI cable to the Raspberry Pi to a monitor or TV.
  3. Connect a keyboard and mouse to the Raspberry Pi’s USB ports.
  4. Connect an Ethernet cable from your switch to the Raspberry Pi’s NIC.
  5. Connect the webcam to the Raspberry Pi using the ribbon cable.
  6. Enclose the Pi in the case.
  7. Finally, connect the power supply to the Raspberry Pi and plug it into a power outlet.
  8. Your Raspberry Pi will boot.

After your Raspberry Pi has booted...

  1. Login (user: pi, pw: raspberry) and connect it to your wi-fi router by clicking on the radio waves icon. Record the IP address. Note: I recommend that you use a DHCP reservation on your router so that you’ll know what IP address your Raspberry Pi acquires when it comes online.
  2. Through the GUI, click on Start, Preferences, Raspberry Pi Configuration and enable Camera and SSH.
  3. Run the following commands to update the camera software:

sudo apt-get update

sudo apt-get dist-upgrade

4. Install Jessie Lite, which posts video from the webcam to a local webserver on the Raspberry Pi, with the following commands:

sudo apt-get install git

git clone

cd RPi_Cam_Web_Interface


Finally, we download a script and shut down.

  1. Shut down the Raspberry Pi.

Now with our computer ready to go, let’s insert our “brain” into our robot body. Note that these steps are only guidance; feel free to be creative and place things wherever it makes sense to you. For example, you could drill holes in the green panel and zip-tie the Raspberry Pi and battery pack to the top of the robot for the purposes of more easily accessing the Pi and battery as well as giving you the ability to install vacuum hardware inside the dust bin.

Assemble your Avenger!

  1. On the robot, pop the green panel off to gain access to the data port. Drill a hole in the circle with the + sign in the middle. Reseat the panel and plug in the round end of the data cable into the hole and the other end to one of the Raspberry Pi’s USB ports.
  2. Open the dust bin compartment and remove the fan and the release button.
  3. Connect the battery pack to the Raspberry Pi and place both into the opening behind the dust bin.
  4. Snake the webcam through the hole where the release button was, pointing towards the front of the robot. Secure the webcam with tape.

Our robot is complete! Now we need to set up a laptop (or desktop with wi-fi access) as a command and control console that we will use to control our robot.

Preparing your Command and Control (C&C) Console

  1. Download PuTTY ( and save it to your desktop.
  2. Download and install XMing ( on your laptop.
  3. Start PuTTY and configure it to use X11 forwarding.
  4. Using PuTTY, SSH (port 22) to the IP address of the Raspberry Pi.
  5. Once connected, run .\ that you downloaded when you prepared the Raspberry Pi.
  6. From the “Create” menu, click “Connect”, then type in your COM port, /dev/ttyUSB0.
  7. Press “P” to put the robot into Passive mode and then “S” to go into Safe mode.
  8. Fire up your web browser and go to http://<Pi_IP_address>/html. This will display the webcam feed.

Congratulations! We’re now ready to move! From your XMing window interface, use your arrow keys to control the robot’s movement and press the spacebar to sound the horn. Enjoy!