Solar photovoltaic (PV) systems stand out as a promising solution for generating clean, carbon-free energy. However, traditional solar panel installations often require extensive land resources, which could become scarce as the population grows. To address this challenge, innovative approaches are needed to maximize solar power generation within limited spaces. One promising concept involves the development of biological tree-like structures housing solar panels. These “solar trees” mimic the arrangement of branches and leaves found in natural trees, following patterns akin to phyllotaxy, which correlates with the Fibonacci sequence and golden ratio. By adopting an alternative 1:3 phyllotaxy pattern, three solar panels can be efficiently arranged along the stem of the solar tree structure, each rotated at a 120-degree displacement. Optimizing the performance of solar trees requires effective maximum power point tracking (MPPT), a crucial process for extracting the maximum available power from solar panels to enhance the overall efficiency. In this study, a novel metaheuristic algorithm called horse herd optimization (HHO) is employed for MPPT in solar tree applications. Moreover, to efficiently manage the generated power, a cascaded buck–boost converter is utilized. This converter is capable of adjusting the DC voltage levels to match the system requirements within a single topology. The algorithm is implemented using MATLAB and embedded within a Raspberry Pi Pico controller, which facilitates the generation of pulse-width modulation (PWM) signals to control the cascaded buck–boost converter. Through extensive validation, this study confirms the effectiveness of the proposed HHO algorithm integrated into the Raspberry Pi Pico controller for optimizing solar trees under various shading conditions. In essence, this research highlights the potential of solar tree structures coupled with advanced MPPT algorithms and power management systems to maximize solar energy utilization, offering a sustainable solution for clean energy generation within limited land resources.