I have 900W (150W*6Panels) solar panels and 12V inverter (1000VA) which have inbuilt PWM solar charge controller. The distance between pannels and inverter is around >10m and the wires are 6 sq mm only. At this distance inverter shows upto 40A max current from solar pannels at and the wire gets quite hot and waste a lot of power. (Around 150w I assume) (Panels' voltage ~18V, Voltage at input to inverter ~13-14V Depending on usage)
I tried to reduce the distance to around 4-5m and the inbuilt charge controller has been burned twice(Not surprised since inbuilt controller has to dissipate more power in this case). Luckily warranty covered me. So the Inbuilt charge controller is very inefficient.
So i am getting only max 450-500w and 350-400w average usable power.
I want to design a Buck-Boost converter for Solar Panels so that i can connect panels in series and step down the voltage (15V or so) at inverter's input. (Please dont tell me that the inbuilt controller might burn once again, In future i will upgrade to 24v 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 buck converter. I will happily make a buck converter if you give me a design which uses n channel mosfets at low side switching.
So i tried to design one with the schematic from GreatScott and burned my arduino nano accidently as i didnt have a gate driver and applied 12V to pin D6 of arduino accidently. Link to his instructible page: https://www.instructables.com/id/DIY-BuckBoost-Converter-Flyback/
I didn't use feedback as i was just testing. The circuit worked good in buck mode for a while without heating too much. I burned my arduino because i didn't have a gate driver.
So the question is:
Should i use arduino nano( max frequency 63khz) or STM32 microcontroller(>63khz possible, cheaper) to generate pwm signal? I will be using IRFZ44N or IRF3205 mosfets.(Later one is good) (Please suggest pwm frequency for keeping switch losses low so that i can get away with using less mosfets in parallel, if 63khz is enough with reasonable inductor cost, i will go for the Nano blindly)
Please also suggest inductor value and its current capability. (Is 6uH correct at 63khz)