This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int LeftMotorForward = 10; // Pin 10 has Left Motor connected on Arduino boards. | |
int LeftMotorReverse = 9; // Pin 9 has Left Motor connected on Arduino boards. | |
int RightMotorForward = 12; // Pin 12 has Right Motor connected on Arduino boards. | |
int RightMotorReverse = 13; // Pin 13 has Right Motor connected on Arduino boards. | |
#define trigPin 12 // define the pins of your sensor | |
#define echoPin 13 | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
//int RightMotorForward, LeftMotorForward = 12; // Pin 12 has Right Motor connected on Arduino boards.///// in this process the plan is to eliminate wires as much posible |