There is a 1kw mppt controller in YouTube, which uses esp32 to realize the switch control of mos tube.It is very simple to see the hardware connection. The whole principle is to collect the input and output voltage, current and power.Then adjust the switching frequency of the FET.And duty cycle,Just do itRealize the adjustable output voltage.Esphome natively supports ina226, which can be used for input and output acquisition.