i need the number of pole pairs, but every time i rotate slowly with hand (not at constant speed, unevenly i am able to rotate) i get different hall transitions. I am trying to determine using hall transitions / 2 as pole pairs. Any mistake from my side, please help. The count is also very high around 50 hall transitions, i am checking only one hall input.
Run it in open loop for a fixed number of electrical revolutions, and count the hall transitions, for example by recording with logic analyzer.
Might be best to start counting after one or two electrical revolutions to give the motor a chance to align.
You can set the motor pole pairs to 1 for the open loop movement, then if you use position mode the set-point will be equivalent to the physical angle.