This tutorial is the second part of the Arduino Robot project, here is a quick reminder of the first part. This part will focus on the hardware and software assuming you already followed the first part and assembled the robot.
As always, I’ll start with the final Robot just to keep you focused
So our goal is to make this robot drive while avoiding obstacles ahead. Remember that last time I showed how to connect the motors to the motor shield. Now I’m going to show how to connect the servo motor and the ultrasonic sensor and operate them. After I will have all the parts connected, I’ll write the Arduino board code which will start navigating the robot.