simplefoc / Arduino-FOC

Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library
https://docs.simplefoc.com
MIT License
1.95k stars 511 forks source link

problem to notice the movement in the alignment of the sensor #323

Open AndSan97 opened 9 months ago

AndSan97 commented 9 months ago

I'm testing the torque control algorythm with arduino UNO, simple FOC shield (version 2.0.4) and BLDC motor (8 poles) with Hall sensors integrated. When I launch the program obtain "Failed to notice movement",what could be the problem?

Candas1 commented 9 months ago

During the sensor align procedure, SimpleFOC measures the direction of the sensor and the zero electrical angle offset. If your motor is not moving at all, it will fail.

Is your motor not moving ? Your driver could be set in a wrong way, or motor.voltage_sensor_align could be too low. Is your motor moving ? Then your sensor might be set in a wrong way.

AndSan97 commented 9 months ago

When I launch the program the motor rotates before in a direction then change the direction in order to find the zero but It fails.

Candas1 commented 9 months ago

Well you have your answer then ;)

AndSan97 commented 9 months ago

Thank you for the advices, I have tried to control the settings of Hall's sensor but obtain always the same problem. Maybe It's related to the low number of poles?