Hi, I’m trying to run the BLDC motor using Arduino Mega and simpleFOCSheied. The motor I am using is EC 45 flat. I used the example code from the Writing Code → Motion Control → Closed-Loop Control → Torque Control → FOC Current Mode tab in . I modified only two codes as shown below without changing anything else. But the motor didn’t turn.
BLDCMotor motor = BLDCMotor(9);
Encoder encoder = Encoder(2, 3, 2048);
driver.voltage_power_supply = 12;
Can you tell me what kind of problem there is?
- There seems to be no hardware problem as the motor turned when operating using another example code.