Arduino sketch for Logan's robot.