Skip to content

How to program your robot

i-make-robots edited this page Jun 7, 2012 · 2 revisions

For this part, you will need to download and install a few pieces of software. This is a one time thing you will be able to reuse with all your future Arduino projects.

Set up Arduino

1. [Get started with Arduino](http://arduino.cc/en/Guide/HomePage) explains how to get set up better than I ever could.

The code

1. Download the code from this repository. [Go back to the home page](https://github.com/i-make-robots/CanDo-Line-Following-Robot) and click “ZIP” or “Clone in Mac”.

1. Turn your robot over or raise it so that it can’t run away by accident.

1. Load CanDo-Line-Following-Robot/simple/simple.ino in the Arduino program and upload it. The moment the code finishes uploading, the robot should start to move.

1. Cover the photo resistors with your finger or a piece of dark tape. The wheel on the same side should slow down. If they other wheel slows down, reverse your A0 and A1 connections.

Clone this wiki locally