This study proposes a new optimization approach, which is called as artificial ecosystem optimization algorithm with fitness-distance balance guiding mechanism by using opposite based learning methods (FDBAEO_OBLs) for the speed regulation of direct current (DC) motor. The performance of the proposed FDBAEO_OBL algorithm is tested in two different experimental studies. In the first experimental study, the proposed approach is tested in the CEC2020 benchmark test functions and the FDBAEO algorithm, which included the best OBL approach, is determined using non-parametric Wilcoxon and Friedman statistical analysis methods. Second, the parameters of proportional integral derivative (PID), tilt integral derivative (TID), proportional integral derivative with filter (PIDF), tilt integral derivative with filter (TIDF), fractional-order proportional integral derivative (FOPID), fractional-order proportional integral derivative with filter (FOPIDF), proportional integral derivative with fractional-order filter (PIDFF) and fractional-order proportional integral derivative with fractional-order filter (FOPIDFF) controller structures to be used in DC motor closed loop speed control are determined with FDBAEO_OBL, and the performances of the controllers are investigated. Integral absolute error (IAE), integral time absolute error (ITAE), integral time squared error (ITSE) and integral squared error (ISE) performance indices are used as the objective function of the operation process in which the control parameters are determined. According to the comparative step response results of the controller structures, the four best controller structures for DC motor speed regulation are determined. The performances of these controllers are examined under different simulation conditions and according to the results obtained, it is seen that the best controller structure is FOPIDFF. The FDBAEO_OBL algorithm, which is used in both benchmark test functions and DC motor speed regulation, shows an effective, durable and superior performance in finding the optimal solution values during the optimization.