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 & Partners
    Products & Partners
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
Autodesk EAGLE
  • Products & Partners
  • More
Autodesk EAGLE
EAGLE User Support (English) AC mains on a PCB ?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 107 replies
  • Answers 10 answers
  • Subscribers 193 subscribers
  • Views 21256 views
  • Users 0 members are here
Related

AC mains on a PCB ?

anishkgt
anishkgt over 10 years ago

A total newbie to eagle design and PCB fab. So plase bear with on my silly questions, trying to learn.

 

I have pcb that is schematically completed with the layout. Before i start the fabrication process i need some expert advise if the components placed and the wires routed are ok for the ac mains and the others. The load here will be a transformer. The ac mains are 240VAC and all works well as designed in the schematic on a bread broad except for the load for which MOC3023 is yet to arrive from where i've ordered.

 

 

 

Thanks in advance.

 

image

 

image

  • Sign in to reply
  • Cancel
  • autodeskguest
    0 autodeskguest over 10 years ago in reply to anishkgt

    On 15.09.2016 13:41, George Thomas wrote:

    There are only two pins that has the interrupt that is Pin4 and Pin5. Mentioned here (https://www.arduino.cc/en/uploads/Hacking/Atmega168PinMap2.png). The Pin4 gets the zero crossing from IC4 and send into the pin4 of IC1.

     

     

    Fair enough image

     

    How about swapping space on IC4 and the bridge rectifier and move the

    buzzer away a bit? Imagine pulling the "rope" on this crossover signal

    and push the reg down below IC1, powering it in a vertical line up from

    the middle.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • anishkgt
    0 anishkgt over 10 years ago in reply to autodeskguest

    There are only two pins that has the interrupt that is Pin4 and Pin5. Mentioned here. The Pin4 gets the zero crossing from IC4 and send into the pin4 of IC1.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 10 years ago in reply to anishkgt

    On 15.09.2016 12:53, George Thomas wrote:

    How can the trace be routed without breaking the clearance rules from IC4 to IC1 ? maybe a jumper

     

    What would be the need for the resistor between IC4 and IC1, like a current limiter so it does not short out? Yes, its an ATmega328P Microcontroller.

     

    If he's in control over the firmware, maybe the IO's can be swapped

    around a bit to allow routing to the closer IO's of IC1. I don't know if

    any of the selected IO's have special functions needed.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • anishkgt
    0 anishkgt over 10 years ago

    How can the trace be routed without breaking the clearance rules from IC4 to IC1 ? maybe a jumper

     

    What would be the need for the resistor between IC4 and IC1, like a current limiter so it does not short out? Yes, its an ATmega328P Microcontroller.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to anishkgt

    You've let that track from IC4 to IC1 break all the clearance rules again - the mains to signal clearance is an absolute requirement - no layout that breaks it is acceptable, ever.

     

    Put a resistor between IC4 and IC1 (or a link) if you can't find a better route. Don't be tempted to move the crystal further from IC1 - it's already too far from it. I think your processor is an Atmel AVR - it doesn't say on the schematic  - if so then take care with the crystal connections because AVRs are sensitive to noise picked up on the oscillator pins. I would rotate C7 by 90degrees and move the crystal closer to IC1.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • anishkgt
    0 anishkgt over 10 years ago

    Hi rachaelp

     

    I think I've got the layout to somewhere closer to what you've provided earlier. Could not find a better route for the track from IC4 to IC1

     

    image

    Update:

    The pin on IC1 from IC4 has to be the same as it is an Interrupt pin.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 10 years ago in reply to rachaelp

    Am 14.09.2016 um 11:57 schrieb Rachael:

    Morten Leikvoll wrote on Wed, 14 September 2016 10:51

    Thanks for clearing that up, and shame on me for thinking you were a

    bloke image

     

    It's ok, you are forgiven image

     

     

    I wouldn't forgive this ol' *** image image

     

    --

    Mit freundlichen Grüßen / With best regards

     

    Joern Paschedag

     

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rachaelp
    0 rachaelp over 10 years ago in reply to autodeskguest

    Morten Leikvoll wrote on Wed, 14 September 2016 10:51

    Thanks for clearing that up, and shame on me for thinking you were a

    bloke image

     

     

    It's ok, you are forgiven image

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 10 years ago in reply to rachaelp

    On 14.09.2016 11:39, Rachael wrote:

    Morten Leikvoll wrote on Wed, 14 September 2016 09:46

    Totally off topic, but I suspect Rachael is not a lady image Maybe if the

     

    name was Rachel image Maybe Rachael can confirm him/herself image

     

    Sorry Morten but you are incorrect. Rachael is an alternative spelling for

    the female name Rachel here in the UK, so yes I am a lady image

     

    Best Regards,

     

    Rachael

     

    Thanks for clearing that up, and shame on me for thinking you were a

    bloke image

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rachaelp
    0 rachaelp over 10 years ago in reply to autodeskguest

    Morten Leikvoll wrote on Wed, 14 September 2016 09:46

    Totally off topic, but I suspect Rachael is not a lady image Maybe if the

     

    name was Rachel image Maybe Rachael can confirm him/herself image

     

     

    Sorry Morten but you are incorrect. Rachael is an alternative spelling for

    the female name Rachel here in the UK, so yes I am a lady image

     

    Best Regards,

     

    Rachael

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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 © 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube