Introduction: OBSTACLE AVOIDING AUTONOMOUS CAR

Picture of OBSTACLE AVOIDING AUTONOMOUS CAR

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

Picture of 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

Picture of 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

Picture of 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

Comments

KùĺđèępK (author)2017-12-07

Or Only 9v

KùĺđèępK (author)2017-12-07

It need power bank

MNM_25-07 (author)2016-11-14

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

Mr innovative (author)MNM_25-072016-11-15

/* UPLOAD THIS CODE AND TRY

*/

#define ECHOPIN 6

#define TRIGPIN 7

void setup(){

Serial.begin(9600);

pinMode(ECHOPIN, INPUT);

pinMode(TRIGPIN, OUTPUT);

pinMode(11,OUTPUT);

pinMode(10,OUTPUT);

pinMode(9,OUTPUT);

}

void loop()

{

digitalWrite(TRIGPIN, LOW);

delayMicroseconds(2);

digitalWrite(TRIGPIN, HIGH);

delayMicroseconds(10);

digitalWrite(TRIGPIN, LOW);

float distance = pulseIn(ECHOPIN, HIGH);

distance = distance/58;

Serial.print(distance);

Serial.println(" cm");

delay(50);

if (distance >= 15)

{digitalWrite(11, HIGH);

digitalWrite(10, HIGH);

digitalWrite(9, LOW);

}

else

{digitalWrite(11, LOW);

digitalWrite(10, HIGH);

digitalWrite(9, HIGH);

delay(2000);

}

}

// code end

MNM_25-07 (author)2016-11-06

Very nice project but could you please send pictures of the wiring and where and how the ultrasonic sensor is connected, Thank you

Mr innovative (author)MNM_25-072016-11-07

hi MNM_25-07 i have updated the complete wiring drawing above, also i am attaching a pic with this replay for your better understanding

MNM_25-07 (author)Mr innovative2016-11-10

Thank you!!

WannaDuino (author)2016-11-02

very nice friend,

is it possible to show the wireing in pictures or video for beginners?

Mr innovative (author)WannaDuino2016-11-07

hi WannaDuino i have updated the complete wiring drawing above, also i am attaching a pic with this replay for your better understanding

WannaDuino (author)Mr innovative2016-11-07

you rock,

awesome. thank you so much

RANJITH GANDRA (author)2016-11-03

hello,
I think you forget to declare the pins 11,10,13

ranjith thanks to point out, I'll fix it

About This Instructable

3,380views

47favorites

License:

Bio: Electrical engineer by profession
More by Mr innovative:How to Make Record and Play Servo Based Robotic Arm How to Make Mini Home Made CNC Machine Arduino+28BJY-48 Stepper Motor28BYJ-48 Stepper Motor + Arduino + L293D Motor Shield + Processing Setup Test Run
Add instructable to: