The brushless DC (BLDC) motor is a multi-variable and non-linear system so that it's required more advanced explaining and controlling set. In this work, an algorithm is proposed based on the harmony search algorithm (HAS) method. HSA mimics music improvisation process to find the optimal solution. In BLDC motor, many constraints are required; speed performance and current limiting control are dominated. HAS is proposed to find the optimal PID parameters for the two speed and current-limiting controllers that are proposed in the drive. By Matlab/Simulink results, a good performance is shown compared with the classical method that absence current-limiting controller.