#171·smartknob

Motor initialization

Author: LucasCaneteCreated May 8, 2025Updated May 8, 2025

Hello Scott. First of all thank you very much for this project. I admire what you have created.

I am working on an adaption of your project (used the same components) for my EE thesis but with a different board size adapted for EU regulations. Sensors are working but i am having trouble with the BLDC Motor as i cant make it move.

I have seen in your code "motor_task.h" on line 58 you have initalized the motor like this:

BLDCMotor motor = BLDCMotor(1);

Checking the SimpleFOC library i understand the argument must be the number of pair poles. As i am using the same motor as you (ordered from Sparkfun) according to the datasheet the motor has 8 poles. So my question is why is the argument 1 and not 4?

Thank you.