Hi!
I downloaded new software and uploaded to PCB. All what I changed was to uncomment #define SYS12 and commented #define SYS48, because I use 12V system. When I connected the power supply(15V, 100mA) as solar panel, I noticed high voltage spikes on PV input and after few tries the MOSFET in buck stage went short.
After replacing mosfet and checking if everything is fine using old software ( 2019) with my changes, I also uncommented function "Protection with instantaneous values of variables" and uploaded new January version. This time MOSFET shorted immediately.
Then i messed with buck_lower_treshold cause in new wersion is significantly higher (520 vs 30), but no succes here.
Old software with my changes is working well at high loads (>0.05A charging) but sometimes fails as the current falls to 0.
Can you advice how to configure code correctly?
Also, I noticed some suspicious fragments of code:
I did not notice any resetting of uint16_t maxFlips. It is responsible for speed of duty adjustion. After overflow it will behave quite randomly, but with no bigger effect on MPPT operation.
if(Panel_Power < Prev_Panel_Power) { MPPT_Direction = MPPT_Direction * -1; //Check for steady state maxFlips+=1; if(maxFlips==50) { dutyChange =1; }
Greetings