Arduino Obstacle Avoiding Robot Car 4WD

Поделиться
HTML-код
  • Опубликовано: 3 дек 2016
  • In this tutorial, you will make obstacle avoiding robot. This tutorial involves building a 4WD robot with an ultrasonic sensor that can detect nearby objects and change its direction to avoid these objects. The ultrasonic sensor will be attached to a servo motor which is constantly scanning left and right looking for objects in its way.
    Required Hardware :
    1x Arduino UNO R3:
    bit.ly/2xt9MVk (Banggood)
    amzn.to/2LZr6t4 (Amazon)
    1x L293D Motor Drive Shield:
    bit.ly/2H7vmy9 (Banggood)
    amzn.to/3qADuic (Amazon)
    1x HC-SR04 Ultrasonic Distance Module:
    bit.ly/2kJXZsN (Banggood)
    amzn.to/3s4SbdT (Amazon)
    1x SG90 9g Mini Servo:
    bit.ly/2JoUQMY (Banggood)
    amzn.to/3avwe1N (Amazon)
    1x Bracket for HC-SR04:
    bit.ly/3bvvF68 (Banggood)
    amzn.to/2Nxcsd3 (Amazon)
    4x Wheel and Gear Motor:
    bit.ly/2RXAWLS (Banggood)
    amzn.to/2M2pChV (Amazon)
    3 in 1 Jumper Wire:
    bit.ly/2J6de9E (Banggood)
    amzn.to/3doetmT (Amazon)
    4WD Robot Car Chassis Kit:
    bit.ly/2x8EdRk (Banggood)
    amzn.to/2M2rirJ (Amazon)
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C
    37 Sensor & Module Packages - amzn.to/3m66WeQ
    Try this Robot Arm - amzn.to/3fq8DCl
    Best Resin 3D Printer - amzn.to/39tY8KB
    Arduino Compatible Kits - bit.ly/2J2AFF7
    Banggood Spring Sale - bit.ly/3slMbOn
    Library:
    Install AFMotor.h library: learn.adafruit.com/adafruit-m...
    Install NewPing.h library: bitbucket.org/teckel12/arduin...
    Source Code: github.com/MertArduino/Arduin...
  • НаукаНаука

Комментарии • 483

  • @maker101io
    @maker101io  3 года назад

    Source Code: github.com/MertArduino/Arduino-Obstacle-Avoiding-Robot-Car-4WD
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C​
    37 Sensor & Module Packages - amzn.to/3m66WeQ​
    Try this Robot Arm - amzn.to/3fq8DCl​
    Best Resin 3D Printer - amzn.to/39tY8KB​
    Arduino Compatible Kits - bit.ly/2J2AFF7​
    Banggood Spring Sale - bit.ly/3slMbOn

  • @vasiullah2001
    @vasiullah2001 4 года назад +1

    I finally got my obstacle avoider with your help . What a nice robot .

  • @phuntsokangmo462
    @phuntsokangmo462 5 лет назад +4

    Thank You brother I watched almost around 20 videos , browsed the internet around an hour but you gave the final solution thank you

    • @raghavpratap9519
      @raghavpratap9519 4 года назад +1

      hey bro i need help.. can u solve me up ..?

    • @everynotecounts577
      @everynotecounts577 3 года назад +1

      YEAH I SAW THE VIDEOS OF DIY BUILDER AND 5X GEAR BUT NONE OF THEM HELPED ME . YOUR VIDEO IS THE MOST HELPFUL THANK YOU

  • @suyogkhatri8740
    @suyogkhatri8740 4 года назад

    the best video i have seen so far with full description............thanks!!

  • @AdnanHuxain
    @AdnanHuxain 7 лет назад +1

    Super AWESOME. Just what I was looking for.
    Thank you soooooooooo much

  • @Prompt24
    @Prompt24 6 лет назад

    Works nice. I have bought the low quality 9V batteries and it was not enough power supply. Then I bought the box for 2x 3.7V 18650 . It is okay now. Thanks Mert!

    • @captchaeasy6414
      @captchaeasy6414 6 лет назад

      Bro do you changed the code or it worked from the give code

  • @gvcu6491
    @gvcu6491 6 лет назад +3

    Thank you. This project is very inspiring.
    Velcro tape can be used instead of hot glue to fasten the Arduino and 9V-batteries to the chassis. (For easy removal.)

  • @adityasidham1812
    @adityasidham1812 7 лет назад +1

    awesome project man I am 1st liker ,keep it up nice one

  • @akashsikdar216
    @akashsikdar216 7 лет назад +2

    I have got first place making a robot seeing your project in school science exhibition
    Thanks for your support.😊😊

    • @raghavpratap9519
      @raghavpratap9519 4 года назад

      hey bro i need your help c u plz ..?

    • @amadivictor1005
      @amadivictor1005 2 года назад

      Hi, Can you reply to me? I am doing same project

  • @berie-ps8rt
    @berie-ps8rt Год назад

    Thank you the code is working woderfullly i was wandering on other youtube channels but yours the only one that did the job

  • @user-jl3nb5mn6d
    @user-jl3nb5mn6d 3 года назад +1

    Thanks a lot bro it really helped me. A new subscriber for u. Once again thanks ❤️❤️

  • @CrazyCoupleDIY
    @CrazyCoupleDIY 4 года назад

    Good work brother, keep it up

  • @raz-gamedevelopmenttutoria6977
    @raz-gamedevelopmenttutoria6977 5 лет назад +1

    Thanks so much this really helped

  • @tamilselvan2865
    @tamilselvan2865 7 лет назад +2

    Thank you sir, I perfectly finish Thank you sir

  • @WalterRowland
    @WalterRowland 5 лет назад +1

    Great video and lot's of great info. Do you know if it can climb stairs?

  • @allrounder4157
    @allrounder4157 6 лет назад +1

    You finally made me subscribe to your channel 😃😃😃😇

  • @kishoremokada9241
    @kishoremokada9241 7 лет назад

    good job you are doing it very neatly

  • @ugurokur
    @ugurokur 7 лет назад

    Eline sağlık kardeşim güzel bir çalışma olmuş, bu sürücü kartıyla 4 dc motoru kaldırdığını da gördüm. Projemi yapabilirim artık.

  • @pappathypappathy4002
    @pappathypappathy4002 7 лет назад

    Thank u this work perfectly.

  • @imadeddarraz3247
    @imadeddarraz3247 7 лет назад

    and thank you for your job . you are genius , good my brother Complete

  • @patelhet1753
    @patelhet1753 3 года назад

    Amazing. Thank you for sharing 100%

  • @shubashiniiyer1672
    @shubashiniiyer1672 6 лет назад

    nice work .thanks

  • @mohammedissa9448
    @mohammedissa9448 7 лет назад

    I recommend talking instead of writing (and you can add the writing) but no music while you are talking.
    Keep up the good work!

  • @kaanekz
    @kaanekz 7 лет назад

    Hedefe çok yaklaşıyor kodsal bir sorun galiba genede eline sağlık 😂

  • @harshkumarsagar1892
    @harshkumarsagar1892 7 лет назад

    Simply Great

  • @m.a.9389
    @m.a.9389 7 лет назад

    harikasınız ; Gurur duydum neyse ki sizler gibi gençlerimiz var.. ve Adafruit üzerine yabancıların en popüler -en çok izlenen ingilizce 3-4 videosunu izledim inanın tek bir tanesi bile harici güçle beslenirken JUMPER'ın çıkartılacağını belirtmemişlerdi..
    Bugün ingilizce dokumanların da bu bilgiyi okudum; ama sırf emin olabilmek için burda video arattım ve neyse ki ssizin videonuz sayenizde jumper ın çıkartılacağına emin oldum..çok teşekkürler..

    • @m.a.9389
      @m.a.9389 7 лет назад

      mert bey şöyle bi sorum var;bu araçların şaselerini-platformlarını kendiniz mi kestirip hazırlatıyorsunuz?yoksa 3 boyutlu yazıcıyla falan mı elde ediyorsunuz? birde yazılım kısmı için tavsiye edebileceğiniz yazılı-kitap-kaynak yada video anlatımı var mı?

  • @hackwithtech5323
    @hackwithtech5323 7 лет назад

    Please start making drones quadcopter different types awesome video

  • @bharatibhogunkar157
    @bharatibhogunkar157 6 лет назад

    Brilliant 👏👏👏👏

  • @Xhairo
    @Xhairo 7 лет назад

    Hey there great video! Just a few quick questions, how do I make the robot turn exactly 90 degrees once it reaches the wall? Also, how do I connect more than 2 servos if the maximum i can put on the motor shield is 2?

  • @suryatejagamidi4801
    @suryatejagamidi4801 6 лет назад

    Cool ... It was excellent

  • @shamanthks7218
    @shamanthks7218 4 года назад +2

    When I try to download AFMotor library through the link that you have given in the description says that it is outdated. How to check my motor shield is Version 1 or Version 2?

  • @ggranger2
    @ggranger2 7 лет назад

    Amazing. Thank you for sharing ¡¡¡

  • @Edmorbus
    @Edmorbus 7 лет назад

    Thanks for sharing

  • @shashankgupta2597
    @shashankgupta2597 6 лет назад

    Thanks for these amazing tutorials sir i have learned a lot from these and can you please tell me that can i use my arduino ATMEGA328P UNO board for this project.Thanks again sir and please reply me as fast as possible because i need to submit my project soon in my college.

  • @BluegrassStoic
    @BluegrassStoic 7 лет назад +21

    How cool would it be if you got the vehicle to monitor battery consumption and when down to 30% or so it returned to wireless charging pad. When battery voltage reads charged it goes off on its own again. :)

  • @Ulf__
    @Ulf__ 6 лет назад

    Sir your projects was very inspiring and I like your vedios very much I have subscribed to your channel. I have made exactly the same robot but I was thinking to erase the Line from your code which was drive the motor slowly to avoid drain the voltage will it be work okay then plzz reply and tell me

  • @abinavsakthivel967
    @abinavsakthivel967 Год назад

    bro thankyou I use this project for me science far

  • @venugopalpabba1
    @venugopalpabba1 4 года назад +1

    Super bro

  • @ggranger2
    @ggranger2 7 лет назад

    An easy way to install libraries from arduino IDE is program/include library/install ZIP library

  • @Grammer8074
    @Grammer8074 6 лет назад +3

    pls help me how to use the 'servo2' pins on the motor driver?

  • @FunnGaming_
    @FunnGaming_ 5 лет назад +1

    when when I made a tutorial on the program already in the program? I am making a robot like you, according to the method and tutorial on this video, and the ARDUINO is still not in the program, but when I turn on the switch, no one responds, like the motor dynamo and servo motor, but when I check one all light up, when it's been put together with the shield motor, it's all dead? Why do you think bro?

  • @gadgetsclasssinhala9215
    @gadgetsclasssinhala9215 4 года назад

    i think this video is very good video

  • @jacobsam4773
    @jacobsam4773 7 лет назад

    Nice video I'll start with this please answer my questions by the way I have subscribed your channel 😀😀😀😀😀

  • @imranali6031
    @imranali6031 4 года назад

    Amazing Robot

  • @fabians5581
    @fabians5581 4 года назад +1

    Funciona muito bem!!

  • @talentkunjani7958
    @talentkunjani7958 5 лет назад +1

    WHAT TYPE OF DC MOTORS DID YOU USE, I MEAN ITS VOLTAGE IN

  • @nageswararao4265
    @nageswararao4265 4 года назад

    this is great for biginers

  • @eduardomanzo6782
    @eduardomanzo6782 6 лет назад +1

    Hello, I want to do this project for the school, do you think you could send me the diagram of the whole circuit? In addition, my teacher told me that the codes might not work out well even if you left them as they should be because they vary, is that true? or do not I have to worry if I only shower and paste?

  • @SK_Senthil
    @SK_Senthil 4 года назад

    Recommended battery to connect 4 BO Motor with L293D ?
    I am having 2 numbers of 18650 battery as of now!

  • @MyChannel-vw9cy
    @MyChannel-vw9cy 7 лет назад

    merci!!!

  • @BAD_BOY_VLADIMIR_PUTIN
    @BAD_BOY_VLADIMIR_PUTIN 6 лет назад +1

    What should be the voltage provide to motor shield

  • @ancientgear7192
    @ancientgear7192 4 года назад +2

    Question:
    For how long can the battery last? Also, can we make recharge the battery or we must add a new one?

    • @everynotecounts577
      @everynotecounts577 3 года назад

      YOU MUST BUY A NEW BATTERY IF IT IS NOT RECHARGEABLE BUT IF IT IS YOU CAN RECHARGE AND USE THE BATTERY AFTER RECHARGING IT. IT IS SIMPLE

  • @m.a.dkannadiga131
    @m.a.dkannadiga131 6 лет назад

    Hai,
    Can you make a video on making the robot that is controlled via Bluetooth and also avoids obstacle.
    thank you.

  • @jovspena7387
    @jovspena7387 5 лет назад

    Hi! How can I adjust the code if my trig and echo are pinned in number 13&2 in my motor shield?

  • @franco12954
    @franco12954 7 лет назад

    On your instructions u remove the jumper pin when using 2 power source, on mine it will only work with the pin in. Also it goes straight for about a foot then just goes around stops then repeats all over

  • @amadivictor1005
    @amadivictor1005 2 года назад

    Hi, this is a good video but I have a question. Is there a reason why you did not use a Bluetooth module?

  • @michaelruiz9291
    @michaelruiz9291 6 лет назад

    sir do you have a video of 4wd robot car using the uktrasonic sensor, servo and 1602 LCD?

  • @akashsikdar216
    @akashsikdar216 7 лет назад

    pls do introduce and talk while making so that we understand well
    I have some confusion
    and also show step by step how to program and what to do after programming in computer what should we do, should we connect and make the program or after finishing we should connect.
    please do it

    • @akashsikdar216
      @akashsikdar216 7 лет назад

      sir please try to understand
      you just talk while doing video so that we understand well and have no confusion.
      And also please do show how to program it because I don't understand that
      should we connect and program or after programming we should connect.show that also in single video . don't say us to refer another video.

  • @JL-zz6gm
    @JL-zz6gm 7 лет назад

    Hello! Great tutorial. Would you be able to list the specific product ID # for each of the hardware pieces needed? Thank you!

    • @JL-zz6gm
      @JL-zz6gm 7 лет назад

      Excellent! Can you provide for this video as well?
      Great work. Can't wait to see what is next!

  • @susemdo
    @susemdo 6 лет назад

    benim gibi hobi meraklısı için çok güzel açıklamalı anlaşılır bir video olmuş. Ellerinize sağlık, emeğinize bereket. Bende keyifle yaptım robotu ama bir hatamı yaptım acaba bulamadım. Robot ileriye doğru 30 - 40 cm. kadar gidiyor, önünde engel olmadığı halde duruyor, sağa sola bakıyor, sağdan geriye dönüyor, ve tekrar aynen ileri git engel yok ama dur sağ sol bak, sağdan geriye...... Buradaki yorumlarda pillerin zayıf olduğu söylenmiş bende 2 Adet 18600 ve 1 adet 9v. duracell sağlam, dolu pil kullanıyorum. Videodaki senin robot gibi engel yoksa doğru ileri gitmesini istiyorum.

  • @jeje4342
    @jeje4342 7 лет назад

    nice!!!!!!!!!!! waaw

  • @pranavff2151
    @pranavff2151 7 лет назад

    Sir please say what is the wire that u connected to the motor shield and to ultrasonic sensor

  • @saveenergybeenergetic5393
    @saveenergybeenergetic5393 Год назад

    Good

  • @splashillustrations3181
    @splashillustrations3181 7 лет назад

    Will this work with DC motors instead of hobby servo motors?

  • @codingtimes3199
    @codingtimes3199 7 лет назад

    good

  • @ekkouekkou6702
    @ekkouekkou6702 7 лет назад

    how to replace the arduino uno with arduino pi3 ?? and is it possible to add more sensors like line follower and infra sensors?? and what if i want to add more ultrasonic sensors??

  • @javierfelpete1220
    @javierfelpete1220 2 года назад

    Hola, excelente video y trabajo, queria saber que codigo añadir para meter un sensor bluethoot, si puederas explicarlo. un saludo

  • @eli221982
    @eli221982 7 лет назад +1

    hi... very nice project!! i build it..
    but i want to connect some other things to the car. is there a not in use outputs that i can use?

  • @ashutoshdeshwal1783
    @ashutoshdeshwal1783 6 лет назад

    If we wanna to use more pin of Arduino how can we use that pin over motor shield.

  • @theMCFreak
    @theMCFreak 6 лет назад

    Can i use l298n motor driver instead of motor shield

  • @LukeMattson
    @LukeMattson 7 лет назад +5

    I did this as you did this and all I'm getting is a whining noise. Would putting a total of 4 (9v) batteries "2 per board" be too much ?

    • @rutwikshinde7479
      @rutwikshinde7479 6 лет назад

      Luke Mattson same error here

    • @MrLokeshsuthar
      @MrLokeshsuthar 5 лет назад

      use 4 AAA battery pack for motors..

    • @AD-hi2lw
      @AD-hi2lw 5 лет назад

      @@MrLokeshsuthar it does not work I have tried on ur say.....

    • @MrLokeshsuthar
      @MrLokeshsuthar 5 лет назад

      @@AD-hi2lw what is the problem you face.

    • @AD-hi2lw
      @AD-hi2lw 5 лет назад

      @@MrLokeshsuthar actually my project is not moving only the untrasonic sensor works and no movement in the wheels. There is a kind of sound from the motors , but it does not move

  • @arunprabhakarsingh
    @arunprabhakarsingh 7 лет назад

    dude can we use 5v power bank for giving power to it.please share your opinion.

  • @abigailherrera3851
    @abigailherrera3851 6 лет назад

    hello i am working on a robot that has the HC Sr04 sensor i need to code it to buzz prior to reaching a full stop after sensing an object certain feet away. how can i change the code to have the robot reach a stop rather than for it to turn and move another direction

  • @rutwikshinde7479
    @rutwikshinde7479 6 лет назад +1

    My bot is only avoiding the obstacle . If there is no obstacle it remains stationary .But in your video it is moving continuously and if obstacle comes it avoids it . Please provide some solution

  • @jonaso_o8109
    @jonaso_o8109 6 лет назад

    do this code work without servo motor but just with the sensors?

  • @kkrokingkiller456
    @kkrokingkiller456 4 года назад

    when ever there is a obstacle comes in front of the car it almost does a 360 degree turn and crashes in the wall. My question is how to make it go 180 degrees? still it works very well

  • @khursheedsiddiqui6349
    @khursheedsiddiqui6349 4 года назад

    Is it safe to connect 2 9volt batteries to the arduino as shown in the video

  • @creative_tamizhan7220
    @creative_tamizhan7220 6 лет назад

    Hai bro i would like your videos very much. one small dout i have change normal gear motor into 12v gear motor?
    Please replay i have very egar

  • @captchaeasy6414
    @captchaeasy6414 6 лет назад

    Hello , i am following u since u created this channel .
    Plz guide me i never got problems but in this project i am little bit confused.
    My bot is stopping after a certain distance without any obstacle.
    Plz give a circuit diagram
    To clearly show the schematics
    How much power is enough for aurdino , shield

  • @nikhil0009
    @nikhil0009 4 года назад +2

    Hey just wanna ask how many ppl got this right and its working who ever got this and its working plz reply me!!

  • @sumeshkumar9086
    @sumeshkumar9086 7 лет назад

    thanku sir pls make a arduino drone with micro motors

  • @JaiSingh-yb7oj
    @JaiSingh-yb7oj 6 лет назад +1

    jasake apnae code website pae daala have kya make usea copy karkae past kardu kya us make koi air change to babe Karna padega

  • @abujamal2466
    @abujamal2466 5 лет назад

    can i attach a vacuum cleaner to the chasis, but i dont know how pls guide me :)

  • @hardikgarg5559
    @hardikgarg5559 5 лет назад

    sir, can you just tell that what will be the code if we dont want to use servo motor

  • @tanmoydas5334
    @tanmoydas5334 7 лет назад

    Can you suggest me some of its practical use in life..... I want to make it in my science exhibition

  • @shamanthks7218
    @shamanthks7218 4 года назад

    Anything is seen in the serial monitor while running the program?

  • @bhaskerkumar2815
    @bhaskerkumar2815 6 лет назад

    can we add line following sensor to this .. if yes , what is the process and connections , also code for that .. please send a link

  • @kavijakarunarathna3496
    @kavijakarunarathna3496 7 лет назад

    I used l298n as the motor sheild

  • @ayushsinha7416
    @ayushsinha7416 4 года назад

    It's working

  • @megaQpa1
    @megaQpa1 4 года назад

    I did everything as video says and im getting beeping from motor shield and also arduino LED keeps blinking. Servo moves once for a while and nothing else is happening. Any ideas what might be the reason?

  • @pedromorales3099
    @pedromorales3099 7 лет назад

    In which store can you look for the engine?

  • @rahimaamjad1165
    @rahimaamjad1165 6 лет назад

    how to connect multiple ultra sonic sensor HC SR04 to the DK Electronics

  • @akachukwunwanyanwu2659
    @akachukwunwanyanwu2659 7 лет назад

    what type of adafruit did you use

  • @kusioo93
    @kusioo93 6 лет назад

    I've got a little problem. Motors work properly, servo too, but my 'robot' stops 5cm before the wall, looks for distance, changes angle a bit and goes into the wall :D Do You have any idea what do I need to change in code? I guess code is the problem.

  • @tomthayyilthomas7211
    @tomthayyilthomas7211 5 лет назад

    How did you attach the motor to the wires

  • @shubhamgravity
    @shubhamgravity 7 лет назад

    its my first project with the Arduino and i understand all the things that you have mentioned in the video but only one doubt that i still have that how actually i am going to control the Arduino car ..........will it be like controlling my car via Bluetooth by smartphone
    if this is so what app i needed to run on my smartphone.....or should i make one app on software @MIT app inventer ........

  • @vpchauhan7930
    @vpchauhan7930 5 лет назад

    Niceone..

  • @syedminhajhussain9893
    @syedminhajhussain9893 6 лет назад

    In my case only servo motor is working. But none of the DC motors are running. Please help me.
    One more doubt
    When we upload the code the arduino, motor shield should be connected together (or) not.

  • @ShirjeelAliHaider
    @ShirjeelAliHaider 3 года назад

    what are the changes required in code as i am using arduino mega

  • @kkgoyals7992
    @kkgoyals7992 3 года назад

    i have done the same thing, but don't know motor sometime running and sometimes not.. problem with battery here or what?