element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino relays
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 402 subscribers
  • Views 398 views
  • Users 0 members are here
  • wiring
  • relays
  • electronics
  • arduino
Related

Arduino relays

fechrxy
fechrxy over 12 years ago

So I've seen tutorials on hooking a 3 prong thus 3 wire device to a relay but would like to know hoe to properly wire a 2 prong plug thus 3 wire device to a relay. Please be as detailed as possible. HUGE help thanks!

 

Her is link to the relay I kit I am using:   https://www.sparkfun.com/products/11042

  • Sign in to reply
  • Cancel

Top Replies

  • mcb1
    mcb1 over 12 years ago in reply to ntewinkel +1
    Here is an even better solution. http://www.shop.wattsclever.com/11-usa-socket BTW the one with the footswitch is switching the mains, so not a lot of use for this application. I wrote about it in the…
Parents
  • Former Member
    0 Former Member over 12 years ago

    First, I absolutely agree with Nico, if you are unsure about what you are doing maybe you should not be doing it. People have died from coming into contact with 120 volts AC. From what you are saying, I understand that you want to use a relay to switch something on and off that has a 2 prong plug instead of a 3 prong plug. The 3rd wire is a ground wire, and is not actually connected to the relay. It would be connected to the box the relay is mounted in to tie the ground together. A relay is essentially just a switch, and a switch in a 120v circuit only connects to the "hot" wire. The neutral wire and the ground wire are just connected to each other. Look at this link about wiring up a light switch to understand http://www.indepthinfo.com/wire-switch/switch-light.shtmlhttp://. If the light bulb is your device, you will see for example, a black wire, a white wire and a green wire. The black wire is the wire that will connect to your relay (which is the switch). The white wire and green wire are just carried on through the box the relay is mounted in. If you were swtiching on something like a fan, they often only have a 2 prong plug. The green ground wire is missing. In that case you would just eliminate that wire from the circuit, the device would still function without it, the device would not be grounded however, and it would be much easier for someone to be shocked by touching the fan under certain conditions.

     

    Good luck, and be careful.

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 12 years ago in reply to Former Member

    Here is a safer solution, at not a bad price: http://www.powerswitchtail.com/Pages/default.aspx

    (Not sure if that works with the plugs though)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 12 years ago in reply to ntewinkel

    Here is an even better solution.

     

    http://www.shop.wattsclever.com/11-usa-socket

     

    BTW the one with the footswitch is switching the mains, so not a lot of use for this application.

     

    I wrote about it in the Digispark forum, but the concept is the same for Arduino using a 433MHz Tx and the RCSwitch library.

     

     

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • mcb1
    0 mcb1 over 12 years ago in reply to ntewinkel

    Here is an even better solution.

     

    http://www.shop.wattsclever.com/11-usa-socket

     

    BTW the one with the footswitch is switching the mains, so not a lot of use for this application.

     

    I wrote about it in the Digispark forum, but the concept is the same for Arduino using a 433MHz Tx and the RCSwitch library.

     

     

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube