This research investigates the modeling and control of a doubly fed induction generator (DFIG) driven by wind turbines, focusing on optimizing power capture through a maximum power point tracking (MPPT) algorithm. The system's performance is validated through real-time simulations using a dSPACE DS1104 controller board integrated with MATLAB/Simulink. Key approaches include indirect field-oriented control (IFOC) with PI controllers to ensure effective control over the power generated regardless of wind speed variations.