element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Polls Using a Relay in Projects?
  • 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
Engagement
  • Author Author: Former Member
  • Date Created: 5 Jan 2015 10:13 PM Date Created
  • Last Updated Last Updated: 11 Oct 2021 3:01 PM
  • Views 1046 views
  • Likes 1 like
  • Comments 8 comments
Related
Recommended

Using a Relay in Projects?

I love the idea of using a 5v micro controller to control my 110v 10 amp outlets. My only concern is the high voltage frying my board and burning my house down. Any thoughts?

  • danger
  • power
  • arduino
  • frying
  • relay
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • jw0752
    jw0752 over 10 years ago +6
    Hi Zachary, Without knowing your experience level I would definitely approach this with caution and the fact that you ask the question indicates that this might not be a good idea. The board you show has…
  • Former Member
    Former Member over 10 years ago +3
    You are wise to be careful before connecting to 110v AC, with a voltage source capable of supplying many amps. It CAN be done... but do be careful. If you have a fire, your household insurers may well…
  • Former Member
    Former Member over 10 years ago +2
    Thank you all I have learned a great deal and know ill be safe with relays. mcb1 paulellison @johnwiltrout
  • dougw
    dougw over 8 years ago

    This is a very standard requirement and there are many ways to do it safely.

    By all means learn how to be safe with high voltage, but don't let it prevent you from realizing your dreams.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 9 years ago

    You might want to look at the schematic and design layout of the Power SwitchTail II for ideas, as well as what TK Boyd presented.  I do a fair amount of controlling mains current, and typically use these.  Very simple - three inputs: power, ground, and optional signal.  It would likely be too expensive to use eight of them, at $20/unit; but it would show you how to safely isolate mains power up to 15A.  I would wonder how well the above board would even work with 10A on eight small terminal blocks shoved that close together with variable loads.  Sounds like a recipe for a fubar from all the induction.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • peterjcs23
    peterjcs23 over 9 years ago in reply to Former Member

    I voted for "Stop..." but it should be stop and "...Think" because you can switch mains from a microcontroller if it is done right.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago

    You are wise to be careful before connecting to 110v AC, with a voltage source capable of supplying many amps.

     

    It CAN be done... but do be careful. If you have a fire, your household insurers may well worm out because of the "unapproved" (i.e. no UL approval) devices knowingly hooked up.

     

    Loved your picture the "don't do it" option!

     

    I've written more thoughtfully on the subject at...

     

    Controlling dangerous electricity for the hobbyist- ec1mains1

     

    And if you are connecting your own relays, instead of a commercial "relay board", be sure you know about and incorporate "The Diode"....

     

    Relays- especially "the diode"- An introduction to using them with microprocessors- relay

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago

    Thank you all I have learned a great deal and know ill be safe with relays. image mcb1  paulellison  @johnwiltrout

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago

    Zachary

    One of the biggest issues for any 'mains control' is providing isolation between the 'Mains' voltage (high voltage) and the 'control' voltage (low voltage).

    While the design appears to have optical isolation between the input and the relay coil, there is very little 'physical' isolation between the coil voltage (supply or common) and the controlling voltage pins. (single header)

     

    Unless the board has a cut in the fibreglass around the contacts, under some circumstances the mains voltage can 'track over' to the relay coil pcb trace or control traces.

    image

    (433Mhz controlled mains outlet showing the cut in the pcb for mains isolation  ..... photo by me)

     

    Not only does this render the optocoupler useless, potentially you could have mains voltage present on a control wire (or supply or ground).

    It's unlikely to trip or blow any circuit breakers as the controlling device is usually fed from a floating power supply.

     

    These relay boards also lack an earth plane which can provide a current path for any 'fault currents' to trip the circuit breaker.

    Often the pcb trace size is not adequate for 10A, which may simply cause the trace to part/blow or at worst cook the pcb (modern pcb designs should not support combustion ... but do you really know.)

     

    So the reality is they are only suitable for controlling low voltages in their present configuration DESPITE THE RELAY RATING.

    So heed the advise given by jw0752 and gadget.iom

     

     

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • gadget.iom
    gadget.iom over 10 years ago in reply to jw0752

    John Wiltrout wrote:

     

    If I had to use this board for this purpose I would put individual 24 volt contactor relays on each outlet line in proper code enclosures and use the relay shield to switch the 24 volts needed to drive the contactors.

    Fully agree! This is how I ALWAYS approach interface with mains electricity. I would highly recommend keeping the relay interface card in a separate enclosure and running 24V cables into your contractor housings.

     

    This drastically reduces the chances of a stray mains wire from making contact with your arduino/touchscreen/fingers.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 10 years ago

    Hi Zachary, Without knowing your experience level I would definitely approach this with caution and the fact that you ask the question indicates that this might not be a good idea. The board you show has relays rated at 10 amps but they are very marginal for switching house lines. What is to keep someone from plugging in a hair dryer or a space heater? The design of the board also brings the switch main lines into close proximity. Here in the USA mains are split off a power feed with 110 volts on either side of a neutral. This means that the 110 lines are out of phase with each other and actually represent a voltage of 220 volts across them. Unless you are careful you could easily have 220 volts on the relay board separated by a very small distance and held by a header that isn't designed for this purpose. The board looks like it would be fun to experiment with but the voltages that are appropriate would best be under 50 volts and isolated from the mains. If I had to use this board for this purpose I would put individual 24 volt contactor relays on each outlet line in proper code enclosures and use the relay shield to switch the 24 volts needed to drive the contactors. This would be safe and you could increase the current handling above the level of the circuit breakers on the individual lines.

    John

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • More
    • Cancel
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