#163 VariableSawtoothGenerator
Test a variable-geometry, fixed-amplitude sawtooth wave generator circuit
Notes
This is an interesting sawtooth wave generator that’s described in an excellent w2aew tutorial.
It uses two independently-controlled BJT current sources to sequentially charge and discharge a capacitor - generating the rising and falling slopes of the wave.
A comparator with hysteresis is used to switch the current sources.
Components and Limitations
I’m using an LM324 op-amp for the comparator and buffer circuits. This is just borderline acceptable, since it is not rail-to-rail and so the resulting votage differential in the hysteresis cycle is only about 1V. It also seems to be contributing some degree of crossover distortion.
1N4148 diodes are recommended, but I did try replacing them all with standard 1N4007 rectifers. While the circuit still functioned, with 1N4007 diodes there was more distortion of the waveform - I think primarily because of the lower switching speed.
Results - LM324
The following trace is with a 5V supply. It’s a bit hard to read because I crammed 4 measurements in one. The inputs are all DC coupled with no offset to the centre 0V line. comparator output swings from ~0.7V to ~3.7V (showing how far from rail-rail the LM324 is!) *
Channel | Colour | Probe Point | Measurement |
---|---|---|---|
CH1 | yellow | SAWOUT | saw output |
CH2 | blue | SQUAREOUT | comparator output / left of diode bridge, swinging from ~0.7V to ~3.7V |
CH3 | red | P3 | charging current source |
CH4 | green | P4 | comparator voltage threshold |
LF347N
Replacing the LM324 with LF347N, circuit loses dynamic range but still produced a relatively undistorted wave.
TL074CN
Replacing the LM324 with TL074CN, circuit loses some dynamic range and has significant crossover distortion.