X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=blobdiff_plain;f=build-stages%2Fg_follow%2Fg_follow.ino;h=54c7967200fb0fde1a09ffe133f09bdbe5fb8b79;hp=facaf06c43130a7329bc31dd12a74b40e399b8b1;hb=5218c75f607a885a644121a5f416ea07712037f6;hpb=74cf212c91efb501e91da9ee5dc1d08548405000 diff --git a/build-stages/g_follow/g_follow.ino b/build-stages/g_follow/g_follow.ino index facaf06..54c7967 100644 --- a/build-stages/g_follow/g_follow.ino +++ b/build-stages/g_follow/g_follow.ino @@ -14,19 +14,19 @@ */ // define which pins are connected to which components -int right_motor_speed_pin = 3; // orange wire -int right_motor_forward_pin = 4; // brown -int right_motor_backward_pin = 5; // purple +int right_motor_speed_pin = 3; +int right_motor_forward_pin = 4; +int right_motor_backward_pin = 5; -int right_echo_pin = 6; // white -int right_trigger_pin = 7; // blue +int right_echo_pin = 6; +int right_trigger_pin = 7; -int left_motor_speed_pin = 8; // orange -int left_motor_forward_pin = 9; // brown -int left_motor_backward_pin = 10; // purple +int left_motor_speed_pin = 8; +int left_motor_forward_pin = 9; +int left_motor_backward_pin = 10; -int left_echo_pin = 11; // white -int left_trigger_pin = 12; // blue +int left_echo_pin = 11; +int left_trigger_pin = 12; // you'll need to adjust these based on your sonar sensor's behavior int desired_right_ping_time = 800;