Measuring p-p of a 1.5v to 12v ac signal?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    29

    Default Measuring p-p of a 1.5v to 12v ac signal?

    I am using a pic12f675 to measure the duration of a prox switch to determine rpm. The signal is a sine wave that increases in frequency and voltage with rpm. I have been running this signal right into an input pin and working just fine for a long time. Sometimes though I need to measure a lower rpm and because the voltage drops below the detectable voltage of the pic, it doesnt see the signal. What is my simplest way of showing a high signal over 1.5 volts and low signal under 1.5 volts? Noise hasnt been a problem with the higher voltages but could arise at the lower voltages?

    Thanks all!

    Jason

  2. #2
    Join Date
    Nov 2007
    Location
    Lake Villa Il.
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    Hi Scoupe,

    A few things to consider;
    Since it looks like the AMPLITUDE of the ac signal is Frequency dependent, ie Lower Frequency means Lower voltage peak on the sine(?) wave, it may be the easiest way to go is with a EXTERNAL comparator or use a op-amp to convert to a square wave. Any good book on intro to op-amps or The ARRL Handbook for Radio Amateurs chapters on op-amps or comparators. You also could try Googling op-amps or comparators.

    Hope this makes things less muddy.
    Tryin to help
    Terry K9HA

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    Hi, Scoupe

    An elegant way would be to compare the instant value of the signal to its mean value ( a R/C ladder with 0.2 or 0.5s time constant is enough ) of your signal ...

    So, the reference level will always being adjusted to your signal level ...

    That is what I use for Light detection ( RPM optical meters ...) to be aware of ambient light

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. capturing signal and outputing it
    By robertpeach in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd September 2009, 16:12
  2. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  4. Measuring AC Power Line
    By sougata in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 13th November 2005, 06:17
  5. AC Signal...
    By Tear in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 9th July 2005, 11:30

Members who have read this thread : 1

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