LuSeKa / HoverBot

Self-balancing robot using hoverboard hub motors
MIT License
107 stars 37 forks source link

ODrive is not responding to test code #7

Open janohanlon1 opened 2 years ago

janohanlon1 commented 2 years ago

Hello,

I'm trying to recreate the robot based on the Hoverbot files you posted but I'm having issues with it.

Components: Same Different IMU ODrive -> 56V Version 3.6 ODrive Wheels/Motors Arduino Uno -> Arduino Mega RC Receiver is the FS-GT2 Transmitter and Receiver (https://www.amazon.ca/FlySky-Channel-Digital-Transmitter-Receiver/dp/B00KHLDCX4)

I believe everything is wired correctly. Test codes were ran for the IMU, Arduino and RC receiver and they all responded properly. However, the test code for the ODrive does not seem to invoke any responses from the wheels. The most they do is a slow turn or a sudden rotation. The test code compiles without error either. The ODrive we use does have a 3.3V V_in pin that we increased to 5V based on your schematic using a step-up voltage regulator. It wasn't soldered so that may be the reason why the wheels are not turning properly but the battery is directly connected to the ODrive so I thought otherwise.

Thank you and please advise.

LuSeKa commented 2 years ago

Hi, happy to hear that you are trying to create something similar! It sounds like you are using an ODrive clone? Did you run the setup python scripts to configure the ODrive? Did you see the wheels turn smoothly when these scripts ran (during Hall sensor calibration)?

We are currently working on a code update and much improved version of this project's documentation which should come online in a couple of weeks. If you can wait that long, that might be helpful for your debugging.

janohanlon1 commented 2 years ago

Hello, sorry for the very late reply. Yes, I'm using the 5.6V version of the ODrive. The wheels' response is varied. Sometimes they turn slowly and sometimes they stagger before coming to a full stop. I used the scripts you posted and used the updated ones as well.

That's great to hear. I'm not sure if the issue is with me not debugging correctly or if it's just a compatibility issue with the ODrive. I'm trying to recreate it as project so hopefully that will help.