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 1229 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
  • colporteur
    0 colporteur over 5 years ago

    Well labelling you as crazy is a conjecture at this point. Reducing AC mains to a lower voltage by using a dropping resistor might put you in the running.

     

    I'm not confident I have a full understanding of your circuit. You have a 5VDC powered SPDT latching relay you are going to use/test. You want to tap the AC mains using a dropping resistor, rectify and filter the output to power the relay?

     

    Why not just test the relay contacts for continuity? That can tell you what side is engaged.

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

    Added a pic like what I am talking about.

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

    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 on context.

    Some example things that can usually help (not all may apply):

    1. My Goal in detail

            (e.g. climb a mountain next year)

    2. What things I'm trying to solve

             (e.g. establish how high I am)

    3. What constraints I have

             (e.g. cost, software experience, hardware experience)

    4. What hardware, tools and software I'm using

             (e.g. part number, link to the tools and software)

    5. Diagram or sketch to show the scenario, and what I've attempted

    6. Where I believe the problem lies, or which part I need help on

              (e.g. unexpected response from the part I'm using)

    7. Non-blurry photographs of the set-up (zoomed out for context, and detail), and video if needed

    Non-fuzzy, focussed Overview Photo (for context)

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

    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 on context.

    Some example things that can usually help (not all may apply):

    1. My Goal in detail

            (e.g. climb a mountain next year)

    2. What things I'm trying to solve

             (e.g. establish how high I am)

    3. What constraints I have

             (e.g. cost, software experience, hardware experience)

    4. What hardware, tools and software I'm using

             (e.g. part number, link to the tools and software)

    5. Diagram or sketch to show the scenario, and what I've attempted

    6. Where I believe the problem lies, or which part I need help on

              (e.g. unexpected response from the part I'm using)

    7. Non-blurry photographs of the set-up (zoomed out for context, and detail), and video if needed

    Non-fuzzy, focussed Overview Photo (for context)

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