Line Follower And Obstacle Avoiding Robot using Arduino, IR Sensor and Ultrasonic Sensor

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • Line Follower And Obstacle Avoiding Robot using Arduino, IR Sensor and Ultrasonic Sensor
    Hi viewers !
    I have made an black Line Follower And Obstacle Avoiding Robot using Arduino UNO, IR Sensor, L298n motor driver and HC-SR04 ultrasonic sensors
    Code and Schematics:- github.com/emb...
    Components Details () {
    Arduino Nano,
    2wd Accessories Kids Mini Educational Robot Kit Aluminum Chassis ROHS,
    Mini solderless breadboard,
    IR Sensor x 2,
    male to female jumper wires,
    HC-SR04 ultrasonic sensors,
    L298n Motor Driver,
    Power Bank
    }
    We regularly uploads exciting videos like this
    Suscribe us For More Videos
    Muhammad Ansar
    03378655465
    Website - bit.ly/2zrVHpW
    RUclips - bit.ly/2r8xhx1
    Facebook - bit.ly/2P6ZQVd
    Twitter - bit.ly/2DOobNm

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

  • @EngN-
    @EngN- 5 лет назад +5

    Very helpful, keep going brother. I'm doing Mechatronics and we have to do these things you know. Good content in short time,, much appreciated.

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

    tq for that video sir. They are only youtubers who explain the whole code that was great

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

    Hey there!
    I'm one of your subscribers.
    I want a tutorial video for a obstacle picking line follower robot which picks up the obstacles when it comes in front and replace it to specific area and follow the line. Thank you!

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

      ok I try my best

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

      @@MuhammadAnsar For more details u can read the rules of International Robot Olympiad. And please make the robot on arduino UNO.

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

      @@juhayeraltausif3908 ok

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

      @@MuhammadAnsar And please explain how to move the robot backward! please!

  • @al-kamransabbir5225
    @al-kamransabbir5225 4 года назад +2

    Allah Bless you.
    This video just MashAllah.

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

      thank you bro

    • @al-kamransabbir5225
      @al-kamransabbir5225 4 года назад +1

      @@MuhammadAnsar I have 1 Question!
      why In line follower & obstacle avoidence code we did not use the stop function.
      if we use 4th "IF" condition and call the stop function will it mess up ?

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

      @@al-kamransabbir5225 bro mane wase hi ni use kia tha likn agr kr use krna ho ga tu ho jay ga

    • @al-kamransabbir5225
      @al-kamransabbir5225 4 года назад +1

      @@MuhammadAnsar Okey! thank you bro.
      mai try kr k dekhun ga.

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

      @@al-kamransabbir5225 ok welcome

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

    Keep it up very nice

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

    Good 👍

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

    saya suka dengan penjelasan yang baik,terimakasih ...
    ide yang anda berikan,terimakasih sketh arduinonya...
    salam dari indonesia

  • @Lucian825
    @Lucian825 4 года назад +5

    Hi there , can you tell me what program did you use to make those Schematics ? By the way nice job , and nice project ! ^_^

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

      send email

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

      @@MuhammadAnsar sir code open nahi ho rha

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

    Sir, thank you for giving me the code an d the circuit diagram. Sir, can you please make a video about how to make a Arduino Otto robot using Arduino nano and upload in your channel.

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

      ok bro i try

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

      ​@@MuhammadAnsar Thank you, sir and please make a video about Arduino Otto Robot using Arduino nano, Can you teach me. I want to learn how to make the Arduino Otto robot using Arduino nano.

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

    We have a project like this. Is it possible for us to use your code here? Can I get a copy of it?

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

    Good project

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

      thank you

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

      @@MuhammadAnsar bhai nodmcu iot home automation par project bano jo google assistant voice se on ho

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

      @@TechnicalMech ok

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

      @@MuhammadAnsar me ne is par kam keya he blynk app ko use karky appliances on off hota he par Google assistant voice se appliance on ni hota

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

      @@TechnicalMech ok bro

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

    Good Work

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

    Do you give tutions for robotics

  • @كثيرالطيب
    @كثيرالطيب 3 года назад +1

    Very nice 🇰🇼احسنت يا محمد

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

    excellent job
    ham siraf obstacal avoiding use kar sakty ha kia 2nd\ code ko use kar kay

  • @fouzanjaved221
    @fouzanjaved221 3 года назад +3

    Can i use 7.4v instead of power bank?

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

    Can you tell me what that green surface with boxes and lines on it?
    I want to get one

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

    Hey bro Can you use a battery other than a power bank, and if you use a battery the code is different, please help

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

    bhai apka coding 1no hain

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

    Assalam-o-alaikum. Bhai can you make the voice control robot without arduino shield?

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

    Sir iss mai aur Modification kr skte hai? jese ke agr Light seeking bhi bna le iss se and Wireless move kre ye ...bluetooth waghera se etc?

  • @ghanashyampatel7007
    @ghanashyampatel7007 3 года назад +3

    Thank you sir

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

    Thank you very much brother. Keep going on!

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

    Hi there, can we incorporate voice control to this?

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

    Is it okay to use 4 wheels and just add power source as well as adding a servo motor on it?

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

    What will happen if you do not set a track?

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

      if you do not track it will not work line follower

  • @ELECTRONICAPROGRAMACIONYROBOTS
    @ELECTRONICAPROGRAMACIONYROBOTS 3 года назад +3

    Buen proyecto👌🏻

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

    Is your ir sensor digital or analog

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

    Send me its code plz..
    The code that you have provided isn't openig at all

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

    Hi bro ,
    I request you to make this same project with l293d motor driver and Arduino uno please🙏

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

    Nice bro

  • @OnceUpponATime-s24
    @OnceUpponATime-s24 4 года назад +1

    Sir, please send me the Arduino uno code for this and What happens if the path intersecting?

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

    Gud job

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

    Does this program work for arduino UNO ??

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

    Hi there,
    How is it done using raspberry pi?

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

    Hello Muhammad Ansar,
    The robot looks nice, good job. I have a question though, does the robot know when he passes the object to avoid or is it a static routine that it does? If the routine is static, the robot would not be able to pass an object close to another object on the right side am I correct?

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

      thank you
      in this code only one Side move

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

    Will it work with any tracks?

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

    Is same code can be used in PICmicrocontroller 18f

  • @newbie3-if3hy
    @newbie3-if3hy Год назад

    yo bro could u explain wit hthis code ?
    int frontdist;
    long duration;
    int setdist= 10;
    what is the setdist mean? fast reply tq

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

      the distance to the obstacle in front is set

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

    yar in sensers ki sense karny ki range kitni hoti ha maximum please btay

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

    bro..... can i use here 9V bettery. for this will be any change in code?

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

    what alternative power source I can use beside power bank

  • @ΔημήτρηςΤετράδης
    @ΔημήτρηςΤετράδης 4 года назад +1

    Hi my friend. The powerbank when mA?

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

    Hey bro can I use your code for my project?

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

    bro in my robot light is there .....but it's not moving why is that so @ MuhammadAnsar

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

    Sir I tried this project, but robot is not showing any movement. Pls help

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

      Check hardware code is ok

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

      Sir now one motor is moving forward and other reverse

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

      Bro having the same problem robot is not moving did u fix it ? I m using uno

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

      @@sain4007 hello did this work for u

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

    Can we use l293d other motor driver

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

    Where did I by the camponents and where the camponents list

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

    Kitne tak banege project

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

    Which kit you used to the moter

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

    Whats the cost of Project?

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

    can i get the perfect code

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

      send email

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

      chavanomkar189@gmail.com

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

      @@omkarchavan1669 bro send me code bro please sunilsk12293@gmail.com

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

      So it means the code in description is not correct

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

      @@omkarchavan1669 can I get the code

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

    Sir mujhy line follower robot banana hy jismein wo red obstacle ko detect kary aur apni initial position per wapis pohanch jae memory ko use ker k to wo mein kesy banaon??

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

      bro ap kaha se ho

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

      @@MuhammadAnsar For now i"m in islamabad and i"m doing Mechatronics engg so i need some help

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

      @@MuhammadAnsar agar koi tutorial hy to bata do k jesy hi obstacle detect kary to apni initial position per robot pohanch jae memmory mein location or turn save rakhy

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

      Visit my channel And see other line follower robot videos

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

    ASSLAMU ALAYKUM ANSAR BHAI PLZ UPLOAD MOBILE OPRATE CAR ARDIUNO COD AS PER YOU LODED LINE FOLLOW CAR CODS PLZ PLZ

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

    can you please tell me how can i add dijkstra algorithm in this code

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

    I tried to make it and it took me 5 hours and didn't work

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

    Will it work on l293d motor driver

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

    Can you explain in some detail this part of the code?
    long data(){
    digitalWrite(trigpin,LOW);
    delayMicroseconds(2);
    digitalWrite(trigpin,HIGH);
    delayMicroseconds(10);
    duration=pulseIn (echopin,HIGH);
    return duration / 29 / 2;
    Especially this part
    return duration / 29 / 2;
    Why divide by 29 and then by 2, please reply quickly and thank you

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

      its the code for the HC-SR04 Ultra Sonic sensor. Its sending and receiving a ping and the division is calculating the speed of sound to determine the distance of objects. its divided by 2 because the sound is making a round trip from the sensor, to the object, and then back. You divide to get the distance to the object instead of the round trip of the ping.

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

      @@TheSelfUnemployed I got it in the same day and make the project. Thanks any way

  • @manpreet-kaurgrewal7708
    @manpreet-kaurgrewal7708 5 лет назад +2

    Can we make this using Arduino Uno?

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

    Sir, instead of arduino nano in this case can we use arduino uno? for obstacle avoiding?

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

    Sir kya ye 4wd car par work krega

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

    Is er diagram is possible in embedded projects???

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

    can you send me the code for this on arduino uno

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

      The same code will move to the Arduino UNO

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

    sir hum Arduino Uno use kar sakte he kya iss project me and kaise . please help sr

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

      haaan g arduino uno bhi use kr skty hy

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

      @@MuhammadAnsar usaka connection kis tarah lagaye ....

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

    Can I have the document for this project

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

    Hi sir can you send me the code for arduino uno....

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

    Hi can I use l293d Motor driver

  • @CC-er7ln
    @CC-er7ln 5 лет назад +1

    sir can u send the line follower and obstical avoiding robot code mailchestara sir

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

    Arduino uno pe banao

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

    Bhai ardino uno use karo

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

      arduino ide download kro

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

      @@MuhammadAnsar sir hamare pas ardino ide hey
      Pan ye project hamaku ardino uno people banane la hey

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

      @@shaikhfatru5540 yahi wla code use ho ga Arduino uno k liy bhi

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

      @@MuhammadAnsar Masha Allaha
      Thank you

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

      @@shaikhfatru5540 welcome

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

    Sp robotics right

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

    Bro i need code for uno

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

      code download for Description and same code apply Arduino UNO and NANO

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

    Hi I hv my project can I use ur code?

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

    Can you share the code for arduino uno with 4wheel robot

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

      Same code apply for arduino uno with 4 wheel robot

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

      @@MuhammadAnsar sir motor are not running with same code

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

      I tried with two motors only, I am giving 9v battery

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

      Pls help me!

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

    can i use arduino uno

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

    In l298n motor driver (the one with enable pins

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

      enable pins 5v

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

      No man he asked that can we use the l298n motor driver the one with enable pins

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

      And thats my account 😋😅😅

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

    Bro I want coding for arduino Uno
    Can u send it to me

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

      yes send email

    • @NguyenMinhuc-ns4wt
      @NguyenMinhuc-ns4wt 4 года назад

      @@MuhammadAnsar ducminh200119@gmail.com

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

      Could you send me also the code for arduino uno carlosgsantacruz@gmail.com is my email

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

      @@NguyenMinhuc-ns4wt can you send me the code for Arduino uno

  • @lekso-teamrpd300
    @lekso-teamrpd300 5 лет назад +1

    Hello , could you send me a code

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

    sir i am making this one can you help me in this and send me the coding.

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

    Hello, I am making this project this semester, wil you please send me the code for using arduino uno? thank you so much

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

      he has given the link below see it

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

    bro❤❤❤❤❤💜💜❤❤❤❤❤

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

    and sr app usaka code bhej sate ha kya...

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

    Can u plz send the document

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

    Bhai mere ek madat krdo please

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

      haaan g bro kia help kro ap ki

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

      @@MuhammadAnsar Bhai mera project hai line follwer ka uskeiye mujhe code doa na

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

      @@MuhammadAnsar ruclips.net/video/Moq3O_q0rzw/видео.html same eysa usme ir, ultrasonic sensor bhi hey plzz

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

      Same eisa chalney wala rook rook key please

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

      Are bhai btao

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

    Please reply

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

    hat salla