-
Notifications
You must be signed in to change notification settings - Fork 2
How to program your robot
If you haven't already, you might want to go back and assemble your robot
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.
- Get started with Arduino explains how to get set up better than I ever could.
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.