How to Program a Proportional Line Follower for EV3

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024

ความคิดเห็น • 86

  • @galvandavis
    @galvandavis 8 ปีที่แล้ว +1

    I was reading about PID controller to make this proportional line follower but you made it easier, thanks a lot.

  • @markdom9207
    @markdom9207 8 ปีที่แล้ว +1

    thx dude..greetings from malaysia

  • @ducomensink5607
    @ducomensink5607 9 ปีที่แล้ว

    thanks, i am probably gonna use the same robot as last year for fll, and that one had just one color sensor. now i can follow lines.

  • @Brian-jn2pi
    @Brian-jn2pi 8 ปีที่แล้ว

    My FLL team made a PID line follower and a gyro follower. We used the gyro follower to follow in a straight line without using lines. It was awsome!

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว +2

      +Brian Raneri Nice! Sounds awesome!

    • @efthymiosn3381
      @efthymiosn3381 8 ปีที่แล้ว

      +Builderdude35 What do we do if we want to turn sharply??

    • @efthymiosn3381
      @efthymiosn3381 8 ปีที่แล้ว

      +bob xatzibasiliou what do we do if we want to trun sharply??

  • @Builderdude35
    @Builderdude35  9 ปีที่แล้ว +2

    + miguel t: the drive mortors are in ports B (left) and C (right).

    • @MinesAnimationPixelUser
      @MinesAnimationPixelUser 8 ปีที่แล้ว

      +Builderdude35 thx man, eventually i needed to learn smooth ev3 linefollow for FLL.

    • @MinesAnimationPixelUser
      @MinesAnimationPixelUser 8 ปีที่แล้ว

      +Builderdude35 why 1.5?

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว

      Mine's Animation PixelUser That's just what I determined through trial and error. That number can be adjusted to your needs.

  • @AudiultraRobotics
    @AudiultraRobotics 9 ปีที่แล้ว +1

    Very good explained!

    • @Builderdude35
      @Builderdude35  9 ปีที่แล้ว +1

      Audiultra Robotics Thanks!

  • @andrewconstantinou1898
    @andrewconstantinou1898 8 ปีที่แล้ว

    Great video bro, but you don't need the switch block because both the true and negative operations the logic gate leads to are the same so
    You can simply use the operation within a loop block to achieve the same result, great tutorial video anyway keep up the good work

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว

      Thanks, I'm glad you enjoyed the video! I am aware that the Switch is unnecessary.

  • @Western21ful
    @Western21ful 9 ปีที่แล้ว +1

    Can You please teach us how to make a PID Line follower using a Hitechnic??

  • @kogiilan5033
    @kogiilan5033 7 ปีที่แล้ว

    Hi Builderdude, Your videos are awesome, they are really helpful,
    but I need some more wro tips especially wro football

    • @Builderdude35
      @Builderdude35  7 ปีที่แล้ว

      Check some of my older tutorials, I have some WRO tutorials that can help you.

  • @worthenks
    @worthenks 9 ปีที่แล้ว +2

    As always an absolutely great video. I have a question on the second math block you place. Why is the "B" value set to 1.5? I'm guessing it makes it proportional to the value needed for the correct turn using the motor, but I was curious how you came up with 1.5? Thanks again for posting, you are a very big help!

    • @Builderdude35
      @Builderdude35  9 ปีที่แล้ว +2

      +worthenks That is what is known as a "Scalar value." The reason why it's used is because the light sensor has a known light range, but its highest numbers are too high to be used to steer the robot. So, we divide the light value by 1.5 to make sure our sharpest turns are not too sharp. This is something you can certainly fiddle around with and adjust based on your needs. A higher value in this box means smoother turns, a lower value means sharper corrections.

    • @worthenks
      @worthenks 9 ปีที่แล้ว

      +Builderdude35 Thank you for your response and explanation, very helpful!

    • @dulacgaming
      @dulacgaming 5 ปีที่แล้ว

      i had the same question but i guess he answered it

  • @clairezheng5278
    @clairezheng5278 8 ปีที่แล้ว

    Are you on a FLL team? If so, which one? If you aren't, the how did you get a Nature's Fury map? (The map during the FLL competition in 2013)

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว

      I am not currently on an FLL team, but I competed in FLL from Food Factor to Nature's Fury with team Rocky Point Radical Robotix.

  • @MEII04
    @MEII04 9 ปีที่แล้ว

    In what ports do you have the motors plug in. I did exactly what you did with my numbers I needed to follow the line and only one wheel is moving forward and the other is not doing anything.. Please help I need to get my EV3 ready for my class competition or else I will be disqualified..

  • @NathanaelNisbett
    @NathanaelNisbett 8 ปีที่แล้ว

    Great videos, you actually don't need the switch though. it's identical... because a light value of (40) - 35 = 5 a left turn vs a value of (30) - 35 = -5 a right turn... the only need for the switch would be if you wanted to have a different scale factor for white vs black.

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว

      +Nathanael Nisbett Yes, you are correct. I figured the Switch made it easier for kids to understand.

  • @EvertvanIngen
    @EvertvanIngen 7 ปีที่แล้ว

    You are very talented sir

  • @ashvinraghavan7770
    @ashvinraghavan7770 8 ปีที่แล้ว +2

    Hi Builderdude, Your videos are awesome, they are really helpful,
    but I need some more fll tips. My team is starting very soon and I need help!
    could you please give me some in the comments?

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว

      Yes, I can give you some guiding advice, but remember it may be somewhat limited here. What was it you needed help with?

    • @ashvinraghavan7770
      @ashvinraghavan7770 8 ปีที่แล้ว

      THANK YOU SO MUCH FOR RESPONDING!
      I would,like, really appreciate some programming tips.
      --Ashvin
      Lead Programmer of Team Green Jazz

    • @ashvinraghavan7770
      @ashvinraghavan7770 8 ปีที่แล้ว +1

      Sorry I should have been more specific,
      I would like some tips on all of the sensors,
      and the myblocks.
      My team is having difficulty with the myblocks espicially.
      thanks again, I will make sure my ENTIRE team subscribes to you.

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว +1

      That's easy enough, I happen to already have tutorials on each of the EV3 sensors, plus one on MyBlocks as well. Go check them out, they should help answer your questions.

    • @ashvinraghavan7770
      @ashvinraghavan7770 8 ปีที่แล้ว

      Thanks for your help!

  • @shivamsoni5894
    @shivamsoni5894 6 ปีที่แล้ว

    hi i have a question which is VERY IMPORTANT (for me) you adviced to put the robot on the right side of the line at the timing 6:30 but the thing is that i have to make my robot line follow on the left side of the line then how to program that please do tell me bcoz i already said it is important for me thank you : )

    • @Builderdude35
      @Builderdude35  6 ปีที่แล้ว

      No problem! All you need to do is mirror the turning by negating the Kp value (this is the number you multiply by in the math block).

  • @elsantana1032
    @elsantana1032 6 ปีที่แล้ว

    in the letter B the number will always be 1.5 or should it change for something?

    • @Builderdude35
      @Builderdude35  6 ปีที่แล้ว

      That is the proportional constant, which you can adjust to make your robot more or less sensitive. So yes, you should experiment with changing it because the optimal number will be different for every robot.

  • @Austinrod1
    @Austinrod1 9 ปีที่แล้ว

    Where did you get the software? I downloaded my software online but it does not have nearly as much applications as yours. Thank you for this video it really helps, but can you get back to me on my question really quick? Thank you again.

    • @Builderdude35
      @Builderdude35  9 ปีที่แล้ว

      +SuavisSomnia I have the EV3 Home edition software. The only difference is mine has a few extra 3rd party sensor blocks that I installed myself.

    • @Austinrod1
      @Austinrod1 9 ปีที่แล้ว

      +Builderdude35 Do you mind telling me how you installed them?

    • @Builderdude35
      @Builderdude35  9 ปีที่แล้ว

      +SuavisSomnia You will need to download the blocks from their respective manufacturer's websites. Then, you import them into the EV3 Software through Block Import Wizard.

    • @Austinrod1
      @Austinrod1 9 ปีที่แล้ว

      alright, thank you. Keep up the good work, because this you are every helpful

  • @Karl-yq1hd
    @Karl-yq1hd 9 ปีที่แล้ว

    Did you use proportional line following in FLL too? If you did, did it prove somehow better than usual line following? I myself did and as it was quite useful and often used, I made some very flexible myblocks for it, allowing you to send in all the necessary information you would want, from outside the myblock, such as the motor speed, correction sensitivity and many more things. I will soon(-ish) make a Mindstorms Community post about it too.

    • @Builderdude35
      @Builderdude35  9 ปีที่แล้ว

      ***** Oh, wow, that sounds cool. The only time my team ever used line following was in Senior Solutions, and it was a program that someone else found of the internet. In Nature's Fury, my last year, I was team captain; we only used line squaring because there weren't an lines that were suitable for following.

    • @Karl-yq1hd
      @Karl-yq1hd 9 ปีที่แล้ว

      Builderdude35 our program was actually too found off the internet, I just added an useful interface to the MyBlock so the same block could be used everywhere in all kinds of situations, without the need to make a new one for each occasion. We too used line squaring in Nature's Fury; however, not very often, as it used up quite some time from the 2:30 minutes.

    • @Builderdude35
      @Builderdude35  9 ปีที่แล้ว

      ***** Oh, okay. I thing I would personally go with my 2-sensor line following but I'm not sure; Maybe a comparison video is in order!

    • @Karl-yq1hd
      @Karl-yq1hd 9 ปีที่แล้ว

      Builderdude35 I personally would prefer 3-sensor following, which is a mixture of these two: the middle one is proportional and the 2 on the edges find out sharp turns and crossings etc, but that wouldn't be as much of a use in FLL as in regular line following. If you had 3 sensors, you could try that out too, see which one gives the fastest and most reliable line-following. Programming a 3-sensor following would be quite a challenge though, I haven't crossed that myself yet :P

    • @NithinJune
      @NithinJune 9 ปีที่แล้ว

      +Builderdude35 can you make a 2 sensor proportional line follower

  • @creativebuilders1117
    @creativebuilders1117 7 ปีที่แล้ว

    Hi, thanks for your videos. May I ask where did you get your extra action blocks?

    • @Builderdude35
      @Builderdude35  7 ปีที่แล้ว

      Well this is convenient timing; I just published a video on that topic yesterday! Check it out here: th-cam.com/video/MKXFIZPVgw0/w-d-xo.html

  • @jackharman4516
    @jackharman4516 9 ปีที่แล้ว

    Can you make a tutorial on your fll robot, that would be helpful for building mine.

    • @Builderdude35
      @Builderdude35  9 ปีที่แล้ว

      +Jack Harman I already have one. It's called "How to Build an FLL Robot."

    • @jackharman4516
      @jackharman4516 9 ปีที่แล้ว

      +Builderdude35 ok thanks I didn't see it I'll have another look

  • @glenchua4459
    @glenchua4459 9 ปีที่แล้ว

    thanks it is a rlly good video!

  • @yichern4351
    @yichern4351 7 ปีที่แล้ว

    What are the advantages of using 2 light sensors to line follower over only using 1? Based on watching most of your line following videos, it seems as if using 1 light sensor allows the robot to use a more accurate program like the one in this video or PID line following. It seems as if "1 line following" is better than "2 line following ". Can you help me confirm this theory?

    • @Builderdude35
      @Builderdude35  7 ปีที่แล้ว

      I find that more color sensors makes your line follower more stable and more versatile, especially considering a proportional algorithm can be applied to a 2-sensor line follower. I even have a 3-sensor line follower tutorial coming up soon; that is hands down the most versatile line follower, because it can follow anything from straight lines to 90 degree corners. However, each person will need to decide what kind of line follower they need.

  • @pras1810
    @pras1810 7 ปีที่แล้ว

    do we have to keep -35 or -(Target value)

  • @chiraggupta8890
    @chiraggupta8890 8 ปีที่แล้ว

    Hey dude,
    What's better for line following? Hitechnic color sensor or normal ev3 color sensor?
    Thanks a lot

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว +1

      +Chirag Gupta Great question! The HT Color sensor will give you a wider range of colors to detect, and a much farther detection range. But if you don't need either of those, the EV3 sensor gets the job done just as well.

  • @nadehi18
    @nadehi18 9 ปีที่แล้ว

    Builderdude35 Nice tutorials, but I have a few suggestions, first off, for screencasts use Open Broadcaster Software: obsproject.com/ Also, work on your profile pic a bit, it looks nice, but when you actually put it in your video it looks a bit out of place. Maybe try a flat version of it?

  • @hongleiyu1730
    @hongleiyu1730 7 ปีที่แล้ว

    Builderdude35, why do you divide the light intensity from the first math block by 1.5?
    I need some help with that because I want to make sure it works and someone else from my team has the robot. Please reply to this and answer why.

    • @Builderdude35
      @Builderdude35  7 ปีที่แล้ว

      That is a scale factor and it is meant to adjust the sharpness/smoothness of the robot's turns. Increasing the value makes turns smoother at the expense of maneuverability. Adjust accordingly to your own robot.

  • @jyldyzkydyrbaeva7765
    @jyldyzkydyrbaeva7765 8 ปีที่แล้ว

    hello.can help us to program ev3 line following robot with one light sensor to turn any degree?thanks in advice

    • @Builderdude35
      @Builderdude35  8 ปีที่แล้ว

      +Jyldyz Kydyrbaeva This is that video. Fine adjustment of this live follower will give you the results you want.

  • @Animestic
    @Animestic 7 ปีที่แล้ว

    how you do more things

  • @novarecondo3868
    @novarecondo3868 8 ปีที่แล้ว

    My sensor doesn't detect colors.

  • @danielwang5451
    @danielwang5451 9 ปีที่แล้ว

    I'm new to FLL what are some tips?

    • @Builderdude35
      @Builderdude35  9 ปีที่แล้ว

      Panda King Just look around my channel, there are tons of video tutorials for FLL!

    • @danielwang5451
      @danielwang5451 9 ปีที่แล้ว

      K thanks

  • @gingerboice5541
    @gingerboice5541 7 ปีที่แล้ว

    Is 1.5 for everything or just that ?🤓

    • @Builderdude35
      @Builderdude35  7 ปีที่แล้ว

      Just for this specific robot. This number is different for each design and must be adjusted accordingly.

  • @ThaBlu
    @ThaBlu 8 ปีที่แล้ว

    This doesn't work. Please help!

    • @KIXEMITNOG
      @KIXEMITNOG 5 ปีที่แล้ว

      It works just adjust the kp setting. I had this problem. Hope it helped

  • @ottkristoferfuks2176
    @ottkristoferfuks2176 7 ปีที่แล้ว

    väga tubli, väga tubli nohik oled!!!!!

  • @nicholasbrinegar157
    @nicholasbrinegar157 7 ปีที่แล้ว

    😎

  • @maxian9423
    @maxian9423 4 ปีที่แล้ว