Maximum Power Point Tracking (MPPT) algorithms play a critical role in maximizing the output power of solar panels. Different MPPT techniques are evaluated based on several criteria, such as tracking speed, simplicity, and accuracy with changes in solar irradiance and ambient temperature. Under partial shading conditions (PSCs), conventional techniques fail to track global maximum power points (GMPP). This paper aims to present an automatic and accurate method to fix the complexity of determining the accurate lookup table data in an automatic and fast process under uniform irradiance conditions (UICs) and PSCs. The proposed method runs the photovoltaic (PV) module with all potential irradiance and temperature. It automatically calculates the perfect voltage reference (Vref) for all potential PV system cases. The Vref is collected in an array, sent into a two-dimensional lookup table, and used for controlling the boost converter. Simulation results verify the effectiveness of the proposed method. In addition, a comparison was also made with the conventional perturb and observe (P & O) method. Under UICs, the proposed method takes less time than the conventional P & O algorithm to reach the MPP. The time difference between them is increment t = 0.133 sec and increment t = 0.04 sec for the first scanning process at t = 0 sec and sudden change irradiance at t = 1.5 sec, respectively. As for PSCs, the proposed method reached the GMPP during pattern 104 (first peak) without any power loss, while the P & O MPPT was able to track the GMPP but with power losses of 2729.97 watts. 0.133 saat dan increment t = 0.04 saat bagi proses pengimbasan pertama iaitu pada t = 0 saat dan sinaran perubahan mendadak pada t = 1.5 saat. Bagi PSC, kaedah yang dicadangkan mencapai GMPP semasa corak 104 (puncak pertama) tanpa kehilangan kuasa manakala MPPT P & O dapat mengesan GMPP tetapi dengan pengurangan kuasa sebanyak 2729.97 watt.