How to configure a rotatory brushless motor with digital halls feedback

How to configure a rotatory brushless motor with digital halls feedback


I have a rotatory brushless motor with digital halls as the only feedback but I don't know how to properly configure it and tune it. What is the right process that I need to follow?

Clarifications and checkings

  • This article describes (step by step) the manual process of configuring a rotatory brushless motor with digital halls as feedback with very optimal performance. A more automatic way of doing this configuration could be by using the Configuration Wizard with all the implications that this might have.
  • This step by step process assumes that your motor does not have a brake. If you do have one, ensure that you have configured it correctly like it is shown in the following article before proceeding with any configuration: How to configure the brake of your motor.
  • This step by step process assumes that neither the motor or the power stage of the drive is damaged. Please, if you are not sure of this, follow the instructions in the How to know if the motor phases or the power stage of the drive are damaged article in order to verify it.
  • This step by step process assumes that your feedback device is working properly and no noise is coupled to the hall lines. Please ensure that you have checked this by following the step process described in How to know if the feedback device is working properly.
  • This step by step process assumes that there is no digital input mapped to the "Motor Enable" functionality of the drive. If that is the case, ensure to have the digital input ON (if active high, otherwise OFF) in all the steps that involve movement during the configuration or otherwise those steps will fail.


  • Once you have connected to the drive, go to the Actuator window and set the right parameters for the Motor Type, Position sensor and Velocity sensor. Your window should look like the following:

  • Then, you need to go to the Motor window in order to input all the motor data from its datasheet (it should all be in there). The parameters that you need to input mandatory are torque constant, continuous current, peak current (if known), max permissible speed and motor pair poles. The inductance and the resistance can be obtained in later steps with the system identification included in the torque tuning stage and the rated torque can be determined by the product of torque constant and continuous current. An example of motor parameters for a brushless motor could be the following:

  • The next step is to configure the hall sensors in the Digital Halls window. For the halls there is no need to input any parameter, it is only needed to calibrate the Polarity. In order to do that, you can use either the Auto identify tool or follow the procedure that is explained in the article How to calibrate the polarity of your feedback device manually:
  • After having configured the Polarity correctly, it is time to move to the Commutation window in order to calibrate the initial angle of the motor. Because of its absolute nature, we can use the digital halls as both Commutation sensor and Reference sensor and "Non incremental sensor used" as Initial angle determination Method like it is shown in the following picture. Then, we only need to use the Calibrate tool to calibrate the initial angle. Start by using a small amount of torque and keep increasing it until you get enough movement to get the test finished successfully:
  • After having successfully calibrated the initial angle determination method, it is of good practice to do a quick verification to ensure that the commutation has indeed been properly calibrated. This can be very easily done by using the Open-loop with commutation sensor mode from the Move window while plotting in the Scope both position and velocity actual values. Try applying different target voltages in both directions and check that the motor is spinning at the same speed (for a certain target level) in both directions. If the motor does not spin the same way in both directions, if it spins erratically in one direction or any other strange anomaly please repeat the previous step and recalibrate the initial commutation angle. An example of this verification procedure is shown in the following image:

  • Once the calibration is verified, it is time to move to the Limits window. In that window, make sure that your position, velocity and torque limits are properly set accordingly to your system. Make sure that the position limits match your motion range (if there is one), that the velocity/acceleration limits are correct and that the minimum and maximum torque limits match the peak torque value:

  • After having set the Limits correctly, make sure that the Protections parameters are set up correctly as well. Adjust the voltage range to your application's and make sure that the maximum system current is equal to or higher than the peak current value: