This document discusses the implementation of a modified perturb and observe (P&O) maximum power point tracking (MPPT) algorithm for a photovoltaic system using a microcontroller. The traditional P&O algorithm is simple but has issues during rapid changes in irradiance/load, including oscillating around the MPP or moving away from it. The proposed algorithm adds a constant load method to help the traditional P&O algorithm identify the cause of power changes and make better decisions during initial perturbations. Simulation and experimental results show the proposed algorithm performs better than the traditional P&O approach.