How to make Obstacle Avoiding Robot using Arduino !!

Поделиться
HTML-код
  • Опубликовано: 14 янв 2023
  • In this video I have shown how to build an obstacle avoiding robot using Arduino Uno microcontroller. If an object comes ahead of it the robot stops, move back a little bit, look left/right and then it turns that side which has greater distance.
    ---------------------------------------
    Components required
    1)Arduino uno board - amzn.to/3QGhzpm
    2)Ultra sonic sensor - amzn.to/40j5OIG
    3)Servo motor - amzn.to/3sgHcUo
    4)motor shield module - amzn.to/47bzHgi
    5)jumper wires - amzn.to/49fJdkm
    6)battery - amzn.to/3seT7SK
    7)chassis(4 X dc motor ) - amzn.to/3FEgsA6
    Video gear
    camera : amzn.to/3Tb5EBR
    camera stand : amzn.to/3RcwWGy
    mic: amzn.to/3sNOEGY
    ----------------------------------------
    if you liked the video then don't forget to subscribe my channel for more such content.
    Code and circuit diagram is uploaded on the telegram channel :- (t.me/robo301)
    #diyprojects #robot #electronic #smartcars
  • НаукаНаука

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

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

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

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

    Aree aree Engineer sahab great 🔥🔥🔥

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

    Literally saved my degree bro thanks a lot

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

    Excelent video, thanks for sharing it!!

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

    Awesome project from awesome person🤩👌

  • @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.

  • @Kalpesh.gothwal25
    @Kalpesh.gothwal25 Год назад

    Great 👌 becoming more innovative day by day 🔥

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

    Wow.. Nice 😊

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

    Amazing project🤩 keep it up bro🔥🔥

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

    Mast bhaiya

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

    thanks for sharing

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

    Well done bro 👌

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

    Superb

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

    Great bro

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

    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?

  • @AmitKumar-ol5ky
    @AmitKumar-ol5ky Год назад

    Awesome project... What's the budget?

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

    good job

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

    M apka Ahsan Kabhi nhi bhulunga please sir 🙏🙏

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

    🔥🔥💯❤️

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

    Can I purchase the whole implementation from you ?

  • @AliNooh-vy5hj
    @AliNooh-vy5hj 6 месяцев назад +1

    Good

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

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

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

    Can i run it in wifi also

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

    Can u describe more about that

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

    Amazing bro🔥🔥🔥🌟✨

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

    Soo amazing🔥🔥

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

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

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

    What makes it so expensive?

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

    In which language program is written?

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

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

    • @prateekverma22
      @prateekverma22  Год назад +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.

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

    Robot dodging obstacles like prateek dodging defenders

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

    while coding the battery is connected or not ?

  • @GaneshYadav-zf3sf
    @GaneshYadav-zf3sf Год назад

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

  • @boiani
    @boiani 8 месяцев назад

    How much time took to upload code please tell

  • @GaneshShinde-rq4pl
    @GaneshShinde-rq4pl Год назад

    Can I use this for node mcu esp8266

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

    do you have project report file of this project

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

    Hi bro preetik

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

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

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

      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 3 месяца назад

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

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

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

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

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

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

      Check whether the motor is faulty or not.

  • @cloudie8302
    @cloudie8302 8 месяцев назад +1

    your trig pin is placed wrong

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

    Is the code that you showed the complete one on camera? Sorry I’m just starting out so I’m not really educated on this 😅

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

      yes it is complete

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

      @@prateekverma22hi I’m making this myself and it would really make my life easy if you could give me the code so I can just easily copy paste it (if it’s too much trouble pls tell me anyway cuz otherwise I’ll be left hanging)

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

      @@abrishirfan6797 check description box

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

      @@prateekverma22the links not working in my area

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

      Ok never mind I used a proxy--- could you tell me the app you used to compile?

  • @kunalkalaskar299
    @kunalkalaskar299 9 месяцев назад +1

    Can we use 9v battery ... please reply

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

      Yes you can use but it will discharge fast

  • @kamleshjaiswal4276
    @kamleshjaiswal4276 8 месяцев назад

    Bhai laptop ma kya kiya ho

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

    link in description is not working

  • @user-cq2ik9ss6r
    @user-cq2ik9ss6r 6 месяцев назад

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

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

      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

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

    Please sir kaise bna sakte hai

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

    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 11 месяцев назад

      today is last day of this project
      please me

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

    How many jumper wires do we need to buy?

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

      10 jumper wires😊

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

    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  Год назад

      You need to first install the AFMotor library for arduino

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

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

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

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

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

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

  • @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

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

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

  • @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.

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

    bro is this project is suitable for mechanical students

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

    Please send the code of this

  • @MaterialisticXII
    @MaterialisticXII 8 месяцев назад

    Will it move automatically if we add voice control also?

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

      Yes, based on the command given to it

    • @MaterialisticXII
      @MaterialisticXII 8 месяцев назад

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

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

    Code tika gahanne kohomada aiye

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

    Mekata keeyak viyadam unada

  • @Ajjubhai-eb8gl
    @Ajjubhai-eb8gl 8 месяцев назад

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

  • @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

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

    code not working.

  • @GaneshYadav-zf3sf
    @GaneshYadav-zf3sf Год назад

    Brother how much price of instrument used in this

  • @anu34501
    @anu34501 8 месяцев назад

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

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

      Only Arduino coding in Arduino IDE

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

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

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

    Total kitne rupaye lagte is banane mein Bhai😊

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

    What this library ?

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

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

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

    Sir mera 1date ko practical hai

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

    i have done all process but still code is not working

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

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

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

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

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

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

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

    Is this remote control

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

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

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

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

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

    Is this mechanical engineering project

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

    hi

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

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

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

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

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

    Code bro

  • @sarangaming4817
    @sarangaming4817 8 месяцев назад

    Code name bro

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

    Mujhe banani hai sir

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

    App active raha na

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

    bhai please yaar code to daal de

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

    Apke hath jodta hu bhai

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

    How much money is required to make this?

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

      To much

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

      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

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

    please give the code
    bro

  • @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

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

    😭 fake code not working.

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

    Bhai m Maruti Suzuki me job karta hu Bhai please

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

    Very old project

  • @user-cf3zb1zn5s
    @user-cf3zb1zn5s Год назад

    give me a code

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

    no use, as no code given

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

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

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

    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  6 месяцев назад

      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😊