You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+// yellow wire
int left_echo_pin = 11;
+// blue wire
int left_trigger_pin = 12;
int ping_microseconds = 0;
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+// 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;
*/
// 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(){
*/
// 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){
*/
// 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){
*/
// 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){