Spike Prime Proportional Programs Part 1: Gyro Straight

Sdílet
Vložit
  • čas přidán 5. 08. 2024
  • This is part 1 of a 3 part series in creating proportional programs for the LEGO Spike Prime and Robot Inventor sets. This lesson will introduce you to proportional programs and show you how to create a program where the robot will run in a straight line on a gyro heading of 0.

Komentáře • 41

  • @shortcoolmovies9535
    @shortcoolmovies9535 Před 3 lety +6

    Very informative! I made mine go straight by using the "start moving at ___" block and then multiplied the yaw by -1 and put it in a forever loop

  • @priyanka2309
    @priyanka2309 Před 2 lety +3

    Thank you so much you my savior, I am new to spike and coaching a team.

  • @ishaanmehra9904
    @ishaanmehra9904 Před rokem +1

    Super helpful. Thanks Dude!

  • @ElactiseEclipse
    @ElactiseEclipse Před 3 lety +1

    Thank You!

  • @ictprofi
    @ictprofi Před 3 lety +2

    amazing job Thanks a lot

  • @surrenderToHim
    @surrenderToHim Před 2 lety +1

    very good

  • @chevere3424
    @chevere3424 Před rokem

    Thanks! New follower

  • @TheHillmom
    @TheHillmom Před rokem

    This works perfectly, however I'm trying to find out how to do this with Python instead of word blocks. I've not come across a solution that works.

  • @ashwindeverashetty6994
    @ashwindeverashetty6994 Před rokem +1

    How do you add a stop block or piece of code so the robot will stop after a certain amount of rotations or degrees?

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před rokem

      You will need to go into more motors, then you can have it exit on a certain number of rotations of one of the motors.

  • @watermelon-f6w
    @watermelon-f6w Před 2 lety +2

    Is there a way you can measure it by distance instead of time?

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety

      At the time of the video, I didn't have an answer, but under more motors, you can set the relative position to 0, then set your exit at a specific number of degrees on that motor using a greater than operation and that motor relative position oval.

  • @sunilpatil7235
    @sunilpatil7235 Před 2 lety +1

    This video is very helpful to move the robot straight. We tried this program using spike prime but ran into the issues with the timer. When our spike prime is fully charged this program works perfectly with given number of seconds for a given distance, but as it starts loosing battery power, robot starts loosing its performance and we have to tweak the timer by increasing the seconds to go for same distance or length. Could you please let us know if you see this issue with your robot and guide us in fixing the problem.

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety

      That makes sense, I have never thought about it. In classroom, it isn't much of an issue, but in competition I can see that would be a problem. You can set it to go on rotations but you need to add the extra motors and a couple of steps.

  • @8520amos
    @8520amos Před rokem

    Is it possible to determine the distance by relative position?

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před rokem

      Yes, you can set the motors to measure degrees and then set the exit on a certain number of degrees on one of the motors

  • @FredrikEndresen
    @FredrikEndresen Před 2 lety +1

    I love it! But how can I measure distance instead of time? I need my robot to drive for 45 cm og I can calculate rotations. But how?

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety +1

      At the time of the video, I didn't have an answer, but under more motors, you can set the relative position to 0, then set your exit at a specific number of degrees on that motor using a greater than operation and that motor relative position oval.

    • @FredrikEndresen
      @FredrikEndresen Před 2 lety

      @@gibfordsrobotlab Thank you so much :)

    • @frankhe2278
      @frankhe2278 Před 2 lety +1

      I think you can use a relative motor position to track the distance

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety

      @@frankhe2278 You absolutely can, I figured it out a recently but haven't gotten around to that video yet.

  • @frankhe2278
    @frankhe2278 Před 2 lety +1

    The video looks great. Have you encountered that the robot go off on a different straight line after being disturbed? We encounter that problem a lot. Are there any ideas for fixing such a problem?

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety

      I have not had that issue with the spike prime robots yet?

  • @melissamarshall4516
    @melissamarshall4516 Před 2 lety

    We followed this exactly and our spike won't move at all! Help please, what are we missing. the motor power is at 0, when it pops up to the side and it won't allow us to change it.

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety

      without more information about what's happening, first guess is to make sure your movement motors are assigned to the correct port.

  • @asianuso9709
    @asianuso9709 Před 2 lety

    Hi Mr Gibford,
    Great job. Its hard to admit it, but am an absolute beginner in FLL, I'd love to learn from you guys; especially robot programming. Please how can i contact you guys? Thanks for your kindness.

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety

      Sorry to get to you so late, I do have an email attached to this channel, Mr.Gibford@GMail.com. I don't check it a lot, but I do check on occasion. I would be happy to help however I can.

  • @huntheck6296
    @huntheck6296 Před 2 lety

    hey is there a way to make it so it goes backward

    • @watermelon-f6w
      @watermelon-f6w Před 2 lety +3

      You, can set the motor power to -40 instead of 40.

    • @huntheck6296
      @huntheck6296 Před 2 lety

      @@watermelon-f6w not for spike prime im pretty sure

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety

      I have never tried, but Ethan Zhang is right, you can set the motor power to a negative value.

  • @sak0rax158
    @sak0rax158 Před rokem

    I have a question how do i create left turn

    • @sak0rax158
      @sak0rax158 Před rokem

      Cuz problem ist that if i set -30 30 it turn left after right turn but it does 180 not the 90°

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před rokem

      @@sak0rax158 When the robot is turning left the numbers get smaller, so you need to use less than instead of greater than, and if you go past 0, then you need to use negative numbers like -90 for example.

    • @svelterhino
      @svelterhino Před 8 měsíci

      There are also a number of videos around on the topic of a gyroscopic turn. This is a gyroscopic straight example, so you would need to use this program from driving straight, and then use gyro turns as needed for any intentional changes in direction.

  • @user-nl1ed4wu8z
    @user-nl1ed4wu8z Před 10 měsíci

    I don't have the move 50% 50% block could anybody help me ?

    • @clarkkent5431
      @clarkkent5431 Před 9 měsíci +1

      You need to go down and add "more movement"

  • @1ofakindwork
    @1ofakindwork Před 2 lety +1

    Didn’t work for my spike!

    • @gibfordsrobotlab
      @gibfordsrobotlab  Před 2 lety

      I think a recent update has thrown the color sensor proportional program off. I have had to go back to the basic line follower. It is still working perfectly with the gyro for me though.

  • @Lexvato
    @Lexvato Před 2 lety

    Bruh 5 dislikes