Motor not spinning, only vibrating... hall sensor interrupt not working?

It will most likely help if you specify the PP…

Don’t be sorry for seeking guidance. When new to SimpleFoc it can be a bit challenging to get it all right. I will advise you to go through the docs. You are on the right track!

Ok, but I already set it with BLDCMotor(NUM_POLES) and
HallSensor(PIN_HALL1, PIN_HALL2, PIN_HALL3, NUM_POLES)?

Thanks for that! I wan’t to get the motor working :sweat_smile:

Doing motor.initFOC(2.09, Direction::CCW); skipped the initialization and I tried with different speeds but either the motor is running forth and back quickly or doesn’t spin smooth…

Is there a requirement for the hall sensors? Maybe the voltage levels are inverse?

always test the motor in torque control first then switch to velocity and angle. In your code, you have selected velocity_open loop. So, it doesn’t need hall sensor input for commutation. So, I will recommend starting with torque mode and check how the motor behaves.

Regards,
Moid

When using torque control the motor spins quite good and smooth! I didn’t know that velocity_openloop is not using the hall sensors, thanks for that! What does the torque control do? (I have no current sensor installed)

The initialization still fails some time and estimates wrong …
When using velocity control type then the motor is just doing something. So I guess there are still some things wrong

I measured something interesting!
Here it says that each hall sensor should be high for 180°.
I just measured the outputs of the hall sensors of my motor and the are high for about 45°! So that could cause the problem…
Is there a way to confgure for different hall sensors?

Hmm, interesting. Usually they are 120 or 60 degrees apart.

I guess, if true, you need one of the architects to chime in. @Antun_Skuric

Finally something that could cause the problem!

Sounds good, maybe they know how to do it…

In your Datasheet it says 120 degrees. Have you tried to open up the motor ? It also state to be a 8 pole. So maybe it’s 4 PP

If in torque control mode motor is running smoothly, it means that the feedback from the Hall sensor is fine. Regarding the working principle of torque mode, I will advise you to go to the document section where all the explanation is given. ( You require a current sensor if you want to control the motor in current mode for voltage mode you don’t need a current sensor).

In velocity mode, you first need to tune your PID parameter. Once the parameter is tuned then you can run the motor in velocity mode.

At least it means the hall is working but the 45° angle could be very relevant.
I already read that, but it didn’t said if a current sensor is neccessary…

Ok, sounds legit, is there also a ducumentation for it or just the Ziegler–Nichols method?

I also think its 4PP. I can try to open it :sweat_smile:

Here are the insides of the motor:

I see 3 pole pairs… and the 3 sensor are sitting in the corners so it makes sense that the only recognize 45° of the rotor

No there is no document for that, try to set PP to 4 and check, how your motor response.

Wait a minute. Are the coils damaged??

I will let buy a new motor!

Thanks all for the help, I will tell you again what the progress is when a new motor arrives.

Did you measure if there is continuity between the phases ?

It does look a bit burned…

Without current sensors I think it’s difficult do drive that motor. It’s only rated for 5 amps.

I measured the following resistances:
R1-2 = 3Ω, R2-3 = ∞, R1-3 = ∞

So, the coil seems to be broken…

That looks like you mounted the motor with bolts that were too long. The first gif you posted shows a 3d printed front plate with 4 c/s bolts that look like they might perfectly line up with the 4 damaged coils.

I saw that too, the screws were too long.
I already got the motor with the 3d printed holder so I didn’t expect that to be the problem :grin:

Unlucky, hopefully with the new motor it should work straight out the box

Yes it was bad luck, but I also think the new motor will fix most of the problem, I am already looking forward to it!

There are good news!
I got a new motor and used shorter screws to mount the motor.
Now the motor spins very smooth and perfect! Initialization also works very good and the shaft is now actually rotating forth and back.
Motor_spinning

So again thank you to all the tips and help.
And thanks @Juan-Antonio_Soren_E for the tip to open the motor, which finally showed the actual problem.

1 Like