B-G431B-ESC1 Freewheeling

Hello Guy,

I’ve been trying to get the motor into a freewheeling state, using the motor.disable() function.
But when I apply the function, the motor gets in a freewheeling state, but with some very high resistance.
Where does that come from and how can I get rid of it?

I can get the motor to freewheel with:

        pinMode(PHASE_UH, INPUT_FLOATING);
        pinMode(PHASE_UL, INPUT_FLOATING);
        pinMode(PHASE_VH, INPUT_FLOATING);
        pinMode(PHASE_VL, INPUT_FLOATING);
        pinMode(PHASE_WH, INPUT_FLOATING);
        pinMode(PHASE_WL, INPUT_FLOATING);

But I’m not sure why this works.

I think I gave the explanation in my other answer - the driver used cannot be fully disabled, and the motor.disable() function leaves the low side FETs on in this case.

This will shut off all the FETs so that the windings are unconnected. Call motor.disable() first. I would actually have expected that you also need to disable the hardware timer being used, but perhaps setting the pins to input mode simply disables the PWM output of the timer.

Note that you probably want INPUT with pull-down to make sure the driver input is really off. But actually it would probably be better to shut off the PWM (disable the hardware timer) and then use pinMode OUTPUT and LOW to properly switch off the FETs.


thanks for the help. Using the method you told me, works.
I was using the “pinMode(PHASE_UH, INPUT_PULLDOWN);
So for disabling :image

and for enabling:image

Don’t worry about the error on “A_PHASE_WL” that’s just in VS, I described my problem here

1 Like

Hello. I also encountered this problem when using 6 pvm. Could you help me help how can I use this feature?
I haven’t found a single example with a detailed solution to understand how it works.
Mit freundlichen Grüßen