This paper presents the implementation of Maximum Power Point Tracking (MPPT) using the Perturb and Observe (P&O) algorithm with variable step size on an Arduino Mega for photovoltaic systems. The experimental results demonstrate that the variable step size P&O algorithm outperforms the fixed step version in terms of response time and oscillations around the maximum power point. Overall, the study highlights the effectiveness of the variable step approach in optimizing energy production from photovoltaic generators.