Pages: [1]   Go Down
Author Topic: Generating square wave AC  (Read 566 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 74
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 627
Posts: 34220
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Jr. Member
**
Karma: 0
Posts: 74
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ohh, that's clever.  Thank you.
Logged

Tacoma, WA
Offline Offline
Full Member
***
Karma: 4
Posts: 192
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Brian from Tacoma, WA
Arduino evangelist - since Dec, 2010.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 627
Posts: 34220
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Was trying to ring an old telephone bell with a 20hz AC signal
You need about 40V to do that.
Logged

Pages: [1]   Go Up
Jump to: