Arduino Obstacle Avoiding Robot Car 4WD

In this tutorial, you will make obstacle avoiding robot. This tutorial involves building a 4WD robot with an ultrasonic sensor that can detect nearby objects and change its direction to avoid these objects. The ultrasonic sensor will be attached to a servo motor which is constantly scanning left and right looking for objects in its way.

Required Hardware :

You can get these components from the following links:
Arduino Board
Motor Shield L293D
Ultrasonic Sensor
Mini Servo Motor
DC Motor and Wheel x4
Chassis 4WD
Bracket for HC-SR04
Battery Buckle x2
Jumper Wires
Button
Glue Gun
Battery 9V x2

Arduino Compatible SCM & DIY Kits
Electronics Equipments & Tools
Module Board For Arduino

272,269 views
2,814   

Copy the Source Code and install the Library:
1) Open the new Arduino IDE page
2) Delete everything on the page
3) Get the code from my blog page
4) Paste empty Arduino IDE page
5) First Install the Arduino Library
6) The AF_Motor Arduino library

Before you can use the Motor shield, you must install the AF_Motor Arduino library.
Close the Arduino IDE
You can find the library link in video descriptions
Download the library
Uncompress the ZIP file onto your desktop
Check that inside AFMotor is AFMotor.cpp and AFMotor.h files
Place the AFMotor folder into your arduinosketchfolder/libraries folder.
Rename the uncompressed folder AFMotor

7) The NewPing Arduino Library

You can find the library link in video descriptions
Download the library
Uncompress the ZIP file onto your desktop
Move to the Arduino library folder

8) Restart the IDE
9) Now you can see the libraries you have installed
10) When you verify, you will not see any errors

Get the AFMotor Library

Get the NewPing Library

shares

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close