-
Notifications
You must be signed in to change notification settings - Fork 2
How to program your robot
i-make-robots edited this page Jun 7, 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.
h2. Set up Arduino
- Get started with Arduino explains how to get set up better than I ever could.
h2. The code
-
Download the code from this repository. Go back to the home page and click "ZIP" or "Clone in Mac".
-
Turn your robot over or raise it 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.