Introduction: Obstacle Avoiding Robot

In this tutorial I will work with you in a step by step process explaining through visuals and written instructions on how to create an Obstacle Avoiding Robot Car. This is a simple start up project with the arduino microcontroller and the arduino motor shield.

Bill of materials:
Arduino
Arduino motor shield
Custom built/bought (ebay) car with motors on each wheel
batteries 
bread board
ping sensor (ultrasonic distance sensor)
wires
servo motor





 

Step 1: Step 1

For the first step I bought a simple 4 motorized car and assembled it.  Before placing the top plastic platform i wired the right hand side motors to a single wire and the same process was done to the left hand side. After connecting the wires, the battery compartments were placed for this example i used a 9V battery to power the arduino and 4 AA batteries to power the motors (however if you want more power input to the motors i suggest adding more AA batteries). Finally the top platform is placed to cover the wiring and batteries.
 


Step 2: Step 2

For this second step the Arduino, motor shield and distance sensor are all connected and placed on the top platform. The image below is a top view of the final wiring stage. Make sure to connect the external power and the motor wires to the appropriate slot on the motor shield.

Step 3: Step 3

Add the code supplied and watch the robot avoid obstacles!
Message me for the code through instructables and i will email the file. (I cannot figure out how to add text files or copy paste the code to the instructable)
(If car moves too fast or slow change speed values to adjust with the power supplied to the motor shield)




Comments

author
Sheshu babu made it! (author)2017-05-07

Please email the code to sheshubabu 71415@gmail.com

author
AC300kv made it! (author)2017-01-30

Could you please send the code.

terje.flatnes@icloud.com

thanks

author
Farmerbry made it! (author)2017-01-29

Please email code to brydavies71@gmail.com

author
GiridharB2 made it! (author)2017-01-14

Send the code to giridharvb71@gmail.com

author
AlifM4 made it! (author)2016-08-10

Could you please send the code.

alif.munanggar@gmail.com

thanks

author
amira91 made it! (author)2016-08-07

Could you please send the code.

amiralmu@gmail.com

thanks

author
robroy060 made it! (author)2016-07-31

Could you please send the code.

prairietank@gmail.com

author
Agent shah made it! (author)2016-02-17

Pls send me code

jimilnshah.ji@gmail.com

author
NC7 made it! (author)2016-01-28

hey could you send me the code?

Nathan.cameron@rcsd.ca

author
JohnnyL16 made it! (author)2015-12-20

Can you please send me the code? johnnyleon55@gmail.com Thanks

author
MuhammadJ24 made it! (author)2015-12-17

Which arduino board did you use?

author
misbakhulm made it! (author)2015-12-11

hye there..can you please send me full code..i really need it for my final year project..here is my email miyss3@gmail.com

author
samforrest93 made it! (author)2015-12-01

Hi nice project. Can you please send the code to samforrest1@hotmail.co.uk. Thanks

author
Robokid2301 made it! (author)2015-10-16

Awesome project man! please send me the code at aaryagreen@gmail.com

author
BobJ19 made it! (author)2015-09-25

Please send me the code as well: bob@rhj4.com

author
Deccal made it! (author)2015-06-27

Could you send me your code : ertaserman87@gmail.com

thanks

author
MosesB1 made it! (author)2015-05-14

author
MosesB1 made it! (author)2015-05-14

Hi Mr Leband,

Really like your project. One of the best I have ever seen. I really need the code for it, so if you can email it to me, that would be great.

nathanmarcus00@gmail.com

P.S. If you can try to send it to me by tommorow, that would be great because I really need it

author
MosesB1 made it! (author)2015-05-14

author
huutho.nguyen.509 made it! (author)2015-05-05

Hi Mr.Lebrend

Could you send me your code to my gmail: michealvorm@gmail.com

Thank you.

author
sohampshah made it! (author)2015-04-29

Could you send me the code at sohamshah252@gmail.com

author
ianfoster31 made it! (author)2015-04-26

if I could get your code awesome

ianfoster31@gmail.com

author
MattiaC made it! (author)2014-11-27

hey,

please send me the code asap!

here is my id: mattiacolli@icloud.com

cool project

author
MattiaC made it! (author)MattiaC2014-11-27

did he give you the code

author
MattiaC made it! (author)MattiaC2014-11-27

no

author
eset01 made it! (author)eset012015-03-08

did you get the code?

author
eset01 made it! (author)2015-03-08

hi sir.. we have a project for this can you send me the code.. vienielvie@gmail.com

author
toaster_me made it! (author)2015-02-24

Hello Mr.Lebrend

can you please send me the code on this ID. pakcikteds@gmail.com

Thanks n Regards...

author
miginstruments made it! (author)2015-02-07

Hello Sir Will you please send me the code on this ID. tousifiqbal.mig@gmail.com.

Thanks n Regards..

author
miginstruments made it! (author)2015-02-06

Hello Mr. Lebrend. Will you please mail me the code to me. Mail Id: tousifiqbal.mig@gmail.com. Also Sir, I dont ve L293 Shield. Though I ve got the IC, I just want to connect it directly. So will you please send me the output pins for motors & servo. Thanks in Advance.

author
george.wilson.9615 made it! (author)2015-01-24

if it's OK. I put a twist with a sainsmart 4wd kit but wired the same way. thanks for the great understandable instructable.

author
george.wilson.9615 made it! (author)2015-01-24

hello! I'm all ready. my you please email me the code to georgewilson718@gmail.com

author
ahsan93 made it! (author)2015-01-20

hey pls can u email me the code...it would be a great help....thanks for ur clear instructions...my email address is 'm.ahsan93@ymail.com'

author
master.s.blader made it! (author)2015-01-20

please can u give me the codes ASAP!!!!! beygicom005@gmail.com

author
relmanh made it! (author)2015-01-16

hi. if its okay can i have your codes for this project. thank herrera.relman@gmail.com

author
AkshayB3 made it! (author)2015-01-14

Hi, could you please send me the codes at

akshaybhatia94@gmail.com

Thank You

author
Hariharan. GTH made it! (author)2015-01-12

very clear instructions but

i want the code to make this email is harigt2009@gmail.com.

author
Hariharan. GTH made it! (author)2015-01-12

very clear instructions but

i want the code to make this email is harigt2009@gmail.com.

author
Nayemuzzaman made it! (author)2014-12-13

Dear sir, please and i request to you please send me code.my email nayemzaman@gmail.com... please send i request

author
hemanth.rajkumar.92 made it! (author)2014-12-11

this is a very good one. i am beginner for this kind of things . so could you please send me the codes and materials briefly.

hemanthraj888@gmail.com

author
jovany.mira made it! (author)2014-11-18

Hello,

Could you send me the source code please? I'd like to learn how to do it !

Here is my e-mail: jmira18@gmail.com

author
MattiaC made it! (author)MattiaC2014-11-27

did he give you the code

author
PaulC6 made it! (author)2014-11-17

Hello ! :)
Very nice work you've done here. Could you send me the source code please? I'd love to learn how to do it !
Here is my e-mail: croizepaul@gmail.com

Thanks and bravo !

author
MattiaC made it! (author)MattiaC2014-11-27

did he give you the code

author
vikram.james.5 made it! (author)2014-11-10

Hi,

Great instructable. Could you send me the code at rzzmtazz@gmail.com, Thanks Razz

author
MattiaC made it! (author)MattiaC2014-11-27

did he give you the code

author
shaheryar.akram.1 made it! (author)2014-11-19

hey,

i love your project :)

please send me the code asap!

here is my id: sheroooo94@hotmail.co.uk

author
MattiaC made it! (author)MattiaC2014-11-27

did he send you the code

author
DNMEBOY made it! (author)2014-10-15

this is the only robot i have found that uses the same hardware as mine but you did not post the code....

could you not have just copied and pasted it to your instructable?

could you message me thew code if you have it still?

author
tbao made it! (author)2014-10-01

Hi, I also build smart car as your project. I got stuck around code that I do not know where is error.

Could you send to me your code?

citytech90@gmail.com

thanks

About This Instructable

21,439views

44favorites

License:

More by Mr.Lebrend:Wheres Waldo? Halloween CostumeObstacle Avoiding RobotHousehold Relay connected to arduino
Add instructable to: