Skip to main content
Zek_De
Senior
August 14, 2025
Solved

Regenerative Brake understanding

  • August 14, 2025
  • 2 replies
  • 618 views

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.

Best answer by GMA

Hello @Zek_De,

A dissipative brake resistor feature is available on specific boards. Refer to the STEVAL-IHM023V3 power board for more details.

GMA_0-1755504784258.png

 

2 replies

Senior III
August 15, 2025

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.

Zek_De
Zek_DeAuthor
Senior
August 15, 2025

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 :)

GMA
GMABest answer
Technical Moderator
August 18, 2025

Hello @Zek_De,

A dissipative brake resistor feature is available on specific boards. Refer to the STEVAL-IHM023V3 power board for more details.

GMA_0-1755504784258.png

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
Zek_De
Zek_DeAuthor
Senior
August 15, 2025

Thanks for answer