how to make arduino obstacle avoiding car using L298N motor driver

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

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

  • @liliyasavchenko7100
    @liliyasavchenko7100 2 года назад +12

    Hi. I have one question. Can I use a 9V battery instead of the 18650 cells for the power supply? Thank you. Great video.

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

    Hi, great video, but can you add a link of the code in the description?

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

      Ok bro

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

      Website is under construction 🏗 so, links not available. Thank you for comment.

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

      @@electromechanics1 is construction of your website is completed so please provide link.

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

      Join whatsapp group Link:chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

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

      Join the whatsapp group and slove your problem any one is clear your problem link chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

  • @rudrabhai0007
    @rudrabhai0007 2 года назад +7

    Bro sed a code I didn't get code on group I tell there but you don't sent

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

      Just join the whatsapp group link
      chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk
      Do subscribe our channel near 500 subscribe

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

    hi is there a code that he would stop at a certain time?

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

    Cool video. Just wondering why you call readPing() four times in a row initially instead of just once? What is the purpose of that? Thanks.

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

      Yeah right I didn't get what that ???
      And what the solution of that ?

  • @danielbrown7090
    @danielbrown7090 Год назад +1

    hey bro how do you control the moving speed, my car is moving too fast

  • @TheNoobVishu
    @TheNoobVishu 2 года назад +7

    Is it necessary to code after connecting the supplies?

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

    Nice video good work man but I tried it with 9 volt battery and it was slow
    And I added 2 AA batteries but the connection was unstable and I'm afraid to use solder because it may destroy the battery so I need a better way to provide 12 v

  • @HichamHicham-bz3fh
    @HichamHicham-bz3fh 2 года назад +2

    تبارك الله عليك

  • @muralikrishna-jh9rc
    @muralikrishna-jh9rc Год назад +3

    Bro i am a android user and i use arduinodroid app for projects. There it is showing compilation error so is there any error in the code

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

      Join whatsapp group and ask doubt any one is ans the there doubt s link:chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

  • @aishwaryashriwastav2548
    @aishwaryashriwastav2548 9 месяцев назад

    How did you connected the switch with battery?

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

    Dude ware can I get the code

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

      You want Code just join whatsapp are telegram group link:chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk
      t.me/electromechanicsgroup

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

    Where I will get the code?

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

      Join WhatsApp group chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

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

    What total cost is coming out ?

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

    Well done bro 👍

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

      Thank you 😊 keep supporting our channel🙏. you want project ideas 💡 do comment....

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

    Hey Bro I’m using the programming wire but my wheels aren’t moving but my ultrasonic sensor and servo motor works. Can u help me on why my wheels aren’t working

  • @vipulthakor513
    @vipulthakor513 Год назад +1

    Bro..how to delete the old program in Arduino Uno..plz bro reply

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

      When you upload the new code the old code automatically delete. No need to extra step.

    • @vipulthakor513
      @vipulthakor513 Год назад +1

      @@electromechanics1 Thank you bro..🙏🏻

    • @vipulthakor513
      @vipulthakor513 Год назад +1

      @@electromechanics1 Bro ..Plz send code of this project

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

      electromechanics.in/projects/obstacle-avoiding-robot/

    • @vipulthakor513
      @vipulthakor513 Год назад +1

      ​@@electromechanics1 Bro... the code showing error in uploading... what should do??

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

    Wow goodd

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

    Super very good

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

      Thank you ............keep supporting our channel.....

  • @user-gt7xg9hp3m
    @user-gt7xg9hp3m 3 года назад +4

    Nice

  • @premramanathan2138
    @premramanathan2138 Год назад +3

    Hi how can i get this coding for this video hope you reply nice video thank you

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

      Join whatsapp group Link chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

  • @sekharvavilapalli3198
    @sekharvavilapalli3198 3 года назад +4

    👌👌👌

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

      thank you............... keep supporting.................

  • @hahabinance8937
    @hahabinance8937 Год назад +2

    New subscriber thank you hope i can gett the code

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

    👌👌👍👍

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

      thank you............... keep supporting.................

  • @Oceans_Space
    @Oceans_Space Год назад +2

    Bro could you pls copy the code it’s for a project

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

      Link electromechanics.in/projects/object-avoiding-robot/

  • @ranesh9601
    @ranesh9601 Год назад +2

    Bro I need the Arduino code for this project pls upload it in any platform..

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

      Join whatsapp group Link:chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

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

    First fale meeru code peeti vedio start chayandi broooooooooooooooo

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

      Any doubt join WhatsApp group chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

  • @pawanshukla5607
    @pawanshukla5607 Год назад +1

    From where I can get the Arduino UNO’s code

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

    Can you send me the codeIf not tell me where can I get the code please

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

      Code and circuit link :- electromechanicsofficial.blogspot.com/2021/09/how-to-make-arduino-obstacle-avoiding.html?m=1

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

    Only 1 motor is working. When connecting both motor it does not work. After disconnecting one motor it is working but moving round round

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

      Please help

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

      Ok please send working video to my email: peddintiudaykiran176@gmail.com

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

      It might be a power issue you don't have enough voltage to power both of the motors

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

      Use 18650 battery

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

    Thank you bro for making the video , it is very helpful , keep it up , and plz watch our comments and make it , thank you

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

      Thank you for comment. Please support our RUclips channel.

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

      @@electromechanics1 sure ,

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

      @@electromechanics1 can you maka a smart door lock system using blutooth , and also provide the code plz

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

      Bro we can't able to copy the code and tgere are many mustakes init , plz reply and give us the correct code , that we can copy

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

      Ok bro I will try to upload.

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

    were the code

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

      Join WhatsApp or telegram group:
      What app link chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk
      Telegram link
      t.me/electromechanicsgroup

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

    Bro sorry is I am troubleing you is the scratch diagram in the website too

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

      you want Code just join whatsapp are telegram group link:chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk
      t.me/electromechanicsgroup

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

      Bro send me a code I joined your group and tell but I don't get code

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

      messag the , which project code

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

    code ?

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

      You want join WhatsApp or telegram group
      WhatsApp group Link chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk
      Telegram group link t.me/electromechanicsgroup

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

    Which one is the positive wire for the DC motor, the green or the yellow one? I am currently using red and black wires so I can't tell. It also says invalid library found no header files (.h) when I upload it to my arduino board, but when I verify it does not appear and everything seems okay, pls help!

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

      Maybe try to delete the CODE you have recently Uploaded to your Arduino board and reupload the same code but first, you need to Clean (RESET) the Arduino board.

    • @Load1ng.mp3
      @Load1ng.mp3 2 года назад +1

      You haven't downloaded the ultrasonic sensor library yet

  • @lakshanthiminketh168
    @lakshanthiminketh168 Год назад +1

    Can you send program

  • @Seif-s5k
    @Seif-s5k 10 месяцев назад

    motors not working pls reply to me soon I need this

  • @justinejohnj.655
    @justinejohnj.655 10 месяцев назад

    Hey man, I just want to create this robot, but I can't find the code

    • @educationbug4542
      @educationbug4542 10 месяцев назад

      this is the code 😄
      /* Arduino DC Motor Control - PWM | H-Bridge | L298N
      object avoiding robot
      using Arduino and L298N motor driver
      Made by udaykiran, Electro mechanics
      */
      int revleft4 = 8; // Motor Pins
      int fwdleft5 = 9;
      int revright6 = 10;
      int fwdright7 = 11;
      int trigPin = 12; // Trig Pin Of HC-SR04
      int echoPin = 13; // Echo Pin Of HC-SR04
      long duration, distance;
      void setup() {
      Serial.begin(9600);
      pinMode(revleft4, OUTPUT); // Set Motor Pins As O/P
      pinMode(fwdleft5, OUTPUT);
      pinMode(revright6, OUTPUT);
      pinMode(fwdright7, OUTPUT);
      pinMode(trigPin, OUTPUT); // Set Trig Pin As O/P To Transmit Waves
      pinMode(echoPin, INPUT); //Set Echo Pin As I/P To Recieve Reflected Waves
      }
      void loop() {
      digitalWrite(trigPin, LOW);
      delayMicroseconds(2);
      digitalWrite(trigPin, HIGH); // Transmit Waves For 10us
      delayMicroseconds(10);
      duration = pulseIn(echoPin, HIGH); // Recieve Reflected Waves
      distance = duration / 58.2; // Get Distance
      delay(10);
      if (distance > 20) // Condition For Absence Of Obstacle
      {
      digitalWrite(fwdright7, HIGH); // Move Forward
      digitalWrite(revright6, LOW);
      digitalWrite(fwdleft5, HIGH);
      digitalWrite(revleft4, LOW);
      }
      if (distance < 20)
      // Condition For Presence Of Obstacle
      {
      digitalWrite(fwdright7, LOW); //Stop
      digitalWrite(revright6, LOW);
      digitalWrite(fwdleft5, LOW);
      digitalWrite(revleft4, LOW);
      delay(500);
      digitalWrite(fwdright7, LOW); // Move Backward
      digitalWrite(revright6, HIGH);
      digitalWrite(fwdleft5, LOW);
      digitalWrite(revleft4, HIGH);
      delay(500);
      digitalWrite(fwdright7, LOW); //Stop
      digitalWrite(revright6, LOW);
      digitalWrite(fwdleft5, LOW);
      digitalWrite(revleft4, LOW);
      delay(100);
      digitalWrite(fwdright7, HIGH); // Move Left
      digitalWrite(revright6, LOW);
      digitalWrite(revleft4, LOW);
      digitalWrite(fwdleft5, LOW);
      delay(500);
      }
      }
      copy this and paste it in arduino ide

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

    cool

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

    Hi sir my wheels are not working

  • @riverorigin2968
    @riverorigin2968 Год назад +1

    Can u send code

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

      Join WhatsApp group link chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

  • @418aditya3
    @418aditya3 2 года назад

    Can we use 4 motors with providing 9V as supply for motor driver

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

    can you send the code I joined the group as you told him can you resend me the code plz do send the same code for this bot as like A0 and stuff all the wiring is done but my bot has 4 wheels

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

      wait I uploaded code my car won't move my morter driver and uno light up

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

      dude my car dose not work help me

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

      Join WhatsApp and send problem

  • @LalKrishna-g7k
    @LalKrishna-g7k Год назад

    Bro your code link is not working can you send the code

  • @ayffreefire8884
    @ayffreefire8884 Год назад +1

    Link code ?

  • @AnaMurgaski
    @AnaMurgaski Год назад +1

    Can you copy code and send me pls?

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

      Join the whatsapp group Link chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

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

      Bro could you send me the code pls it’s for a project

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

    Send link of programming part it's my humble request

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

      Join the whatsapp group Link:chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

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

    hello how to download newping library

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

      Click the link: github.com/eliteio/Arduino_New_Ping
      and download new ping

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

    Hello

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

      Hi, to contact message to peddintiudaykiran176@gmail.com

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

    Bro coding download keep please 🙏👌

    • @educationbug4542
      @educationbug4542 10 месяцев назад

      /* Arduino DC Motor Control - PWM | H-Bridge | L298N
      object avoiding robot
      using Arduino and L298N motor driver
      Made by udaykiran, Electro mechanics
      */
      int revleft4 = 8; // Motor Pins
      int fwdleft5 = 9;
      int revright6 = 10;
      int fwdright7 = 11;
      int trigPin = 12; // Trig Pin Of HC-SR04
      int echoPin = 13; // Echo Pin Of HC-SR04
      long duration, distance;
      void setup() {
      Serial.begin(9600);
      pinMode(revleft4, OUTPUT); // Set Motor Pins As O/P
      pinMode(fwdleft5, OUTPUT);
      pinMode(revright6, OUTPUT);
      pinMode(fwdright7, OUTPUT);
      pinMode(trigPin, OUTPUT); // Set Trig Pin As O/P To Transmit Waves
      pinMode(echoPin, INPUT); //Set Echo Pin As I/P To Recieve Reflected Waves
      }
      void loop() {
      digitalWrite(trigPin, LOW);
      delayMicroseconds(2);
      digitalWrite(trigPin, HIGH); // Transmit Waves For 10us
      delayMicroseconds(10);
      duration = pulseIn(echoPin, HIGH); // Recieve Reflected Waves
      distance = duration / 58.2; // Get Distance
      delay(10);
      if (distance > 20) // Condition For Absence Of Obstacle
      {
      digitalWrite(fwdright7, HIGH); // Move Forward
      digitalWrite(revright6, LOW);
      digitalWrite(fwdleft5, HIGH);
      digitalWrite(revleft4, LOW);
      }
      if (distance < 20)
      // Condition For Presence Of Obstacle
      {
      digitalWrite(fwdright7, LOW); //Stop
      digitalWrite(revright6, LOW);
      digitalWrite(fwdleft5, LOW);
      digitalWrite(revleft4, LOW);
      delay(500);
      digitalWrite(fwdright7, LOW); // Move Backward
      digitalWrite(revright6, HIGH);
      digitalWrite(fwdleft5, LOW);
      digitalWrite(revleft4, HIGH);
      delay(500);
      digitalWrite(fwdright7, LOW); //Stop
      digitalWrite(revright6, LOW);
      digitalWrite(fwdleft5, LOW);
      digitalWrite(revleft4, LOW);
      delay(100);
      digitalWrite(fwdright7, HIGH); // Move Left
      digitalWrite(revright6, LOW);
      digitalWrite(revleft4, LOW);
      digitalWrite(fwdleft5, LOW);
      delay(500);
      }
      }

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

    code please?>

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

      Join WhatsApp group chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

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

    why is it not working when I disconnect it from my laptop?

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

    Can i use batteries 9volt ?

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

      Yeah...... but car 🚗 run slowly

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

      Voting kar ki coding bhejiye hamen hamen code dalne per error bata raha hai

  • @FrankDens
    @FrankDens Год назад +2

    Hi, great video, but can you add a link of the code in the description?

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

      Just join the whatsapp group Link chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

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

      Do subscribe our channel near 500 subscribe

  • @Denrayeditz
    @Denrayeditz Год назад +1

    Code ?

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

      Join whatsapp group Link chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk

  • @fazrilsidik5433
    @fazrilsidik5433 Год назад +1

    Code?

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

      Just join the whatsapp group link
      chat.whatsapp.com/HmF4KfgTrIo7DS0dY7L3Qk
      Do subscribe our channel near 500 subscribe