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
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Where to begin?
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 2 replies
  • Answers 1 answer
  • Subscribers 311 subscribers
  • Views 416 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Where to begin?

Former Member
Former Member over 12 years ago

I am a hobbyist working on a home automation design.  I am using this project to learn more about electronics and electricity.  Most importantly, I like my house and I'm not keen on burning it down any time soon.

 

The project I'm designing is a small PCB that I'd like to be able to place at every power socket that has an ethernet jack providing data/power to a uC that can control two 120VAC 15A relays.  I'm hoping to expand it with sensors to track power consumption, provide a 5 and/or 10v USB charger port, etc.. etc..

 

My question is, where is a good place (book preferrably) to learn about the correct way to design higher voltage traces and other PCB best practices.

 

Things I'm curious about are:

 

1) The correct/safe way to mix electronic circuitry and high voltage on the same PCB (minimum distances, trace size, layer guidelines, etc..)

2) Code requirements for a device that is to be placed in a wall

3) Learn more about relays, hall effect (for monitoring circuit?)

 

Thanks!

  • Sign in to reply
  • Cancel
Parents
  • michaelkellett
    0 michaelkellett over 12 years ago

    Hello Ben,

     

    This may sound  a bit patronising but at your state of electronic development the correct way to mix mains and signal voltages on the same pcb is NOT to do it at all.

     

    Use two pcbs - if you google for tear downs on usb battery chargers you'll see that many of the reputable ones made by big name manufacturers still stick with this principle.

     

    There are rules for mains separation but working on your own is not the best place to be when you start out.

     

    I always try to avoid having mains on a board with low level signals because it makes them difficult to debug safely.

     

    The easiest and safest (but not cheapest) way to measure mains current is to use a current sensor (search Farnell for them)  of the type where the mains carrying wire thread through. Current transfomers (search F again) are much cheaper, 2291968 is cheap and safe, the Wurth ones are not so good as you need to break into the mains wire.

     

    If you put the little Murata transfomer on your low level board you can measure mains current safely.

    You could trust your relays to give you isolation but I would prefer to use ones in sockets with screw terminals arranged with the coil on one side and the contacts on the other.

     

    To learn more just Google for things like "pcb design for mains voltages"

     

    Here's a link to get you started http://www.smps.us/pcbtracespacing.html

     

    but please find more sources and follow up the references.

     

    MK

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

    Thank you for the suggestions.  Don't worry about sounding patronising... I'm posting here for a reason and I have no illusions as to my current ability!

     

    Fortunately this is just an educational exercise.  I like to learn topics by picking a problem that I can directly identify with and go from there.

     

    My thought was to design a solution where I could control a socket using a relay and monitor the activity at the socket level.  The relay I was looking at is the Sharp S216S02 which appeared to offer pretty effective isolation.  I have also been reviewing the ACS712 series current sensors but I like the complete isolation (in exchange for bulkiness) that the Murata provides.

     

    The ability to debug a board safely (or just handle it in general) is a critical point in favor of multiple PCBs.

     

    Thanks for the quick response!

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

    Thank you for the suggestions.  Don't worry about sounding patronising... I'm posting here for a reason and I have no illusions as to my current ability!

     

    Fortunately this is just an educational exercise.  I like to learn topics by picking a problem that I can directly identify with and go from there.

     

    My thought was to design a solution where I could control a socket using a relay and monitor the activity at the socket level.  The relay I was looking at is the Sharp S216S02 which appeared to offer pretty effective isolation.  I have also been reviewing the ACS712 series current sensors but I like the complete isolation (in exchange for bulkiness) that the Murata provides.

     

    The ability to debug a board safely (or just handle it in general) is a critical point in favor of multiple PCBs.

     

    Thanks for the quick response!

    • Cancel
    • Vote Up 0 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 © 2026 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