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:
No, it is not normal for brake_resistor_saturated to immediately be True. Could you briefly outline what this script is doing, and at which point does brake_resistor_saturated become True?
Also, I see you have enabled the overvoltage ramp feature, with a relatively tight margin of 48.35 and 48.2 for the start and end points. What is the psu voltage and/or vbus_voltage reading?
Does this issue persist of you try setting enable_dc_bus_overvoltage_ramp to False?
It is worse if I set enable_dc_bus_overvoltage_ramp to False… It seems normal to me since the power is not dissipated in the brake resistor anymore.
The motor is in velocity control and the instruction sent are in magenta on the graphs (the velocity is the one of the pedals, not the motor r=42).
Here is the vbus and ibus during an experiment (in velocity control) where the psu didn’t crash (with enable_dc_bus_overvoltage_ramp to True), someone was forcing on the pedals from 20s:
Hmm okay. It sounds like this PSU has a very narrow margin that it can operate in. I would suggest using a diode to separate the power supply from the DC bus, I’ve found this one to be pretty good.
With the diode in place the bus voltage can move away from the PSU voltage without it failing. From there you will not need such a tight margin for the overvoltage ramp, for a 48V supply I would suggest setting dc_bus_overvoltage_ramp_start to 49 and dc_bus_overvoltage_ramp_end to 51 (start at +1 from nominal, end at +3 from nominal)
I have some question about the use of a diode in this circuit:
Theoretically I would say it is the same to put the diode between the psu + and the ODrive + or between the psu - and the ODrive - but is there a better way to do it in practice?
As the forward current increases, the voltage at the diode terminals also increases. Won’t the vbus drop (if proportional, it could drop 728 AM)? I’m not sure whether that would have an impact on the proper functioning of the board.
How does the voltage at the diode terminals behave when the current is reversed, does the diode behave as a switch? If yes, the ODrive will not receive power for a moment.
How can I be sure that the reverse recovery time and the reverse leakage will be below the power supply protection threshold?
Hello!
Thank you so much for your advice this works really well with diode!
However the vbus is now 47.6, should I set dc_bus_overvoltage_ramp_start to 48 and dc_bus_overvoltage_ramp_end to 50, is it an issue for the correct functioning of the ODrive?
If anybody has any answers to my questions, it would be an excellent bonus.
Thank you for your help and support,
Have a nice weekend!
I just noticed my power supply output voltage adj. range is 48-56 V (security at 60V). As I think the range is the same for the ODrive, can I set dc_bus_overvoltage_ramp_end to 56 V ? If yes, should I change the securities on the current ?
Thank you again for your kind help,
Have a nice day !
Yeah, you can set the end to 56V. You’ll still want a range of at least 2V for the ramp (start at 54V) and if you’re using the diode you’ll want a margin of about 1V between the psu output and the start of the ramp (psu set to 53V).
This shouldn’t require any changes to your current limits.