Skip to main content
dannypkchan
Associate III
January 14, 2022
Solved

can I just call R3_2_TurnOnLowSides( PWMC_Handle_t * pHdl ) for regenerative braking ?

  • January 14, 2022
  • 3 replies
  • 1961 views

Hi,

R3_2_TurnOnLowSides is shorted motor 3 phases to ground, so when my ebike is downhill will motor power will transfer to DC BUS so call regenerative braking ?

Danny

Best answer by DTort.1

As ST answered the same question, at the moment there are no direct functions for regenerative braking in the Motor SDK.

https://community.st.com/s/question/0D53W000016MitiSAC/electric-brake-function-for-pmsm-motor-control

But, in general, speed reduction through MC_ProgramSpeedRampMotor1 will work partly as regenerative braking, but this cannot be precisely controlled. That is, there is no some function that would regulate the braking torque.

3 replies

DTort.1
Associate III
January 14, 2022

Hi,

Calling R3_2_TurnOnLowSides( PWMC_Handle_t * pHdl ) will result in dissipative braking, not regenerative. In this case, the kinetic energy of the system will be dissipated into heat on the motor windings.

dannypkchan
Associate III
January 14, 2022

Hi DTort,

wow, thanks for the quick reply, can you help to suggest how to regenerate energy when my bike down hill ?

  1. when brake action is interrupted (brake lever trigger external interrupt), then set speed to very slow e.g. 10? MC_ProgramSpeedRampMotor1(10, 0);

if this is the solution, can I change the target speed value for different amount of regenerate energy e.g.

MC_ProgramSpeedRampMotor1(10, 0);

MC_ProgramSpeedRampMotor1(20, 0);

MC_ProgramSpeedRampMotor1(30, 0);

thanks,

danny

DTort.1
DTort.1Best answer
Associate III
January 14, 2022

As ST answered the same question, at the moment there are no direct functions for regenerative braking in the Motor SDK.

https://community.st.com/s/question/0D53W000016MitiSAC/electric-brake-function-for-pmsm-motor-control

But, in general, speed reduction through MC_ProgramSpeedRampMotor1 will work partly as regenerative braking, but this cannot be precisely controlled. That is, there is no some function that would regulate the braking torque.

dannypkchan
Associate III
January 14, 2022

thanks DTort