This paper presents a comprehensive examination of speed regulation for a Separately Excited Direct Motor (SEDM). It effectively addresses the challenges posed by variations in irradiance of solar and set points. The array of photovoltaic (PV) efficiently converts solar energy into a stable direct current (DC) output voltage, which powers the motor. To improve performance in light of these variations, we utilize an advanced strategy of Maximum Power Point Tracking (MPPT) that incorporates a converter, thereby ensuring the system operates at peak efficiency consistently. Additionally, a PID controller is employed to manage fluctuations in the set point, which is integrated with a flexible buck-boost converter. The MPPT controller utilizes the Incremental Conductance (IC) algorithm to effectively sustain the system's operating point at its maximum power point. Our simulation studies illustrate the effectiveness of this proposed method, emphasizing its capability to proficiently handle both source-side and set-point variations.