PID Line Follower for EV3 - The Ultimate Line Follower!

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

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

  • @williambruneau8667
    @williambruneau8667 5 лет назад +13

    Thanks a lot, I am programming in C++, but only clearly understood the programming when searching for your video. Great job

  • @TheToadcode
    @TheToadcode 6 лет назад +4

    Thank you for all your hard work. I teach the concepts to my FLL team then I send them, to your site as follow-on. You are indeed passing on the knowledge to a younger generation!!! KUDOS

    • @Builderdude35
      @Builderdude35  6 лет назад +1

      Thank you! I am honored to have had such an impact!

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

    Thank you for the help! I have used this as a baseline to understand conceptually how to code a PID control using C++! Before, I didn’t understand how this worked, but now I know how the math works out. You have been a great help and allowed our VEX robotics team to go to State Championships due to us heavily using PID control for our autonomous😅

  • @technicalwaffle9859
    @technicalwaffle9859 8 лет назад +5

    Really nice video! Helped me a lot on FLL! I also used this PID feature for our/your Gyro following program that we are also using in FLL. The Gyro follower was only proportional, but now it can also use PID. You can probably make a tutorial out of this too. You really don't know how much you've helped me and my team in programming.

    • @Builderdude35
      @Builderdude35  8 лет назад

      I'm glad to hear that I've helped! And thanks for the suggestion!

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

    Find the Kp value first. If u want the robot to correct the error fast then a higher Kp is needed at the cost of some jittery during the line follow. If u want a smooth line follow then a lower Kp shall be applied at the cost that the robot cant follow the line when coming from a steeper angle ( doesnt correct error fast enough). Ki should always be 0 unless youre using a gyro sensor and wants to go for a curve. Kd kinda supports Kp so trial and error is the way for me. the first value i go for Kd is according to my Kp. So the lower the Kp the lower my first guessed value for Kd. its the most effective for me

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

    thank you, this line following video was really helpfull for my FLL team

  • @CH-fh2lh
    @CH-fh2lh 2 года назад +1

    Great video. I am a robotics teacher and am rolling out an EV3 based robotics class. I could not find good documentation on the EV3 block language. This video answered a lot of my questions and saved me a ton of time! I am going to try applying the PID to a standing robot. Rather than the gyro sensor I am using an ultrasonic to measure the amount of tip. A proportional loop is insufficient. Hoping the I and D will do the trick. I am worried that the problem is more the rate at which the program runs. If so, I guess I will have to learn Python

  • @ryanberardelli2363
    @ryanberardelli2363 8 лет назад +4

    Great video and very helpful, haven't tested it out yet, but this was a big help on my college project. Thanks!

  • @harygren4033
    @harygren4033 6 лет назад +3

    you are very clever and can explain very clearly. Thanks ! I wish my teacher at the uni explained it so well 20 years ago:)

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

    Excellent tutorial. Thank you very much. I'm not sure that I have PID tuning down, though. It seems that proportional control is pretty much all you need when going in a straight line. I found that Ki and Kd can remain at 0 while still getting smooth and straight travel. However, you do start to get waggle in a curve. I decided to tune while the robot is on a curve. Even so, I don't think I really understand how to tune a PID loop.

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

    For the people who have their robot spinning in circles when any Ki value is used the fix is to put another write integral variable set to 0 in the loop, It only works if the variable is at the start of the loop or the end. The reason that this fixes it is the integral is getting higher and higher as the program runs and makes the robot go in circles
    I hope this allows the program to use Ki. :)

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

      This does fix the problem Thanks

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

      The problem is, this effectively removes the integral term; it's just the same as if you had just set the Ki to zero. Then, what you really have is just a PD line follower.

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

      And It doesnt Go higher and higher, It gets higher when the error is positive, but the correction and the negative setor Will balance It almost at 0, you are probably using a Very high ki value.

  • @404nohandlefound
    @404nohandlefound 7 лет назад +1

    You can also make the threshold percentage to be adaptive as well, making this code impossible to go haywire, this allows it to work in dynamic lighting conditions.

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

    Please make Arduino robotics videos as it would be great and very helpful. I suggest this because you are the most helpful youtuber.

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

      That's an awesome idea, I will consider it.

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

      @@Builderdude35 thx

  • @jennipickett
    @jennipickett 6 лет назад +3

    Thanks! You are a great teacher!

  • @honeybanga2865
    @honeybanga2865 7 лет назад +1

    the same issues mentioned before. Tried different values for Kp, Ki and Kd. The robot follows a straight line perfectly when Kp is set to 1 and Ki and Kd are set to 0. Then, when I try to play around and fine-tune the program, the robot goes off. It follows a straight portion of the line well, but when there is a turn, whether sharp or round, it just goes off. as I am in the wro team I need to use 1 sensor for line following

    • @Builderdude35
      @Builderdude35  7 лет назад

      If you are having too much trouble adjusting the PID line follower, I recommend changing it to a proportional line follower for now to make it a little easier to work with (set Ki and Kd to zero).

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

    Shouldn't the K values vary with the speed that you are going higher K as faster you go, or are the K values independent from your speed?

  • @2nightwehunt
    @2nightwehunt 4 года назад

    Builderdude? More like Buildergod

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

    holy shit its 2 am and u just blew my mind thank you!

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

    kyle, you missed the part where you put to go until color sensor senses 35

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

    hi! i do the same things but my robot doing like zig zag or doing nothing except go straight what can i do

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

    Can you give me the link to this program?

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

    It totally confused me but I will make the program and I think I will understand soon.😅😅😅😅

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

    This mans is the biggest brain alive!!!

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

    I have a problem, I think the sensor value is not linear to the offset from the target. What I mean is in the proportional part, you do value - target as the error, but let's say your robot is exactly on the edge of the line. If the robot shift for example 1 mm to the white side of the line, the error will not be same as shifting towards the black part 1 mm. Will PID fix it? I don't think so, so should I calibrate both side and try to calculate the none linear formula to convert error to robot's offset or it is too minor and is not an issue?

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

      A PID will not help with this, because PID also assumes that your system's error is linear. Calibrating both sides (by measuring values on both sides at various points and creating a regression) is a good way to go.

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

    Awesome job. Well done!

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

    can you make a video of this code commented?

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

    I need the programming file please . And the structure of the building

  • @joseespejoaliaga4053
    @joseespejoaliaga4053 7 лет назад +1

    you can give a demonstration of the program on the robot?

    • @Builderdude35
      @Builderdude35  7 лет назад +1

      Coming soon... Watch out for next week's video!

  • @timshort2601
    @timshort2601 7 лет назад +1

    t job explaining keep up the good work

  • @ncf3535
    @ncf3535 7 лет назад +3

    How do you go along tuning PID?
    tune KP
    Then Ki?

    • @Builderdude35
      @Builderdude35  7 лет назад +3

      Yes, Ki should be the last to be adjusted.

  • @joseclaudio568
    @joseclaudio568 7 лет назад

    Excellent! Very good indeed! Thanks for everything you taught me, I can not wait to test and calculate my variables!

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

    I tries it but mine was in spin loop.Can u help me.Thx.

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

      Mine too, it just spins nonstop

    • @reid-dye
      @reid-dye 4 года назад

      Mine did too. Just turn your Ki way down

  • @-A-TranHuynhang
    @-A-TranHuynhang 4 года назад

    Thanks

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

    Great help!

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

    Thanks for sharing your videos. They are very useful. How do we change the target value of the program at FLL tournament since we cannot edit the program with a laptop. Appreciate your suggestion

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

      You can edit during practice runs on practice tables.

  • @geneworxoughtamation372
    @geneworxoughtamation372 7 лет назад +1

    Coach here. BuilderDude -- You may not recall, but a couple of years ago but we suggested that you do this tutorial after a team member struggled to implement PID on our robot.
    You've done a great job on this. While the team implemented this a couple of times over the last few years, your explanation is through and clear. I used this in an advanced FLL/Robotics class this summer and the kids (12-14) were able to successfully implement it.
    I also then had them convert the program to work with the gyro instead of the light sensor. That worked well as well.
    I now have a couple of suggestions for followups to the PID video/suggestions for more advanced videos:
    - Look at this video (goo.gl/5hoZFq ) which explains the PID in terms of how it adapts to past and expected performance.
    - You might make a follow-on video showing how to implement the gyro PID (very useful) using the explanation of past/present/future to inform your discussion.
    - I see you just posted a replacement line follower tutorial. You might do the PID update along the same lines, incorporating the Gyro into the video as well/instead. You might show how you can integrate "warp speed" with the PID controller to have the robot accelerate and decelerate to the destination as an add-on to the PID by making speed a variable that's controlled by a My-Block.
    - You might show how to use both the light sensor and the gyro sensor at the same time to follow the straight line more accurately by using both the angle and light intensity. (Hint: use a Kalman filter for this. Unfortunately, Kalman Filters are best done with matrices, and LabView doesn't handle Matrices well). I mention this one in part because I expect you are getting more advanced in math, and might enjoy learning about Kalman Filters if you liked the PID.
    - You might do a survey of characteristics of the best-scoring robots in at world championships (sensors, motors, size, attachment mechanisms, attachment types, etc).
    However, I understand you might just be ready to move on to other challenges.
    Either way, you've been a great asset to the FLL community over the last couple of years, and you've been an inspiration and positive impact of at least tens of thousands of youth around the world. Keep up the outstanding work.
    If there's anything GO can do for you, please let us know.

    • @Builderdude35
      @Builderdude35  7 лет назад

      Thanks for taking the time to share this! It's almost as if you've read my mind! I already have a PID follow-up video in the works, which goes into more depth about what each term means, just like in the video you included. It will be out in September. I will also look into getting a PID gyro video out for October.
      As for the Kalman Filter, I love the idea, but I think it's a bit overkill for something like this... especially considering the EV3-G programming environment does not do matrix operations (at least not to my knowledge). I am currently using a Kalman Filter in a personal project of mine, which involve GPS and is programmed in C.
      Anyway, thanks for sharing your thoughts!

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

    Boa noite Sou do Brasil e começei a estudar programação vc poderia me dá alguma dica ou disponibilizar essa programação para eu aprender mas sobre PID

  • @jeudygamboa7390
    @jeudygamboa7390 7 лет назад +1

    I don't speak so much English I'd like you show what the robot does after programming. Greetings

    • @Builderdude35
      @Builderdude35  7 лет назад

      Maybe ou can send me an email through my website, builderdude35.com?

  • @cksmaya
    @cksmaya 7 лет назад

    Think you very mach.

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

    Hello do you know how to calculate the conversion factor for ev3 robot to spin in place ??and how would I turn that into robot degrees?? I’m struggling in robots and teacher not helpful.

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

    Epicly

  • @pavelyarovoy
    @pavelyarovoy 7 лет назад

    Your set of videos on PID is fantastic, thanks!is it possible to apply PID to two sensors to achieve the best result in a competition? If not, then what is better: 1-sensor PID vs 2-sensor proportional?

    • @Builderdude35
      @Builderdude35  6 лет назад

      Thank you! It is possible to apply PID to two sensors, but there's no need for it, because it's excessive. 1-sensor PID is very difficult to refine, but if you have the time and patience, very little can match its performance.

  • @advaitpatel9940
    @advaitpatel9940 7 лет назад

    Need help! I've tried to program this line follower, but it doesn't work. Instead of following the black line, it just turns. I took out the Ki and Kd values but still it didn't work.

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

    Loved your video... Could you provide code for download though? Thanks!

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

    Good programming example. You are influencing programmers young and old. Will you please improve your program examples by adding comments! In my FLL team students put in comments before the code blocks; if you cannot briefly write the intent in words, then the odds of getting the code correct is greatly reduced. Lead by example by documenting the what and why of what your code is doing.

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

    can provide 3 sample kp, ki and kd values for us to start testing from?

  • @吳峻霆-f1v
    @吳峻霆-f1v Год назад

    HOW can I GET TO THE INTEGRAL?

  • @gismosgadgets8343
    @gismosgadgets8343 8 лет назад

    well done

  • @gevink6174
    @gevink6174 7 лет назад

    Great video, but since I am in the Robocup team representing Melbourne,Victoria, on one of my practice runs, instead of following the line the robot just went crazy bashing all the other robots making me one of the worst!

    • @Builderdude35
      @Builderdude35  7 лет назад

      Oops! I'm sorry to hear that. I guess my best advice would be to always make sure your program and sensors are optimized (calibrated) for your environment.

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

    If integral is something, but error finally becomes zero, it just adds zero to integral but integral does not change it remains the same value it was before. So it multiplies to ki and it will correct, even with zero error!

  • @hero_16-f1w
    @hero_16-f1w 6 лет назад +1

    For derivative isn’t your last_error always going to be greater than your current error so derivative is always negative. That doesn’t seem right. Am I missing something. Can someone please explain? Thank you

    • @Builderdude35
      @Builderdude35  6 лет назад +1

      There isn't anything that says the last_derivative is always larger than the current error. Ideally, we would want error - last error to be less than zero because that means the robot is trending towards the correct path and will eventually reach zero when both error and last_error = 0. However, the robot is in a feedback loop and will stray off the line as the line curves or because of other forces that cause the robot to deviate (ex: imbalance of friction), in which case, last_error > error and derivative > 0.

    • @hero_16-f1w
      @hero_16-f1w 6 лет назад

      Thank you it makes sense now. Great video btw

  • @benciruiz6493
    @benciruiz6493 6 лет назад

    Hello, can somebody explain to me how the robot go on the right side? I didn´t quite understand how to do so in the video.

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

    Why do you use a target value of 35 instead of 50 (half dark and half light)? Would the target value need to change with each re-calibration at an FLL tournament?

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

      Ideally, the black line returns a reflected light intensity of 0%, and the white line returns 100%. However, reality almost never fits this description, because the light intensity measured by the sensor varies based on 1) the ambient light conditions, and 2) the surface the sensor is observing. In my case, the black line returned 5%, and the white line returned 75%, so I use 35%, which is about halfway in between (and directly measured from my target).

  • @yichern4351
    @yichern4351 7 лет назад +16

    It would be great if u could show us this in action

    • @busteman
      @busteman 6 лет назад

      Use this link: ruclips.net/video/P50CE0xwhvo/видео.html. Near the end is the pid

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

    I dunno how to know if my values are getting better or worse

  • @mariosnacouzi8180
    @mariosnacouzi8180 7 лет назад

    Does a pid line follower get you much better results than a proportional one. And would it make a difference in a wro competition?

    • @Builderdude35
      @Builderdude35  7 лет назад +1

      A PID line follower will get you better results only if adjusted correctly. It takes a while to get a PID adjusted correctly, while you can get a proportional line follower up and running in a minute. You'll have to weigh performance with time requirement. In most cases, a proportional line follower serves your needs just fine.

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

    I love robotics and how are you

  • @Aeroheath
    @Aeroheath 6 лет назад

    Is there a line follower that stays on the line that the color sensor doesn't go on the line half, but actually stays on the line?

    • @Builderdude35
      @Builderdude35  6 лет назад

      You will need to use two sensors for that. See my tutorials on how to program those.

  • @lukeqiao5477
    @lukeqiao5477 8 лет назад +2

    can you demonstrate the PID line follower please?

  • @laksshaysehrawat5559
    @laksshaysehrawat5559 8 лет назад

    can we make a line follower which does not need any calibration. calibrate once and it will calibrate the values further by itself. Please tell and if possible make a tutorial.

    • @Builderdude35
      @Builderdude35  8 лет назад

      It's absolutely possible. In fact, none of the line followers I have made tutorials on require calibration, nor have I ever had the need to run a calibration.

  • @Rxnkshitij
    @Rxnkshitij 7 лет назад +1

    are you sure this will work ?
    Cause i have WRO in one month?
    How to measure ki,kd,kp values???
    on what factors?

    • @Builderdude35
      @Builderdude35  7 лет назад

      The PID line follower takes a lot of time to properly calibrate. If this is too much time for you, don't use a PID and use a proportional line follower instead.

    • @Rxnkshitij
      @Rxnkshitij 7 лет назад

      on what factors
      and i ahve got a lot of time

    • @Rxnkshitij
      @Rxnkshitij 7 лет назад

      I have made the program but is there any way to make just PD llne follower

    • @Builderdude35
      @Builderdude35  7 лет назад

      That video is coming very soon!

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

    i try your coding but my robot is turning around in place. Virtual Robotic Toolkit

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

    Tenho um pouco de noção sobre o EV3 qual vídeo , seu você me recomenda assitir ?

  • @percyho7013
    @percyho7013 6 лет назад

    what is the use of the last error?

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

    Hi i know its 2023 but my robot is always spinning and when i put it on the line it spins aroun itself. How to fix please?

  • @namay7449
    @namay7449 6 лет назад

    You have an extra block on the green tab(Action tab), can you tell me what it is??

    • @Builderdude35
      @Builderdude35  6 лет назад

      Thant is for the Mindsensors GlideWheel, which I used for my Thundersmart IV project. They are third party hardware that essentially turns a Power Functions motor into an EV3 motor. You can find it on the Mindsensors website: mindsensors.com

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

    Could you use 2 sensors to make it follow straighter?

  • @404nohandlefound
    @404nohandlefound 7 лет назад

    This video is awesome, I have one question, you keep adding error to integral, wouldn't that increase the integral value to a lot eventually ?

    • @Builderdude35
      @Builderdude35  7 лет назад

      Yes... This is something I will discuss in a video that I have coming soon.

    • @izakkanter452
      @izakkanter452 7 лет назад

      Yes, and if the line has a very sharp curve, your robot will make a very wide turn. This turn becomes less wide thanks to the integral. However, when the robot finally reaches the line, the integral value is so big that the robot overshoots the line. When the robot crosses the line though, the error value becomes negative, and you thus begin to subtract from the integral. The robot oscillates around the line until the integral becomes zero. Questions?

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

      Error can be both positive or negative, depending on which direction your robot is off of the line. These two possibilities work to neutralize each other over time so that the integral does not get too big.

  • @milesrothman4345
    @milesrothman4345 7 лет назад

    I don't understand what any of the variables have to do with anything. what are they for?

    • @Builderdude35
      @Builderdude35  7 лет назад

      Storing, transferring or reading values. Each one is explained in the video.

  • @ncf3535
    @ncf3535 7 лет назад

    Is it possible to have just PD instead of PID?

    • @Builderdude35
      @Builderdude35  7 лет назад +3

      Yes, I recently found that PD is better than PID... I'll have a video up soon that explains why.

  • @NikolasSamaras
    @NikolasSamaras 7 лет назад

    I would like to ask what is the range of values of Ki and Kd. Especially Kd can be over 1 or always between 0 to 1?

    • @Builderdude35
      @Builderdude35  7 лет назад

      The values will be specific to your robot, so I can't necessarily tell you exactly what they will be. I will sat that either Ki or Kd -- I forget which one -- will need to be VERY small.

    • @countdownquest
      @countdownquest 7 лет назад

      In my tests usually the Ki value is VERY small in my gyro following program.

    • @GiorgosPamboris
      @GiorgosPamboris 7 лет назад +1

      Start by Kp=1 and experiment until your robot follows the line. Have Ki=0 and Kd=. Then slightly increase Ki=0.0001 and see if it gets better. Then Do the same with kd

  • @Mark-jj1fc
    @Mark-jj1fc 7 лет назад

    Hi! We tried to use the PID line follower... We calibrated our sensor 1(minimum, black line colour intensity) to 100 (maximum, white line colour intensity). We looked at our Black-White midpoint and it showed us an ,,n,, value. We put the value into the Midpoint value and started the program. This did not work.. the robot started to go circle around ... We tought that the Kp value is too big, but after we modified the value the robot did the same thing. What is the problem.. Please answer earlier as you can.

    • @Mark-jj1fc
      @Mark-jj1fc 7 лет назад

      FIrstly, I am using the normal PID line follower with just a Kp valu.. Secondly I did not try to set my Kp value to 0. I think taht this program is not working because I can not set the middle value (50% white 50% black).. I calibrated but this is not working.. How can i set a constant value for the middlepoint?

    • @Mark-jj1fc
      @Mark-jj1fc 7 лет назад

      I put at the middle ot the white and the black and i saw a number ... After this i wrote that number into the program and it did not even work.

    • @jaderyandelrosario4846
      @jaderyandelrosario4846 7 лет назад

      I got the same problem

  • @pieterpretorius1014
    @pieterpretorius1014 7 лет назад

    how can this be adapted to control the motor like a hobby servo motor that only move within a certain range? i need that kind of behavior for the motors because of an idea i have so i can build a helicopter swashplate demonstrator

    • @Builderdude35
      @Builderdude35  7 лет назад

      You can program the EV3 motors to rotate a specific number of degrees (or rotations). That will enable to control the rotation to do whatever you want.

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

    nice!

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

    That’s not builderdude35 that engineerboy53

  • @roboticsc7053
    @roboticsc7053 7 лет назад

    I tired it, and it is working. However, it only turns right and does not turn left when suppose to do. I don't know why can you help with that please? and can you please explain how to do it for more than one sensor?

    • @Builderdude35
      @Builderdude35  7 лет назад

      The robot should be able to turn in both directions. I recommend adjusting the first value you subtract from your light sensor reading.

    • @jaderyandelrosario4846
      @jaderyandelrosario4846 7 лет назад

      Builderdude35 We also have the same problem.. What do you mean? Can you show us a video that shows the trials?

    • @roboticsc7053
      @roboticsc7053 7 лет назад +1

      Actually I fixed it by changing the target value. You have to put between the black line and the other color you do have. Then, measure the go to pot view, check the value there, and get it to be written as a target. After that, try to fix the Kp, Kd, and Ki again. In my situation, I have the target = 55, Kp = 2, Ki = 0.00001, and Kd = a big value but not fixed yet.

  • @aznbreaker37
    @aznbreaker37 8 лет назад

    demonstration of the line follower in action?

    • @Builderdude35
      @Builderdude35  8 лет назад +2

      I'm going to have a line follower comparison video for next week, which will show all of them working back-to-back.

  • @arefhafza4070
    @arefhafza4070 8 лет назад

    Can show how we can save time during fll rounds

    • @Builderdude35
      @Builderdude35  8 лет назад

      See my video on Dog Gears. That's a good first step.

  • @Crunch_Games
    @Crunch_Games 8 лет назад

    I tried to add a Ki and it did not work at all but when I took it out it worked. What is the problem and what should I do?

    • @Builderdude35
      @Builderdude35  8 лет назад

      The Ki value should be very (read: VERY) small. Experiment with it for a little while. If you still don't like it, set your Ki to zero, which will effectively remove it from the program.

    • @olfmombach260
      @olfmombach260 7 лет назад

      Keep in mind that with this edit you delete the whole Integral thing out of the program, since you multiply the Integral value with zero, so it is not just the K(i)-value that is being crossed out.

  • @yichern4351
    @yichern4351 7 лет назад

    Is this overkill? Or would proportional line following work fine for WRO line following purposes?

    • @Builderdude35
      @Builderdude35  7 лет назад

      Yes, this is overkill. A proportional line follower will adequately serve your needs and allow you to bypass a lot of the time associated with adjusting the PID line follower's K values.

    • @Brian-jn2pi
      @Brian-jn2pi 7 лет назад

      Peter Bergmann My team in FLL used a PID controller because we could go so much faster than just a P controller

  • @GuyEvron
    @GuyEvron 7 лет назад

    Great video. very helpful !

  • @lukeqiao5477
    @lukeqiao5477 8 лет назад

    nice video! it helped me a lot!

  • @leyawonder2306
    @leyawonder2306 7 лет назад +1

    your channel is the best

  • @رفاهالسقاف-ث8ز
    @رفاهالسقاف-ث8ز Год назад

    I wanna program this in NXT 🙂💔

  • @gregcollins3404
    @gregcollins3404 7 лет назад

    Do you find that doing a complex algorithm slows down the control loop so much that a simpler, faster routine actually does better? Have you ever seen or found specs on what the execution speed of the EV3 is? People that are having trouble getting a line follower to work its often because their speed is higher than the line follower can respond to.

    • @Builderdude35
      @Builderdude35  7 лет назад

      I'm not sure what the actual EV3 computing speed is, but I would say that this line follower, as complex as it is, will not significantly slow the EV3; I have run much more complex programs on the EV3, and it seems to take a lot more complex programming before the EV3 slows down.

    • @gregcollins3404
      @gregcollins3404 7 лет назад

      It seems like on my EV3, it is very easy to go through a line and off the other side before the EV3 responds to it. We have to keep the speed pretty slow to stay at all smooth...

    • @meganton9417
      @meganton9417 7 лет назад

      Builderdude35 i tried to solve this by putting the single parts in differented loops and i have the feeling that it works better now

  • @perdredupoids-vivresaineme9564
    @perdredupoids-vivresaineme9564 4 года назад +1

    Mine is just spinning

  • @spazywazi8673
    @spazywazi8673 8 лет назад

    I have tryed most of your coded and they all helped me a lot during our FLL season... I am now working on the PID program but not using light sensor using Gyro Sensor to help keep robot move in straight lines.
    Do you have an idea how to do this PID ?

    • @Builderdude35
      @Builderdude35  8 лет назад

      You are more or less going to use the same program, just replacing the color sensor with a gyro. The rest of it stays the same.

    • @spazywazi8673
      @spazywazi8673 7 лет назад

      I have tried to do so ... but i got confused with callulating the error of the gyro reading where the goal i want the robot to move on is 0

  • @emeraldbunnyvlogs8171
    @emeraldbunnyvlogs8171 7 лет назад

    Oops I just spilled my drink

  • @kaminghui5544
    @kaminghui5544 7 лет назад

    May I know how to follow a dotted line??

    • @Builderdude35
      @Builderdude35  7 лет назад +1

      That's going to be very difficult, I don't have a tutorial on that.

    • @huikaaming3517
      @huikaaming3517 7 лет назад

      KA MING Hui
      Thanks for you reply. Does it mean that there is no way to set a programme to tell my ev3 it is following a straight line or a dotted line?

    • @meganton9417
      @meganton9417 7 лет назад +1

      Hui Kaa Ming its extremely hard to make a program that allows the robot to recognize when there is a dot and when a complete line. he would most likely think that it is a very small circle and would try to drive along it and then loose it in most cases

    • @Builderdude35
      @Builderdude35  7 лет назад +1

      Yes, this is correct. Thanks for the explanation.

    • @jaderyandelrosario4846
      @jaderyandelrosario4846 7 лет назад

      Builderdude35 Can you explain it in simpler way and make examples or actual footage of getting the values ? I can't understand it

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

    Anyone here knows how to do this with raw sensor?

  • @user-pk4ut1ge3t
    @user-pk4ut1ge3t 2 года назад

    it doesn't work with me i'm helpless

  • @gurmeetkaur-vw2ry
    @gurmeetkaur-vw2ry 7 лет назад

    instead of kp can i use the advanced math block and set it to a-b*c and BTW great channel

  • @blu3mo
    @blu3mo 7 лет назад

    Is it possible to download this data?

    • @Builderdude35
      @Builderdude35  7 лет назад

      Download what data?

    • @blu3mo
      @blu3mo 7 лет назад

      Data of the program (ev3 file)

    • @Builderdude35
      @Builderdude35  7 лет назад

      No, the program is not available for download. You will learn everything you need to know from the tutorial.

  • @kaandere5833
    @kaandere5833 8 лет назад

    please make a video a test it

    • @Builderdude35
      @Builderdude35  8 лет назад +1

      I'm going to have a line follower comparison video for next week, which will show all of them working back-to-back.

    • @kaandere5833
      @kaandere5833 8 лет назад

      thanks

  • @danieliorio818
    @danieliorio818 6 лет назад

    How about gaps?

    • @Builderdude35
      @Builderdude35  6 лет назад

      I have a separate tutorial for that... check it out!

    • @danieliorio818
      @danieliorio818 6 лет назад

      @@Builderdude35 but is it like a complement for this video? Can you send me the link?

    • @Builderdude35
      @Builderdude35  6 лет назад

      ruclips.net/video/LXdm6-Gl0WE/видео.html

  • @LucEv3
    @LucEv3 8 лет назад

    Awesome!!!

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

    PLEASE DEMONSTRATE!

  • @rishiveerepalli4957
    @rishiveerepalli4957 7 лет назад

    How do you get the target light value? . . I didn't understand that part

    • @rishiveerepalli4957
      @rishiveerepalli4957 7 лет назад

      Never mind. . . The tutorial on the proportional line follower explained it.

  • @djibkan2795
    @djibkan2795 7 лет назад +1

    it doesn't work please help me :)

  • @rasmus_the_teacher
    @rasmus_the_teacher 7 лет назад

    Why are you manipulating only one engine?

    • @Builderdude35
      @Builderdude35  7 лет назад +2

      I am using the "Move Steering" block, which controls both motors simultaneously.