Program Accurate 90 Degree Gyro Turns With LEGO MINDSTORMS 51515

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • LEGO MINDSTORMS 51515 comes equipped with a 3-axis gyro sensor, which you can use to get your FLL robot or WRO robot to make an accurate 90 degree turn. In today's LEGO 51515 programming tutorial, I teach you how to identify the three principal axes of the LEGO MINDSTORMS 51515 gyro sensor, program 90 degree turns, test the gyro sensor accuracy, and improve the accuracy of your 90 degree gyro turn.
    🔴 Watch my LEGO MINDSTORMS 51515 Review: • LEGO MINDSTORMS 51515 ...
    🤖 See all of my LEGO MINDSTORMS 51515 Tutorials here: • LEGO 51515 Tutorials -...
    CONTENTS
    0:00 - Introduction
    0:37 - Exploring Port View
    1:54 - Gyro Blind Spot (Bug)
    2:37 - Code Walkthrough: 90 Degree Turn
    5:58 - 90 Degree Turns in Action
    6:18 - Code Walkthrough: Accuracy Test
    7:30 - Accuracy Test in Action
    8:01 - Improving Gyro Turn Accuracy
    📕 Check out my book, “Building Smart LEGO MINDSTORMS EV3 Robots,” available on Amazon: amzn.to/2MyGVCl
    🔴 Subscribe to Builderdude35: ruclips.net/user/builderdude35...
    🕸 My Website: builderdude35.com/
    📷 Follow me on Instagram: / builderdude35
    🦸‍♂️ My supporters on Patreon contribute additional funding that allow me to build up and improve this channel and to make more videos. If you would like to help, you can support me here: / builderdude35
    🎵 Thank you to my friend OTT for producing the beats and music used in this video. You can check him out on Instagram here: / onetaketom
    📽 Thank you to my friend Preston Nichols for designing Builderdude35's intro animation and logo!
    #builderdude35 #lego51515 #legomindstorms51515
  • НаукаНаука

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

  • @Builderdude35
    @Builderdude35  3 года назад +3

    How have 90 degree gyro turns helped YOU in FLL or WRO? What are some creative ways you have used the gyro? Let me know here!

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

      Let me know when there’s a tutorial on any spike prime/ robot inventor builds

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

      @@vizonex4316 Sure thing man! Usually those come put on Mondays on my channel. Stay tuned, I have cool stuff coming soon!

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

      @@Builderdude35 thanks I will be there to see it

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

      @@vizonex4316 awesome! I can't wait for you to see it!

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

      Can you pls make a tutorial on how to accelerate gradually with Mindstorms 51515

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

    Hi I'm glad to see you're back uploading videos. I've been following your videos since I was in the 7th grade. Now I've finished high school after another 3 successful years also in FRC and I'm starting to monitor my own fll group. I am impatiently waiting for a renewed video on accurate turning and straight travel with PID including acceleration and deceleration, in the spike controller. Show everyone who the real pro is

  • @megam1ne
    @megam1ne 2 года назад +1

    I like how kind this guy is

  • @dluders
    @dluders 3 года назад +2

    Yes, 90-degree gyro turns have helped my FLL team in the past (using EV3). When our state's FLL competitions resume, many teams will be using the 51515's gyro sensor. I can see that the 51515's Gyro Sensor is superior to the EV3's, which has a problem with gyro "drift". During past FLL competitions, some kid would often bump the game table (in his/her excitement) and throw off the gyro sensor's calibration. ;)

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

      I am really excited to see what FLL participants can do with the 51515 gyro! Just as you noted, the 51515 gyro sensor is far better than the EV3's; the 51515 gyro not susceptible to drift. During my time using the 51515 gyro to make this video, and even while programming my 2-wheel self-balancing robot (next week's video) I never once had to worry about drift even though I was moving the robot around in a way that would irretrievably disturb an EV3 gyro.

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

    Great video tutorial. Quick, simple but with a good explanation each time why you are doing each step. 👍

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

      I'm thrilled you enjoyed it. Thanks for your feedback, and thanks for watching!

    • @rammaddirala6857
      @rammaddirala6857 3 года назад +2

      @Dimitri Dekyvere That’s why I subbed and you should aswell!

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

      Cmon people subscribe to him he is working extremely hard to build all these videos all for us!

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

    Great video. Very helpful to our team however, could you do a tutorial on gyro straight.

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

    An idea for next videos could be the use of Phyton language and examples connectivity to ble remotes (gamepads, microcontroller boards with esp32 chip, ..etc) to see the integration of code in large models expanding build beyond wheels/ walking robots.

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

      Thank you for the idea! I added it to my list of video ideas to try. I will see what I can do about it. :)

  • @as-habulyameen1344
    @as-habulyameen1344 3 года назад +3

    Cool sensor and great vid

    • @Builderdude35
      @Builderdude35  3 года назад +2

      thanks so much! Glad to see you as always! :)

    • @as-habulyameen1344
      @as-habulyameen1344 3 года назад +2

      Thx just busy with school sorry

    • @Builderdude35
      @Builderdude35  3 года назад +2

      @@as-habulyameen1344 no problem my man! Keep doing good work!

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

    I noticed in your final code in this video that you did not set the hub orientation. Does it default to upright and therefore not need to be specified? I built FLL Casts Whakatae, and my robot is not turning even close to 90 degrees. Is there any kind of calibration that might need to be done? Thanks for all your videos. I've been watching since you started making them and often recommend that my team watch them.
    I did a demo on Elevator using my garage attic FLL table yesterday. Yes, I coach for 7 years now. I was thinking gyro pitch could be used to see if the robot makes it up the bridge successfully or not. I may have to try that.
    My hub got hung up on an update yesterday, and I had to pull the battery to shut it down. Not a big deal, but new robot, old issues. MacBook.

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

    A “how to build” the basic robot structure step by step would be nice, and in later videos also attachments.

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

      I hope to do something like that as FLL season gets closer! Thanks for the suggestion!

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

    for some reason, our robots (all 6) are hesitating and jumping forward using the 'start moving by angle' block when we use any turn degree > 35... any ideas why? We've updated and reset the bricks. We don't experience this when using single motor blocks to turn.

  • @denervieira5650
    @denervieira5650 3 года назад +2

    What if we use the ideia you presented in previous videos (use proportional condition) to align the robot in line while it is moving, then turn 90 degrees, them align while moving and so on.. is it going to get a better accuracy in turns?

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

      That has the potential to be more accurate, yes! You could use my line squaring algorithm before making the turn to get a more consistent starting point, and then your turns will be very precise.

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

    Why do you reset the gyro in every loop? If you don't it will turn to the correct angle proportional to the start position?

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

    Cool as allways :) When you make a self balancing bot - do it with PID and show excatly all the steps to find the best P, I, D values
    Interresting to see
    Behaviour of the Bot
    Which Value are you changing and why do you do this step
    This in 100 loops when necessary :D
    So your followers can exactly see the way you iterate to a good result
    I'm aware that this is a big work but this is the knowledge is hard to find in YT

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

      Absolutely, I will try to share a reasonable amount of detail regarding tuning and what I have learned. Thanks for the suggestion!

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

      Yes and also @Builderdude35 you should create that program as a my block and you can add an input value of the degrees you want to turn.

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

      @@rammaddirala6857 yeas absolutely! MyBlock tutorial coming in the near future!

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

      PID yes!

  • @Jawadayoub-gg1qx
    @Jawadayoub-gg1qx Месяц назад

    we can use pid controller to make an accurate 90 degree turn

  • @sweetkissivy
    @sweetkissivy 10 месяцев назад

    Thanks for the video. I’m a beginner. I copied your coding and my robot is just keep turning round. How to let the robot to walk a few inch and make a ~90 degree turn? I don’t see the walk straight code. I think I missed something 😅

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

    Not sure that is LEGO mindstorms thb. Looks like the new LEGO spike prime brick?

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

    This is really not how you should program this, first if you reset the sensor every time you make a turn the errors will add up, but i guess it's a simple program for beginner,
    You should use a loop and use proportional control of the motor's speed until the robot is looking in the right direction and fully stopped
    Did you have any issues with this sensor ? I remember that the EV3 sensor was very hard to get working reliably
    Also it would be nice to see a program to go perfectly straight with the gyro :)

    • @Builderdude35
      @Builderdude35  3 года назад +3

      Thanks for the feedback. Considering that my audience is generally younger, this simple program will have more obtainable results than something more advanced, even if it trades dome accuracy.
      The new 51515 gyro sensor is in a different league compared tot he EV3. The 51515 gyro is much more reliably and I haven't seen it drift yet like the EV3 used to. While making this video, and while programming my 2-wheel self-balancing robot (next week's video), I did not need to worry about drift at all, even though I was moving the gyro sensor in a way that would throw off an EV3 gyro.
      Rest assured, a gyro drive-straight tutorial (with PID?) is coming in the next few weeks!

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

    How to turn in left side?

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

    please i need playlist for beginner in AV3 step by step . i can not find that in your channel

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

      EV3 step by step i need course from your channel i can not found it all your videos is advanced

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

    Make it but for ev3 please e need this, because in cant bought the spike now

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

      Don't worry, I already have a version of this video for the EV3. You can watch it here: ruclips.net/video/8B1LwzkLKXs/видео.html

  • @cubed9003
    @cubed9003 3 года назад +2

    BD How is MIT?

    • @Builderdude35
      @Builderdude35  3 года назад +2

      Challenging... like drinking from a firehose ;)

  • @Lunar-iu5nq
    @Lunar-iu5nq 3 года назад +1

    Hi :)

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

    Builderdude35 you are my idol pls come eat pizza at my house🤩😁