Regarding the encoder, I am using the one from the tutorial - [AMT 103 encoder]
The motor and encoder objects are as follows.
BLDCMotor motor = BLDCMotor(9, 10, 11, 4);
Encoder encoder = Encoder(2, 3, 2048);
I have tried with both 12V and 24V power supply with no success.
When I upload the code on the arduino uno and initialise an angle, the motor does not move at all. However, I can read encoder values properly. Any recommendation would be more than appreciated.
I’m a little confused by your motor. It looks like a stepper motor which usually has 4 cables. We tend to use a 3 phase bldc motors.
The simplefoc library doesn’t currently support 2 phase motors but perhaps it could!
I’ve looked at the data sheet. Apologies. Yep they are 3 phase. These motors have very low resistance (from 1.28ohm to 0.3 ohm depending on size). I wouldn’t recommend using the shield with this motor unless you have a powersupply where you can limit current to <1.5A
Thank you all for your help, advice and quick responses. I am currently using the L6234 breakout with an Arduino, but looking at the FOC shield documentation I can see it is not rated for this motor winding resistance.