In this tutorial, I will show you how to make your own obstacle avoiding robot! We will use the Arduino UNO board and an ultrasonic sensor. If the robot detects an object in front of it, with the help of a small servo motor, it scans the area left and right in order to find the best way to turn. It has also a notification LED, a buzzer to play a tone when an object is detected and a button for changing the function of the robot (stopped/moving forward).
It’s very easy to make it!”

Link