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
    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
  • 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 20538 views
  • Users 0 members are here
Related

AC mains on a PCB ?

anishkgt
anishkgt over 9 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
Parents
  • autodeskguest
    0 autodeskguest over 9 years ago

    Ooops - looks like I accidentally hit the wrong reply button before...

     

    On 03/09/16 14:57, George Thomas wrote:

    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.

     

     

    You have a lot of traces running unnecessarily close to each other and

    to pads. That's fine to low voltage stuff but undesirable when high

    voltages are present.

     

    Your placement of parts results in quite a few traces being quite long.

    That's undesirable in all domains. I particularly note that the trace

    from C7 to R20/21 goes all around the houses, when a simple rotation of

    C7 could reduce it to nothing.

     

    I don't know how much current that BTA08 is expected to drive, but the

    text describing the board as a "spot welder microcontroller" hints that

    you might be looking at several amps. If so, your traces look rather

    thin to me, especially given how long they are.

     

     

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

    Thanks a lot to take the effort to correct me.

     

    I've removed C7 and R21 which are actually used to protect the optocoupler but i don't see they being necessary here and i have rearranged the the remaining too.

    image

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

    On 04/09/16 00:19, George Thomas wrote:

    Thanks a lot to take the effort to correct me.

     

    I've removed C7 and R21 which are actually used to protect the optocoupler but i don't see they being necessary here and i have rearranged the the remaining too.

     

    Definitely better... but I still think you want more "meat" on the

    important tracks.

     

    So, thinking about your design, it seems to me that the crucial part -

    the bit you need to worry about - is the path through the triac and

    between the connectors. That's where ALL the current is flowing - the

    rest is negligible. So, if it were my design, I'd start by placing

    those three components close together for optimal (i.e. very short)

    tracks. Then I'd make those tracks as wide as I could reasonably

    achieve. The rest can then fit around that.

     

    Also, the track from IC5 to R20 may be a low current track but it's at

    mains voltage. I'd rotate R20 to keep that track away from the low

    voltage ground plane.

     

    Would I be right in thinking you're using the triac as a pure switch?

    That is, you're either triggering it as early in the cycle as possible

    or not at all? I only mention it because I have some experience of

    driving a transformer in "light dimmer" mode (PWM of the mains cycle)

    and it's... tricky.

     

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

    Am 07.09.2016 um 11:25 schrieb rachaelp:

    Joern Paschedag wrote:

     

    I don't know how others feel but imo was the layout from 06.09. much better.

    Yes I agree with you, as I said in one of my posts, the earlier layout in general was far better, while the routing to the transformer is improved a little, this one takes a big step backwards with regards the AC/DC isolation barrier. I'm also not happy with clearances between and to the mains voltage traces still and I think the mains connectors probably need to be changed to be a wider pitch to facilitate this.

     

    Best Regards,

     

    Rachael

     

    --

    To view any images and attachments in this post, visit:

    https://www.element14.com/community/message/205279

     

     

    I fully agree with you. Unfortunately there is no grid, so that one

    could measure the distance at the mains connectors and I hope those

    connectors are licensed for the 250VAC image

     

    Problem is, sometimes people don't follow the advice or sometimes the do

    too much image

    Well *** happenz image

     

    --

    Mit freundlichen Grüßen / With best regards

     

    Joern Paschedag

     

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

    Joern Paschedag wrote:

     

    I don't know how others feel but imo was the layout from 06.09. much better.

    Yes I agree with you, as I said in one of my posts, the earlier layout in general was far better, while the routing to the transformer is improved a little, this one takes a big step backwards with regards the AC/DC isolation barrier. I'm also not happy with clearances between and to the mains voltage traces still and I think the mains connectors probably need to be changed to be a wider pitch to facilitate this.

     

    Best Regards,

     

    Rachael

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

    Am 07.09.2016 um 08:28 schrieb George Thomas:

    you mean pinswap, right ? well that would again make the other trace longer, wouldn't it.

     

    --

    To view any images and attachments in this post, visit:

    https://www.element14.com/community/message/205268

     

     

    Yes, but nobody requested you to turn the AC equipment by 90 degrees image

    If you place the eagle file here to where I gave my suggestion 06.09. I

    will change it  to what I meant.

    Imo your layout from 07.09. has decreased. Why do you think are the pins

    of the triac are so far spaced?

    Also on this new layout the optocoupler is awful.Why do you change so

    many things at all.

    Do only change the things people suggesting. I don't know how others

    feel but imo was the layout from 06.09. much better.

     

     

    --

    Mit freundlichen Grüßen / With best regards

     

    Joern Paschedag

     

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

    Am 07.09.2016 um 08:28 schrieb George Thomas:

    you mean pinswap, right ? well that would again make the other trace longer, wouldn't it.

     

    --

    To view any images and attachments in this post, visit:

    https://www.element14.com/community/message/205268

     

     

    Yes, but nobody requested you to turn the AC equipment by 90 degrees image

    If you place the eagle file here to where I gave my suggestion 06.09. I

    will change it  to what I meant.

    Imo your layout from 07.09. has decreased. Why do you think are the pins

    of the triac are so far spaced?

    Also on this new layout the optocoupler is awful.Why do you change so

    many things at all.

    Do only change the things people suggesting. I don't know how others

    feel but imo was the layout from 06.09. much better.

     

     

    --

    Mit freundlichen Grüßen / With best regards

     

    Joern Paschedag

     

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

    Am 07.09.2016 um 11:25 schrieb rachaelp:

    Joern Paschedag wrote:

     

    I don't know how others feel but imo was the layout from 06.09. much better.

    Yes I agree with you, as I said in one of my posts, the earlier layout in general was far better, while the routing to the transformer is improved a little, this one takes a big step backwards with regards the AC/DC isolation barrier. I'm also not happy with clearances between and to the mains voltage traces still and I think the mains connectors probably need to be changed to be a wider pitch to facilitate this.

     

    Best Regards,

     

    Rachael

     

    --

    To view any images and attachments in this post, visit:

    https://www.element14.com/community/message/205279

     

     

    I fully agree with you. Unfortunately there is no grid, so that one

    could measure the distance at the mains connectors and I hope those

    connectors are licensed for the 250VAC image

     

    Problem is, sometimes people don't follow the advice or sometimes the do

    too much image

    Well *** happenz image

     

    --

    Mit freundlichen Grüßen / With best regards

     

    Joern Paschedag

     

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

    Joern Paschedag wrote:

     

    I don't know how others feel but imo was the layout from 06.09. much better.

    Yes I agree with you, as I said in one of my posts, the earlier layout in general was far better, while the routing to the transformer is improved a little, this one takes a big step backwards with regards the AC/DC isolation barrier. I'm also not happy with clearances between and to the mains voltage traces still and I think the mains connectors probably need to be changed to be a wider pitch to facilitate this.

     

    Best Regards,

     

    Rachael

    • 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