put left motor speed pin on 10 for pwm
authordaniel watson <ozzloy@gmail.com>
Sat, 18 Jul 2015 07:44:10 +0000 (00:44 -0700)
committerdaniel watson <ozzloy@gmail.com>
Sat, 18 Jul 2015 07:44:10 +0000 (00:44 -0700)
* update all the wiring diagrams
* update all the code
* move left motor forward and backward down by one to make room

13 files changed:
build-stages/a_serial/serial.fzz [new file with mode: 0644]
build-stages/b_left_sonar/left-sonar.fzz
build-stages/c_both_sonars/both-sonars.fzz
build-stages/d_left_motor/d_left_motor.ino
build-stages/d_left_motor/left-motor.fzz
build-stages/e_both_motors/both-motors.fzz
build-stages/e_both_motors/e_both_motors.ino
build-stages/f_untethered/untethered.fzz
build-stages/g_follow/follow.fzz [new file with mode: 0644]
build-stages/g_follow/g_follow.ino
build-stages/h_stay_on_table/h_stay_on_table.ino
build-stages/h_stay_on_table/stay-on-table.fzz [new file with mode: 0644]
build-stages/i_follow_on_table/i_follow_on_table.ino

diff --git a/build-stages/a_serial/serial.fzz b/build-stages/a_serial/serial.fzz
new file mode 100644 (file)
index 0000000..1d329e1
Binary files /dev/null and b/build-stages/a_serial/serial.fzz differ
index 46130a7e364a8aadafba7f968d73d0bc58ab023e..490348d326a1544b57f10c272b43b7b5cf51add7 100644 (file)
Binary files a/build-stages/b_left_sonar/left-sonar.fzz and b/build-stages/b_left_sonar/left-sonar.fzz differ
index 9689ae63ce51f498c0b986f77adcac8b204c7553..5954edb5540e8f4f7f60d80be200b1584ed45921 100644 (file)
Binary files a/build-stages/c_both_sonars/both-sonars.fzz and b/build-stages/c_both_sonars/both-sonars.fzz differ
index e2d7a560b07d77e851c9d667099ece166454389c..a19074c3b67cd3281764dfa315477a198312974d 100644 (file)
@@ -14,9 +14,9 @@
  */
 
 // define which pins are connected to which components
  */
 
 // define which pins are connected to which components
-int left_motor_speed_pin = 8;
-int left_motor_forward_pin = 9;
-int left_motor_backward_pin = 10;
+int left_motor_forward_pin = 8;
+int left_motor_backward_pin = 9;
+int left_motor_speed_pin = 10;
 
 void setup(){
   // the arduino will change the voltage on these pins
 
 void setup(){
   // the arduino will change the voltage on these pins
index f9b181d55e3770834c2312faf3ec2604480a793a..aeb825b2115ed8ec774b532d323be269e1d893a0 100644 (file)
Binary files a/build-stages/d_left_motor/left-motor.fzz and b/build-stages/d_left_motor/left-motor.fzz differ
index 7c415e0f123fbd471d6df97b7f9d8bfdaf711771..0d3368fff1f8924b80139edebe32f4e26fcf7f15 100644 (file)
Binary files a/build-stages/e_both_motors/both-motors.fzz and b/build-stages/e_both_motors/both-motors.fzz differ
index b42c07ca73d3ee0b01f4ac5a5e7ded87a1a68234..1e55ac6a122207b81ca5922841ec16941fe4b7e9 100644 (file)
  */
 
 // define which pins are connected to which components
  */
 
 // define which pins are connected to which components
-int right_motor_speed_pin = 3;
-int right_motor_forward_pin = 4;
-int right_motor_backward_pin = 5;
+int right_motor_forward_pin = 3;
+int right_motor_backward_pin = 4;
+int right_motor_speed_pin = 5;
 
 
-int left_motor_speed_pin = 8;
-int left_motor_forward_pin = 9;
-int left_motor_backward_pin = 10;
+int left_motor_forward_pin = 8;
+int left_motor_backward_pin = 9;
+int left_motor_speed_pin = 10;
 
 void on(int pin){
   digitalWrite(pin, HIGH);}
 
 void on(int pin){
   digitalWrite(pin, HIGH);}
index 49937c6a59d203f42e603fdd671b0254542ac8f2..a4a7b7ee8a1878d2d649f880387db74cbefa9f0c 100644 (file)
Binary files a/build-stages/f_untethered/untethered.fzz and b/build-stages/f_untethered/untethered.fzz differ
diff --git a/build-stages/g_follow/follow.fzz b/build-stages/g_follow/follow.fzz
new file mode 100644 (file)
index 0000000..f7234cb
Binary files /dev/null and b/build-stages/g_follow/follow.fzz differ
index 54c7967200fb0fde1a09ffe133f09bdbe5fb8b79..3c01a4d7cf0c2c3282d927d9f853978b220a8d87 100644 (file)
  */
 
 // define which pins are connected to which components
  */
 
 // define which pins are connected to which components
-int right_motor_speed_pin = 3;
-int right_motor_forward_pin = 4;
-int right_motor_backward_pin = 5;
+int right_motor_forward_pin = 3;
+int right_motor_backward_pin = 4;
+int right_motor_speed_pin = 5;
 
 int right_echo_pin = 6;
 int right_trigger_pin = 7;
 
 
 int right_echo_pin = 6;
 int right_trigger_pin = 7;
 
-int left_motor_speed_pin = 8;
-int left_motor_forward_pin = 9;
-int left_motor_backward_pin = 10;
+int left_motor_forward_pin = 8;
+int left_motor_backward_pin = 9;
+int left_motor_speed_pin = 10;
 
 int left_echo_pin = 11;
 int left_trigger_pin = 12;
 
 int left_echo_pin = 11;
 int left_trigger_pin = 12;
index 07f7d17230591bea8820e73851b23957ac8f1512..40631b1a83f1f0a2cb4a1e5c66a861391c0aca14 100644 (file)
@@ -21,9 +21,9 @@ int right_motor_backward_pin = 5;
 int right_echo_pin = 6;
 int right_trigger_pin = 7;
 
 int right_echo_pin = 6;
 int right_trigger_pin = 7;
 
-int left_motor_speed_pin = 8;
-int left_motor_forward_pin = 9;
-int left_motor_backward_pin = 10;
+int left_motor_forward_pin = 8;
+int left_motor_backward_pin = 9;
+int left_motor_speed_pin = 10;
 
 int left_echo_pin = 11;
 int left_trigger_pin = 12;
 
 int left_echo_pin = 11;
 int left_trigger_pin = 12;
diff --git a/build-stages/h_stay_on_table/stay-on-table.fzz b/build-stages/h_stay_on_table/stay-on-table.fzz
new file mode 100644 (file)
index 0000000..b7069a8
Binary files /dev/null and b/build-stages/h_stay_on_table/stay-on-table.fzz differ
index 1330633e28798a2f07c03648386e9366d89618cb..b3978cb34a5b72d8f5cfcacb101e67bdb213ed07 100644 (file)
  */
 
 // define which pins are connected to which components
  */
 
 // define which pins are connected to which components
-int right_motor_speed_pin = 3;
-int right_motor_forward_pin = 4;
-int right_motor_backward_pin = 5;
+int right_motor_forward_pin = 3;
+int right_motor_backward_pin = 4;
+int right_motor_speed_pin = 5;
 
 int follow_right_echo_pin = 6;
 int follow_right_trigger_pin = 7;
 
 
 int follow_right_echo_pin = 6;
 int follow_right_trigger_pin = 7;
 
-int left_motor_speed_pin = 8;
-int left_motor_forward_pin = 9;
-int left_motor_backward_pin = 10;
+int left_motor_forward_pin = 8;
+int left_motor_backward_pin = 9;
+int left_motor_speed_pin = 10;
 
 int follow_left_echo_pin = 11;
 int follow_left_trigger_pin = 12;
 
 int follow_left_echo_pin = 11;
 int follow_left_trigger_pin = 12;