Skip to content

How to program your robot

i-make-robots edited this page Jun 9, 2012 · 7 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 explains how to get set up better than I ever could.

The code

Download the code from this repository. Go back to the home page and click "ZIP", "Clone in Mac", or "Clone in Windows".

Turn your robot over or raise it off the ground so that it can't run away by accident.

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.

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. If the wheels are running backward, you've attached the servos upside down.

Clone this wiki locally