I have 900 W (150 W x 6 panels) of solar panels and a 12 V inverter (1000 VA) which has a built-in PWM solar charge controller. The distance between the panels and inverter is >10m and the wires are 6 mm2 only.
At this distance the inverter shows up to 40 A max current from the solar panels and the wire gets quite hot and wastes a lot of power (around 150 W I assume). The panel's voltage is ~18 V, and the voltage at the input to the inverter is ~13-14 V depending on usage.
I tried to reduce the distance to around 4-5 m and the built-in charge controller burned twice (not surprising since the built-in controller has to dissipate more power in this case). Luckily warranty covered me.
So the built-in charge controller is very inefficient; I am getting only max 450-500 W and 350-400 W if average usable power.
I want to design a buck-boost converter for the solar panels so that I can connect panels in series and step down the voltage (15 V or so) at the inverter's input. (Please don't tell me that the built-in controller might burn once again, in the future I will upgrade to a 24 V system and maybe design my own charge controller for lead-acid batteries, so I definitely need a buck-boost converter.)
Now you might ask why buck-boost and why not just a buck converter. I will happily make a buck converter if you give me a design that uses N-channel MOSFETs for low-side switching.
I tried to design one with the schematic from GreatScott and burned my Arduino Nano accidentally as I didn't have a gate driver and applied 12 V to pin D6 of the Arduino accidentally.
I didn't use feedback as I was just testing. The circuit worked well in buck mode for a while without heating up too much. I burned my Arduino because I didn't have a gate driver.
So the question is:
Should I use an Arduino Nano (max frequency 63 kHz) or an STM32 microcontroller (>63kHz possible, cheaper) to generate the PWM signal? I will be using IRFZ44N or IRF3205 MOSFETs (the latter one is good).
Please suggest a PWM frequency for keeping switch losses low so that I can get away with using less MOSFETs in parallel; if 63 kHz is enough with reasonable inductor cost, I will go for the Nano blindly.
Please also suggest an inductor value and its current capability. Is 6 μH correct at 63 kHz?