LEGO Spike Prime PID (proportional) Color Sensor Line Following

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

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

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

    Thank you so much!! This is the first line follower that is consistent time after time.

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

    This is really great. Everyone wants to show you the PID and really the proportional part of the program is more than enough for most tasks. Thanks

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

    Hello. It is a good explanation, thanks. But I need a little help. At 21:35 you mentioned that you will make this program available for download. I can not find it. Help me please, because I can not read the last statements on the screen. Thanks.

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

    Helped me out alot, ty

  • @jedeejordy5331
    @jedeejordy5331 3 месяца назад

    Hello, can you please make a video about line following that has intersection or junction?

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

    I understand this is only using the proportional part of the PID. Did you try using the Integral part as well and also using both the sensors one on right edge and other on left edge making it more stable.

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

    I have understood the Proportional line following great ... but how will you end the movement .... you can't keep it in a loop forever if you need your robot to stop after a certain distance or so, how to end the loop or get out of it to stop movement???

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

      Hi Asmaa, In general, you exit a loop like this using a second condition. For example, you check the value of a second color sensor and see if the second color sensor sees a color that denotes loop termination. Alternately, you can also look at the value of the motor encoder to find how much distance the robot has traveled. So, it looks like the following (this is pseudocode)
      while robot is following color line
      if termination color is detected on a second sensor or if encoder has reached appropriate value
      exit loop
      else
      continue loop

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

    that here
    why does it turn left with pid, how is the balance of power to follow the line, does it not need to turn right, more power is given to the left motor, does it follow the line or the road in motor movement?

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

    is it possible to show using 2 color sensors ?

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

    You say you can download the program, could you tell me how to do it?

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

    im having a headache... trying as many line followers as i can... and none is working!! im using the big wheels.

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

    Thank you!

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

    You mentioned a book, where is it available...

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

    Could you please explain how to follow the color line in reverse? I did it in Mindstorms but can't get it to work correctly in spike prime.

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

      Hi there, you should be a bit careful in trying to follow a color line in reverse. The reason for this is that in reverse, the wheels will be in the front and the sensors in the back. Because of this, your wheels will try to correct for a position that they have already traversed and thus the robot will behave erroneously. It is better for the robot to turn around and follow the line. Or, it is also a reasonable design to put one color sensor in front of the wheels and one behind. When going backwards, use the other sensor.