Hey Guys,
i am trying to make a flyback inverter to go from 40 VDC to apx 40 VAC 60Hz. I understand that I will basically need to charge and discharge the transformer at various intervals in order to make an AC envelope and then use an LC filter to get my signal.
The issue I am having is currently in simulation - I am trying to simulate this operation using a comparitor circuit. The idea is that as soon as the voltage in the transformer ( or a parallel inductor not sure?) hits a given voltage level (of the voltage that we want to see) the switch will turn off... here is what I have:
Am I going about this all wrong? How about when I go to make my PCB? I will maybe need to use a micro controller to do something like this:

i am trying to make a flyback inverter to go from 40 VDC to apx 40 VAC 60Hz. I understand that I will basically need to charge and discharge the transformer at various intervals in order to make an AC envelope and then use an LC filter to get my signal.
The issue I am having is currently in simulation - I am trying to simulate this operation using a comparitor circuit. The idea is that as soon as the voltage in the transformer ( or a parallel inductor not sure?) hits a given voltage level (of the voltage that we want to see) the switch will turn off... here is what I have:
Am I going about this all wrong? How about when I go to make my PCB? I will maybe need to use a micro controller to do something like this:


