This next program sets the Arlo’s motors to 20/127 of full power in the forward direction. If your Arlo goes forward while running this program, it indicates that your motors are connected correctly.
Check the picture at the start of this document and make sure you know the Arlo’s forward, backward, left and right.
IMPORTANT: Your Arlo will not be ready for the next step until it goes forward for this test.
/* Arlo - Test Motor Connections.c Run this program to verify that your Arlo goes forward. */ #include "simpletools.h" // Include simple tools #include "arlodrive.h" // Include arlo drive int main() // Main function { freqout(4, 1000, 3000); // Beep -> program starting print("Program running...\n"); // Program running message drive_feedback(0); // Disable encoders drive_speed(20, 20); // 20/127 of full power to motors pause(3000); // Go for 3 seconds drive_speed(0, 0); // Stop print("Program done!\n"); // Program done message }