BrakingStrength on DC Motor Phidget
Posted: Wed Jun 22, 2022 9:20 am
How exactly is braking implemented on the phidget? It looks like the braking strength is a value from 0 to 1 with it ramping based on the acceleration parameter.
To my understanding, typically you would short both terminals of the motor to ground for hard braking. Does this parameter tie one of the motor connections to ground by opening that low-side fet and then throttle the duty cycle of the other low-side fet from 0 to whatever is specified by the setBrakingStength?
As implemented, when you set a braking strength the motor is being braked whenever a velocity is not set, correct? So if you only want to brake the motor for 1-second after you tell it to stop then you would set the braking strength to some value while it's moving and then 1-second after you set the velocity to zero you can set the braking strength to 0 to allow it to free-wheel. Correct?
To my understanding, typically you would short both terminals of the motor to ground for hard braking. Does this parameter tie one of the motor connections to ground by opening that low-side fet and then throttle the duty cycle of the other low-side fet from 0 to whatever is specified by the setBrakingStength?
As implemented, when you set a braking strength the motor is being braked whenever a velocity is not set, correct? So if you only want to brake the motor for 1-second after you tell it to stop then you would set the braking strength to some value while it's moving and then 1-second after you set the velocity to zero you can set the braking strength to 0 to allow it to free-wheel. Correct?