Activating Anti-Cogging on the ODrive Robotics Controller (smooth brushless motor control)

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • I wanted to make a video explaining how to enable anti-cogging on the odrive robotics motion controller to help others gain better control of their robots at slow speeds. This took me a little time to get my hear around so I wanted to save others some time.
    NOTE: brushless motors can be very powerful. I take no responsibility for any damage to yourself of your equipment as a result of following the directions in this video. do your own research and double check compatibility. Take safety precautions at all times.
    I am not affiliated with ODrive robotics or any other vendors mentioned in this video.
    All the code from this video is available on my blog at: www.andyvicker...
    Anti-Cogging Algorithm Brings Out The Best In Your Hobby Brushless Motors | Hackaday (hackaday.com/2...)
    Anti-cogging Feature - ODrive Community (odriverobotics.com) (discourse.odri...)
    ODrive robotics website: odriverobotics...
    This video includes Royalty Free Music from Bensound

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

  • @smurf___
    @smurf___ 3 года назад +4

    Thanks for the video and even bigger thanks for having the source on your website. When it comes to something with code please continue to have text posts with the videos!

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

    Great explanation and video quality!

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

    thx for the sharing. Hopefully future can share some tips on calibrating the odrive parameter for motor (on how to set the gain value).

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

      I have been thinking about my next odrive video. Thanks for the idea. I am going to probably focus on the control next, integrating RC control through Arduino for example but I do intend to circle back on anti-cogging at some point as I got a few tips from the manufacturer also to make the video better so it needs a part 2.

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

    ı dont want use close loop control on my electric scooter, is that possible?

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

    I believe that following step by step what you do the most I can't you can help me

  • @KacperLaska
    @KacperLaska 2 месяца назад

    Great video! Thanks for posting!

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

    Great video, but how on earth do You find all the values? I have an RMD X8 Motor and the datasheet contains almost no values...

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

    Thank you SO much, this is exactly what I needed, please post some more videos on O-Drive. Great production!

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

    Thank you!

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

    Thank you bro for this information. I was struggling with this issue for some time and I have the same setup of yours. Now I can fix it. 👍👍

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

      Really glad it helped you. Let me know if there are any other videos I can make that you think would be helpful!

  • @shortVideo-nj5sv
    @shortVideo-nj5sv Год назад

    هل من الممكن وضع أبعاد القطع المستخدمة العجلات .. الحوامل.. أبعاد المعدن او المركبة بشكل عام وشكرا جزيلا

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

    Thank you for this video and to have post code on your website ! Very helpfull ! I scratched my head a bit less thanks to you !

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

    Thank you, ill need it soon, i just get "odrived" myself!!

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

    Great job Andy! Saved me a lot of time!!

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

    great help , thanks

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

    Great tutorial Andy, just a bit fast for me as a beginner but using the speed control slowed you down to suit my understanding and typing skills, thanks for your time.

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

      thank you for the feedback! this was actually my first ever real video so its nice to hear ways I can improve. My aim is to help beginners because I have been there too!

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

    thank you so much!!

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

    Great video! Subbed

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

    Straight to the point. Thank you! Could you do a video on how to use a hoverboard motor using odrive?

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

      Unfortunately I don’t have a hoverboard motor but if anyone wants to donate one I’ll happily make a video

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

    Does this anticogging work bidirectionally?

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

    Great video Andy! Well done!

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

    I am trying to choose some bldc motors for a robotic arm project but some of the motors that i want to use are not hall sensored. Do you think using a bldc motor without a hall sensor on a robot arm will cause problems when powering up?

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

      I am having great sucess with the AMT102 encoders for use with brushless motors. if you have a brushless motor without a hall sensor you can use these encoders on the shaft to give you 8192 counts per resvolution of precision. They are excellent and reliable. They come with a multitude of different shaft adapters so you can add them to almost any brushless motor. You can buy them from the Odrive store: odriverobotics.com/shop/cui-amt-102 .
      I think with a robot arm, precision is everything so running it without an encoder or position sensor will be almost impossible. You will be able to power it fine but you would need to control it on current mode which would be like an electric skateboard - just dumping amps in without any precise control.

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

      @@AndyVickersNet i will be using an encoder if the motor does not have hall sensor. But i saw some people experiences problem when driving bldc motors without hall sensor thats why i have asked. From your reply i understand that if i have an encoder its fine right? Btw thank you for the reply.

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

    Great Vídeo! Didi you use Devel or 5.1?

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

    Hi, Thanks for sharing this amazing tutorial. Im doing whatever you do. But vel_integrator_gain and pos gain is so high. It turned my motor wildly. And the loud is so scary. Then ı halve the values. Now its ok. One question. How much will it take ?

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

      Sounds scary!! Did you reset the board first? I feel like you might have some other parameters that might be complicating things there. What motor were you using?

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

      @@AndyVickersNet Hi thanks for reply. Im using Turnigy aero sk3 5055 280kv motor. I set pos_gain to 200. Vibrated wildly amd nothing happened about Calibration. Then ı try many values as pos_gain and integrator_gain. Nothing changed. I wait about 1 hour and I have Just 1 degree return - which rotated at its first time-.
      Now I dont know what to do

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

      Hmm I would be interested to see your full config. What is your current set to?
      Have you tried posting in the odrive discord? There are many great people there, it might be the fastest way to get help

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

      @@AndyVickersNet I will post my config. İf ı solve the problem ıIwill post here to make troubleshoot. Thx for your interest.

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

    great explanation of how to fix cogging

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

    I've got a question. I'm going through the procedure and it all works fine. When i test it i can go down to 0.3 vel with smooth movement. My issue is though that the saving procedure doesn't work. Every time i reboot the anticogging calib is gone. Any Ideas?

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

      I found recently that you have to put the motor state into IDLE before you can save. I’m not sure if that’s new or I just noticed it but if your motors are active or won’t save

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

      @@AndyVickersNet thx so much ill give that a try

  • @compsci-guy
    @compsci-guy 3 года назад

    100th Subscriber!

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

      Woohooo! Thank you for your support and congratulations on being number 100!!

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

    OMG thank you for this!

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

    We just put a cheap encoder on the end.

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

      which one did you use?

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

      @@AndyVickersNet CUI encoders work if you are not doing millions of back and forth moves.

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

      @@chrispollard6568 I was using the CUI AMT102-V in the video. it does seem to be a solid encoder. It was $39 direct from ODriveRobotics too.

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

      @@AndyVickersNet Digikey is way cheaper.

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

      @@chrispollard6568 Holy Smokes you are right, they are at $28.86!