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
      •  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
Test & Tools
  • Technologies
  • More
Test & Tools
Forum Need help measuring 120VAC main
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 12 replies
  • Subscribers 362 subscribers
  • Views 2368 views
  • Users 0 members are here
Related

Need help measuring 120VAC main

totalhighspeed
totalhighspeed over 9 years ago

I built a circuit board to measure 120VAC using a Raspberry PI. I have a bridge rectifier and voltage divider. All using surface mount 1206 parts. Everything works well. When I put a voltmeter on the test point it shows 1/100th the line voltage in DC. However, when I actually look at it on a scope, I see that the ripple is 0 to 1.2v, essentially the full rectified voltage. The filter isn't doing hardly anything.

 

I'm trying to keep is all as small as possible so I'd like to stick with 1206 package for the filtering capacitors especially since the PCB has already been manufactured using these. I did use a through hole for the inductor it has 5mm lead spacing. Can someone recommend what capacitor and inductor values to use to get a cleaner DC(ish) voltage. The voltage divider is before the filtering so using low voltage capacitors are not a problem.

 

I was using 1000pF on C1 and 2200pF on C2 and 100mH for the Inductor. Below is the layout:

 

>-------- L1 ---------->

      |             |

     C1        C2

      |             |

>----------------------->

 

Any help would be GREATLY appreciated...

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 9 years ago in reply to totalhighspeed +3 verified
    First I must give you the quick lecture on mains safety: USE AN ISOLATING TRANSFORMER !!! If your circuit is connected to the mains supply it is not safe. Now to filtering some safe 60Hz AC to measure…
  • D_Hersey
    D_Hersey over 9 years ago +2
    Listen to the nice, smart and pretty folks on this thread and USE A T-FORMER!
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago

    please provide the full schematic, there is no rectifier in this diagram nor the values of the components

     

    We will be better able to help if you provide the full diagram with details

     

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • totalhighspeed
    0 totalhighspeed over 9 years ago in reply to Robert Peter Oakes

    image

    As requested....

     

    The zener (ZD6) is just a 3.3v to keep the Pi's GPIO's safe.

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

    First I must give you the quick lecture on mains safety:

     

    USE AN ISOLATING TRANSFORMER !!!

     

    If your circuit is connected to the mains supply it is not safe.

     

    Now to filtering some safe 60Hz AC to measure it:

    You don't really need a bridge rectifier - a single diode will do.

    Use LTSpice to simulate this kind of stuff - it's free and easy to use.

     

    This is about what you've got but I'm running AC into it just to see the response of the filter - as you can see its not really working at the right sort of frequency at all - you need a filter which lets through almost nothing at 60 or 120 Hz (half or full wave rectifier)

    image

     

    The second circuit is a simplification of yours (but remember you shouldn't build this - if the 1M resistor fails you DIE !!)

    I think this is what you are seeing on your design the problem is that there is almost no filtering going on.

    image

     

    This third go is with some better component values and some simplification:

    image

     

    Now it works - its taking a while to settle and there is some ripple. If you were to use a small transformer to give you a nice safe 10V to work with you could have this design where we can reduce some impedances without risk of death !

     

    image

     

    You can get a faster response at the expense of ripple by reducing the capacitor values or the resistor values. The input impedance of the ADC must be high (> 100k). If  you use  a transformer you may live to improve it.

     

    Have fun, use simulation.

     

    MK

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • michaelkellett
    0 michaelkellett over 9 years ago in reply to totalhighspeed

    First I must give you the quick lecture on mains safety:

     

    USE AN ISOLATING TRANSFORMER !!!

     

    If your circuit is connected to the mains supply it is not safe.

     

    Now to filtering some safe 60Hz AC to measure it:

    You don't really need a bridge rectifier - a single diode will do.

    Use LTSpice to simulate this kind of stuff - it's free and easy to use.

     

    This is about what you've got but I'm running AC into it just to see the response of the filter - as you can see its not really working at the right sort of frequency at all - you need a filter which lets through almost nothing at 60 or 120 Hz (half or full wave rectifier)

    image

     

    The second circuit is a simplification of yours (but remember you shouldn't build this - if the 1M resistor fails you DIE !!)

    I think this is what you are seeing on your design the problem is that there is almost no filtering going on.

    image

     

    This third go is with some better component values and some simplification:

    image

     

    Now it works - its taking a while to settle and there is some ripple. If you were to use a small transformer to give you a nice safe 10V to work with you could have this design where we can reduce some impedances without risk of death !

     

    image

     

    You can get a faster response at the expense of ripple by reducing the capacitor values or the resistor values. The input impedance of the ADC must be high (> 100k). If  you use  a transformer you may live to improve it.

     

    Have fun, use simulation.

     

    MK

    • 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