Best way to convert peak voltage to RMS?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    653

    Default Best way to convert peak voltage to RMS?

    At the moment, I have a PIC monitor peak voltage of an AC sine wave-esque signal which varies in frequency up to 1.5khz max (basicallly just sampling an AtoD pin very regularly...if it's greater than the last sample, store it, if it's not greater, then decrement the running stored total by one - kind of like a psuedo capacitor discharging).

    It works, but I'd really rather track RMS voltage ...which is just peak voltage multiplied by .707 .....now bearing in mind it'll have to do this calculation in between all AtoD samples, I'm wondering what the best approach would be .....I'd rather keep this is inside a PIC (vs using didoes, resistors & caps externally into an AtoD pin).

    top tips warmly received.
    Last edited by HankMcSpank; - 1st June 2012 at 16:09.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Best way to convert peak voltage to RMS?

    The RMS value is only .707 of peak if the waveform is a perfect sine.
    With a guitar input, that is not the case.

    Converting to RMS using just an analog input and software takes many many samples per cycle and lots of math.
    It's much easier to use an external RMS to DC convertor like the LTC1966.

    The LTC1966 comes in a TSSOP package, so it's really small.
    DT

  3. #3
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: Best way to convert peak voltage to RMS?

    Hi Darrel,

    this is for an AGC for a guitar sustainer circuit (a sustained/infinite guitar note is pretty much a perfect sine - because it's only the initial pluck that's full of harmonics & they drop out quickly), but I take your point about about the cycles & maths involved...

Members who have read this thread : 2

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