2025-08-14 10:22 AM
Hello everyone,
I want to understand to clear my mind about regenerative brake MC library. I dont have ossiloscope.
Assume P-NUCLEO IHM03. I am using it with different motor with HALL sensors with load.
in speed control ->
MC_ProgramSpeedRampMotor1_F(targetspeed, rampduration); TO
MC_ProgramSpeedRampMotor1_F(0, rampduration);
Now we get energy from Motor to Battery, right?
But because of no control of this energy, if Voltage is too high then can gives damage the battery.
1-let me know. Can MC library observe the Voltage and if it is too high direct it to Motor coils to consume like low side pwm turn on( as much as I know in this case entire energy consumed in motor), or we gonna do it manual, if it manual how we gonna do that(function name?)
2- assume we have high power resistor parallel to VBus(as much as I know this resistor connect like that ?), In this case ,how we gonna direct the current to Resistor.(function name)
Please make my mind clear about regenerative brake issue also in terms of MC Library usage about that..
Thanks in advance.
Solved! Go to Solution.
2025-08-18 1:19 AM
Hello @Zek_De,
A dissipative brake resistor feature is available on specific boards. Refer to the STEVAL-IHM023V3 power board for more details.
2025-08-14 7:47 PM
For the first one if over voltage happens then over voltage fault will happen and the PWM will be Turned OFF. I don't have idea on the 2nd question.
2025-08-15 8:20 AM
Thanks for answer
2025-08-15 9:37 AM
Actually right, if the voltage is too high , pwm turn off, so in this case, I dont want to pwm turn-off, I want to current must go on resistor. If HW has suitable design for that , will SW automatically direct the current on resistor, or I will do it manually, now that is the lock question probably. I hope someone talk about that :)
2025-08-18 1:19 AM
Hello @Zek_De,
A dissipative brake resistor feature is available on specific boards. Refer to the STEVAL-IHM023V3 power board for more details.
2025-08-18 2:43 AM
I know this feature, but trying to understand, i dont want to eliminate motor brake using
MC_ProgramSpeedRampMotor1_F(targetspeed, rampduration); this function.
Assume:
1. Motor running in speed
2. MC_ProgramSpeedRampMotor1_F(targetspeed, rampduration); to get lower speed
3. I guess unless exceed the max voltage on VBus, SW doesnt switch the Resistor Brake and in this way still regenerative brake(current goes to Battery without control without BMS) will continue.
Do you think I understood?