Obstacle Avoiding robot is a simple robot which is operated by an arduino and what it does is that it just roams around and avoids obstacles. It detects the obstacles with a HC-SR04 ultrasonic sensor in other words if the robot senses object near to it, it takes diversion and moves to the safe place(Left or Right) and avoiding colliding to any objects around the robot. It is a simple project which anyone can build. .So If You Ever thought about building a robot but thinking that it`s too difficult and costly , well try this, it`s not.This robot uses very simple code and can accomplish the task with ease.Lets get start!
Watch it in action here
Play Video
Make the chassis ready and find a good place to fix arduino, bread bord & Power Bank on the chassis with the help of Double sided tape . And arrange everything on it.Now Follow these steps:-
✔ HC SR-04 Ultrasonic Sensor
1.Connect HC-SR04 Vccpin to 5v of Arduino and Gnd to Gnd of Arduino
2.Trig to Arduino 's digital pin 3 and Echo to Arduino 's digital pin 2
✔ L293d IC
1.Connect pin 1,8, 9 and 16 together and connect it to 5v of Arduino
2.Connect pin 8 to Vin of Arduino
3.Connect pin 4,5 & 12,13 together and connect it to Gnd of Arduino
4.Connect your 1st motor to pin 3 and 6
5.Connect your 2nd motor to pin 11 and 14
6.Connect pin 15 to Arduino's digital pin 8
7.Connect pin 10 to Arduino's digital pin 9
8.Connect pin 2 to Arduino's digital pin 10
9.Connect pin 7 to Arduino's digital pin 11
10.After Programming the Arduino Use The Usb Cable of Arduino with PowerBank and No Extra Power is Needed for the Similar Motor.
The code is very easy. You can also change and Modify the code and try different things. You Can Download the attached "Obstacle Avoiding Robot by sk.ino" file and directly open it in Arduino IDE.
Obstacle Avoiding Robot by sk.ino
So i hope after following all steps carefully you will make an Obstacle avoiding Robot using Arduino, L293d IC & ultrasonic sensor.
Have Fun!!
Must Visit: We Observed