All About Circuits Forum Building a Frequency to Voltage Converter
 Register Blogs FAQ Members List Today's Posts Search Today's Posts Mark Forums Read

 General Electronics Chat Discussion forum for general chat about anything electronics related, including asking questions about material in the All About Circuits E-book, Worksheets, and Videos.

#1
05-10-2012, 12:38 AM
 pkreth New Member Join Date: May 2012 Posts: 4
Building a Frequency to Voltage Converter

Hello All,

I wanted to start a new post on this topic even though I have seen a number of threads about this. I'd like to see if I could get some specifics on what I would need to do for a little project I have.

The research topic that I'm currently working on in mechanical engineering (that's why I don't know much about electronics) is requiring me to have a piece of circuitry that will give me a DC voltage output that is proportional to the primary oscillation frequency of an incoming signal. Here are the specifics I mentioned earlier. I am working with a high frequency actuator that pulses between 4 and 6 kHz. I would also like to have a frequency resolution of about 5 Hz or so. I have a sensor inside of the actuator that is monitoring the unsteady pressure fluctuations (the actuator is fluidic-based). I need to send this signal in to the circuitry and have a DC voltage come out. I'm using a narrow band pass filter the clean up the signal from my transducer, and I can calculate the frequency easily using my oscilloscope or data acquisition hardware. My issue is that I'm trying to record my actuator's frequency on-the-fly, if you will (or at least as close to instantaneously as I can get).

I know that there are a number of circuit diagrams that use the 555 timer to output a pulse width modulated signal and that you have to use an integrator circuit to have that converted to a DC voltage. I am not really sure what all components I need for this as well as the specifics - does the frequency range I can measure depend on the resistors, capacitors, etc? I have wired up a couple of basic circuits in my day, and I do know how to solder. Being an engineer, I ought to be able to figure out how to wire these up from some circuit diagrams. My problem is that I just don't know all of the components I need and where I can get them (if my local Radio Shack doesn't have any).

Can someone help me out here?

Thanks,
Phil
#2
05-10-2012, 06:32 AM
 crutschow Senior Member Join Date: Mar 2008 Location: L.A. USA Posts: 6,528 Blog Entries: 1

There are a number of devices that directly convert frequency to voltage, such as the LM2907 or LM2917. I suggest you use one of those. Google "frequency to voltage converter" for a number of references.
__________________
Zapper
Curmudgeon Elektroniker
#3
05-11-2012, 01:44 AM
 tpny Senior Member Join Date: May 2012 Location: taipei and new york Posts: 203

What about LM331? Any experience with it in comparison with LM2907? When used for converting < 100Hz to voltage. Thanks!
#4
05-11-2012, 02:06 AM
 t_n_k Senior Member Join Date: Mar 2009 Posts: 4,956

Quote:
 Originally Posted by pkreth I am working with a high frequency actuator that pulses between 4 and 6 kHz. I would also like to have a frequency resolution of about 5 Hz or so.
If you are looking to resolve to ±5Hz in a 2kHz frequency spread that wont be a trivial task. I doubt you could devise a relatively simple 555 timer pwm + integrator based solution that would achieve your stated measurement goal.
#5
05-12-2012, 09:25 PM
 bountyhunter Senior Member Join Date: Sep 2009 Posts: 2,498

I used the XR-4151 in my lab frequency generator to create an analog voltage for the digital display. It is very accurate if you use best quality resitors and caps.

http://www.datasheetcatalog.com/data.../XR-4151.shtml
#6
05-14-2012, 07:52 AM
 atferrari Senior Member Join Date: Jan 2004 Location: Buenos Aires - Argentina Posts: 1,545
Obsolete?

Quote:
 Originally Posted by bountyhunter I used the XR-4151 in my lab frequency generator to create an analog voltage for the digital display. It is very accurate if you use best quality resitors and caps. http://www.datasheetcatalog.com/data.../XR-4151.shtml
Why is that every time I see an XR part I immediately think it is an obsolete one?

They had incredibly good and imaginative ICs in their catalog.
__________________
Agustín Tomás

In theory, there is no difference between theory and practice. In practice, however, there is
#7
05-14-2012, 08:17 AM
 kubeek Senior Member Join Date: Sep 2005 Location: Prague, Czech Rep Posts: 3,492

Quote:
 Originally Posted by pkreth I am working with a high frequency actuator that pulses between 4 and 6 kHz. I would also like to have a frequency resolution of about 5 Hz or so.
The problem I see here is what are you gonna do with the output signal once you have it. If you want to use it in a feedback loop, the delay between change of frequency and change of output might be a problem. Also the resolution you want will be hard to achieve.

Maybe a better solution would be something like a zero-crossing detector and a digital timer which will measure the period and output the voltage via an D/A converter. This way you should get faster response than with analog circuits.
#8
05-14-2012, 11:40 PM
 pkreth New Member Join Date: May 2012 Posts: 4

Hi All,

Thanks for the responses. I have read a significant amount of information and I'm learning how these devices are working. I am indeed trying to control the frequency of an actuator inside of a feedback loop. A slow response (1 < t < 3 sec) would not be ideal as I am trying to use this as quick as possible (~0.5 sec or less) in a feedback loop. The resolution of ~5 Hz is needed because I can only change my frequency over a range of about 500-600 Hz for some cases, and only 50-100 Hz for others. Maybe increasing that to about 10 Hz would be reasonable.

I think I may have found a software-based solution to my problem however. I am using MATLAB's Simulink and dSpace for the control of this actuator. I have devised a counter-based method to do this with a compromise between the resolution I need and the response time of the measurement.

If anyone still has any input on this, I would greatly appreciate it. The less that I have in my control loop, the better - an analog piece of hardware would be better than using my software-based solution. Again, here are the characteristics that I need to have with this sort of device:

Measurable frequency range: 4 - 6 kHz (would be nice if tunable to other ranges like 4.8 - 5.4 kHz or 2 - 4 kHz)
Frequency resolution: ~5-10 Hz
Voltage output: 0-10 VDC
Voltage input: +/- 5 VAC

Thanks again for the help,
Phil
#9
05-15-2012, 09:41 AM
 kubeek Senior Member Join Date: Sep 2005 Location: Prague, Czech Rep Posts: 3,492

The counter method should have almost no delay, something in the range of 1 period should be no problem. If you sampled the signal at say 44khz, then you should be able to get even better precision than 10hz. The only problem will be detecting the zero crossing, can you post a picture of how the raw signal looks like?
#10
05-17-2012, 06:39 PM
 pkreth New Member Join Date: May 2012 Posts: 4

Here's a picture of the raw signal. It comes from an unsteady pressure transducer. I sent it through a bandpass filter with a bandwidth of 1 kHz.
Attached Images
 zoomed_out.jpg (22.9 KB, 27 views) zoomed_in.jpg (40.0 KB, 27 views)

 Tags 555, building, converter, frequency, voltage

 Related Site Pages Section Title Worksheet Analog-to-Digital conversion Worksheet Digital-to-Analog conversion Worksheet Signal modulation Worksheet Performance-based assessments for AC circuit competencies Worksheet Passive integrator and differentiator circuits Worksheet Mixed-frequency signals Worksheet Resonance Textbook Electrical signal types : Digital Communication Textbook Introduction : Digital Communication Textbook Practical considerations of ADC circuits : Digital-analog Conversion

 Similar Threads Thread Thread Starter Forum Replies Last Post G4nd41f General Electronics Chat 0 02-23-2012 10:56 AM jjotjjotjjot The Projects Forum 1 02-12-2012 03:25 AM syee10 General Electronics Chat 17 03-28-2011 04:14 PM deathphoenix99 The Projects Forum 19 10-10-2010 10:43 PM silverscorpion General Electronics Chat 6 07-16-2008 06:48 PM

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Electronics Forums     General Electronics Chat     The Projects Forum     Homework Help     Electronics Resources Software, Microcomputing, and Communications Forums     Programmer's Corner     Embedded Systems and Microcontrollers     Computing and Networks     Radio and Communications Circuits and Projects     The Completed Projects Collection Abstract Forums     Math     Physics     General Science All About Circuits Commmunity Forums     Off-Topic     The Flea Market     Feedback and Suggestions

All times are GMT. The time now is 11:25 AM.