Go Down

Topic: Generating square wave AC (Read 616 times) previous topic - next topic

aoeud

So I was looking into producing square wave AC using the Arduino.  My initial thought was to simply use an inverter on one output and use a switch to control which output is active at a time, but I run into trouble connecting it to ground: I'm suddenly not sure a negative current going into the Arduino's ground is possible without frying something.

Is there any way of doing this?

Thanks

Grumpy_Mike

Do you want a true AC wave. If so then you want a h-bridge, the sort you use for driving motors.

aoeud

Ohh, that's clever.  Thank you.

UnaClocker

Yeah, I've done it with an H-bridge myself. Was trying to ring an old telephone bell with a 20hz AC signal. Never got it to work, but it sure wigged out my monitor while it was on! And it was an LCD monitor, so I totally didn't expect that.
Brian from Tacoma, WA
Arduino evangelist - since Dec, 2010.

Grumpy_Mike

Quote
Was trying to ring an old telephone bell with a 20hz AC signal

You need about 40V to do that.

Go Up