4WD Obsticle Avoiding Robot Car

Опубликовано: 21 Май 2026
на канале: Tamer Awad
123
4

4WD Obsticle Avoiding Robot Car using Arduino Uno and Motor shield boards.
Tools used:
Arduino Uno Board
Motor Shield
Ultrasonic Sensor
Servo Motor
4 DC Motors with Wheels
Standard chassis
Ultrasonic holder
2 Batteries 9V
Wires
Button

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 - https://github.com/adafruit/Adafruit-...

Get the NewPing Library - https://bitbucket.org/teckel12/arduin...

Source Code: http://bit.ly/2DF9Umj
Download Source Code: http://bit.ly/2KrGvgt