Loading...
Pages: [1] 2 3   Go Down
Author Topic: Activating a 220V AC device using Arduino?  (Read 1347 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, how to trigger a 220V device using the Arduino? I'm thinking of using a NPN Transistor to use as a switch device to turn it on but i do not have experience using it for 220V. I only tried it for 12v devices using TIP 120. So is it okay to use transistor like TIP48 or MJE13006 for this 220V device?
Logged

Valencia, Spain
Offline Offline
Edison Member
*
Karma: 65
Posts: 2237
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, how to trigger a 220V device using the Arduino? I'm thinking of using a NPN Transistor to use as a switch device to turn it on but i do not have experience using it for 220V. I only tried it for 12v devices using TIP 120. So is it okay to use transistor like TIP48 or MJE13006 for this 220V device?

You can't a transistor for AC power, it only conducts in one direction.

Use a relay.
Logged

United Kingdom
Online Online
Faraday Member
**
Karma: 130
Posts: 4645
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You need to use either a mechanical relay, or a solid state relay (SSR), or (if the load current is light enough) an opto-triac.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com

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

If you want to build your own SSR, you can refer http://electroschematics.com/6267/do-it-yourself-solid-state-relay/
Logged

Offline Offline
Sr. Member
****
Karma: 5
Posts: 384
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.arunet.co.uk/tkboyd/ec/ec1mains1.htm
Logged

Gales Ferry, CT
Offline Offline
Newbie
*
Karma: 0
Posts: 29
Always thinking
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey I am  currently in the final stages of my design activating two 115VAC fans using the Arduino. I am using just a simple relay. If your interested I can show you what/how it works.

Lance
Logged

Patience.....

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for your replies. I already bought a relay with maximum of 7A 250VAC. The device is 10W so i don't really need a high ampere for that. Now it is time for testing, can i attach a 220VAC in a breadboard? i only had experienced experimenting in school low dc voltages.
Logged

Offline Offline
Sr. Member
****
Karma: 5
Posts: 384
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-eek Could be a shocking experience and could kill you!!

Sure, test the relay with the arduino, no mains voltage required there, once thats working
then you need to put everything into an insulated box and wire the relay to your device.

High voltage and current must be handled with care
Logged

Valencia, Spain
Offline Offline
Edison Member
*
Karma: 65
Posts: 2237
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can i attach a 220VAC in a breadboard?

No.

Don't even think about having 220VAC wires around your workplace. The only place they should go is in the relay and the relay should be on a long wire while you're developing.

PS: What relay have you got? Make sure it has protection diodes or you can zap your Arduino with it.

https://www.google.es/search?q=relay+protection+diodes+arduino
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for the warning. Thank God i posted first before trying. The relay is NAIS DSP2a - DC12V, 5A and 250VAC. It is a 6 pins relay, i'm only familiar with the 5 pins,can't find anything about the pin configuration of this. This is the datasheet, http://www.datasheetarchive.com/DSP2a-DC12V-datasheet.html#

This is the schematic diagram that i will use.
http://s13.postimage.org/74dhylf13/schematic.png
http://www.flickr.com/photos/knittyissaw/8203039988/in/photostream
« Last Edit: November 20, 2012, 07:32:17 am by Caraanmjv » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I tried the relay and the 220V AC device. It was a success. Now i will try it with the arduino and power transistor. My final question, is it okay to use one dc power supply for the 12V Relay and Arduino? My power supply is rated 1.5A.
Logged

United Kingdom
Online Online
Faraday Member
**
Karma: 130
Posts: 4645
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You don't need a power transistor to drive that relay, just a small signal transistor. It only takes 25mA. Don't forget the diode across the relay coil.

You can use the same 12V power supply to power both the relay and the Arduino.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is my schematic diagram. http://www.flickr.com/photos/knittyissaw/8203039988/in/photostream
Is that okay?

Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 279
Posts: 15314
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is my schematic diagram. http://www.flickr.com/photos/knittyissaw/8203039988/in/photostream
Is that okay?



Just missing a series current limiting resistor between the arduino output pin and the base terminal of the transistor, 500 ohms should work OK. Also be sure there is a wire installed from the negative terminal of the 12vdc power supply to a arduino ground pin if the 12vdc is an external DC power supply. Be sure the transistor is rated for current well above the value drawn by the relay's coil.

Lefty
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you. I will use a TIP 120 Transistor. smiley-grin
Logged

Pages: [1] 2 3   Go Up
Print
 
Jump to: