Frequency to voltage converter using LM331

Description.
LM331 is basically a precision voltage to frequency converter from National Semiconductors. The IC has a hand full of applications like analog to digital conversion, long term integration, voltage to frequency conversion, frequency to voltage conversion. Wide dynamic range and excellent linearity makes the IC well suitable for the applications mentioned above.
Here the LM331 is wired as a frequency to voltage converter which converts the input frequency into a proportional voltage which is extremely linear to the input frequency. The frequency to voltage conversion is attained by differentiating the input frequency using capacitor C3 and resistor R7 and feeding the resultant pulse train to the pin6 (threshold) of the IC. The negative going edge of the resultant pulse train at pin6 makes the built-in comparator circuit to trigger the timer circuit. At any instant, the current flowing out of the current output pin (pin 6) will be proportional to the input frequency and value of the timing components (R1 and C1). As a result a voltage (Vout) proportional to the input frequency (Fin) will be available across the load resistor R4.

Circuit diagram.

frequency to voltage converter using LM331

Notes.

  • The circuit can be assembled on a vero board.
  • I used 15V DC as the supply voltage (+Vs) while testing the circuit.
  • The LM331 can be operated from anything between 5 to 30V DC.
  • The value of R3 depends on the supply voltage and the equation is R3= (Vs – 2V)/ (2mA).
  • According to the equation, for Vs = 15V, R3=68K.
  • The output voltage depends on the equation, Vout = ((R4)/(R5+R6))*R1C1*2.09V*Fin.
  • POT R6 can be used for calibrating the circuit.

Show Comments

30 thoughts on “Frequency to voltage converter using LM331

  1. KimJ

    Hi
    Trying to calculate Vout, but are getting odd numbers.
    I need 2,5V @ 4kHz, keeping R4,R5,R6 as in the Circuit above

    Please help

    Reply
  2. CoKord

    Can this circuit be utilized when the input frequency signal is a square wave? I’m not getting any results from the output at all with this circuit… any suggestions?

    Reply
  3. Anum

    i made the same circuit on proteus. but it is giving me constant 2.8v no matter how much i increase the frequency. Please help.

    Reply
    • Seetharaman

      This IC is designed to operate between 0-1Hz Full Scale to 0-10KHz FS. You have to choose the components R1 C1 R4 R5 R6. Please refer Ti datasheet.

      Reply
  4. D

    Thanks for this circuit! You’re talking about the negative edge on pin6, in the explanation of the circuit. Does this mean that this circuit only function properly with square waves?

    Reply
  5. chandu v v muralee gopi

    sir I am chandu v v muralee gopi, i want the some concept in the Converters because to write the IEEE paper please help me sir.

    Reply
  6. ziad

    hi,

    i’m trying to build the circuit above,
    but i’m confused about the ground connections
    my Fin (input) is 12v AC 50 Hz from transformer,
    supply is 5v dc where an i connet 3 and 4 to ground ac or dc

    thank you

    Reply
  7. KIMOKBH

    Thanks for the circuit.
    An other IC from National semiconductor used as a frequency to voltage converter is LM2907 (8 pins).
    My question is : Can I use the same circuit?
    (input frequency 0-2 kHz / output 0-5 Vdc)
    if not, can you send me the best circuit to use for LM2907 ?
    Regards,,,
    KIMOKBH

    Reply
  8. paresh akbari

    Dear sir.
    i want the complete circuit diagram of the frequency to voltage converter wiht every component specification.
    my requirement id that
    input frequency 0-10kHz.
    output 0-10Vdc.
    please reply on the same if possible.

    Reply
  9. muazin

    why if I use the IC KA331 can not work rangkain not remove the voltage at the foot of 1 IC, while reverensi foot 2 is the voltage. please rock
    data sheets together with the KA331 LM331 data sheet.

    Reply
  10. muazin

    Im why if I use the IC KA331 can not work rangkain not remove the voltage at the foot of an IC tersebu, while reverensi foot 2 is the voltage. please rock
    data sheets together with the KA331 LM331 data sheet.

    Reply
  11. Deepu

    Hi All the equation for R3 – R3= (Vs – 2V)/ (2mA).
    is wrong, the denominator is 0.2mA as per national Semioconductors datasheet.

    R3= (Vs – 2V)/ (0.2mA).

    Regards
    D

    Reply
  12. laith adhary

    dear Jacky

    it was very helpfull idea to use the same v-f as f-v i got wonderfull fast results …although it seems there is a mistake unintentionaly published or at least i didn’t get it well as the R3= (Vs – 2V)/ (2mA) wish leads 15-2/2*10^-3 that’s equal to 6.5 K i thought we can use 6.8K and its nothing near 68K can you explain please?

    regards

    Reply
  13. Sanczos

    Hey,
    I checked circuit above and first question which came to my mind is: It is possible to calculate elements and construct a circuit on LM331 adjustable from low frequencies (50Hz) to highest (for example 40-50kHz)?
    Could you explain what part should be extended in this case or could you give me some tips for it ?
    Thnaks,
    Sanczos

    Reply
  14. twits4twats

    Thanks for the F-V circuit that you have sent to me today, indeed I had lounged for it for so long. Now my question is;
    Does national semiconductor still make IC LM331 ?
    secondly, Is it possible to send me a circuit that improves the power factor in alternating current?, Or the one that can be put in an energy aving plug?
    Thanks;
    Ssekatawa

    Allthough power factor correction circuits are achievable, the usage of them are pretty much illegal unless under license.

    Reply
  15. Ssekatawa Geoffrey(Uganda)

    Thanks for the F-V circuit that you have sent to me today, indeed I had lounged for it for so long. Now my question is;
    Does national semiconductor still make IC LM331 ?
    secondly, Is it possible to send me a circuit that improves the power factor in alternating current?, Or the one that can be put in an energy aving plug?
    Thanks;
    Ssekatawa

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>