VESC Sensorless HFI Tutorial(FW 4.0)

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ย. 2024
  • A quick tutorial on how to setup high-frequency injection on vesc-based motor controllers on the new firmware 4.0. This offers superior sensorless motor operation in comparison to the existing algorithm.
    Check out Benjamin Vedder's video for an in depth explanation of how it all works: • VESC HFI: Sensorless p...

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

  • @lookatthisvidsandfun
    @lookatthisvidsandfun 4 ปีที่แล้ว +9

    so the commands are:
    measure_ind 0.2
    foc_plot_hfi_en 1

  • @freedomcaller
    @freedomcaller 4 ปีที่แล้ว +2

    Helpful, thanks!
    HFI Performance seems to be better than hall sensors when changing directions, so i want to see if i can get mine dialed in better.

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

      Ok i think i figured out my problem. My HFI is configured fine, but the canbus linked motor HFI reboots on direction changes causing it to loose position tracking for a moment. At least thats what it sounds and feels like, ill have to dig into the code.

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

      @@freedomcaller maybe make sure your CAN cables are short and twisted? What ESC is it?

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

      @@FriesenDesigns my can cable is super long, ill make a new one and twist it. But my can performs perfectly with hall sensors, and with hfi if I'm not balancing on the center point. I'm using dual vesc6+
      I also want to try getting hfi setup on on a larger euc motor, but I can't seem to get it working. 😥

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

      @@freedomcaller Oh I re-read and am following more what you are saying now, through zero speed it seems to lose position tracking? This should not happen in theory.
      For the larger EUC when you measure inductance from the terminal how much of a difference are you seeing?

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

      @@FriesenDesigns yes through 0 it looses position tracking, only on the can bus slave.
      For the large euc when I measure inductance it varies from maybe 30% to 70% does this mean hfi won't work?

  • @casainho
    @casainho ปีที่แล้ว

    Thanks for the tutorial!!!!

  • @lukasmakessomething7322
    @lukasmakessomething7322 4 ปีที่แล้ว +1

    Yooooo you’re still alive!

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

      I’m almost finished building your gus simpson revision

    • @FriesenDesigns
      @FriesenDesigns  4 ปีที่แล้ว +1

      @@lukasmakessomething7322 Awesome, best of luck with it!

  • @meetpatel5142
    @meetpatel5142 2 ปีที่แล้ว +1

    nice explain

  • @marcusmarin1187
    @marcusmarin1187 ปีที่แล้ว

    What if I don’t have electric brake how can I do this without it ?

  • @readysetawesome
    @readysetawesome 3 ปีที่แล้ว

    Here's the thing.... if the red plot is only about start voltage.... why does the red plot persist whenever HFI is running, even after the "start voltage" phase has ended?
    I noticed that a higher run & max voltage correlated to a much tighter red plot, and saw improvement in detection performance as well.

  • @jackiechou9117
    @jackiechou9117 ปีที่แล้ว

    Thank u sooo much!

  • @jackrzhai5516
    @jackrzhai5516 3 ปีที่แล้ว

    After brother stm32 connects to Vesc. The encoder curve is abnormal. It's normal if I dismantle Stm32! Do you know what happened?

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

    Worked great!

  • @jamieniche
    @jamieniche 3 ปีที่แล้ว

    After setting up hfi, I get the hfi noise constantly when I apply the brakes. Is that normal?

  • @Aren-Hill
    @Aren-Hill 4 ปีที่แล้ว +1

    When I run the HFI realtime plot, i get some points way out in space past the -3->3 it shows for you, any advice on this?

    • @Aren-Hill
      @Aren-Hill 4 ปีที่แล้ว

      Issue went away with USB connection, i was using TCP from phone app over bluetooth before

  • @greg23842384
    @greg23842384 ปีที่แล้ว

    Can I set this up in bldc mode?

  • @vikingmic
    @vikingmic 4 ปีที่แล้ว +1

    I have a dual FSESC, do I eed to do all steps for each "vesc" ?

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

      The settings should be mirrored for similar motors. So once you dial in good settings for one they should work the same for the other side.

  • @Talab0
    @Talab0 2 ปีที่แล้ว

    Quick question: Is the HFI implementation based on any spesific research paper, or only on general knowledge about HFI?

    • @FriesenDesigns
      @FriesenDesigns  2 ปีที่แล้ว +1

      Vedder and I just developed it over a week together from first principles of the machine. Vedder spent a lot of additional time refining it to make it work as good as it does now. Obviously knowledge that it was possible to do was useful but we never referenced any papers on the topic or anything while we developed, just a lot of whiteboard math and code.

    • @Talab0
      @Talab0 2 ปีที่แล้ว

      @@FriesenDesigns alright! Thanks for the answer! And great work ;)

  • @TheJohnnySaunders
    @TheJohnnySaunders 3 ปีที่แล้ว

    i noticed you left the bottom right box an 20 amps ... quite a jump from 3 amp ... is this normal ??

    • @FriesenDesigns
      @FriesenDesigns  3 ปีที่แล้ว

      That box will be the current command sent to the motor from vesc tool when you use the arrow keys. For my motors this current will still be easy to hold with the hand but your mileage may vary.

  • @alanchau6986
    @alanchau6986 3 ปีที่แล้ว

    I set up the left motor without issues but, do I need to set up the othrer motor the same way?

    • @FriesenDesigns
      @FriesenDesigns  3 ปีที่แล้ว

      If they are the same motor the same HFI voltage should work well.

  • @Rick-zn5ge
    @Rick-zn5ge 3 ปีที่แล้ว

    Hey man tried to follow your tutorial on my Flipsky FSESC 6.6 but when I get to the point of clicking on full break all I get is CLICK and then nothing any ideas ?

    • @FriesenDesigns
      @FriesenDesigns  3 ปีที่แล้ว +1

      Yes, disable the app input from ppm. If you have a remote connected it will over-ride the brake command.

    • @Rick-zn5ge
      @Rick-zn5ge 3 ปีที่แล้ว

      @@FriesenDesigns Thank you, does this still apply if I'm using UART remote? Also my VX2 remote was not connected at the time.

    • @FriesenDesigns
      @FriesenDesigns  3 ปีที่แล้ว

      @@Rick-zn5ge If the reciever is not connected then it does not apply. Just set it to no app and that should do the trick.

    • @Rick-zn5ge
      @Rick-zn5ge 3 ปีที่แล้ว

      @@FriesenDesigns Thanks for the advice bud, appreciate it.

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

    Hi, very good video, i just wonder if I go for hfi or continue with hall sensors, what do you think is the best option??

    • @FriesenDesigns
      @FriesenDesigns  4 ปีที่แล้ว +2

      If your hall sensors are working consistently I would recommend sticking with those.

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

      @@FriesenDesigns thanx for your answer! I will stick on hs then....

  • @toad2039
    @toad2039 3 ปีที่แล้ว

    I want to revive a dead boosted v1 dual. What esc do you recommend?

  • @MarkSmirnov
    @MarkSmirnov 2 ปีที่แล้ว

    Hello, I am using a VESC UBOX Dual 75100 and I am trying to configure the electric scooter engine to work with HFI, but my blue dots at the first stage are in random (?) order and they do not change when the motor rotates by hand
    i.postimg.cc/R0zqXLP6/photo-2022-06-09-23-50-05.jpg
    😟
    I tried to look at the "motor position" and turn it: at idle, it correctly shows movement, but as soon as I turn on Full Brake (with HFI), this graph shows something random (along with this, the ERPM values change from -1000 to 1000) and also does not react to the rotation of the motor.😓
    Maybe you have any idea what this might be related to?

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

    Is it possible to set HFI with vesc tool mobile?

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

      yes, it should be. Make sure you have the latest version from the playstore. It will be difficult to see if its working though as these plots won't be available.

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

      @@FriesenDesigns thanks