How to make Obstacle Avoiding Robot using Arduino !!

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

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

  • @prateekverma22
    @prateekverma22  Год назад +41

    //Code
    #include // libraray for motor shield
    #include // libraray for servo motor
    #include // libraray for ultrasonic sensor
    const int Trig_Pin =A0;
    const int Echo_Pin =A1;
    const int Max_Speed =200;
    const int Max_Dist = 250;
    NewPing ultra_sonic(Trig_Pin, Echo_Pin, Max_Dist);
    AF_DCMotor motor1(1,MOTOR12_1KHZ);
    AF_DCMotor motor2(2,MOTOR12_1KHZ);
    AF_DCMotor motor3(3,MOTOR34_1KHZ);
    AF_DCMotor motor4(4,MOTOR34_1KHZ);
    Servo myservo;
    int distance=250;
    int speedSet=0;
    boolean goesForward=false;
    void setup() {

    myservo.attach(10);
    myservo.write(0);
    delay(2000);
    distance=readDistance();
    delay(100);
    moveForward();
    }
    void loop() {
    int dist_R = 0;
    int dist_L = 0;
    delay(100);

    if(distance

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

    Literally saved my degree bro thanks a lot

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

    while coding the battery is connected or not ?

  • @hamidbouhamidi8882
    @hamidbouhamidi8882 Месяц назад

    God ❤ job❤🎉😊😊😊😊😊😊

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

    Excelent video, thanks for sharing it!!

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

    Aree aree Engineer sahab great 🔥🔥🔥

  • @VikashJatav-fr2nb
    @VikashJatav-fr2nb Год назад

    M apka Ahsan Kabhi nhi bhulunga please sir 🙏🙏

  • @alihmohammed96
    @alihmohammed96 Месяц назад

    This is quite interesting

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

    what is the sticky stuff called you use to keep your micro servo and sensor in place?

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

    I want to use a H bridge instead of the arduino shield and an esp32 instead of using arduino. Will the code be the same after i changes the libraries?

  • @RAVEGAMESTUDIO
    @RAVEGAMESTUDIO 14 дней назад

    Somehow the code doesn't work properly, there is always an AFmotor error message

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

    Awesome project from awesome person🤩👌

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

    Why our motor driver got sparked when we connect to 7 volt bettery plzzz help

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

      You could have shorted gnd and Vcc.
      And remember one thing whenever you do connection remove the battery first or turn off the switch

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

      @@prateekverma22 yes we try it.. But it sparked and smoke coming

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

    Can we use 9v battery ... please reply

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

    Can I purchase the whole implementation from you ?

  • @abhijeetpurohit6294
    @abhijeetpurohit6294 11 месяцев назад

    Can i run it in wifi also

  • @ManjulaMelmalagi
    @ManjulaMelmalagi 4 месяца назад

    Can we upload the code before the connections

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

    Great work, Can you share an online link to buy all the components? Thanks, COuld not find a few of the exact items.

  • @Piyush_mali8928
    @Piyush_mali8928 3 месяца назад

    we canuse 11.1 v

  • @tinsuneg6554
    @tinsuneg6554 Месяц назад

    My son did this for school project and the sensor is not working . Please help. Thank you.

    • @prateekverma22
      @prateekverma22  Месяц назад +1

      Make sure you have connected the sensor correctly and that it is powered.

  • @AliNooh-vy5hj
    @AliNooh-vy5hj Год назад +1

    Good

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

    Amazing project🤩 keep it up bro🔥🔥

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

    i am making this project but servo motor us not working and all four motor are rotating for only one second it get stop.What should i do

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

      today is last day of this project
      please me

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

    Great 👌 becoming more innovative day by day 🔥

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

    your trig pin is placed wrong

  • @ZebraVo-n9q
    @ZebraVo-n9q Год назад

    amazing bot bro, i have L298 motor driver board how to give connection for this bot?

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

      Follow this link -forum.arduino.cc/t/4wd-obstacle-avoiding-smart-car-using-l298n-motor-driver-module-hc-sr-04-ultrasonic-sensor-and-sg90-micro-servo-motor/1159254

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

    Hi bro
    Everything is fine I'm using 2 ×3.7 v cells but sensor is working but motor is not working please help

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

    Hello bro,what the controller you use tu control the vahicle?

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

    Will it move automatically if we add voice control also?

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

      Yes, based on the command given to it

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

      @@prateekverma22 😊 thank you for your help. Can I add Bluetooth speaker and Bluetooth module? Will it work?

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

    How can we supply 12V supply to driver and 9v to Arduino separately

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

      To supply power separately you need to remove the jumper from the motor shield and then give the power to the arduino using it's DC jack and To motor shield use EXT_PWR terminals.

  • @raviteja3116
    @raviteja3116 5 месяцев назад

    can you send me the program link , its not responding in Mac

  • @Mrunknowndrawings
    @Mrunknowndrawings 2 дня назад +1

    Cost=₹926
    I made it in school😊
    👇

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

    How much time took to upload code please tell

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

    Bhai laptop ma kya kiya ho

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

    Wow.. Nice 😊

  • @Ajjubhai-eb8gl
    @Ajjubhai-eb8gl Год назад

    WE HAVE TO USE UNO OR UNO R3?????

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

    Well done bro 👌

  • @GaneshShinde-rq4pl
    @GaneshShinde-rq4pl 2 года назад

    Can I use this for node mcu esp8266

  • @mikestrivia
    @mikestrivia Год назад +4

    This is good, but you could have made this much better if you had shown each detail and connection. A little more time would have made this go from watching someone throw parts together to a follow each step with me and learn how and why I'm doing this. And lower the awful background music.

  • @AmitKumar-ol5ky
    @AmitKumar-ol5ky 2 года назад

    Awesome project... What's the budget?

  • @AradhyaRoy-u2t
    @AradhyaRoy-u2t 3 месяца назад

    can u please give me the code properly please help me

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

    How to start and disconnect this robot is there any application or just Arduino coding

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

    Can you explain in which app you run the program?

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

      Arduino IDE, it has its own language which is very much similar to c/c++

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

      @@prateekverma22 Thank you so much

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

    i have done all process but still code is not working

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

      What problem are you facing exactly? is the code not uploading ?

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

    bro one doubt can u reply asap , i have done this and i got error : AF MOTOR H NO SUCH FILE OR DICTIONARY

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

      You need to first install the AFMotor library for arduino

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

      @@prateekverma22 SIR HOWS ITS DONE? , I INSTALLED EVERY THING AND THE CODING ONLY LEFT

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

      ​@@hasilhasil4213 you can check out my code , see in the description box

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

      Please give the code ....link in description is not working

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

    bro is this project is suitable for mechanical students

  • @Master-com007A
    @Master-com007A 2 года назад +1

    Hi bro preetik

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

    good job

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

    What makes it so expensive?

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

    There are showing an error " AFMotor such file or directory not found

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

      You need install 'Adafruit Motor Shield library' go to tools >manage libraries>

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

    In which language program is written?

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

    Mast bhaiya

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

    code not working.

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

    thanks for sharing

  • @Robots._.
    @Robots._. 2 года назад +2

    I have uploaded the code but my car is not working,, all the connection are correct and battery is also charged

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

    Can u describe more about that

  • @Nitin-Yadav54
    @Nitin-Yadav54 Год назад

    Total kitne rupaye lagte is banane mein Bhai😊

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

    Is this remote control

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

      No , it senses the obstacle by its own and takes the path free from obstacle

  • @GaneshYadav-zf3sf
    @GaneshYadav-zf3sf 2 года назад

    I have required this instrument please, I am from Nepal ,saptari

  • @VikashJatav-fr2nb
    @VikashJatav-fr2nb Год назад

    Please sir kaise bna sakte hai

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

    Amazing bro🔥🔥🔥🌟✨

  • @rdtv-dz3eo
    @rdtv-dz3eo Год назад

    Superb

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

    Bro can you share that Coding part because me and my group are trying to do that project so plz...... Share it bro....

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

      brohh if u get the code plzz share me Also request

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

    Great bro

  • @Milly-ww5rx
    @Milly-ww5rx Год назад

    How many jumper wires do we need to buy?

    • @cocomilcery
      @cocomilcery 11 месяцев назад

      10 jumper wires😊

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

    do you have project report file of this project

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

    Please anybody share what is the problem statement for this project..

  • @GaneshYadav-zf3sf
    @GaneshYadav-zf3sf 2 года назад

    Brother how much price of instrument used in this

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

    link in description is not working

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

    What this library ?

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

      I've used three library-
      1. ( for motor shield)
      2. (for ultrasonic sensor)
      3. (for servo motor)

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

    How to insert code in it?? Plz someone help me out

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

      Watch this video-ruclips.net/video/1DAK19FPJXo/видео.html

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

    Is this mechanical engineering project

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

    Soo amazing🔥🔥

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

    bro plzzz send the code....this code was not copying to phone

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

    Robot dodging obstacles like prateek dodging defenders

  • @VikashJatav-fr2nb
    @VikashJatav-fr2nb Год назад

    Sir mera 1date ko practical hai

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

    Please send the code of this

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

    Mekata keeyak viyadam unada

  • @himanshu_27tt
    @himanshu_27tt 2 года назад +11

    How much money is required to make this?

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

      To much

    • @prateekverma22
      @prateekverma22  Год назад +6

      around 2.5k (INR)

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

      @@prateekverma22 thanks

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

      @@jacksonkitts2938 he is talking about rupees, not dollars

    • @Codykratt
      @Codykratt Год назад +4

      I built this using some scrap from an old project and some lego, probably cost around $30-50

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

    Hello, would it be possible to transfer me the Arduino file please. Good day to you

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

    Code tika gahanne kohomada aiye

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

    Code name bro

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

    Code bro

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

    hi

  • @Master-com007A
    @Master-com007A 2 года назад +2

    App active raha na

  • @VikashJatav-fr2nb
    @VikashJatav-fr2nb Год назад

    Mujhe banani hai sir

  • @ChandanKumar-sc9lx
    @ChandanKumar-sc9lx Год назад

    Arduino Uno ka peaches Link bhejo na Bhai

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

      quartzcomponents.com/products/arduino-uno?variant=31898093846663¤cy=INR&?FreeListings&gclid=Cj0KCQjwj_ajBhCqARIsAA37s0wyUwCgVcaQiaqY93a98kC0rRTWOMkfgJ1Pb6RwnpUMCudCpKC9GvgaApzTEALw_wcB

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

    🔥🔥💯❤️

  • @VikashJatav-fr2nb
    @VikashJatav-fr2nb Год назад

    Apke hath jodta hu bhai

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

    bhai please yaar code to daal de

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

    please give the code
    bro

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

      It is uploaded now, check the description box

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

      ​@@prateekverma22 sir code is not opening

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

    give me a code

  • @VikashJatav-fr2nb
    @VikashJatav-fr2nb Год назад

    Bhai m Maruti Suzuki me job karta hu Bhai please

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

    Very old project

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

    no use, as no code given

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

    😭 fake code not working.

  • @Master-com007A
    @Master-com007A 2 года назад +1

    Mein project bana raha Hun fir koi problem aaye to telegram PE DM kar duga ok ?? Please reply

  • @suman.poddar0
    @suman.poddar0 Год назад

    I'm facing problem, My project is not working on battery, it works perfectly when plugged into the laptop. can you help me. December 22 last date of submission.
    @prateekvarma

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

      1)Check the battery holder connection
      2)check whether switch is working properly or not.
      2)Make sure that the battery is not discharge or use new battery

  • @Nitin-Yadav54
    @Nitin-Yadav54 Год назад

    Total kitne rupaye lagte is banane mein Bhai😊