loading

Friends this is new version obstacle avoiding card with new features like LED Head lights with complete step by step details and video

so friends have a look and comment you like it or not.

so let see how to make this obstacle avoiding car by own.

Step 1: Video

guys have a look to video, this will help you to visualize how to make this autonomous obstacle avoiding car

Step 2: Material Need

Major item list with purchase link

DC GEAR MOTOR-----------------------1 set

http://amzn.to/2fvQwxu

TWO WHEELS----------------------------1 pair

http://amzn.to/2fvVXwl

HC-SR04 ULTRASONIC SENSOR--------1 no.

http://amzn.to/2fEVCa4

ARDUINO NANO-----------------------------1no.

http://amzn.to/2fEVQxW

L293D IC---------------------------------------1no.

http://amzn.to/2eeaG9c

MINI BREAD BOARD---------------------1no.

http://amzn.to/2fvV72S

9V Battery-------------------------------1no

Jumper wires------------------------20 to 25 pc

ON/OFF switch---------------------1no.

Acrylic sheet-----------------------1no

Double side tape-----------------as required

Step 3: Preparing Chassis

let see how to prepare chassis of the car

  1. This car is very simple don't need to buy any car chassis from market you just want a Acrylic sheet piece of size approx 5 X 12CM about 4 to 5 mm thick
  2. Stick the DC gear motor on the acrylic sheet as shown in image with the help of double side tape
  3. stick some hollow pipe or straw piece to the other end of the acrylic sheet
  4. Bring wheel from some old toy and pass its shaft from that hollow tube so that this wheel became rotate freely
  5. Place the wheel of dc motor to shaft of the motor.
  6. stick Ultrasonic sensor at the front end of the car with the help of double side tape as shown in imgae

Step 4: Electrical Schematic & Arduino Code

Connect all the electrical connection as shown in image, do this carefully because a sing mismatch of polarity can burn your arduino or L293D IC

also find the attached Arduio code download this code and upload to your arduino

as you can see in code at line number 35 [if (distance >= 15)] you can change whatever distance you want as safe distance here i kept 15cm is the safe distance you just have to replace 15 with you safe distance cm

So guys hope you find this interesting

please connected if any doubt

till tan by friends coming soon with new project

I've connected everything just as shown in your given circuit diagram, the arduino nano is communicating with the ultrasonic sensor but the motors aren't responding
<p>/* UPLOAD THIS CODE AND TRY</p><p>*/</p><p>#define ECHOPIN 6</p><p>#define TRIGPIN 7</p><p>void setup(){</p><p>Serial.begin(9600);</p><p>pinMode(ECHOPIN, INPUT);</p><p>pinMode(TRIGPIN, OUTPUT);</p><p>pinMode(11,OUTPUT);</p><p>pinMode(10,OUTPUT);</p><p>pinMode(9,OUTPUT);</p><p>}</p><p>void loop()</p><p>{</p><p>digitalWrite(TRIGPIN, LOW);</p><p>delayMicroseconds(2);</p><p>digitalWrite(TRIGPIN, HIGH);</p><p>delayMicroseconds(10);</p><p>digitalWrite(TRIGPIN, LOW);</p><p>float distance = pulseIn(ECHOPIN, HIGH);</p><p>distance = distance/58;</p><p>Serial.print(distance);</p><p>Serial.println(&quot; cm&quot;);</p><p>delay(50);</p><p>if (distance &gt;= 15) </p><p>{digitalWrite(11, HIGH);</p><p>digitalWrite(10, HIGH); </p><p>digitalWrite(9, LOW);</p><p>}</p><p>else</p><p>{digitalWrite(11, LOW); </p><p>digitalWrite(10, HIGH);</p><p>digitalWrite(9, HIGH);</p><p>delay(2000);</p><p>}</p><p>}</p><p>// code end</p>
Very nice project but could you please send pictures of the wiring and where and how the ultrasonic sensor is connected, Thank you
<p>hi <a href="https://www.instructables.com/member/MNM_25-07" style="">MNM_25-07</a> i have updated the complete wiring drawing above, also i am attaching a pic with this replay for your better understanding</p>
Thank you!!
<p>very nice friend,</p><p>is it possible to show the wireing in pictures or video for beginners?</p>
<p>hi <a href="https://www.instructables.com/member/WannaDuino" style="">WannaDuino</a> i have updated the complete wiring drawing above, also i am attaching a pic with this replay for your better understanding</p>
<p>you rock,</p><p>awesome. thank you so much</p>
hello,<br>I think you forget to declare the pins 11,10,13
<p>ranjith thanks to point out, I'll fix it</p>

About This Instructable

2,744views

46favorites

License:

Bio: Electrical engineer by profession
More by Mr innovative:How to Make Arduino Based Digital Tachometer Simple DIY Tutorial How to Make GRBL + CNC V3 Shield Based Mini CNC Machine From Scrap DVD Drive How to make Arduino Based Mini CNC Machine A complete tutorial 
Add instructable to: