Various aspects of home brew inverters


Author Message
poida

Guru

Joined: 02/02/2017
Location: Australia
Posts: 1432
Posted: 03:57am 05 Nov 2018      

  gaspo said   Thanks Poida for the code.

Loaded the 2x_sinewave_pwm into pro-mini and it worked right away. I was surprised how short the code is, almost fits whole on the screen.

Nice soft start and stop of the sine wave. When I stop the sine wave generation (with button) there are still 20Khz varying length pulses (~100-500ns) running on the outputs. Is that intentional?



I'm happy to see someone run it as easily I do.

The 20kHz at "stop" is intentional. If you check both output's duty cycle, you will see they are the same, at about 50%, constant no matter where you look.
This output would, when fed into 2 1/2 bridges, provide the same voltage at the 1/2 bridge output. Since both outputs are the same voltage, no current will flow from one output to the other. These 2 outputs (I call them V1 and V2) are connected to the transformer primary winding. No voltage difference at V1 and V2 means no current through the transformer.

I seems a bit spooky but it works beautifully (in my case anyway...)

wronger than a phone book full of wrong phone numbers