Hello,
I am using an Odrive board for an internship project, this is my setup:
Odrive is v3.6 (56V)
Motor is TSDZ2 Tong Sheng (Hall encoder included)
Brake resistor is 3.3 Ohm
It will be used for arm rehabilitation purposes. The motor is connected to pedals and the user may force in the opposite direction of rotation or in the same. For now I am working in velocity control mode.
When someone forces against it (even until stopping it), there is no problem.
However, when forcing to make it turn faster, when the Ibus drops to 0A, the power source shuts down. There is not any overvoltage (nor undervoltage) on the DC bus before the power source shuts down (or at least nothing can be seen on the liveplotter). The brake resistor is enabled. It is a 500W 3.3 Ohm resistor. Is there any way to prevent that from happening ?
Thank you for your time.
Thanks for your answer @Kamerrer !
Indeed, when I set I_bus_hard_min to -0.3 it protects the power supply if I force gently. However it does not work if I force more fiercely or during more time.
I would like to be able to protect the power supply no matter how much force I am putting on the pedals (well the force is not infinite since it is arms produced).
Do you have an idea how I could do ? Could modifying the gains work ?
Could you post your list of parameters and value that you configure in odrivetool? I guess that you miss something or use wrong parameters) As I understand your correct working logic should be like this: you power up your ODrive with psu and all regen current that occurs when motor will brake should go to brake resistor to prevent powersuply from damaging. Am I right?
What I want to do is forcing in the same direction (brake) as the velocity or in the opposite direction. I am in velocity control mode. I have no problem when forcing in the opposite direction (brake), my problem is when forcing in the same direction. If I am forcing too much or too long, the power supply shuts down. Is it a little clearer ?
Hi !
I’ve just tested it and it didn’t work. Moreover, I don’t understand why putting dc_max_negative_current = -INFINITY would help me since my problem is that there is negative current going to the power supply…
Hi !
I am still stuck on the same issue, would someone have an idea to help me ?
To summarize, how can I protect my power supply from negative currents when accelerating the motor by physically forcing on it, in velocity control ?
You are correct, dc_max_negative_current should not be -INFINITY for what you’re trying to achieve. Can you confirm the psu is shutting down with the default value (or lower) of dc_max_negative_current = -0.01?
While in closed loop control can you verify that <odrv>.brake_resistor_armed is True?
Also, could you please share your config from the <odrv> object, specifically the parts that pertain to the brake resistor?
Thank you for your interest in my issue.
I’ve just checked dc_max_negative_current is -0.01 and brake_resistor_armed is True during the entire closed loop control and the psu is shutting down.
I’ve noticed that from as soon as i run my script brake_resistor_saturated is True, is that normal ?
Also, here are the brake_resistor_current just before the psu is shutting down: