RoboDog Part 6 | How to Use ODrive BLDC Motor Controller

  Рет қаралды 53,233

AustinTronics

AustinTronics

3 жыл бұрын

Finally making stuff move, woo!
Edit: The torque constant in the video should instead be 8.27 divided by the Kv of the hoverboard motor, which is: 8.27/16 = 0.516875. This has been corrected in the script on Github.
GitHub Code for ODrive Config:
github.com/AustinOwens/odrive...
GitHub Code for RoboDog Project:
github.com/AustinOwens/robodog
ODrive Robotics Website:
docs.odriverobotics.com/
ODrive Documentation:
docs.odriverobotics.com/
Zadig Website:
zadig.akeo.ie/
Obtaining Torque Constant:
discourse.odriverobotics.com/...
Odrive Control System Diagram and Info:
docs.odriverobotics.com/control

Пікірлер: 116
@kyebrits2743
@kyebrits2743 3 жыл бұрын
Hey man, I'm a new engineering student and I would love to major in robotics. I just wanted to ask how you learnt all these parts and their functions because apart from this video I've never heard of an O-drive and I really would like to have the knowledge that you do.
@AustinTronics
@AustinTronics 3 жыл бұрын
Thank you, that means a lot! You just got to immerse yourself within the robotics community and you'll pick this stuff up over time. To help with this, I have recently (as of a few hours ago) created a discord server so that it's easier for me to engage with the rest of the community who are interested in the RoboDog project, or robotics in general. The link is here: discord.gg/XyfF6khqsN
@kyebrits2743
@kyebrits2743 3 жыл бұрын
@@AustinTronics thank you, man! I'm going to try to share your channel because I think you're brilliant! Thank you so much for this and I can't wait for your next post!
@AustinTronics
@AustinTronics 3 жыл бұрын
@@kyebrits2743 Much appreciated!
@botak333
@botak333 3 ай бұрын
​@@AustinTronicshow do u put encorder ams5048 on the motor??
@jaredguerrero3632
@jaredguerrero3632 3 жыл бұрын
The ODrive motor controller seems like the most versatile out of all the ones I’ve worked with before. Thanks for the scripts!
@stochasticsignal1951
@stochasticsignal1951 3 жыл бұрын
Very cool. I've been interested in the ODrive for a while now. When I get around to using them I'll definitely be back to review this video. I'm looking forward to more videos on the topic.
@trulyspinach
@trulyspinach 3 жыл бұрын
Appreciate all the work, please keep posting new updates on this project!
@filippus_
@filippus_ 2 жыл бұрын
Hey, looking forward to Part 7, theese videos have teached me so much and I cant wait to see the final product :)
@rodrigoleon-alvarez587
@rodrigoleon-alvarez587 3 жыл бұрын
You're definitely selling me on these ODrive motor controllers, they appear to be equipped with everything you'd realistically need for these types of projects. I'll probably end getting them when working on the mech projects, they seem versatile enough to work with different types of motors. I don't have much experience with coding so providing your scripts will no doubt help me out haha. Sweet remix on the Zelda Fairy Fountain btw!
@payalpal4386
@payalpal4386 Жыл бұрын
I followed the exact steps for driving odrive motor D6374 250kv. As shown in the video, the motor didn't show any result in my case. Can you kindly guide me through this process? All I could figure out is there must be calibration issues because of which the motor's shaft failed to rotate
@josemanuelmedajara6670
@josemanuelmedajara6670 3 жыл бұрын
Your videos quality is amazing man! Keep going what you do
@markboweringphotography4408
@markboweringphotography4408 3 жыл бұрын
I am really enjoying following this series.
@3phasetinkerer
@3phasetinkerer 2 жыл бұрын
​ @AustinTronics I just found your channel. I am another dude digging into biped walking bot and that particular motor is the most suitable for my budget. I hope you did not abandon this project, I have a lot to learn from you and willing to help if you need.
@AustinTronics
@AustinTronics 2 жыл бұрын
Thanks for reaching out man! Don't worry, still working on it. Hoping to get the next video out within the next week or two.
@DocGould
@DocGould 3 жыл бұрын
Very Cool, this is coming together very nicely!
@chrisBruner
@chrisBruner 3 жыл бұрын
learning so much from you. Keep up the good work!
@robertm7952
@robertm7952 2 жыл бұрын
Fanstatic overview. Thank you
@kleindavid9416
@kleindavid9416 5 ай бұрын
seriously fucking many thanks for the video - I was trying to get it to work for DAYS, read the documentation, etc... no success. The video helped me to get it to work which is... enormously satisfying! thanks!
@DerekDeighton
@DerekDeighton Жыл бұрын
Hi, I'm new to robotics, however, I am experimenting with a 2 wheeled (drive/steer) device using hoverboard motors and thoroughly enjoyed watching your channel; first class tutorial and easy to follow - thanks. I'm having issues setting up my oDrive 3.6/56v board and followed your instructions closely to try and resolve the issues I'm experiencing. Really, really helpful; at last I get the beep after motor calibration. Unfortunately that's where it stops! odrivetool accepts the hall sensor calibration steps without error, however, I get no movement of either wheel. This is frustrating as I think I've tried everything. I have checked the hall sensors on both motors and all appears well. Am I missing something, can you advise. I get n o errors when I dump odrv0.
@ausdruckermail
@ausdruckermail 3 ай бұрын
Great work thank you for taking the time and explaining this setup. I was wondering i you have run an anti cogging on the hoverboard motors?
@ausdruckermail
@ausdruckermail 3 ай бұрын
Oh, my bad i did check the script on github. I had to add a lit to ignore the illegal hall state error. How will this affect the control of the motor? Also, why does this happen for some hoverboard motors only?
@_Bernardo
@_Bernardo 3 жыл бұрын
Man... this video is exactly what I needed! subd and liked. Great work and thank you! Do you by chance know if there are ROS libraries/Packages for the ODrive? Right now seems like i'll need to write it myself...
@AustinTronics
@AustinTronics 3 жыл бұрын
Glad you liked it! As for the ROS libraries/packages for ODrive, I haven't messed around with that stuff, but I did come across a repo on Github that looks promising for creating a ROS node for ODrive. It's located here: github.com/neomanic/odrive_ros. After some searching, it seems like it hasn't been updated because it is already stable and doesn't need modification. You can read up more about it here: discourse.odriverobotics.com/t/ros-node-for-odrive/3995
@juliermearaujo
@juliermearaujo 3 жыл бұрын
How do you imagine fixing the AS5048 encoder in the inner area of ​​the wheel?
@alexmilitary95
@alexmilitary95 3 жыл бұрын
hello austin. nice project i love robots but i don't have the programming skills to build one. I have always wanted to build a hexapode and so a question came to my mind using this hoverboard motor system is it possible to load a person's load on a robot of this type, whether it is a quadruped or a hexapod? probably not possible in direct drive configuration but using planetary gearmotors and toothed belts should you be able to get enough torque to carry a large load? sorry my english but i write with a translator
@aughey
@aughey 3 жыл бұрын
Really curious on how well a secondary encoder works for lower-speed operation. The slow speed movement with the built-in hall effect sensors appears to be quite coarse. These motors should be a excellent "good enough" low-cost option for my DIY experiments if the encoder add-on works well.
@audiloj
@audiloj 3 жыл бұрын
I added an encoder to the same motor for low speed operation: kzfaq.info/get/bejne/bq2gfNh2yLqRgYE.html
@larsandersen5505
@larsandersen5505 3 жыл бұрын
Very interesting
@MauroUANL
@MauroUANL 3 жыл бұрын
were you able to find a way to mount the encoders on the motors?
@NathanBuildsRobots
@NathanBuildsRobots 3 жыл бұрын
I bought an odrive last year. Need to get some of those hoverboard motors. Do you know of a good place to buy them? Edit: Found your other video that had links to ebay. A+
@UnidudeNine
@UnidudeNine 3 жыл бұрын
Good call on using a hoverboard motor for cost savings. The gear reduction will make or break your project though. Pay careful attention to this step.
@joebolling
@joebolling 3 жыл бұрын
What if I want to use it as a super powerful gyroscope to balance my robot?
@rverm1000
@rverm1000 4 ай бұрын
can it be ran as a propeller at 1000 rpm. with a couple of propeller blades attached?
@Sameerasif1001
@Sameerasif1001 Жыл бұрын
Thank you this information was very helpful to configure my hoverboard motor please help me with setting with Arduino
@mafteisebastian
@mafteisebastian 2 жыл бұрын
Hey man, great video! I want to use o-drive for an autonomus robotic platform. I have 4 BLDC 36V/350W wheels. I've tried to use it with a cheap driver controller powered at 24V but I didn't have enough torque. So, for these wheels I should buy a 24 or a 48V o-drive?
@AustinTronics
@AustinTronics 2 жыл бұрын
Definitely 48v. It's usually better for your motor controller to be rated at the same or higher than the voltage you actually plan on using. You can run a 48v odrive at 36 volts, but you shouldn't run a 24v odrive at 36 volts.
@khanatifali1800
@khanatifali1800 2 жыл бұрын
Hi, Great job. Can you make a walking suite type robot for paraplegics using these motors or some exercise machine which replicate walking movement.
@AustinTronics
@AustinTronics 2 жыл бұрын
If I was going to use these motors for something like a walking suite, I would definitely want to throughly test these motors under a repetitive load to make sure there aren't any mechanical failures. But theoretically, yah you could if your gear transmission is high enough. If you mean a direct-drive without a gear transmission, then no, probably not.
@armstrongskyview2810
@armstrongskyview2810 2 жыл бұрын
Great project, how is it going and when is the next video coming. Thanks
@AustinTronics
@AustinTronics 2 жыл бұрын
It's coming along. You can find out more granular updates on this project in the discord if interested (link under About section). Next video should be out in September.
@OceanPictures
@OceanPictures 3 жыл бұрын
How are you considering motor duty cycle impacts on your system?
@AustinTronics
@AustinTronics 3 жыл бұрын
I was planning on drilling holes in the metal hub to get better airflow. If it gets too hot, I was considering using forced convection with a fan.
@Kyle-vq7qt
@Kyle-vq7qt 3 жыл бұрын
Have you had any luck with the AS5048a encoders? I'm trying to get them to work on my o-drive setup but haven't had much luck yet. Also, amazing video, I'm looking forward to seeing what's next!
@AustinTronics
@AustinTronics 3 жыл бұрын
Haven't done that part yet. Currently working on video involving getting things up and running with the Zybo board from scratch (coming soon!). The AS5048a encoder coupled with Odrive will be the video after that.
@Kyle-vq7qt
@Kyle-vq7qt 3 жыл бұрын
@@AustinTronics Sounds good, thank you
@sabzimatic
@sabzimatic 2 жыл бұрын
Great video. How to drive 2 or more motors at the same time? what command to give to odrive? Thank you.
@AustinTronics
@AustinTronics 2 жыл бұрын
To control the 2nd motor, simply replace commands that have axis0 in them with axis1.
@leizhao1387
@leizhao1387 Жыл бұрын
cooooool
@jdow1234567
@jdow1234567 2 жыл бұрын
Great video! Unfortunately you can't follow along using the current odrive firmware version because the encoder calibration gets an ILLEGAL_HALL_STATE error. You'll need to put firmware version 0.5.1 on your odrive (which is the version used in the video). I made a post about this issue and how to fix it on the odrive forum. I tried to leave a comment here with a link to the instructions but it keeps getting deleted for some reason by the youtube moderators.
@bano99
@bano99 Жыл бұрын
What do I need to search for to find your post? I've firmware 0.5.6 and I will alway run into the ILLEGAL_HALL_STATE error, no matter if I follow this tutorial or the one from the odrive website. I even tried playing with the 22nF and 47nF capacitors, still no luck. Thank you
@the444flavour9
@the444flavour9 2 жыл бұрын
Hi @AustinTronics, what power supply do these hub motors require, if you are not using the odrive?
@AustinTronics
@AustinTronics 2 жыл бұрын
The hoverboard motors I have are rated at 350 Watts. You don't have to use the Odrives, but you need some sort of brushless DC controller in the middle between your power supply and the motor to created the 3 phase signal that the hoverboard motor is expecting. I think I was using a 24 V power supply with the Odrives, but I could have gone even higher in voltage if I had a larger power supply. If you wanted a more customizable and portable power supply, you could use a clustered array of 18650 lithium polymer cells, but you need to be careful with those, you would probably want some battery management system to make sure your charging and disapating the cells equally.
@highwaltage
@highwaltage 3 жыл бұрын
since they are 36v rated. are you running 36v? if not may as well rewind the motors to a much lower kv with thinner wire.
@AustinTronics
@AustinTronics 3 жыл бұрын
I will be running it at that voltage in the actual design, but my power supply doesn't go that high.
@vell0cet517
@vell0cet517 2 жыл бұрын
Are you still working on this project? It's been a great series so far.
@AustinTronics
@AustinTronics 2 жыл бұрын
Definitely. The video editing, scripting, animation, etc. often lags behind the actual development of what I've done so far for the robot. Plan on putting some videos out soon.
@csqgb9801
@csqgb9801 Жыл бұрын
how to use original pcb to run odrive?
@jonathanjesalva9637
@jonathanjesalva9637 2 жыл бұрын
Hi! I tried running closed loop control but the motor does not spin or resist as shown in your video. Do you have any suggestions to solve this problem?
@AustinTronics
@AustinTronics 2 жыл бұрын
Print the odriv object your using (odriv0 or odriv1) like I did in the video to see if there is an error in any of the error attributes.
@icegoogles
@icegoogles Жыл бұрын
Very cool video! But somehow the link to the code is not working, and I can't find it in the repo
@AustinTronics
@AustinTronics Жыл бұрын
Sorry, been re-organizing the code for the RoboDog project so it's not a massive git repo. I updated the description, the link should work now.
@danielcieplenski4736
@danielcieplenski4736 Жыл бұрын
Nice video, some of the links are failing? has the content changed
@AustinTronics
@AustinTronics Жыл бұрын
The new link for the ODrive config can be found here: github.com/AustinOwens/odrive_config
@chrisarmstrong2721
@chrisarmstrong2721 Жыл бұрын
Hi, fantastic project. Are you still working on it
@AustinTronics
@AustinTronics Жыл бұрын
Yup, still working on it. Creating the videos often lags behind the progress I am making.
@anthonycortes5093
@anthonycortes5093 3 жыл бұрын
attributeError: "torque_constant not found ", what should I do to troubleshot his error, any help would be helpful , thanks for the great video
@anthonycortes5093
@anthonycortes5093 3 жыл бұрын
Also when I type in "inodrv0.axis0.motor.config." then press the tab key "torque_constant" is not an option for me
@AustinTronics
@AustinTronics 3 жыл бұрын
@@anthonycortes5093 You have outdated firmware on your odrive. You need to update it with the 'dfu' command like what I show at 2:16 in the video. It probably wouldn't hurt to also upgrade your odrive python library as well.
@thenotionlab
@thenotionlab 2 жыл бұрын
Hello, I’m having some issues running the python script, can you offer any input
@AustinTronics
@AustinTronics 2 жыл бұрын
Sure, what's your issue?
@dachoeks3
@dachoeks3 Жыл бұрын
Do you have updated location for the python script? Thanks!
@AustinTronics
@AustinTronics Жыл бұрын
Sorry about that, it's located here now: github.com/AustinOwens/odrive_config
@did3d523
@did3d523 2 жыл бұрын
not enoought position resolution on 1 turn... will not work
@benjammin5055
@benjammin5055 3 жыл бұрын
The link to your github is broken... Is there another? thanks
@AustinTronics
@AustinTronics 3 жыл бұрын
Sorry, moved things around in the repo and it broke the links. Here's the new link: github.com/AustinOwens/robodog/blob/main/odrive/configs/odrive_hoverboard_config.py I've updated the link in the description as well.
@jan7073
@jan7073 3 жыл бұрын
Hey, just wondering if this project is still alive. I'd love to see it completed :)
@AustinTronics
@AustinTronics 3 жыл бұрын
It is. Just have been super busy with other stuff. I'll post an update sometime within next month.
@jan7073
@jan7073 3 жыл бұрын
@@AustinTronics Great :) Keep it up man, such a great idea btw to use Hoverboard motors o:
@jan7073
@jan7073 2 жыл бұрын
@@AustinTronics Im missing this series :(
@linuxnep1777
@linuxnep1777 2 жыл бұрын
This is indeed amazing. My odrive motor controller came in yesterday and I am trying to set it. Unfortunately, my hoverboard came with 6 wires hall sensor, and there is no port in the odrive controller to connect the sixth wire. I did not connect the sixth wire which is supposedly for temperature control. The motor calibration was fine without errors, but I got the following error when i checked for the encoder. In [28]: odrv0.axis0.encoder.error Out[28]: 512 Could you please help me to solve this problem?. I guess the problem is from the sixth encoder wire that isn't connected but I do not know if there is other port in odrive controller that I can connect it. Thank you in advance
@AustinTronics
@AustinTronics 2 жыл бұрын
I don't believe you need that temp signal connected to the Odrive for it to work properly. Did you make sure you updated the firmware on the Odrive and any Python libraries you have regarding Odrive on your host computer?
@linuxnep1777
@linuxnep1777 2 жыл бұрын
@@AustinTronics I was able to fix the errors but the motors don't go to AXIS_STATE_CLOSED_LOOP_CONTROL when requested and hence my motors don't spin thereafter. I am wondering what parameter that I would need to change to enable the motors to go to a closed-loop control state when requested. Any help would be appreciated.
@Panini_Maker420
@Panini_Maker420 2 жыл бұрын
is this 2 or 3 dof each leg?
@AustinTronics
@AustinTronics 2 жыл бұрын
3
@zacharyfunes651
@zacharyfunes651 3 жыл бұрын
I think I love you
@AustinTronics
@AustinTronics 3 жыл бұрын
Lol
@nghiakhac6530
@nghiakhac6530 2 жыл бұрын
Help me, Can i use a spi encoder ??
@AustinTronics
@AustinTronics 2 жыл бұрын
Yes you can! Here is more info about it: docs.odriverobotics.com/encoders
@alloffinyaify
@alloffinyaify 2 жыл бұрын
I'm am trying to turn the hub motor into a hydro generator. I have 6 hub motors my goal is to produce 5kw any suggestions.
@AustinTronics
@AustinTronics 2 жыл бұрын
That's an interesting idea. I'll make a brief video about it and post it up tonight.
@alloffinyaify
@alloffinyaify 2 жыл бұрын
@@AustinTronics thanks
@AustinTronics
@AustinTronics 2 жыл бұрын
Here's the video: kzfaq.info/get/bejne/r7iVddpy08fMh6M.html&ab_channel=AustinTronics
@rklauco
@rklauco 3 жыл бұрын
Your pid loop does not look ok to me - the reaction when you remove the force on the motor suggest there is some room left there.
@AustinTronics
@AustinTronics 3 жыл бұрын
Oh absolutely! This is just a starting point. I'll refine this as I start putting more of the system together and I'll update the Python code on the repo accordingly.
@nghiakhac6530
@nghiakhac6530 2 жыл бұрын
Hi, Do you run in Linux or Win ? I'm runing in python 3.6 - Window, but I can't. Please help me
@AustinTronics
@AustinTronics 2 жыл бұрын
Please join the discord, it will be a lot easier for me to help you with your issue there.
@nghiakhac6530
@nghiakhac6530 2 жыл бұрын
​@@AustinTronics well, thanks
@mah_0073
@mah_0073 2 жыл бұрын
Hye... thanks for this script...but i got a problem...there is error which is 16 ....can you help me to program this? i also use 3 phase motor and has 15 pole pairs
@AustinTronics
@AustinTronics 2 жыл бұрын
Can you elaborate on what error you're actually getting? What's the actual error message?
@mah_0073
@mah_0073 2 жыл бұрын
alright..later i will tell...I have 1 question to ask...Can you list the hardware needed to program the odrive with motor?
@mah_0073
@mah_0073 2 жыл бұрын
For now... the hardware that i use 1. 3 phase motor 2. odrive v3.6 3. power supply 4. resistor There is another hardware needed like arduino or other?
@mah_0073
@mah_0073 2 жыл бұрын
can i get your contact number... WhatsApp or other...
@AustinTronics
@AustinTronics 2 жыл бұрын
@@mah_0073 Sure, join the AustinTronics discord and we can chat more freely there: discord.com/invite/XyfF6khqsN
@raymondzhao9557
@raymondzhao9557 Жыл бұрын
interesting
@nelsondisalvatore9812
@nelsondisalvatore9812 2 жыл бұрын
Hi, so....how is the robot going???
@AustinTronics
@AustinTronics 2 жыл бұрын
I built my own OS for it :D I'm releasing a video about how I did that allowing anyone to follow along so they can make their own OS for their own embedded system. Stay tuned.
@nelsondisalvatore9812
@nelsondisalvatore9812 2 жыл бұрын
@@AustinTronics Awesome dude!
@manigoyal4872
@manigoyal4872 2 жыл бұрын
Waiting ...
@AustinTronics
@AustinTronics 2 жыл бұрын
Sorry for the wait, a new video has been posted.
@iqrobotics8960
@iqrobotics8960 2 жыл бұрын
I am still waiting for New video 😭
@AustinTronics
@AustinTronics 2 жыл бұрын
I'm sorry to keep you and others waiting :'(. If there has been one thing I've learned about this process, it's how long it takes to properly animate/edit a video. I am almost finished, you should see a new RoboDog video within the next two weeks.
@iqrobotics8960
@iqrobotics8960 2 жыл бұрын
@@AustinTronics thanks ☺️ i am waiting for New video
@iqrobotics8960
@iqrobotics8960 2 жыл бұрын
Hi sir
@AustinTronics
@AustinTronics 2 жыл бұрын
Hello
RoboDog Part 3 | Using Hoverboard Motors for RoboDog
20:21
AustinTronics
Рет қаралды 77 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 49 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 28 МЛН
TUTORIAL: ODrive Brushless Motor with Raspberry Pi and Arduino
20:40
Arduino with moteus for brushless motor control
6:46
Josh Pieper
Рет қаралды 4,4 М.
Electronics and software for high performance motor drives for robotics: ODrive - Oskar Weigl
26:02
IROS 2021 workshop: From gears to direct drive
Рет қаралды 11 М.
hoverbot - hoverboard motor balancing robot
12:21
Josh Pieper
Рет қаралды 7 М.
The Self Balancing Monorail
8:33
Primal Space
Рет қаралды 9 МЛН
You've never seen the Robot Joint like this one!
11:24
Skyentific
Рет қаралды 215 М.
Brushless DC Speed Controller
15:11
Hyperspace Pirate
Рет қаралды 355 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 49 МЛН