Pages: [1]   Go Down
Author Topic: Control AC with Arduino  (Read 1168 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
Operation BC means Operation BLACK CAT
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am very new to arduino.
Need to control AC through a relay.
Can you send a circuit diagram?

I appreciate any answer
Logged

London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6250
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are lots of ways to do what you want but one of the easiest is to use a solid state relay that can be driven directly from the arduino.
Here is one place you can get them from:
https://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=175214
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
Operation BC means Operation BLACK CAT
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I will try it with this relay.

thanks a lot.

are there any schematics using these solution?

any answer highly appreciated.
Logged

London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6250
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

a solid state relay (ssr) was used in this project :http://www.uchobby.com/index.php/2007/10/08/arduino-beer-thermostat/
you can find a schematic on that page.

p.s. be very careful when wiring up to keep the high voltage AC isolated, You don't want to accidently have it contact any part of you  or your arduino  :o
Logged

Greenwood, Indiana
Offline Offline
God Member
*****
Karma: 0
Posts: 508
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm controlling an OMRON with nothing more than a 220 ohm resistor and connected the one digital out to it's + and the - to ground. Polarity is important on the DC Side so find a good datasheet or see if the device is marked. A data sheet will tell you what is needed.

I found out that pulsing CCFLs off and on causes them to commit suicide.

Having a whole string of christmas lights controlled by pin 13 is cool.

« Last Edit: January 05, 2008, 09:54:26 pm by mrmeval » Logged

If it was designed by man it can be repaired by man.

0
Offline Offline
God Member
*****
Karma: 0
Posts: 507
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

would you reccomend wearing thick rubber gloves? or will u get electricute any way?
Logged

Greenwood, Indiana
Offline Offline
God Member
*****
Karma: 0
Posts: 508
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can if you wish use them but the proper way to work with AC is NOT TO WORK WITH THE POWER applied WHILE THE FINGERS or other appendages ARE IN ANY WAY GOING TO TOUCH IT.  Not just a switch or circuit breaker, for this sort of work you unplug it physically and box the plug.

Nice thing about rubber gloves that are not properly cared for is that the AC will find a way to kill you with them on. And the same applies to a wooden pole, a fiberglass pole and to your utility truck. Which can happen if you touch it without carefully walking around it to make sure your *now dead* buddy didn't DROP A POWER LINE ON IT!!! < why? Two or more people on one project means not just the guilty moron DIES.

*ahem*

Consider NOT using them until you have more than a basic understanding of AC safety. A mistake is too permanent though you will be crunchy and good with ketchup that is not good for you. But you'll be a delicacy to dragons that don't like to cook.

I had a nice spiffy guide, deleted it for incompleteness. There's just too much information you need to be safe. Look at the library for books on this. It's not hard to learn enough to be safe but it does take effort. Ask a librarian about looking up books on basic safety when working with electricity and the basic skills for doing normal home electric work.

Quote
would you reccomend wearing thick rubber gloves? or will u get electricute any way?

« Last Edit: January 07, 2008, 10:44:13 pm by mrmeval » Logged

If it was designed by man it can be repaired by man.

Brazil
Offline Offline
Sr. Member
****
Karma: 0
Posts: 443
..., to learn, to know, to make, to share, to l...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Spiros,

look this:

http://www.arduino.cc/playground/uploads/Learning/relays.pdf


And I agree with Mrmeval, since we don't know how much knoeldge has the person that is asking. By the question, it's supposed to be a layperson, and I think all we can give warning about AC is valid.
Logged

PCB Designer

0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
Operation BC means Operation BLACK CAT
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey there,

the circuit is already in function,

Thanks for the invaluable help guys....
I was just very unfamiliar the philosophy of arduino and how it functions...
Things are getting more and more clear the more I read on topics of interest posted in this forum and the arduino playground..
I really apreciate your help mem and adilson...
until the next question....

spiros
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 507
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sounds good smiley any relays from sparkfun you reccomend? or are the ones you linked better?
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Spiros, where are you from (if u don't mind asking you). Your name sounds familiar smiley
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
Operation BC means Operation BLACK CAT
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Greece-whos ther?
Logged

Pages: [1]   Go Up
Jump to: