The Mini Function Generator is coming along nicely. I successfully prototyped it on a pre-printed PCB from good ol' Radio Shack. Works like a charm. You can see the board on the desk with the "on" indicator lit, oscilloscope probes, and the o-scope trace on the left (the scope is sitting under the desk).
Here's the circuit diagram below. The actual circuit uses LM258N operational amplifiers. I won't pretend that I am some kind of electronic guru. As mentioned previously, the design comes from Circuit Suggest.
When an op amp uses a capacitor as a feedback, it integrates the input signal. IC1B is integrating the square wave output from IC1A. As every person on the street knows* the integral of a square wave is a triangle wave.
The IC1A op amp acts as a voltage comparator, and provides a high output when the input voltage exceeds the reference, and a low voltage otherwise. The triangle wave output is the input to the square wave generator. This waveform's voltage is above the threshold half the time, and below the threshold the other half. So IC1A generates a square wave.
The square wave is the input to the triangle wave generator. It's a bit of a weird chicken and egg sort of problem. From what I've read so far, noise is what initially gets the circuit going. The threshold is set by VR1 which therefore sets the symmetry of the wave form, too.
Anyway, here's the prototype circuit, front and back sides of the board (feel free to critique my iffy soldering skills)
[EDIT 2017] At the time I wrote this BatchPCB was the only option available and it was kind of expensive. Now we all have OSHPark and costs are quite low. This sort of circuit could be built on a 2 square inch board for $10 for a set of three.
Meanwhile, the next step is to mount the prototype above into some kind of small project box with a switch, and battery holder. The board itself is 1-7/8" (45mm) square so it's still fairly compact. I can live with that for the moment...
I'll post again when I get the enclosure finished and continue this series at a later time when I come up with an enhanced version on a custom PCB.
* One of my old math professors used to say this all the time. Bastard.
<< [Part 1 2 3] >>
Post a Comment
Note: Only a member of this blog may post a comment.