I'd like to do a rainstorm ideas about how to control a Buck Converter as battery charger in order to avoid that it get down into saturation or cut-off mode, can any of the specialist in control present in this webpage give me some ideas?.

The graph is attached in matlab file.

this is the algorithm used P&O

function dc = PyO( V, I, Adc, dcinit)

%#codegen

% Isc=input ('I=');

% Voc=input('V=');

% Adc=3e-4; %variation of duty cycle

persistent dcold Vold Pold Iold

dataType = 'double';

if isempty(Vold)

Vold=0;

Iold=0;

Pold=0;

dcold=dcinit;

end

% dc= dcinit;

P= V*I;

dP=P-Pold;

dV=V-Vold;

dcmax=0.99; 

dcmin=0.01; 

%

if dP == 0

dc=dcold;

return

else

if dP>0

if dV>0

dc = dcold + Adc; %increase V

else

dc = dcold - Adc; %desincrease V

end

end

if dV>0

dc = dcold - Adc; 

else

dc = dcold + Adc;

end

end

if dc>=dcmax || dc=dcmax || dc

More Tony Castillo-Calzadilla's questions See All
Similar questions and discussions