OBSTACLE AVOIDING AUTONOMOUS CAR

6,276

49

13

Introduction: OBSTACLE AVOIDING AUTONOMOUS CAR

About: Electrical engineer by profession

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

Be the First to Share

    Recommendations

    • Pi Day Speed Challenge

      Pi Day Speed Challenge
    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Microcontroller Contest

      Microcontroller Contest

    13 Comments

    0
    cheadrk
    cheadrk

    Question 1 year ago

    Is there a really clear picture of what the bread board looks like anywhere? We are capable of following a picture, but are beginners.

    0
    MNM_25-07
    MNM_25-07

    4 years ago

    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

    0
    Mr innovative
    Mr innovative

    Reply 4 years ago

    /* 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

    0
    MNM_25-07
    MNM_25-07

    4 years ago

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

    0
    Mr innovative
    Mr innovative

    Reply 4 years ago

    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

    Untitled Sketch_bb.pngl293d.png
    0
    MNM_25-07
    MNM_25-07

    Reply 4 years ago

    Thank you!!

    0
    RANDOM KNOWLEDGE
    RANDOM KNOWLEDGE

    4 years ago

    very nice friend,

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

    0
    Mr innovative
    Mr innovative

    Reply 4 years ago

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

    Untitled Sketch_bb.pngl293d.png
    0
    RANDOM KNOWLEDGE
    RANDOM KNOWLEDGE

    Reply 4 years ago

    you rock,

    awesome. thank you so much

    0
    RANJITH GANDRA
    RANJITH GANDRA

    4 years ago

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

    0
    Mr innovative
    Mr innovative

    Reply 4 years ago

    ranjith thanks to point out, I'll fix it