2022-01-14 01:45 AM
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
Solved! Go to Solution.
2022-01-14 02:50 AM
As ST answered the same question, at the moment there are no direct functions for regenerative braking in the Motor SDK.
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.
2022-01-14 02:00 AM
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.
2022-01-14 02:07 AM
Hi DTort,
wow, thanks for the quick reply, can you help to suggest how to regenerate energy when my bike down hill ?
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
2022-01-14 02:50 AM
As ST answered the same question, at the moment there are no direct functions for regenerative braking in the Motor SDK.
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.
2022-01-14 02:55 AM
thanks DTort