How To Make Line Follower Robot Using PID Controller | Maze Solver Robot Using Arduino At Home

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 215

  • @alandelgado5406
    @alandelgado5406 3 роки тому +3

    This is the best I have seen so far. Thank you for sharing!

  • @hichemchtara6327
    @hichemchtara6327 4 роки тому +2

    Bravo, Excellent !!!
    My remark regarding this kind of projects about the car, and the motors.
    The motors are very fragile !!! you should reinforce the motors connections with some tape.
    The other thing, is that the key for this project is the batteries !!!
    I finished by using 18650 batteries.
    I will try to use this PID source.
    It looks very fluid robot.
    BRAVO one again.
    Thanks to share.

  • @emiruzuner8628
    @emiruzuner8628 2 роки тому +4

    First,thank you I used TCRT5000 5 sensors and I adapted your code to mine.Very beautiful.Thank you

  • @farhaanrazakhan3808
    @farhaanrazakhan3808 6 років тому +3

    Undoubtedly the best video on this topic... and keep making more videos 👍

  • @saradindurana3300
    @saradindurana3300 4 роки тому +2

    Hi where the negative point of the two batteries for motor driver is used?

  • @jcaguero332
    @jcaguero332 6 місяців тому

    Hi, good job, but i have 1 obs: Integral part must be "I = I + error", delete "previous_I" because it not necessary, then you can use when Ki>0

  • @ashfaqjuna
    @ashfaqjuna 3 роки тому +1

    Very cool indeed
    You could sell the whole thing as a kit, including a printed path :)

  • @Elexpedia
    @Elexpedia 3 роки тому +1

    this is really helpfull , glad to see this vid !

  • @shahzaibshamim6524
    @shahzaibshamim6524 6 років тому +1

    Does it can simply solve maze or it can record shortest path to solve the maze ?

  • @aravinda513
    @aravinda513 4 роки тому +6

    How do you all learn this?! I want to be that good but I don't even get past basic ideas!

  • @lunacraig375
    @lunacraig375 6 років тому +1

    Good work with full of explanation.. 👍👍

  • @hanshuang4287
    @hanshuang4287 5 років тому

    It's a very detail and beautiful process! Thank you very much! Likes for your music taste

  • @kuyamhanz
    @kuyamhanz 4 роки тому

    This is something else wooooooooooo 🤟🤟🤟 this is better line follower I've ever watch so far 👍🤟 but can I ask sir? how about using motor shield? And Arduino uno?

  • @16ankurrajput61
    @16ankurrajput61 5 місяців тому +2

    Source code file not working

  • @aminanoushad7232
    @aminanoushad7232 2 місяці тому

    Can i use array sensor for this instead of separate ir

  • @motazmsaddak5242
    @motazmsaddak5242 3 роки тому +2

    Good job...
    can I use 3 sensors instead of 4 sensors?

  • @shauryashukla2198
    @shauryashukla2198 Рік тому

    Does it also learns the shortest path ?

  • @fouzanjaved5441
    @fouzanjaved5441 2 роки тому +1

    Sir, can you give me the circuit diagram and the code for the 5v buzzer for the line follower robot, so the line follower robot gives the sound when crossing the checkpoints of the black line for the line follower robot, is it possible or not?

  • @hoangoan6507
    @hoangoan6507 3 роки тому +1

    Thank you for a wonderful video. Now I have a project about PID. Can you give me some reason to find out constants PID. Thank a lot

  • @FatmaTarek-cj8vi
    @FatmaTarek-cj8vi 7 місяців тому

    will i have to change in the code if i use a 5 ir channel sensor?

  • @tomiio6
    @tomiio6 4 роки тому +1

    I'm not getting why you use the speed of 110 and 90 in any cases, is it just to sync both of the motors? It depends on our motor working the same or not, right?

    • @Jawadayoub-gg1qx
      @Jawadayoub-gg1qx Рік тому

      yes because the commercial motors is not the same quality and speed so he made some tests to make the motors the same speed

  • @Dmobzyt
    @Dmobzyt 11 місяців тому

    can it do turns which are more than 90 degree?

  • @Quizifyme
    @Quizifyme 3 роки тому +1

    How did you powered up the dc motors of 12 v with the battery of 9v. Will it not go slow??

    • @ryanregivan8498
      @ryanregivan8498 2 роки тому

      if you need more power, just add some converter (step-up converter),

  • @thabassumnaseer8454
    @thabassumnaseer8454 2 роки тому

    Can I use a reflective array sensor instead?

  • @ranveershah5630
    @ranveershah5630 6 років тому +1

    Can i use 100 rpm motors in this project??

  • @Raavanan_Veeran
    @Raavanan_Veeran 6 років тому +1

    can I use 8 IR sensors instead of 4 IR sensors?
    will it work just by modifying the read sensor values by adding 4 more sensors values and their if condition statement?
    or I need to change the entire code of yours?

    • @geektechnophiles2494
      @geektechnophiles2494  6 років тому

      No you can go ahead and modify the code with four new sensors input.

  • @sayedsahbeni2598
    @sayedsahbeni2598 5 років тому +1

    where did you get the kp ki and kd values for the pid regulateur?did you find them by trial and error or are they random?

    • @juanarielgodoybaez5071
      @juanarielgodoybaez5071 9 місяців тому

      PID controllers are normally made by trial and error, but if you know the transfer function there are some methods to approximate the values, but they don't take into account the non-idealities such as noise and things like that

  • @yoyeah1461
    @yoyeah1461 6 років тому +1

    can i use analog value of sensor to read the line instead of digital value. Thanks

    • @geektechnophiles2494
      @geektechnophiles2494  6 років тому

      Yes you can but for this code you need digital values of sensors.

  • @srinivasarajunallaparaju4228
    @srinivasarajunallaparaju4228 4 роки тому

    awesome broo very nice video

  • @Aman_shetye
    @Aman_shetye Рік тому +1

    It rotates round and round and round😅😅 i m fed up whats the solution

    • @yashchavan9051
      @yashchavan9051 9 місяців тому +1

      I also facing this problem any solution if you have

  • @EDISONSCIENCECORNER
    @EDISONSCIENCECORNER 5 років тому

    Ir module uses which op amp 358 or 393

  • @md.hafizurrahman5495
    @md.hafizurrahman5495 5 років тому

    is there any problem if the width of the black line is less than the width of the black line in this video?

  • @anuragsinghchauhan8304
    @anuragsinghchauhan8304 4 роки тому

    Amazing , Geek Tehnophiles

  • @michaelquinn1926
    @michaelquinn1926 5 років тому +3

    hey bro,
    I have several questions,
    1. why did you put analogwrite right motor speed -30? is it because of your l298n didn't give the same voltage for both of motors?
    2. why did you only concern about error 100-103? Are the others are not impornant?
    Michael, thanks

  • @manojitroy6144
    @manojitroy6144 6 років тому

    In the code you have used ENB with the right motor ...is that correct ?

  • @TheAdoris
    @TheAdoris 4 роки тому +1

    Hi, I built the same robot as You. But I used 2xpololu motors (micro version 12v N20-BT03 micro 10:1 3000RPM - 12V). But when i started the motors havent power to move the robot. Idk why. I done everything like You but have different motors that's all.

    • @ryanregivan8498
      @ryanregivan8498 2 роки тому +1

      anyway cmiiw, maybe your supply ennergy for your motor is not enough. you must increase voltage your power supply
      ,maybe other poeple in here may give other advice

  • @gopi.h.a8986
    @gopi.h.a8986 5 років тому

    bro I have build as same as you build . it will follow the lane but if curve comes some times it will go out of track and it will be rounding in circle . can you suggest me what I should alter in it

  • @rubenmay8
    @rubenmay8 7 місяців тому

    Does the code work as you uploaded it? Or are there modifications required?

  • @Copterlord
    @Copterlord 4 роки тому

    Bro, does the source code given in your description use only pid algorithm or both? And can replacing sensor(number)==high or low instead of 0s and 1s work for analog pin?

  • @repune7203
    @repune7203 5 років тому

    What should be change in the code if there is a white line and black background?

  • @srinivasarajunallaparaju4228
    @srinivasarajunallaparaju4228 4 роки тому +1

    Bro we can use L293D instead of L298N...Is there any code problem when motor driver is changed

  • @vasu5346
    @vasu5346 5 років тому

    bro,
    how you made the black line (either paint or any other)

  • @somdebsar7378
    @somdebsar7378 2 роки тому

    Done using Left hand wall algorithm and PID algorithm, kindly note!

  • @KillySeven
    @KillySeven 9 місяців тому

    How about dificult Track..
    Can we use this robot?

  • @vikasjha2029
    @vikasjha2029 Рік тому

    What i have to do if a want to run the bot on white line on black surface ? pls tell

  • @mamtachahal1277
    @mamtachahal1277 5 років тому

    Why did u connect the +5v pin of L298n with the +5v pin of arduino when u are powering the arduino with a separate powersource?

    • @farankhan9736
      @farankhan9736 2 роки тому

      The ground and Vcc of motordriver and arduino must be same

  • @MamedTech
    @MamedTech 4 роки тому

    Nice info bro🔥

  • @afonsoteixeira571
    @afonsoteixeira571 4 роки тому

    hi, what was done at 5:39 ? i didnt really understand that part

  • @lifeofviky1646
    @lifeofviky1646 5 років тому

    Which is the best motor.. And can we use aurdino uno bro. Pls.. Last doubt

    • @geektechnophiles2494
      @geektechnophiles2494  5 років тому

      If you have BO motor use it otherwise use suggested motor in video components list

  • @yassinemekaoui6089
    @yassinemekaoui6089 4 роки тому

    is the maze already implemented with pid????

  • @tanjibmahmud6666
    @tanjibmahmud6666 4 роки тому +1

    This is an excellent tutorial.......but can you plz help me? i want to track black and white both line with one code at a time... can you plz provide me the code using these same materials?

  • @techthunder1119
    @techthunder1119 4 роки тому

    Bro can u share me the code a line following bot that is capable of following the path of black line as well as the white line in a black surface.

  • @KillySeven
    @KillySeven 10 місяців тому

    First Thank for your video. IF I WANT TO INCRASE SPEED HOW SHOULD I DO?

  • @parkle_
    @parkle_ 2 роки тому

    Can you explain why you use different value for Enable A and Enable B (Enable A is 120 but Enable B is 90). Is it due to motor is not "perfectly" the same?

    • @Jawadayoub-gg1qx
      @Jawadayoub-gg1qx Рік тому

      because the commercial motors is not the same quality and speed so he made some tests to make the two motors at the same speed

  • @tirionlanaster2626
    @tirionlanaster2626 5 років тому

    If code is duplicated will it be same outcome

  • @shahriyarharis4887
    @shahriyarharis4887 4 роки тому

    Hey, why did u use -30 in case of right_motor_speed?

  • @hariprasanth5720
    @hariprasanth5720 5 років тому

    What is the line width si?

  • @anthonymigan3144
    @anthonymigan3144 5 років тому

    Please explain me the interest to use more than 2 IR sensor for that application

    • @geektechnophiles2494
      @geektechnophiles2494  5 років тому

      4 IR sensor is used to make it more accurate and i have used PID algorithm and Left hand wall algorithm to solve a maze which can't be possible with 2 sensors...

  • @throughhell8670
    @throughhell8670 6 років тому

    Greate work 👌

  • @basu9195
    @basu9195 4 роки тому

    if i want to follow a white line then what should i change in code

  • @gouravsinghshekhawat4606
    @gouravsinghshekhawat4606 6 років тому

    doing great job bro👍🏻

    • @geektechnophiles2494
      @geektechnophiles2494  6 років тому

      Thanks buddy 🤓🤓🤗🤗

    • @krishnachettri9095
      @krishnachettri9095 3 роки тому

      @@geektechnophiles2494 hello bro, I had tried to make same but it won't work will helpe plzz 6295494500 this is my whatsapp No. Plzz help me

  • @TheRiishii
    @TheRiishii 6 років тому

    Have you connected all three batteries on breadboard. You have used three batteries. 1 and 2 batteries joined with common ground. 2 and 3 are connected in series. I m not able to see the red wire of battery 3 fixed underneath chassis. Could you please help?
    In diagram you have shown connection with +9v but in this video demonstration I am not able to see any that connection? Kindly help

  • @trisiantonadapdap4602
    @trisiantonadapdap4602 5 років тому

    I want to try to practice it ... but I am confused how the program would you share the program? please

  •  3 роки тому

    How do you choose Kp Ki Kd?

  • @electro-baka8505
    @electro-baka8505 3 роки тому

    can we just use 2 sensor IR ? i have tired now but its not working :V

  • @vishnudasnayak8582
    @vishnudasnayak8582 5 років тому

    Where did you connect the battery please tell

  • @aravindan9188
    @aravindan9188 2 роки тому

    Can you describe the connections from battery.

  • @santoshkhurana4322
    @santoshkhurana4322 5 років тому

    Can it find shortest path

  • @salmanrifath6331
    @salmanrifath6331 4 місяці тому

    bro how to make this one with 8 sensor line follower sensor

  • @n.trivikramprasad7979
    @n.trivikramprasad7979 6 років тому

    whatif we are using uno module??

  • @itszablyas5914
    @itszablyas5914 3 роки тому

    good video thankyou

  • @abdullahakhtar2557
    @abdullahakhtar2557 4 роки тому

    How can i buy these tires

  • @lifeofviky1646
    @lifeofviky1646 5 років тому

    Can we use bo motor

  • @JayKumar-xl9te
    @JayKumar-xl9te 3 роки тому

    Can you please show how to connect the batteries or explain it properly plz.

  • @vickysanthosh
    @vickysanthosh 5 років тому

    This robot works any kinds of maze structures

  • @hamzakhattak5365
    @hamzakhattak5365 5 років тому +1

    It gives me error in the code after uploading?what should I do please help me

  • @bpriyanka605
    @bpriyanka605 6 років тому

    can we use L293D instead of L298N

  • @saurabhkuhikar8237
    @saurabhkuhikar8237 5 років тому

    Battery konsi use kiye

  • @randompilot1
    @randompilot1 6 років тому +1

    How do you power up your system

    • @geektechnophiles2494
      @geektechnophiles2494  6 років тому

      I have used three 9v batteries one for Arduino nano and another two for L298N module to drive motors. Watch video carefully to understand it.

  • @pranjalisinghal6012
    @pranjalisinghal6012 6 років тому

    Can someone tell me where did he connected the red wire of 3rd battery

    • @geektechnophiles2494
      @geektechnophiles2494  6 років тому

      I have connected two batteries in series so red wire of one battery is connected with black wire of another battery to make series connection between two batteries. I hope you understand 😃😃

  • @lifeofviky1646
    @lifeofviky1646 5 років тому

    Bro can we use two sensors

    • @Jawadayoub-gg1qx
      @Jawadayoub-gg1qx Рік тому

      you can , but it is not very accurate and you need to modify the code for 2 sensors

  • @bilalmalik8283
    @bilalmalik8283 5 років тому

    Bro mera robot nhi chal raha connection jo circuit diagram walay wohi kiye or code wohi ap ny diya tha but wo round round ghoom raha bas or submission date kal hai btao ab mai kya krn

  • @Justananothergirl
    @Justananothergirl 6 років тому

    Is the code differs for l239d

  • @RamaDani-sr2vy
    @RamaDani-sr2vy 8 місяців тому

    This code not working. Left sensor no work

  • @kingshobhit1218
    @kingshobhit1218 6 років тому

    Awesome thanks for the help

  • @lifeofviky1646
    @lifeofviky1646 5 років тому

    Can we increase the speed of the motor bro

  • @哈文-q6i
    @哈文-q6i 3 роки тому

    Great video, which really helped me a lot. Hope there's another video about how the code works.

  • @Abdelhamid_Helal
    @Abdelhamid_Helal 4 роки тому

    can you send me the fritzing file for IR sensor to make the citcuit diagram of mine ?!

  • @jatinsahoo458
    @jatinsahoo458 6 років тому

    Hey why kp value is greater than kd value....???

  • @gktech8220
    @gktech8220 5 років тому

    Can you share its clear image of circuit diagram

  • @jayadithyanalajala9604
    @jayadithyanalajala9604 6 років тому

    Sir please send me an circuit diagram for aurdino uno please is urgent and also a code if we use 8 it sensor

  • @kavitabadgali9435
    @kavitabadgali9435 5 років тому

    good keep it up

  • @Just_yog
    @Just_yog 6 років тому

    Awesome broiii

  • @madcrispy321
    @madcrispy321 5 років тому

    Help me for doing white line follower instead of black line i am in middle of my project pls help me fast of tell me code for it plsssss

  • @akashmk4150
    @akashmk4150 5 років тому

    sir iam not getting 12volt supply for motor
    please help me....

  • @udayanchanda626
    @udayanchanda626 5 років тому

    i have done all the connection and uploaded the code but it still not working what to do

  • @akshaykumarbhupathi9995
    @akshaykumarbhupathi9995 6 років тому

    We can use this code in Arduino uno?

  • @abramalzair7489
    @abramalzair7489 3 роки тому

    Code link is not working... Can you provide new one?

  • @VISHNUKUMAR-vb2gx
    @VISHNUKUMAR-vb2gx 6 років тому

    can anyone explain, why in code we take the value of Kp=25,Ki=0and Kd=15

    • @asvsharma3508
      @asvsharma3508 5 років тому +1

      Actually thats just a number.......
      U shud start with all three 0....
      And keep on trying with diff variation of three nos....and fins the best possible value......it's complete practical thing

  • @parasarora8006
    @parasarora8006 6 років тому

    I need your code as a reference for my project i.e. maze solving line follower.

    • @geektechnophiles2494
      @geektechnophiles2494  6 років тому

      You can download code and schematic from description 🤓

    • @parasarora8006
      @parasarora8006 6 років тому

      ohh...thanks sir😅

    • @prakashjha3339
      @prakashjha3339 6 років тому

      code is not downloading sir ..

    • @_KEVIN_BRADLEY
      @_KEVIN_BRADLEY 6 років тому

      @@prakashjha3339 drive.google.com/file/d/1uwIm4XU1AwaXNGly-rAxr1xzuumuc8uO/view