How To Make A DIY Obstacle Avoidance Line Follower Robot At Home

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • JLCPCB Prototype for $2(Any Color): jlcpcb.com
    Hello Guys, In this tutorial, I am going to show you how to make a DIY Obstacle Avoidance Line Follower Robot At Home. So let's get started :)
    Please subscribe ❤️ and turn on notifications! 🔔 bit.ly/2WlyA8Y
    Parts List:
    (Banggood.in)
    1) Arduino Nano - bit.ly/2RdpIo4
    2) L298N Motor Driver - bit.ly/2LTqEMh
    3) TT Gear Motor(4x) - bit.ly/2XZFLZv
    4) Rubber Wheels(4x)- bit.ly/2XIaDOQ
    5) IR Sensor(2x) - bit.ly/2k70nNi
    6) Ultrasonic Sensor - bit.ly/2RzebL7
    7) 18650 Li-ion Battery(2x) - bit.ly/2CZabQ7
    8) Battery Holder - bit.ly/2sulLwu
    9) 5mm Acrylic Sheet - (Local Store)
    (Amazon.in)
    1) Arduino Nano - amzn.to/35c5fDv
    2) L298N Motor Driver - amzn.to/30WoAW2
    3) TT Gear Motor and Wheels Full Set - amzn.to/2IuY6o6
    4) Rubber Wheels(4x) - amzn.to/2Iv1krI
    5) TT Gear Motor(4x) -amzn.to/2oeovjm
    6) IR Sensor(2x) -amzn.to/31YTmPw
    7) Ultrasonic Sensor - amzn.to/35dFoes
    8) 18650 Li-ion Battery(2x) -
    9) Battery Holder - amzn.to/2Iv1krI
    9) 5mm Acrylic Sheet - (Local Store)
    [Flyrobo.in]
    1) Arduino Nano - bit.ly/2kzPi7S
    2) L298N Motor Driver - bit.ly/2ksMcSU
    3) IR Sensor -bit.ly/2mv8Uuo
    4) Wheels - bit.ly/2kxPeFF
    5) TT Gear Motor - bit.ly/2m4fMid
    6) 18650 Li-ion Battery - (Local Store, Old powerbank or laptop battery)
    7) Battery Holder - bit.ly/2sulLwu
    8) Male And Female Jumper -bit.ly/2mu0aVo
    10) 5mm Acrylic Sheet(14x9cm) - (Local Store)
    ------------------------------------------------------------------
    Gerber File - bit.ly/30NfsD8
    Circuit Diagram - bit.ly/2Olokgs
    Code - bit.ly/2AG1b0k
    ------------------------------------------------------------------
    More Arduino Car Related Projects
    1) Arduino Voice Controlled Car - bit.ly/2WUdsuR
    2) Arduino Bluetooth Controlled Car - bit.ly/2WpYPuX
    3) Arduino Line Follower Car - bit.ly/2ZimqPV
    4) NodeMCU WIFI Controlled Car - bit.ly/2XA941d
    Thanks For Watching
    ✅LIKE ✅SHARE ✅ COMMENTS✅ SUBSCRIBE
    --------------------------------------------------------
    Contact me
    Instagram: / diy.builder
    Facebook: / surajit.majumder.165
    Instructables: www.instructab...
    twitter: / diybuilder1
    ----------------------------------------------------
    🎧 Background Music
    Roads 2 (feat. LiQWYD) by Le Gang / thisislegang
    Creative Commons - Attribution 3.0 Unported - CC BY 3.0
    Free Download / Stream: bit.ly/2DcLIpk
    Music promoted by Audio Library • Roads 2 (feat. LiQWYD)...
    Track: Perspective - IVAAVI [Audio Library Release]
    Music provided by Audio Library Plus
    Watch: • Perspective - IVAAVI |...
    Free Download / Stream: alplus.io/Pers...
    -------------------------------------------------------------------------
    #ArduinoLineFollowerRobot #ArduinoObstacleRobot #ArduinoProjects

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

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

    This will be the correct code for this project
    #include
    int ENA = 3; //ENA connected to digital pin 3
    int ENB = 9; //ENB connected to digital pin 9
    int MOTOR_A1 = 4; // MOTOR_A1 connected to digital pin 4
    int MOTOR_A2 = 5; // MOTOR_A2 connected to digital pin 5
    int MOTOR_B1 = 6; // MOTOR_B1 connected to digital pin 6
    int MOTOR_B2 = 7; // MOTOR_B2 connected to digital pin 7
    int RIGHT = A0; // RIGHT sensor connected to analog pin A0
    int LEFT = A1; // LEFT sensor connected to analog pin A0
    #define TRIG A2 // TRIG PIN connected to analog pin A2
    #define ECHO A3 // ECHO PIN connected to analog pin A3
    #define MAX_DISTANCE 100 // Define Maximum Distance
    NewPing sonar(TRIG, ECHO, MAX_DISTANCE);
    void setup() {
    // put your setup code here, to run once:
    pinMode(ENA, OUTPUT); // initialize ENA pin as an output
    pinMode(ENB, OUTPUT); // initialize ENB pin as an output
    pinMode(MOTOR_A1, OUTPUT); // initialize MOTOR_A1 pin as an output
    pinMode(MOTOR_A2, OUTPUT); // initialize MOTOR_A2 pin as an output
    pinMode(MOTOR_B1, OUTPUT); // initialize MOTOR_B1 pin as an output
    pinMode(MOTOR_B2, OUTPUT); // initialize MOTOR_B2 pin as an output
    pinMode(RIGHT, INPUT); // initialize RIGHT pin as an input
    pinMode(LEFT, INPUT); // initialize LEFT pin as an input
    }
    void loop() {
    // put your main code here, to run repeatedly:
    delay(70);
    int distance = sonar.ping_cm();
    if (distance == 0) {
    distance = 30;
    }
    if(distance

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

    Sir, I do not know that the PCB Board you are joining some parts on PCB boards what are the name of parts sir please give me parts name i am making Science project for Science Exhibition in D.A.V School Please sir, Please sir please and also give me Code sir

  • @HariKrishna-mr5jm
    @HariKrishna-mr5jm 4 года назад +8

    Can you make this same project with arduino uno

  • @ocayaro
    @ocayaro 5 лет назад +15

    I shudder every time I see a project done with hot glue.

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

    Hi
    Dear DIY Builder
    so this is my first time making an Arduino project.
    And I have lots of doubts regarding this project
    my first doubt is, how do I order the PCB, and how
    will I get the pins we have to solder on to the PCB
    pls reply fast ...........................................................................................................................

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

    What type of line will it follow ? How can I make that line ?

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

    DIY Love,
    but small mistake in the circuit, along with Vin, Arduino NANO need GND which is missing

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

    very good project can you tell me cost of this project

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

      Most intro to engineering courses in college give you these included in the tuition, or look on Amazon. shouldn’t be any more than $40

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

    I had made your line follower as my science fair project and I was selected for district level also thx for that video but now I want to make the same thing you made this video but using l293d motor driver and Arduino uno so please upload a video on that please🙏

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

      Congratulations bro ❤️ ok i will try to make it as soon as possible

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

      @@DIYBuilder#DIYBuilder bro please make it very soon because my science fair is held on 10 oct so please😫🙏🙏💓 help just only give me the circuit diagram of arduino uno

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

      Please bro

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

      You can see match it with Arduino nano pins name and put the same pins on Arduino uno

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

      @@DIYBuilder thx

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

    You can add a camera and hand gesture with mobile control too in one car itself

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

    Thanks Bhai very helpful video.

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

    You know what I decided to make this thing in my science exhibition and I maked all the designs the only thing which was remains was coding then when I started uploading the given code then it was not working the code is wrong man
    But by luck me and my friend's dad worked on it till 3.00 am at night make it work but it was something else it was line avoider and obstacle or human follower😂. Come on man please upload the right code I was feeling so guilty that I trusted you.😭

  • @raghavnaikdessai6577
    @raghavnaikdessai6577 4 года назад +4

    Can we use arudino uno and L293D insted ? Will it work and where the connections be done ..pls reply .thankyou

  • @BharatMohanty
    @BharatMohanty 5 лет назад +6

    Incredible.... But can it be made without arduino...?

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

    Please update the link for the code

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

    WHICH SOFTWERE USE FOR PCB DISINE

  • @FranciscoGomez-cw2nd
    @FranciscoGomez-cw2nd 3 года назад

    You could make a robot that follows the black line and that with a clamp removes the obstacle from the track, thanks

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

    can i use Arduino uno r3?

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

    Guess i have won my science exhibition
    ill come back after 2 march to let you know if i won or not
    :D

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

    terimakasih ,sangat bermanfaat .
    good job bro

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

    Everything is done. But it's not moving.. I think can u make video more clear with coding explanation

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

    I liked the project but I am not getting the code which app should be downloaded for it kindly reply

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

    hello, if I have the adapter of Arduino Nano, works equal? because, I tried to use that, but the car gone crazy, I connected the pins like the diagram.

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

      Yeah it will work same like this one

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

    Awesome bro

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

    Amazing idea! Nice effort! Can I know your PC's specifications please.... Thanks in advance!

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

      I use 5th i3 laptop with 4gb ram and don't have any graphics card.

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

      @@DIYBuilder Oh that's really good! Thanks for replying!

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

    I tried it but idk why it didn't work :/

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

    hola como estas muy buenos tus videos te felicito por el aporte que haces, mi consulta es como se llama el conponente donde insertas el NaNo, con que nombre lo busco te agradezco mucho tu apoyo saludos

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

    Can we give any shape to the line

  • @markjosephvillaos6251
    @markjosephvillaos6251 5 лет назад +9

    So great. Can u also make a mazebot. A robot that can getout in a maze track.
    Compose with ultrasonic sensor(s)
    Thank you

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

    Sir I Made this project but robot is not working Pleace Help me sir Pleace Sir

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

    Please you make a Arduino plane

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

    @diybuilder in circuit diagram there is one wire to l298N of 12 + output but you have attached 2 wire to L298N one on 12+ and one on ground why

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

    Can we use Arduino Uno for that robot

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

    in the circuit diagram you have not given gnd to the arduino plz tell

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

    How the robot comeback to the black line

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

    Now make wall follower robot

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

    Bro please tell me how can you uploaded the sketch from computer to device. please bro

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

    perfect...videos

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

    can you make a programing, and give in the dicription

  • @v-techsolutions7090
    @v-techsolutions7090 4 года назад +1

    Sir how to upload gerber file it says format not. Supported

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

    Nice projuct bro
    Can i make it without pcb

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

    please what is used to draw the black line

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

    Very good 👍

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

    What weight bear this car

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

    Bro where did u get those connectors used in pcb. Plzzzzzzzz tell me. My science fest aheah. Plzzzz bro . Plzzzz

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

    Hi, where can we find connectors used on JLCPCB prototype ? And the fours screws ?
    Ty !

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

      You can find these on banggood.com or Amazon.in

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

      How?

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

    WHERE WILL WE GET THIS CODE

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

    Which Software used for circuit designing...???

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

    Bro where did u get those connectors used in pcb. Plzzzzzzzz tell me. My science fest aheah. Plzzzz bro . Plzzzz

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

    without pcb we can make this???????

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

    Bro where did u get those connectors used in pcb. Plzzzzzzzz tell me. My science fest aheah. Plzzzz bro . Plzzzz

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

    Code?

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

    Can u plz send me a modified code using motor driver L293D

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

    How is it done with an Arduino Uno?

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

    Can we made this without the pcb

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

    CAN WE USE ANY PCB?
    CAN SOMEONE SEND ME A LINK...

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

    If yes how?

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

    Bro where did u get those connectors used in pcb. Plzzzzzzzz tell me. My science fest aheah. Plzzzz bro . Plzzzz

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

    Hello Sir ! Can you please explain for example in this line "(analogRead(RIGHT)

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

    Which mm wear do u use?

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

    Great project but could not download the code؟

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

    The explanation is crystal clear! Thanks for the video

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

    and when i try to upload it says eror comiling for arduino mega

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

    How we can select the pcb

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

    Can I use ardino uno in the place ardino nana

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

    Make a video how to make hand control rodot car please please please please make

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

    Sir pls the buy link of jlcpcb bord

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

    Sir,its great but can u please make the same using arduino uno and l398b motor shield as some components are not available. Please make that soon sir.

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

      Ok bro i will make it as soon as possible

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

    Nice can you send programming of this to me

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

    Hi can you make tutorial how you those files that you send in your robot.

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

    Plz post how to select pcb

  • @RoseMary-ey5sg
    @RoseMary-ey5sg 8 месяцев назад

    Which components you used please tell me

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

    My robot is not working to circuit

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

      Contact me here instagram.com/surajit_majumdar/

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

    Can't we use Arduino uno for this?

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

    Can we make it without any PCB not even with dot pcb

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

    Can we use Solderless breadboard incase of pcb

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

    Agar dono taraf opstackle ho to gadi od ka java gi ka

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

    Is there a way to make essentially a line bot without the line or at least an invisible line?

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

      We can't cause when the infra red send a waves the black color absorb its not the same as the other colors so the black colors needs to be in

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

    i admire your work

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

    Is it possible that you can build a self levelling car with PCB

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

    Can you give me some
    give way bro

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

    Hi , during comply , I get this message :
    LineFollowerObstacleAvoidance:13:9: fatal error: NewPing.h: No such file or directory
    #include

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

      bro install the newping library first

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

      @@DIYBuilder I did . but the robot is not moving at all .

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

    WHAT AN AMAZING PROJECT!

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

    Now i am not getting the program pls send me

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

    pls can u help me with the schematics used to design the pcb am a year 1 student in electroncis at thomasmore college

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

    Can I get the board or file to order

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

    Can you send its code plz

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

    Bro robot not moving please help me ....

  • @AmitVerma-r8t
    @AmitVerma-r8t Месяц назад

    Yah Sara Saman kitne ka Hoga bataiye please😢😢😅😅❤

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

    Cool...

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

    Can i use arduino uno in this project?

  • @am.ankit._9606
    @am.ankit._9606 5 лет назад

    Please make a video on bluetooth + obstacles block car.
    Please I want to make model on it.
    Please create it

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

    Aswam project

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

    faz um robo bombeiro que apaga fogo de verdade

  • @Raju-k-vlogs
    @Raju-k-vlogs 5 лет назад +1

    Good Job bhaiya but Ardinuo code is no available.

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

      Check again

    • @Raju-k-vlogs
      @Raju-k-vlogs 5 лет назад

      @@DIYBuilder Bhaiya Voice Control ke code aur zip ke liye mai aapko email kiya tha aapne code sned bhi kiye the but kuchh error bta raha hai then what am i do.
      plese give me their con.

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

    Make this without pcb

  • @VyNguyen-ys5dt
    @VyNguyen-ys5dt 3 года назад

    Hello, can you give me the algorithm diagram of this project? , thank you so much.....

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

    Hey plz can Can you tell me which software u use for simulation and ckt dig plz ...reply

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

    Are you making that line with marker or what??

  • @FranciscoGomez-cw2nd
    @FranciscoGomez-cw2nd 3 года назад +1

    Very interesting, I already assembled it, but even after adjusting the reading distance of the hcsr-04, it continues to detect objects at other distances, change the HCSR-04 module and neither, I would appreciate your help

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

      Is your problem is solved ? If yes, Then pls tell how

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

      Was the problem solved? What was the problem and the solutions? How much time needed?