Proportional Control Turning with spike prime

Поделиться
HTML-код
  • Опубликовано: 24 июл 2024
  • In this video I will show how to create a program in Spike prime classroom that allows you to turn a robot to a given angle using the built in gyro sensor, and a proportional controller.
  • ХоббиХобби

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

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

    Nice concept, code, and results.

  • @finimcglinchey5813
    @finimcglinchey5813 5 месяцев назад

    Really good information, thank you!

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

    I have a bit of a problem getting the robot read error = 0. It helped me to replace it with “ is error in between -1 and 1 ?
    Besides my gyro turns a bit more than 90 degrees every time. 🤷‍♂️

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

      If you have it turn too fast it will keep wobbling and never read error = 0. Try reducing its minimum speed and reducing the p - constant while still having read error = 0, that way it should get closer to 90 degrees.

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

    Thank you . Can you help me i want know how match rotation of motors i need to mouve my robot in destination

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

      To move to what destination?

  • @user-og5jr9hu8m
    @user-og5jr9hu8m Месяц назад

    Hey dude: you most clever and genius engineer in the world but you selected program looks like scratch program i thing you are like scratch program

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

    can you do more spike prime videos?

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

      Yea, specifically for what?

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

      @@AaedMusa breaking down what the block do? I have not found anyone on RUclips who actually walks through the spike prime activity's. Like training camp, advanced driving base. I guess the basics

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

      @@bayarearob Interesting. Yea I can try an get videos like that out. Maybe next week. Did you have any specific questions that I could answer?

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

      @@AaedMusa cool! I will check out the app send you some. Thank you! We are working on a line follower map in school and my robot won't turn where it should. Maybe I could send you a screenshot of my code and a pic of the map

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

      @@bayarearob Yea sure. My email is printedgadgets@gmail.com if it’s easier to send.

  • @probably9380
    @probably9380 5 месяцев назад

    The code seems to be breaking for any absolute values over 179 degrees

    • @coding-spin
      @coding-spin 5 месяцев назад

      He said its not supposed to go over 179 as the gyro only measures until 180 and if you go over the gyro will create issues