Electronics > Open Source Hardware

A School Project: A Function generator problems

(1/2) > >>

I'm doing a school about design an analog  function generator but using a encoder and dac for the voltage and offset and amplitude controlling (It is too easy to use a dss and all that components are in smd).
Online I've found a lot of vco (voltage controlled oscillator) that given a square wave as output frequency and this is ok for me.
My function generator have also a sinusodial output, how I can generate a voltage controlled oscillator that give out a sine wave?
I've found nothigh about sine wave vco online but only some circuit but nothigh that work as I want, there were complex circuitS but there is no equation that describe the output frequency in term of the input voltage.
Anybody have some idea how to design  sine wave VCO?
For my project I have decide to have a frequency range between 0Hz - to 1MHz.
Best regards, Alberto Vaudagna

Typically, analog function generators use a triangle VCO. This is easy: use two voltage-controlled current sources, one to charge, and the other to discharge, a capacitor. A comparator with hysteresis steers the current, with the help of a diode bridge, to select between charge and discharge, and the capacitor will then give a triangle waveform with a frequency that is a function of the capacitance and the current source control voltage.

This video by Alan Wolke is a good tutorial on this method:

Once you have a triangle wave, National Semiconductor AN-263 has two circuits to convert that to sine. Just Ctrl-F and search for "breakpoint shaper" and "logarithmic shaping".

The square wave can obviously be derived directly from the comparator output.

If you don't need a triangle, you can of course use a true sine VCO and use a comparator to get a square from that. I think that app note should have some things of interest to you if you want to follow that route as well.

Up near 1 MHz, the distortion on the triangle wave caused by the capacitance of the diode bridge does become a bit tricky to manage, so if you don't need a triangle output, you might consider the pure sine route. That might get you a lower-distortion sine wave, as well.

Thank you.

My most important suggestion to you is to spend a lot of time with a breadboard. There are a lot of "traps for young players" building a wide-range VCO, even if it is simple in theory. Don't just bang on a SPICE simulator.

--- Quote from: vaualbus on October 01, 2013, 08:27:07 pm ---For my project I have decide to have a frequency range between 0Hz - to 1MHz.

--- End quote ---

Just caught this..... 0 Hz?? There's no such thing as 0 Hz. How low do you really want to go? 1 Hz? 0.0001 Hz? 1 cycle per week? It really does affect the types of oscillator you can use.

ya I suppose to say 1Hz.


[0] Message Index

[#] Next page

There was an error while thanking
Go to full version