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
#include <Servo.h> //Servo motor library | |
#include <NewPing.h> //Ultrasonic sensor function library | |
const int LeftForward = 10;// L298N control pins | |
const int LeftBackward = 11; | |
const int RightForward = 12; | |
const int RightBackward = 13; | |
const int ENA = 3; | |
const int ENB = 5; | |
#define trig_pin A1 //sensor pins - analog input 1 |