2024-09-04 02:22 AM
Hello,
I am controlling my motor with the Hall effect sensor first. I am not using any auxiliary sensor. I am able to control my motor correctly, and I can visualize the angle from the Hall sensor. I need to evaluate the number of turns the motor makes and be able to reset this counter to zero at the start. Thank you.
2024-10-09 09:26 AM
Hello @Christophe65,
Plotting HALL_EL_ANGLE computed at "HALL_CalcElAngle(&HALL_M1);" call, an angle transition from positive value to negative value gives you an electrical lap, divided by pole pair value value gives you the mechanical lap.
Gpio are available to trig an interrupt to clear your local counter (as Start button feature).