How to Make Arduino Obstacle Avoiding Robot with L298N H-Bridge Motor Driver

Поделиться
HTML-код
  • Опубликовано: 2 мар 2017
  • In this Arduino project tutorial we will learn how to make obstacle avoiding robot using L298N h-bridge motor driver. Also we will use for this project HC SR04 ultrasonic distance sensor and we will use NewPing library in the arduino code.
    Required Hardware:
    Arduino Uno R3
    goo.gl/Rqc5w2
    amzn.to/2LZr6t4
    L298N H-bridge
    goo.gl/Ucvx6J
    amzn.to/3diatT1
    HC SR04 Sensor
    goo.gl/F0m7hN
    amzn.to/3avwe1N
    SG90 Servo
    goo.gl/iywd5p
    amzn.to/3avwe1N
    DC Motor Wheel
    goo.gl/iDy7ep
    amzn.to/3djj9Zp
    Chassis
    goo.gl/Y8Ch7A
    amzn.to/3u7BOyk
    HC SR04 Bracket
    goo.gl/dknful
    amzn.to/3rxpeXm
    Front Wheel
    goo.gl/HLLKpc
    amzn.to/3sAKInF
    Breadboard
    goo.gl/08nnr1
    amzn.to/3qxLxwm
    F to F Jumper
    goo.gl/TdGrkk
    amzn.to/3dhwVM5
    M to M Jumper
    goo.gl/VRzUN4
    amzn.to/3dhwVM5
    9V Battery
    goo.gl/3EIJcf
    amzn.to/2O4h5vK
    Battery Clip
    goo.gl/iAEgPl
    amzn.to/2QHL3qi
    Power Cable
    goo.gl/aBKusM
    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
    NewPing Library - goo.gl/Qe6XU6
    Download Source Code: create.arduino.cc/editor/mert...
    Social Media:
    / mertarduino
    / mertarduino
  • НаукаНаука

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

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

    Source Code: create.arduino.cc/editor/mertarduinotech/4aeaf653-2755-4d8b-96ca-c65e9eff8927/preview
    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

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

      how about L298P motor., did you try., i try but it's not work., please help me

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

      Awsome!!!

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

      bro there is a problem i did every thing same as you but its no working please help me i wasted 2 arduino on this but it is not working please help me

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

    thanks for making video every week.

  • @umeshkumaragarwal9324
    @umeshkumaragarwal9324 5 лет назад +3

    Thx for making this vedio my project is working perfectly

  • @Ak-mb7wj
    @Ak-mb7wj 5 лет назад +4

    thanks bro.. it really helped me a lot.. i made it.. love from INDIA

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

    Exactly what I was looking for! Thanks!

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

    Thanks it works. U deserve a medal

  • @IncredibleHulkz
    @IncredibleHulkz 6 лет назад +7

    Awesome! It works perfectly!!! If you have problems with the sensor, you must switch the two cables that are connected from the sensor to the Arduino board. Thank you very much Mert! You are the best.

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

      Hello sir i have downloaded the new ping library but it does not contain any thing

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

      U got output Anonymous replay fast

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

      @@deepakgupta6856 when downloading it above the place where you download should be open with unrar and rar click it then put the file you have downloaded then you get the code

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

    Thank you very much it works just fine! For my expectations at least cause i'm kinda new in robotics. Thanks man

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

    Thank you very much for sharing. I've been following you for a while and really helped me getting into the Arduino world. You certainly love your glue gun :-)

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

    It's wonderful!!This video helped me to make it.If I want anything Arduino , you are the best creator!!

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

    kamal kar diya boss...thanks for indirectly helping in my iot project

  • @shashankprakash9967
    @shashankprakash9967 7 лет назад +7

    awesome project I tried it It works perfectly thanks Mert Arduino and Tech

    • @chetansai1478
      @chetansai1478 6 лет назад +2

      shashank how can we open the program in arduino after saving in library

  • @NiteshKumar-hh2tk
    @NiteshKumar-hh2tk 7 лет назад +1

    bro you are awesome...
    i really like your tutorials ... thanks

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

    Hi... Your projects are very good
    And it is very easy to make

  • @HuubMons65
    @HuubMons65 6 лет назад +4

    Thank you for the video and script! A good start for building this robot.
    The basic script can be improved, because the variable lookRight is never used. So at this moment the robot will only check the left side for distance.
    Maybe it's a small bug, easy to solve: change line 64 into:
    if (distanceRight >= distanceLeft){
    And it's possible to run the complete robot with 1 set of 4 AA batteries (the 4 AA battery holder is provided in some of the robot kits).

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

    thank you for making this video it helped me a lot

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

    bro ,I like your videos because they are very interesting .Congratulations********

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

    great work....waiting for the quad

  • @tendzo
    @tendzo 5 лет назад +2

    AWESOME PROJECT BRO...
    IF YOU HAVE PROBLEM WITH SENSOR ULTRASONIC, YOU MUST CHANGE CABEL TRIG AND ECHO TO ARDUINO A1 AND A2

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

    obrigado por fazer vídeo a cada semana.❤️❤️

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

    Superb Thank you for a Great video ;)

  • @mypcimalka6331
    @mypcimalka6331 2 года назад +1

    super.thank you so much .awesome project bro

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

    love you! Thanks for the code !!!

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

    Thanks for your step by step show.

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

    muy bueno amigo

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

    Nice project !!! Congratulation !!!

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

    Thanks bro you helped me First it was not working but then i put it to Com port 3 then it started to work

  • @dbhuyan9043
    @dbhuyan9043 6 месяцев назад

    Thankyou very much working well

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

    Thank you so much for that nice projects , could you please do a wireless charger using arduino ?

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

    Congrats for the channel. I love it ! :)
    Please tell me, is it possible to combine the remote control with the HC SR04 Sensor? i have already tried but with no success. couldn't resolve the conflict with the timers... :/
    Any help will be appreciated .
    Keep going with the awesome work !

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

    its been 30 days since i order an arduino starter kit from aliexpress and it isnt arrive yet , i cant wait any more, god.

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

    Thanks you bro very very very very very very much to giving me newpin lab. No other youtuber give lablari

  • @chrisholliman6406
    @chrisholliman6406 5 лет назад +3

    This is great and thanks for the code. Small typo in line 61: change 'distance' to 'distanceRight.'

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

      Bro i cannot find the code... Can u help me? Please?

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

    well done, especially the last part how you planned to put what+where, one question:
    why did you connect the HC SR04 to analog and not digital pins???

  • @kamelbarred741
    @kamelbarred741 3 года назад +2

    Nice work, thank you very much for sharing. Why not use the speed function offered by the L298 bridge to reduce the speed of the robot? my greetings

  • @tonoxful
    @tonoxful 6 лет назад +2

    Hi! I'm tryning to understand why did you use the boolean variable "goesForward" and the "if" bucle inside readping () function, which initialize distance=250? I hope you can help me. Thanks for the video!

  • @SurfGamerz
    @SurfGamerz 2 года назад +2

    in the code, the if statement states that "if(distance

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

    Thank You sooooo much worked perfectly I had a big problem with the code, this video helped me solve, again a very big thank you

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

    Amazing ❤️❤️😍😍😍😍😍😍😍😍😍😍😍😍 goood work

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

    mert güzel video eline sağlık

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

    It would have been much easier if you had just sent the link for connections as well. Just writing down the list of things I need to buy for this project hope I do it just like you did. Fingers crossed 🤞

  • @user-xw8sf6tf3l
    @user-xw8sf6tf3l 8 месяцев назад

    спасибо заработало сразу. указал все библиотеки. только пришлось контакты на моторы переставлять.

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

    u are the best

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

    A good video once again. Pease make something innovative project with Arduino. This is project is great but its a bit traditional of obstacle avoiding robot. Or you can start a new video series for advanced viewers. Thanks a lot.

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

    Görünen o ki herkes yardım istiyor mert👍🤗

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

    thank you for this great projekt !!!
    Is It possible to chang the motor speed on the left / right motor ? due the motors have some speed different
    Thank You
    MABA

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

    Great project. Is there a picture somewhere of the circuit diagram? or is it just in the video?

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

    Thanks for making us winner ...

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

    Muy bueno, me gusta.

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

    great work

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

    Really nice 👌

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

    OK bro my question is the connection of the mini bred board in the first tutorial means on the computer screen and connection of your on making it is not same it is d/t in the ultrasonic connection so can I go with computer tutorial or your making right on the robot?

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

    Thanks bro!!!!!!!!!!!!!!!!!!

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

    now i can learn more

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

    very good man

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

    make a video of obstacle running robot with the use of arduino genuino uno and motar module L293D and including the use of seervo motar SG90 for head movement

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

    Made this it works well, ty.
    You can use the 5v on the l298n module to power the Arduino that way you only need one battery pack, just add a cable from the 5v to the same positive row on the breadboard.

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

    izmarladim parcalari yolda süper :D

  • @jeman1044
    @jeman1044 6 лет назад +6

    Great project! I built it but only the left side of my wheel works. I have been trouble shooting it for days. The connections were done right but the right wheel won't move.

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

    thank you

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

    thanks superrrrrrrrrrrrrrrrrr

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

    Thanks 😉😉

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

    can i use a motor shield l293d

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

    nice work broo..................................................

  • @prathamva7392
    @prathamva7392 7 лет назад +9

    That Music 💚💛💜

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

      Mert Arduino Tutorial & Projects name music pls

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

    why do you manage the ultrasouds sensor with analog ports?

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

    where did you bought the ultrasonic sensor stand ?

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

    Great work.I have a problem with the direction of the program circuit of Fritzing, I am not to see it.I have downloaded Fritzing.Thanks

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

    Can we use L293d moter module instead of L298N module .will it be the same program
    Need an reply sir

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

    could you please try using l293d module please using servo

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

    thanks sir :-) :-) :-)

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

    amazing..................!!!!!!!!..:)

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

    we tried the same as you have shown in the video but inspite of everything correct the dc motors are not rotating as per the command sent by the sensor
    we have used normal 9v battery and not duracell so is that he issue

  • @sunilkumawat5447
    @sunilkumawat5447 6 лет назад +2

    sir please tell me that i can use L293D moter driver

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

    How while I know which wire from the motor should be connected to the l298n? pls help asap

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

    what program did you use to make the schematics?

  • @rickcheljohnb.rebueno5599
    @rickcheljohnb.rebueno5599 5 лет назад

    what simulator is that your using to plan out your arduino projects?Thank you

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

    so nice

  • @zzzzzz...9902
    @zzzzzz...9902 7 лет назад

    Can you do a more advanced video project like a 3d printer, robotic spider, drone, battle bot, ect. Like one of the ones I listed would be fine.

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

    Which material you use for chassis

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

    Super

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

    Adamsın helal olsun

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

    Can u please tell me which libraries to include and how?

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

    thanks you
    and what is arduino simulator used in the video?

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

    I am done almost making my first autonomous car but will it work if I give it one Lipo 3S battery instead of two 9V batteries ?

  • @shubhodeepmandal1499
    @shubhodeepmandal1499 6 лет назад +2

    bro can u join the line follwer and this project. please make video of it.

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

    Which software you use for give connection process?

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

    Thank you for not using over used generic "Dub Step" music in your video.

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

    That red board a breadbord right?

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

    and plzz tell wat software you used in this prlject to make circuit diagrams

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

    If I useArduino Pro or Nano should I use the same pins?

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

    I like the music 😵

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

    Super 1A ; )

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

    Wow

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

    PLEASE HELP! So i followed the instructions, download the code and did everything right according to the video, but when i tested it the Micro Servo just wouldn't turn. After several trials, i managed to make the servo turn but the turn was to small that you could barely even see it. And great video by the way!

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

    Se puede reducir la velocidad de los motores en esta programación ??

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

    which software you use to design this

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

    do I need to add a servo library?

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

    make a vdo for CNC ploter ...

  • @user-gf7je6hk9n
    @user-gf7je6hk9n 2 года назад

    kindly tell about the web or software u used for showing connections?