From 661ac21e0bd2e7a48c7bed6332e948873f4a2b23 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Fri, 4 Dec 2015 20:11:24 -0800 Subject: [PATCH] indicate wire colors in comments --- build-stages/b_left_sonar/b_left_sonar.ino | 2 ++ build-stages/c_both_sonars/c_both_sonars.ino | 4 ++++ build-stages/d_left_motor/d_left_motor.ino | 3 +++ build-stages/e_both_motors/e_both_motors.ino | 6 ++++++ build-stages/g_follow/g_follow.ino | 11 +++++++++++ build-stages/h_stay_on_table/h_stay_on_table.ino | 10 ++++++++++ 6 files changed, 36 insertions(+) diff --git a/build-stages/b_left_sonar/b_left_sonar.ino b/build-stages/b_left_sonar/b_left_sonar.ino index 4b648b2..9c323e9 100644 --- a/build-stages/b_left_sonar/b_left_sonar.ino +++ b/build-stages/b_left_sonar/b_left_sonar.ino @@ -12,7 +12,9 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ +// yellow wire int left_echo_pin = 11; +// blue wire int left_trigger_pin = 12; int ping_microseconds = 0; diff --git a/build-stages/c_both_sonars/c_both_sonars.ino b/build-stages/c_both_sonars/c_both_sonars.ino index ed81af4..e39c0c4 100644 --- a/build-stages/c_both_sonars/c_both_sonars.ino +++ b/build-stages/c_both_sonars/c_both_sonars.ino @@ -12,10 +12,14 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ +// yellow wire int right_echo_pin = 6; +// blue wire int right_trigger_pin = 7; +// yellow wire int left_echo_pin = 11; +// blue wire int left_trigger_pin = 12; int count = 0; diff --git a/build-stages/d_left_motor/d_left_motor.ino b/build-stages/d_left_motor/d_left_motor.ino index a19074c..7a78954 100644 --- a/build-stages/d_left_motor/d_left_motor.ino +++ b/build-stages/d_left_motor/d_left_motor.ino @@ -14,8 +14,11 @@ */ // define which pins are connected to which components +// blue wire int left_motor_forward_pin = 8; +// orange wire int left_motor_backward_pin = 9; +// white wire int left_motor_speed_pin = 10; void setup(){ diff --git a/build-stages/e_both_motors/e_both_motors.ino b/build-stages/e_both_motors/e_both_motors.ino index 1e55ac6..136c4ae 100644 --- a/build-stages/e_both_motors/e_both_motors.ino +++ b/build-stages/e_both_motors/e_both_motors.ino @@ -14,12 +14,18 @@ */ // define which pins are connected to which components +// blue wire int right_motor_forward_pin = 3; +// orange wire int right_motor_backward_pin = 4; +// white wire int right_motor_speed_pin = 5; +// blue wire int left_motor_forward_pin = 8; +// orange wire int left_motor_backward_pin = 9; +// white wire int left_motor_speed_pin = 10; void on(int pin){ diff --git a/build-stages/g_follow/g_follow.ino b/build-stages/g_follow/g_follow.ino index 6588dd6..f0ba76c 100644 --- a/build-stages/g_follow/g_follow.ino +++ b/build-stages/g_follow/g_follow.ino @@ -14,18 +14,29 @@ */ // define which pins are connected to which components +// blue wire int right_motor_forward_pin = 3; +// orange wire int right_motor_backward_pin = 4; +// white wire int right_motor_speed_pin = 5; +// yellow wire int right_echo_pin = 6; +// blue wire int right_trigger_pin = 7; + +// blue wire int left_motor_forward_pin = 8; +// orange wire int left_motor_backward_pin = 9; +// white wire int left_motor_speed_pin = 10; +// yellow wire int left_echo_pin = 11; +// blue wire int left_trigger_pin = 12; void on(int pin){ diff --git a/build-stages/h_stay_on_table/h_stay_on_table.ino b/build-stages/h_stay_on_table/h_stay_on_table.ino index 26ecf2c..e2838f5 100644 --- a/build-stages/h_stay_on_table/h_stay_on_table.ino +++ b/build-stages/h_stay_on_table/h_stay_on_table.ino @@ -14,18 +14,28 @@ */ // define which pins are connected to which components +// blue wire int right_motor_forward_pin = 3; +// orange wire int right_motor_backward_pin = 4; +// white wire int right_motor_speed_pin = 5; +// yellow wire int right_echo_pin = 6; +// blue wire int right_trigger_pin = 7; +// blue wire int left_motor_forward_pin = 8; +// orange wire int left_motor_backward_pin = 9; +// white wire int left_motor_speed_pin = 10; +// yellow wire int left_echo_pin = 11; +// blue wire int left_trigger_pin = 12; void on(int pin){ -- 2.30.2