Go Down

Topic: convert frequency to voltage? help me pls (Read 919 times) previous topic - next topic


Hi people,
Please help me.

I have a frequency from 0% = 6.045KHz to 100% = 23.133 kHz, and i need this convert to the voltage = 0V = 0% and 100% = 5V. It is a gradually in 63 steps.

Can someone of you please help? I would be very grateful to you .. thank you very much


You need to build a circuit where the input frequency triggers a monostable. Then you take the monostable output and smooth it like a PWM signal.


Jan 04, 2012, 11:32 pm Last Edit: Jan 04, 2012, 11:36 pm by DVDdoug Reason: 1
I've never used one, but they actually make frequency-to-voltage chips (example).    With your specific requirements, you'd probably need an op-amp circuit to calibrate & "scale" the output.  (I'm just assuming that the chip will put-out zero-volts at zero-Hz, and you'd need to compensate to get 0V@ ~6kHz, etc.)

Typically, a frequency counter works by counting the number of cycles (or the number of positive zero-crossings, etc) over a period of time.    You first need a comparator circuit to convert your AC input into nice pulses. 

Then, you just need a counter circuit to count the pulses over a fixed-known period of time.  So far, none of this needs a microcontroller.   It's actually better if you can do the counting & timing without relying on software which might not be able to keep-up.    A microcontroller would be helpful for calculating the frequency (if your time reference isn't 1 second) and for storing the result, etc. 

Then, you can use a digital-to-analog convert to make an analog voltage.   (Or, the PWM features of the Arduino.)


Another technique (overkill for this though) is to use a phase-locked-loop (PLL).  You arrange a voltage-controlled oscillator that covers the frequency range linearly for your voltage signal and let the PLL lock onto the input signal.  It's control voltage to the oscillator becomes your analog voltage output...  As I said over-complex ;)

Or put another way a PLL converts a voltage->frequency converter into the inverse frequency->voltage converter (hiding a lot of detail).
[ I won't respond to messages, use the forum please ]


Arrange a simple low pass RC filter to smooth it to DC. Add some offset via op-amp so that the lower voltage results in 0 and some gain so the upper voltage is 5V.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up