This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: Solar MPPT PnO

Part Number: TMS320F28335


I am referring to Solar_F.h for developing my PnO MPPT algorithm on F28335 MCU. In this, I noticed that the code given in Solar_F.h is not matching with the flow chart given in the C28x Solar Library Module User's Guide.

This is the screenshot captured from the User's Guide.

This is the code that was copied from the Solar_F.h

//*********** Function Definition ********//
void MPPT_PNO_F_FUNC(MPPT_PNO_F *v)
{
if (v->mppt_enable==1)
{
if (v->mppt_first == 1)
{
v->VmppOut= v->Vpv - (0.02);
v->mppt_first=0;
v->PanelPower_Prev=v->PanelPower;
}
else
{
v->PanelPower=(v->Vpv*v->Ipv);
v->DeltaP=v->PanelPower-v->PanelPower_Prev;
if (v->DeltaP > v->DeltaPmin)
{
v->VmppOut=v->Vpv+v->Stepsize;
}
else
{
if (v->DeltaP < -v->DeltaPmin)
{
v->Stepsize=-v->Stepsize;
v->VmppOut=v->Vpv+v->Stepsize;
}
}
v->PanelPower_Prev = v->PanelPower;
}
if(v->VmppOut < v->MinVolt) v->VmppOut = v->MinVolt;
if(v->VmppOut > v->MaxVolt) v->VmppOut = v->MaxVolt;
}
}

In the function definition, only DeltaP is compared to increment or decrement Vpv with predefined Stepsize. Whereas the flowchart has outer power comparison and inner voltage comparison for incrementing/decrementing the Vpv.

Thanks