Hello
I have already posted it here
I will explain it again here..
I am running a H-bridge inverter with sine weighted PWM with a microcontroller.The DC voltage is from Solar PV.
The inverter generated sine frequency is 50 Hz.
I now take the Mains/grid rectified wave to an input capture channel of the MCU.
The inverter is indexed to zero at every rising edge of the input capture event.
Now with this scheme i have a problem of understanding the phase of the input wave, so sometimes the generated wave is 180 deg shifted to i/p mains.
For this i took a half wave rectifier of the mains, so i have confirmed positive wave of the mains sine.
But with this , sometimes a half cycle misses sync.
Is there a simpler way of doing this?
Rather , what is the best method of doing this
All help appreciated
I have already posted it here
I will explain it again here..
I am running a H-bridge inverter with sine weighted PWM with a microcontroller.The DC voltage is from Solar PV.
The inverter generated sine frequency is 50 Hz.
I now take the Mains/grid rectified wave to an input capture channel of the MCU.
The inverter is indexed to zero at every rising edge of the input capture event.
Now with this scheme i have a problem of understanding the phase of the input wave, so sometimes the generated wave is 180 deg shifted to i/p mains.
For this i took a half wave rectifier of the mains, so i have confirmed positive wave of the mains sine.
But with this , sometimes a half cycle misses sync.
Is there a simpler way of doing this?
Rather , what is the best method of doing this
All help appreciated