Need Help On Ac Voltmeter !!


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    boboco's Avatar
    boboco Guest


    Did you find this post helpful? Yes | No

    Default AC voltmeter

    Hi Uludere,

    If you're intending to use a PIC with ADC such as e.g. the 16F87* and you want to measure directly then it's only a question of the frequency you are dealing with and the speed of the PIC oscillator. If you are prepared to do a little circuit work and you don't need to read the frequency you can rectify the AC line and simply measure the DC component, which is easier and requires much less code.

    It's no problem, though. Let me know what range of voltage and frequency you're interested in and I'll send you info.

    Greetings,

    Rob

  2. #2
    Join Date
    Aug 2004
    Posts
    64


    Did you find this post helpful? Yes | No

    Default reading ac

    Hi Rob:
    I have a similar application and I need to read from 0 to 3v ac with a
    16F876 at 4 mhz.
    Any hints.?
    Thanks in advance...
    Ruben de la Pena V.

  3. #3
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Range and frequnecy of AC voltage needed.

    Hi,

    The simplest way to measure a sinewave ac is to rectify the input and do an ADC. Simply multiply the result with 0.707 to get the RMS value. If your input range is too low then some amplification and active rectification through OP-AMPS maybe needed. In fact the gain of the op-amp stage can be calibrated to give you an average dc reading (no need for maths in the PIC side). That is what is done in low cost multimeters. To get best results (depending on the speed needed) do an averaging of the samples collected. Please let me know your exact requirement

    1. Range of Input Voltage

    2. Maximum Frequency

    3. Input waveform

    I will try to help.

    Regards

    Sougata

  4. #4
    Join Date
    Aug 2004
    Posts
    64


    Did you find this post helpful? Yes | No

    Default reading ac

    Mr.Sougata:
    I am trying to read a Current transformer. It gives 1000 to 5 amps transformation. With a proper load resistor it will give you a AC voltage proportional to the current.
    The range will be between 0 and 3 volts. The ac is plain 60 hertz, but the
    rectification reduces the range to .7 to 3 Volts more or less.
    If those voltages correspond to 0 to 1000 amps,I can only read from 233 amps to 1000.
    Any simple way to overcom the rectification loss.?
    Thanks in advance..
    Ruben de la Pena

  5. #5
    lab310's Avatar
    lab310 Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ruben Pena
    Mr.Sougata:
    I am trying to read a Current transformer. ................Any simple way to overcom the rectification loss.?
    Thanks in advance..
    Ruben de la Pena
    You can't. This is not away to measure AC current in full scale.
    In one of my project I had exactly the same problem : measuring AC current using current transformer. First idea was to do ADC sampling from time to time and search for max. value in recent period (to find amplitude for ac signal) and then calculate RMS (0.707*peak). This gave poor results so I used different approach: As mains frequency should be 50Hz+/-1Hz, I used interrupt routine synchronized with zero crossing of current, then trigger another interrupt that waits that you come near the expected peak of current and then start to do ADC searching for max value.
    In my case, timings were 19.6ms for start and 20.6 for finishing ADC's (50 Hz mains). Since you got approx 40us resolution, this would capture a peak value with sufficient accuracy. This actually worked pretty good, I was able to calculate RMS and from there power. Problem was that in real application, AC mains were distorted (not pure sinus wave). I tried to introduce correction factor, but couldn't (you should calculate trig function in interrupt, that was impossible task for me and poor 18F).
    Solution? Well, I finally used specialized (signal->True rms converter) IC. Not a great solution, but it worked and saved me a great time.

    Also, put some bigger resistor so you expand your range from 0-3V to 0-5V or you would get poor resolution.
    Last edited by lab310; - 20th January 2006 at 09:11.

  6. #6
    Join Date
    Apr 2005
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by boboco
    Hi Uludere,

    If you're intending to use a PIC with ADC such as e.g. the 16F87* and you want to measure directly then it's only a question of the frequency you are dealing with and the speed of the PIC oscillator. If you are prepared to do a little circuit work and you don't need to read the frequency you can rectify the AC line and simply measure the DC component, which is easier and requires much less code.

    It's no problem, though. Let me know what range of voltage and frequency you're interested in and I'll send you info.

    Greetings,

    Rob

    I want to measure upto 300 V AC/ 50 Hz. I have 16f877 20 MHz ..
    but any other appliction maybe helpfull !!
    Last edited by uludere72; - 20th January 2006 at 11:07.

Similar Threads

  1. Circuit Diagram for interfacing AC to PIC IC?
    By wellyboot in forum Schematics
    Replies: 3
    Last Post: - 8th March 2008, 19:40
  2. How to read AC mains with an inductance coil
    By KB3BYT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 20th February 2008, 12:02
  3. Ac voltmeter Ampermeter
    By onur in forum General
    Replies: 4
    Last Post: - 27th March 2007, 21:13
  4. Special Offer AC -AC adapter
    By lester in forum Adverts
    Replies: 0
    Last Post: - 9th September 2005, 07:52
  5. Detecting AC current
    By rhino in forum Off Topic
    Replies: 8
    Last Post: - 8th July 2005, 21:31

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts