Techniques for pulse width modulation (PWM) have been the focus of several years of research work. Detailed observations made about the effectiveness of the different alternatives. In terms of harmonics based on overall research, the natural and asymmetrical PWM with the third harmonic injection technique gives the best results. Even at different topologies of modulation, these methods have several benefits for higher values of modulation ratio. Here, for generating gate pulses of voltage source inverter, the third harmonic injection-based PWM approach has been used. A controller (which can detect the lower order harmonics reflects in the system output) connected to the inverter. It can also inject the required system harmonics.