ok…stuck. I can not find any examples that will reliably rotate the motor. I have been working with the open loop example and various poll counts to no avail. I tried to write some code to let me try various poll counts but I am unsure if I did it correctly
clues: the motor will rotate about 90’ when I run the pole pair estimator but when it gets to the point in the program were the motor should run…just buzz, no rotation.
will this code work to change the poll count? IE, can driver.init and motor.init be called more than once in the code?
BLDCMotor motor = BLDCMotor(poll_count);
// init motor hardware
Serial.print("poll count: ");
ps. aux question. what is the recommended power on sequence? 12v motor power before or after arduino power via usb. I notice without the 12v the SimpleFOC board led lights dim and the motor seems to have some small amount of power via usb. Is that harmful?