I am working through the InstaSPIN labs. At some point I switched from using the supplied Anaheim NEMA17 in the DRV8312 kit to some lower inductance outrunner RC PMSM motor. I am able to count the number of stator windings/teeth and this number is 12. A literature search indicates that the number of magnets for this type of motor should be 14. After much searching and reading, I have concluded that the user.h file should have 7 pole pairs based the number of magnets and not the number of stator poles/teeth.
#define USER_MOTOR_NUM_POLE_PAIRS (7)
Therefore is the number of pole pairs in a PMSM based on the windings/teeth or the number of magnets?
Thanks,
Kurt