Implemented Functions: Following a black line using 6 digital sensors; Detecting an obstacle aprox. 30cm in front; Detecting the color of the obstacle and playing an according sound to the detected ...
#define TRIGGER_PIN 12 // Arduino pin tied to trigger pin on the ultrasonic sensor. #define ECHO_PIN 11 // Arduino pin tied to echo pin on the ultrasonic sensor. #define MAX_DISTANCE 100 // Maximum ...