Main Content

Hi guys. In this instructable, I will teach you how to build an obstacle avoiding robot. The robot will be a small and simple 2-wheeled car which will move forward until it detects an obstacle in its path. Upon doing so, it will stop, move a little back and then look towards its left and right.

Then it will compare the distances available ahead on either side and then turn towards the direction where the distance available seems to be more relatively. This way it will be able to move in an environment full of obstacles without colliding with any. This is a small representation of the concept of collision avoidance used in various applications such as warehouse robots, driverless cars etc.

To detect the distance, the robot uses the HC-SR04 ultrasonic sensor. So this sensor sends ultrasonic sound waves, every 10 microseconds, and if any obstacle is ahead, the sensor receives the echo. Based on the travel time, it knows the distance between the sensor and the object. So let’s begin!

First, to begin with, we obviously need to gather the components and tools required to build the robot. Find the components and the tools required below:

Get components at one place for ease: The Arduino Robotic Kit

Individual Components:

Arduino UNO
L293D Motor Shield
Chassis(including motors and wheels)
Wires
Battery Holder
Micro Servo Motor SG90
HC-SR04 Ultrasonic Sensor
Sensor Mount (Optional)
Tools (Optional):

Soldering Iron
Hot Glue Gun
Wire Cutter
Screw Driver
Gather the components and move on to the next step!”

Link to article