2022-04-14 07:51 AM
Hello, I am working on trying to get a BLDC motor spinning and I have stumbled across some behaviour I don't fully understand. First, some details about the hardware and software I'm using:
I have been using this same hardware with another motor successfully (pretty much the same specs, Rs and Ls are different, it can take a bit more of current (4A), and the resolver on this first motor has 1024ppr. Other than that, pretty similar motors).
With the first motor, the encoder alignment specs were 4000ms, 1A, 180 degrees.
Now, with the new motor, if I use the same alignment settings the alignment seems to work (small shaft movement, I can see the current ramp in the scope, no faults). When I try to run the motor I get high current draw and a locked rotor. Here is the interesting part, if I do the alignment and then swap phases A and B, I can run the motor correctly. I can make it move in both directions, correct speed control and measurement, and everything seems to work.
If I try to run the alignment in this swapped configuration I don't get faults either, but if I run the motor I get wobble rotation (a lot of vibration).
Why would the alignment with some phase wiring make another phase wiring configuration work? I have been trying to play with the alignment angle as I can see this affects which phase outputs the ramps, polarity of the ramp, etc. I haven't been able to find a solution.