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
Power & Energy
  • Technologies
  • More
Power & Energy
Forum How to sense mains AC?
  • Blog
  • Forum
  • Quiz
  • Documents
  • Polls
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 8 replies
  • Answers 2 answers
  • Subscribers 287 subscribers
  • Views 1234 views
  • Users 0 members are here
Related

How to sense mains AC?

johninjax
johninjax over 5 years ago

Hey,

I need to know if a latching SPDT relay is on the A or B side. The relay has a 5V control, but it will have 120VAC on it. I was planning to use a half wave rectifier and RC filter with large R to tap off ~5V into a gate. Am I crazy? Is there a better/simpler way?

 

Thanks,

 

John

Attachments:
image
  • Sign in to reply
  • Cancel

Top Replies

  • jw0752
    jw0752 over 5 years ago +5 verified
    Hi John, I recently had a circuit that sensed AC mains using an AC optocoupler. This would allow you to sense the mains without a direct connection to the rest of your circuit. On my board they used a…
  • shabaz
    shabaz over 5 years ago in reply to johninjax +3 suggested
    Hi John, Could you explain your actual goal / use-case? The trouble is, with the small bit of information, any answer may not be appropriate or may not help you, because the answer can be different based…
  • jw0752
    jw0752 over 5 years ago in reply to johninjax +3
    Hi John, You have probably noted that since your latch relay is either one side or the other you really only need to sense one side . If you build a circuit like the one I experimented with it will light…
Parents
  • jw0752
    0 jw0752 over 5 years ago

    Hi John,

    I recently had a circuit that sensed AC mains using an AC optocoupler. This would allow you to sense the mains without a direct connection to the rest of your circuit. On my board they used a 120K resistor in series with the input to the optocoupler and the output of the optocouple was tied into a 5 volt circuit that interpreted it. Here is a link to my blog.

     

    https://www.element14.com/community/people/jw0752/blog/2020/02/22/ac-optocoupler-ltv-814

     

    John

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • johninjax
    0 johninjax over 5 years ago in reply to jw0752

    I like this idea. It keeps the checking if it's on low power and simple. Thank you.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • johninjax
    0 johninjax over 5 years ago in reply to jw0752

    I like this idea. It keeps the checking if it's on low power and simple. Thank you.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • jw0752
    0 jw0752 over 5 years ago in reply to johninjax

    Hi John,

     

    You have probably noted that since your latch relay is either one side or the other you really only need to sense one side. If you build a circuit like the one I experimented with it will light the green light for the sensed side and it will assume the other side and display the red light when the relay is off the sensed side.

     

    John

    • Cancel
    • Vote Up +3 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 © 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