Maybe someone can suggest something. I'm using a PVI5050N octocoupler. Very straight forward. I've attached my circuit, I did exactly this which works great, but only at very low frequency. This allows me to do all the things I want such as control the frequency and duty-cycle with my waveform generator, adjust the 120 Volts down and up (as high as 1400V) as I see fit with my high voltage power supply dial, and provides voltage isolation for the load when the IGBT is in the off state. My load is a 120V lamp.
I scoped the lamp, you'll see at 1Hz it works great, it flashes on and off. But as I turn up the frequency (using my waveform generator) the quality of the wave the IGBT is switching degrades, and its also dropping in voltage and the lamp therefore gets dimmer with anything above 80Hz or so. At 1KHz the circuit for some reason is off, and at 5KHz its just wide open giving me 120V straight DC again.
Does anyone know what I might be able to do to improve my speed here, and waveform integrity at higher frequencies? Is it my 2N222 transistor that is giving me these frequency limitations? The Opto-Coupler? The results are even worse with other IGBT's and MOSFET's I've tried. I suspected it would be slow, but this is terrible. I was hoping to hit 10KHz.
Waveform generator pulsing 2N222 at 5KHz: