DC to AC with transistors?

Thread Starter

Imdsm

Joined Feb 11, 2011
39
Hi there,

I have an arduino and it allows use of voltages from 0 to 5 VDC, but I set myself the task of making it generate AC. Now afaik, if you pump an alternating square wave into a transformer, you'll get a sine wave on the other side? So if I can generate a square wave (-5v to 5v) then I should be able to do it.

I'm just wondering if the below circuit would be able to generate AC properly, or is my understanding of AC flawed?

If I have a circuit and I pulse 5v from one side to the other, and then pulse it from the other end to the first end, back and forth, from A to B then B to A then A to B etc, is that AC? even though it's never really -5v, it's just 5v from the other side?

My idea with the below circuit was to switch Q1 and Q4 on, and Q2 and Q3 off, then Q1Q4 off and Q2Q3 on, 50 times a second for 50 Hz.

Would this work? (I'd try it but I'm at work now lol)



Thanks!
 
Top