6pwm driver EG2134. The rotor remains locked

Hello. Today is finally the time to play with simplefoc. I used the connection of 6 pvm and arduino nano. In the opeeloop mode without feedback. The engine is spinning, I am very happy about it. But at the command T0, when the engine stops, the stator still remains energized. And if you rotate the rotor with your hands, then resistance is felt. If I use esp32 and feedback, will I be able to fully release the rotor when the engine stops?

In voltage mode, you will always feel that resistance at T0. Switch to the current control mode by adding inline current sense. Once you have properly tuned the PID for current, the rotor will rotate without any resistance at T0.


Hi @nikolaewich1988,

In case you are not using current sensing:
This driver does not seem to have an enable pin… so you can’t really switch off the driver.
You can use motor.disable() to set all the phase voltages to 0. This should open the low side FETs for all the phases, which I think corresponds to freewheeling the motor.

I used the motor disable function it makes the motor a freewheel but when you use the command to enable the motor to run the BLDC, the motor doesn’t work as enable function sets PWM ( 0, 0, 0). So, I toggle the enable pin for enabling and disabling the motor and it works perefctly.


Could you share an example of how it works in code. I haven’t found anywhere(((
Mit freundlichen Grüßen


There is no example, just enable and disable the Enable pin. Simple.:slight_smile: