Design
Most analog S&H circuits use a JFET to gate the input signal to a holding capacitor. That voltage is then buffered to the output. Examples include
- Older S&H from Rene Schmitz: schmitzbits.de
- YuSynth noise module: yusynth.net
- Moritz Klein's version on Youtube and via Erica Synths
The second version from Rene Schmitz uses the LF398, and I thought, "why not try something different?"
Feature Ideas
These are just some ideas I jotted down (from an older design note).
- Internal clock and external trigger (rising edge)
- Add swing on the internal clock? two bit counter + JFET in parallel with extra series R? Not implemented.
- Glide/smooth output
- Exponential (RC low pass). Yes, implemented a 12dB/dec Sallen-Key low pass filter (LPF).
- Linear? An integrator with variable gain? Not implemented.
- Offset / output level control: use mixer/attenuver (added one here).
- VC clock: probably better to use an external clock on the trigger.
Sallen-Key Low Pass Filter
The cannonical form of the second order LPF is
The Sallen-Key LPF has transfer function
such that
Assuming unity gain of K=1 and letting R_1 = R_2 = R,
For a maximally flat (Butterworth) filter, Q = \frac{1}{\sqrt{2}} when C = C_1 = 2C_2. This results in \omega_0^2 = \frac{1}{2R^2C^2} or f_0 = \frac{1}{2\pi\sqrt{2}RC}.
By choosing R_1 = R_2 = R, the cutoff frequency can be controlled with a dual-gang potentiometer. Choose a "log" (A) taper to obtain a more natural tuning. In this design, I've set C_1 = 22\mu\mathrm{F} and C_2 = 10\mu\mathrm{F}, resulting in a very slight resonnance (Q > 1/\sqrt{2}). The minimum value for R is 1\mathrm{k}\Omega, which results in cutoff frequencies ranging from approximately 50mHz to 5Hz.
References
- R. Shaumann and M. van Valkenburg, "Design of Analog Filters," Oxford University Press (2001)