B-G431B-ESC1 - using it in torque mode and an OUTSIDE SPEED LOOP
I am using the B-G431B-ESC1 inverter board to drive my brushless motor (10 pole pairs) using the FOC algorithm. The brushless motor comes equipped with hall sensors used for commutation and an MT6701 quadrature encoder with a 1024 PPR resolution.
NOTE: I do not intend to use the hall sensors in this application. Only the encoder. However, if you believe there is a way to use them for commutation in torque control mode, I'd like to kknow more about how to set that up.
I am using an ESP32 where my PID controller is coded. My ESP32 receives speed setpoint input from the end-user and speed feedback from the MT6701 encoder on the BLDC motor. The output of my PID controller on the ESP32 will be the PWM signal that is sent to the PWM input of the B-G431B-ESC1 board.
I have set the control loop of the inverter board to be the torque loop, since my speed loop (outer loop) is sitting on my ESP32.
With all that said, I have a question on how to configure the parameters of this board for such a scenario.
First, even though my motor has hall sensors and an encoder, as far as the inverter board is concerned it has none. All the inverter board needs to do is control the current/torque loop based on the PWM input provided from my ESP32 PID controller.
So that means, in FOC Wizard,
1) I am setting hall sensors and encoders to “OFF” under the MOTOR tab.
2) I am setting the Speed Sensor Mode to default value - not that it matters since it is not being used anyway.
3) Under Drive Settings, I am setting control mode to : Torque Control
4) Under Stage Configuration: I am setting Open Loop OFF, Potentiometer OFF and Electronic Speed Control OFF as well
Is this correct? Am I missing a step or parameter that needs to be modified ?
Thanks,
