Offline
Newbie
Karma: 0
Posts: 10
|
 |
« on: November 18, 2012, 03:23:41 am » |
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
Online
Edison Member
Karma: 65
Posts: 2228
|
 |
« Reply #1 on: November 18, 2012, 04:17:35 am » |
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
Offline
Faraday Member
Karma: 130
Posts: 4643
|
 |
« Reply #2 on: November 18, 2012, 11:43:09 am » |
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
Jr. Member
Karma: 0
Posts: 57
|
 |
« Reply #3 on: November 19, 2012, 12:57:11 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 5
Posts: 384
|
 |
« Reply #4 on: November 19, 2012, 05:46:00 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Gales Ferry, CT
Offline
Newbie
Karma: 0
Posts: 29
Always thinking
|
 |
« Reply #5 on: November 19, 2012, 08:08:51 am » |
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
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #6 on: November 19, 2012, 11:59:42 pm » |
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
Sr. Member
Karma: 5
Posts: 384
|
 |
« Reply #7 on: November 20, 2012, 04:02:26 am » |
 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
Online
Edison Member
Karma: 65
Posts: 2228
|
 |
« Reply #8 on: November 20, 2012, 06:54:59 am » |
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
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #10 on: November 21, 2012, 07:31:17 am » |
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
Offline
Faraday Member
Karma: 130
Posts: 4643
|
 |
« Reply #11 on: November 21, 2012, 07:46:13 am » |
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
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #12 on: November 21, 2012, 09:26:15 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15310
Measurement changes behavior
|
 |
« Reply #13 on: November 21, 2012, 10:06:21 am » |
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
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #14 on: November 21, 2012, 10:44:14 am » |
Thank you. I will use a TIP 120 Transistor. 
|
|
|
|
|
Logged
|
|
|
|
|
|