Hello
I am correcting the o/p voltage of a PWM sine inverter.
PWM Freq = 8KHz (PWM updates every 125us)
Duty correction loop : 1KHz (duty updates every 1ms)
i have a feedback from the o/p as below
Inverter o/p-->step down transformer-->rectifier-->filter-->ADC
With a DC value received for the o/p AC voltage , i implemented an ON/OFF control loop to control the duty of the PWM as such
I observe that the o/p voltage is not stable and varies within 2Vac
How should i correct this behaviour?
All help appreciated..
Best Regards
I am correcting the o/p voltage of a PWM sine inverter.
PWM Freq = 8KHz (PWM updates every 125us)
Duty correction loop : 1KHz (duty updates every 1ms)
i have a feedback from the o/p as below
Inverter o/p-->step down transformer-->rectifier-->filter-->ADC
With a DC value received for the o/p AC voltage , i implemented an ON/OFF control loop to control the duty of the PWM as such
Code:
if(OpVoltage < SetV)
{
Duty++;
if(Duty>DutyMax)Duty=DutyMax;
}else
{
Duty--;
if(Duty<DutyMin)Duty=DutyMin;
}
I observe that the o/p voltage is not stable and varies within 2Vac
How should i correct this behaviour?
All help appreciated..
Best Regards