One of the important tasks for increasing the efficiency of photovoltaic (PV) system is the development and improvement of the maximum power point tracking algorithms (MPPT). These MPPT algorithms lead to the ability to catch efficiently the global maximum power point of the partially shaded PV array. One of these trackers is the particle swarm optimization (PSO) algorithm which is one of the Soft computing techniques. The conventional PSO based trackers have many advantages such as the simplicity of hardware implementation and independence from the installed system. The actual problem of the practical application of PSO is the determination of its parameters to ensure high effectiveness of extracting the global MPP. Analysis of scientific papers devoted to the PSO algorithm has shown that there is currently no methodology for the optimal parameters' selection of PSO algorithm based maximum power trackers for the PV system. This paper aims to create a convenient and reasonable method for choosing the optimal parameters of the PSO algorithm, taking into account the topology and parameters of the DC-DC converter and the configuration of solar panels. A new method for selecting the parameters of a buck converter connected to a battery has been presented. The optimal value of the sampling time for the digital MPP controllers, providing their maximum performance; has been determined based on a new methodology. Matlab/Simulink software package is used as the main research tool. The prominent outcomes identify that the modified PSO and its designed parameters best meet the requirements of the MPPT controller for the PV system.