« Back to DIY

MFOS Micro Sample & Hold

Article by Ray Wilson · Music From Outer Space

A compact sample-and-hold module, small enough to add onto an existing synth, with a built-in clock and a glide control.

The finished Micro Sample and Hold circuit board, fully populated. A green PCB silkscreened "MFOS JUNE 2011 REV 1" and "MICRO SAMPLE & HOLD", with an LF444CN quad op-amp in the center, ranks of color-banded resistors, two blue electrolytic capacitors, yellow film capacitors and a transistor, plus screw terminals marked GND, +12V and -12V down the left edge.
The populated Micro Sample & Hold board.

Introduction

I have revised the Micro Sample and Hold circuit and PCB. You can find documentation for both versions on the site. I am only selling the newer version of the PC board. The documentation related to the older version will remain online to support people who built that version.

The MFOS Micro-Sample & Hold is a nice addition to your voltage controlled sound generator project whether it's a Synth-DIY Experimenter PC Board project, Sound Lab Mini-Synth or large modular synth project. It is as simple as a Sample & Hold can be yet features variable sample rate and output voltage glide (portamento). Its a simple way to add more flexibility to your synthesizer.

Circuit Description

Voltage to be sampled is applied to the input which is one end of R2 (100K linear taper potentiometer). The other end of R2 is grounded and thus the level of signal applied to buffering level shifter U1-A and associated components is controlled by R2. Signals applied to the sample and hold (at point X1) can oscillate about ground but should not exceed about +/-5.5 volts. That is why the design was changed to allow for higher level signals since they can be attenuated by adjusting R2. If the voltage at pin 1 of U1-A goes below ground Q1 can clip the signal and improper sampling results. R1 and R3 comprise a voltage divider which causes the applied attenuated signal to be effectively cut down to half of it's level. This signal is applied to U1-A (1/4 LF444 quad op amp) where it is level shifted and given a gain of about 1.5. Here you can see the comparison of the input signal to the signal at pin 1 of U1-A.

Q1 N-Channel JFET 2N5457 acts like a closed switch (between source and drain) when it's gate is brought slightly above ground by differentiated pulses which are generated by picking off the front end of the rectangle wave output by U1-D sample clock generator. Normally (when no pulse is being applied) the gate of Q1 is held at about -3.6V by resistor network R7, R6 and R13. The voltage that is present at the source of Q1 passes through to the drain and charges (or discharges as the case may be) C1 where the sampled voltage is held until the next pulse hits the gate. U1-B buffers the sample held on the cap. The LF444CN chip has ultra low input current which allows the sample to sit on the cap and be buffered by U1-B for quite some time. With no pulse applied to the gate of Q1 it essentially acts like an open switch (source to drain) and the voltage on C1 does not leak back through the transistor. Buffer U1-B applies gain of about 1.5 and also level shifts the signal so that it approximates the original input level and oscillates about ground.

Sample clock generator U1-D and associated components works as follows. If we begin our analysis imagining that the output of U1-D just went low (to about -11V) we see that the voltage level applied to U1-D pin 12 is about -1.9 volts. C8 (10uF aluminum or tantalum electrolytic capacitor) which had previously been charged (remember U1-D just went low and was high prior to that transition) to well above ground (actually to about 2V) begins to discharge via R15 and 1M Sample Rate adjust pot R16. When C8 discharges to below -1.9 volts (the level on pin 12 remember) the output of U1-D shoots to about +11V causing the voltage at U1-D pin 12 to go to about +1.9V and also causing C8 to charge from it's previous voltage (about -2V) towards V+ via D2 (1N914 high speed diode) and R15 (4.7K resistor). When C8 charges to above the level on U1-D pin 12 (about +2V), U1-D's output shots low again and this cycle continues. The output of U1-D is an asymmetric rectangular pulse wave due to D2 which allows the positive excursion of U1-D to charge C8 without the effect of 1M Sample Rate pot R16. Thus the high time is limited to about 20 mS and the low time depends on the setting of 1M Sample Rate pot R16. The rate of the sample clock can be varied from about 0.33 hertz to about 30 hertz. The sample clock's output is fed through D3 (1N914) and dropped on R18 (100K resistor) and then connected to the jack for the trigger output.

The LF444CN's output has a bit of a hard time driving 2mA through the LED but works fine and is within the op amps operational parameters. Use a high efficiency LED for best results. The circuit drives a general purpose LED just fine IMHO.

How the sample and hold works

Input voltage

Oscilloscope capture: two triangle waves, one yellow and one cyan, riding on top of each other. Cursors read CurA 7.40V and CurB -7.20V for a 14.6V difference, so the incoming signal swings both above and below ground. Both channels at 5V per division, 500 microseconds per division.
Cursors highlight the level of the signal fed to circuit point X1 (yellow). Notice it can oscillate about ground.

Level shifted voltage

Oscilloscope capture of the same pair of triangle waves after level shifting. Cursors now read CurA 9.60V and CurB -400mV, a 10.0V difference, so the waveform sits almost entirely above ground instead of straddling it. Both channels at 5V per division, 500 microseconds per division.
Cursors highlight the level of the signal at U1-A pin 1. Notice it is level shifted to above ground and also attenuated by the resistor divider R1 and R3.

Sampling the level shifted signal

Oscilloscope capture: a smooth yellow triangle wave with a cyan stepped staircase traced over it. The staircase holds each sampled voltage flat until the next sample, producing clear rectangular steps that follow the triangle's slope up and down. Both channels at 2V per division, 50 milliseconds per division.
This is the sampled and held voltage (blue) as it compares to the input voltage (yellow). Notice the level is shfted so that it reflects the actual input signal level.

Low frequency input, high sample rate

Oscilloscope capture: a smooth yellow sine wave with a cyan sampled version drawn almost on top of it. Because the sample rate is high relative to the input, the steps are very small and the staircase tracks the sine closely. Both channels at 2V per division, 200 milliseconds per division.
Another shot of the sampled voltage. This is a lower frequency sine wave and a high sample rate.

The differentiated trigger pulse

Oscilloscope capture: the yellow trace shows a tall narrow spike that rises almost vertically and then decays away exponentially, while the cyan trace below steps from a low level up to a high level at the same instant. Both channels at 5V per division, 100 microseconds per division.
This is the differentiated pulse that is applied to the gate of Q1 via C4 in series with R6. Q1 source to drain is essentially a closed switch during the pulse. The output changes during the pulse as a new sample is acquired.

U1D pins 12 and 13

Oscilloscope capture of the clock oscillator core: a yellow ramp that climbs steadily then drops sharply, and a cyan ramp moving the opposite way, the two crossing repeatedly. Cursors read CurA 1.72V and CurB -2.00V, a 3.72V difference. Both channels at 1V per division, 10 milliseconds per division.
These are the signals observed on the inputs of U1-D. The blue waveform is the charge and discharge of C8 on U1-D pin 13. The yellow waveform is the voltage seen on pin 12. It is a mini-me version of the output seen on U1-D pin 14.

Trigger output versus sampled voltage

Oscilloscope capture with the sample clock on the upper trace in yellow, a repeating train of about ten sawtooth-edged pulses, and the sample-and-hold output on the lower trace in cyan, descending in flat steps with one step per clock pulse. Both channels at 5V per division, 20 milliseconds per division.
This is the trigger output (yellow) and the sampled voltage (blue).

Glide

The output of U1-B feeds the CV Out 1 banana jack (or whatever jack you use) and also is input to the glide circuit comprised of U1-C and associated components. R14 (1M audio taper pot) in series with R12 (220 ohm resistor) is used to adjust the charge and discharge time of C7 (glide effect). The high input impedance of U1-C simply buffers the voltage on C7. The scope photos show the effect of adjusting R14 from no glide to more and more glide.

Oscilloscope capture with glide at minimum: a yellow sine wave with a cyan sampled staircase over it. The steps are sharp and rectangular, jumping instantly from one held level to the next. Both channels at 2V per division, 50 milliseconds per division.
With no glide the output of U1-C steps from level to level just about immediately.
Oscilloscope capture with glide partway up: the same yellow sine and cyan sampled output, but now the vertical edges between steps have become sloped ramps instead of instant jumps, rounding off the corners of the staircase. Both channels at 2V per division, 50 milliseconds per division.
With more glide the voltages slew from one to the other.
Oscilloscope capture with glide high: the cyan output has stopped looking stepped at all and is now a smooth wavy curve that lags behind the yellow sine wave, rounded and shifted later in time. Both channels at 2V per division, 50 milliseconds per division.
With even more glide the voltages slew from one to the other more slowly.

Schematic

The schematic, read out in words

tap to expand / collapse

Ray's schematic is the PDF above. The drawing itself has no words a screen reader can reach, so this is it read out stage by stage. The title block reads Micro Sample And Hold Rev 1, Design by Ray Wilson, Copyright Music From Outer Space 2011. The input is marked with an expected triangle wave between +5V and -5V, and the transistor inset shows a TO-92 package, PN4391, MPF102 or 2N5457, pins G, S, D left to right. Rails are +12V and -12V.

Input stage

  • R2, 100K panel pot: lug 3 to the Input jack, lug 1 to ground, lug 2 (the wiper) to X1.
  • X1 to R1 100K, then R3 100K from that node to ground.
  • The node goes to U1-A pin 3, the non-inverting input. U1 is an LF444, powered +12V on pin 4 and -12V on pin 11.
  • R4 560K from -12V into the U1-A feedback node, with R5 200K in the same network.

Sample switch

  • U1-A pin 1 out to the source of Q1, a 2N5457.
  • Q1 drain to C1, .005uF polystyrene, to ground, and on to U1-B pin 5.
  • Q1 gate: R6 100K and R7 470K, R7 returning to -12V. C4 .001uF feeds the gate from the clock.
  • U1-B pins 5, 6, 7. R8 150K from +12V into the feedback node, R9 75K in the feedback path.
  • U1-B pin 7 goes to CV Out 1 and to X2.

Clock

  • U1-D pins 12, 13, 14. R10 100K to ground in the pin 13 network, R11 470K feedback, R13 100K and D1 1N914 in the pin 13 network.
  • C4 .001uF couples the U1-D output edge to the Q1 gate. C8 10uF electrolytic from the pin 13 node to -12V.
  • R15 4.7K from the U1-D output to X5. D2 1N914 bridges X5 and X6, cathode at X5, anode at X6.
  • R16, 1M panel pot, Sample Rate: lugs 1 and 2 both to X5, lug 3 to X6.
  • D3 1N914 from the U1-D output, anode on the board side, cathode to X7. X7 to the Trigger Output jack, with R18 100K from X7 to ground.
  • R17 10K from the U1-D output to X8. X8 to the LED1 anode; LED1 cathode to -12V. The LED is boxed as Panel Mounted Sample Rate Indicator.

Glide

  • X2 to R14 lugs 1 and 2, tied together. R14 is 1M, labeled Glide. Lug 3 to X3.
  • X3 to R12 220 ohm, then to U1-C pin 10. C7 .1uF from that node to ground.
  • U1-C pins 8, 9, 10 as a follower. Pin 8 to X4, and X4 to CV Out 2.

Supply decoupling

  • +12V rail: C2 .1uF and C3 1uF to ground.
  • -12V rail: C5 .1uF and C6 1uF to ground.

PC Board

Parts placement (silkscreen)

Parts placement drawing for the Micro Sample and Hold board. Component outlines are labeled with their designators: U1 in the center, resistors R1 through R18, capacitors C1 through C8, transistor Q1, diodes D1 to D3, and connection points X1 to X8. Marked "MFOS JUNE 2011 REV 1" at the top and "MICRO SAMPLE & HOLD" at the bottom, with a note that the PCB size is 1.70 inches wide by 2.40 inches high.
Parts placement - PCB is 1.70″ × 2.40″.

Top copper

Top-layer copper trace artwork for the Micro Sample and Hold PC board, shown as black pads and tracks on white.
Top copper artwork.

Bottom copper

Bottom-layer copper trace artwork for the Micro Sample and Hold PC board, shown as black pads and tracks on white.
Bottom copper artwork.

Board Assembly

The diodes are 1N914 (the 1 and 4 are obscured in the image).

The board drawings, read out in words

tap to expand / collapse

Both assembly drawings are the same board, 1.70 by 2.40 inches, silkscreened MFOS JUNE 2011 REV 1 and MICRO SAMPLE & HOLD. The legend view prints designators, the value view prints values in the same places. Read out here so the PDFs are not the only copy.

Pads

  • Along the top edge, left to right: GND, +12V, -12V.
  • Upper row, left group: X7, X5, X3, X6. Upper row, right group: X4, X2.
  • Right edge, mid-board: X1. Bottom edge, left of center: X8.
  • Four corner mounting holes, drawn as crosshair targets.

Where the parts sit

  • Top row under the pads: R18 with R12 below it on the left, R8 with R9 below it on the right.
  • Right edge, top to bottom: R7, X1, R6. Top right: C1 (the large round footprint), C3 (electrolytic, + marked), C2.
  • Left edge, top to bottom: C7, D3, D2, R15, C8 (electrolytic, + marked).
  • Center: U1, the LF444, printed vertically. Right of U1: Q1 (D-shaped footprint), R1, R3, R5, C4. Left of U1: R11, R10, D1, R13.
  • Bottom: C5, C6 (+ marked), R4, X8, R17.

Values in the value view

  • R1 100K, R3 100K, R4 560K, R5 200K, R6 100K, R7 470K, R8 150K, R9 75K, R10 100K, R11 470K, R12 220 ohm, R13 100K, R15 4.7K, R17 10K, R18 100K.
  • C1 .005uF, C2 .1uF, C3 1uF, C4 .001uF, C5 .1uF, C6 1uF, C7 .1uF, C8 10uF.
  • D1, D2, D3 1N914. Q1 2N5457. U1 LF444.

Panel

Here are the essential details to wiring the Micro Sample & Hold to a panel for stand-alone operation. It makes a great modulation source for the Synth-DIY Experimenter Board, the Sound Lab Mini-Synth or your modular synth.

The panel drawing, read out in words

tap to expand / collapse

The PDF is two drawings: an example panel layout on the left and the same panel from behind on the right, every board pad wired to a lug. Read out here.

Front panel

  • Panel legend at the top of the plate: Micro Sample & Hold.
  • Top left: Input Level knob, dial marked 0 through 10. Top right: Sample Rate knob, same dial.
  • Middle left: Voltage Input jack. Middle right: Glide knob. A small unlabeled circle between them is the LED.
  • Bottom row, left to right: Triggers Out, CV Out 1, CV Out 2 jacks.

Rear panel wiring

Lug 1 is the counter-clockwise end of each pot, lug 3 the clockwise end; the drawing prints a CW arrow on each.

  1. Board pad X1 to R2 (Input Level, 100K linear) lug 2, the wiper.
  2. R2 lug 3 to the Voltage Input jack terminal.
  3. R2 lug 1 to panel ground.
  4. Board pad X5 to R16 (Sample Rate, 1M linear) lug 1.
  5. A short jumper from R16 lug 1 to R16 lug 2, tying the wiper to that end.
  6. Board pad X6 to R16 lug 3.
  7. Board pad X2 to R14 (Glide, 1M audio) lug 1.
  8. A short jumper from R14 lug 1 to R14 lug 2, tying the wiper to that end.
  9. Board pad X3 to R14 lug 3.
  10. A second wire from board pad X2 to the CV Out 1 jack terminal. X2 is the buffered sample-and-hold output, so it feeds the glide pot and CV Out 1 from the same net.
  11. Board pad X4 to the CV Out 2 jack terminal.
  12. Board pad X7 to the Triggers Out jack terminal.
  13. Board pad X8 to the LED1 anode, the longer leg.
  14. LED1 cathode, the flat-side leg, to -12V.
  15. Every jack sleeve to panel ground.

Connecting it to the Sound Lab

Here are the essential details to wiring the Micro Sample & Hold to the Sound Lab Mini Synth Plus.

Wiring diagram for connecting the Micro Sample and Hold to a Sound Lab PC board. The board layout is shown with blue callout lines running from labeled tags X1 through X8 to their connection points, and three power leads leaving the right-hand edge - green from GND, red from +12V and black from -12V - annotated "To extra power connections on the Sound Lab PC Board."
Connection points X1–X8, and the three power leads that pick up from the Sound Lab board.

Which power supply

A diyer brought a good point to my attention. The "Micro Sample And Hold" board is marked +/-12V and the Sound Lab is marked +/-9V. His question was "Which should I use?". The answer is... either. Both boards should run off of the same power supply whether it is two 9V batteries wired as +/-9V or a bipolar power supply (in the range of +/-9V to +/-15V). There will be no degradation in the operation of the Micro S&H running off of a +/-9V battery supply. The advantage of using a wall wart powered supply is that with batteries you will get a variation in performance as they discharge whereas the wall wart supply is always the same. So there you have it and sorry for any confusion this caused. That's me uttering "DOH!" by the way. :-)

That paragraph is from the Sound Lab Mini-Synth PLUS page on Ray's site, where the question came up.

Parts List

Qty.DescriptionValueDesignators
1LF444 Quad Op AmpLF444U1
12N5457 N Channel JFET2N5457Q1
31N914 Diode1N914D1, D2, D3
1General Purpose LEDRed LEDLED1
1Linear Taper Potentiometer100KR2
1Linear Taper Potentiometer1MR16
1Audio Taper Potentiometer1MR14
6Resistor 1/4 Watt 5%100KR1, R3, R6, R10, R13, R18
1Resistor 1/4 Watt 5%10KR17
1Resistor 1/4 Watt 5%150KR8
1Resistor 1/4 Watt 5%200KR5
1Resistor 1/4 Watt 5%220 ohmR12
1Resistor 1/4 Watt 5%4.7KR15
2Resistor 1/4 Watt 5%470KR7, R11
1Resistor 1/4 Watt 5%560KR4
1Resistor 1/4 Watt 5%75KR9
1Capacitor Alum. Electrolytic10uFC8
2Capacitor Alum. Electrolytic1uFC3, C6
1Capacitor Ceramic.001uFC4
3Capacitor Ceramic.1uFC2, C5, C7
1Capacitor Polystyrene Radial Leads.005uFC1
4Banana Jacks
3Pot Knobs

All work © Ray Wilson / Music From Outer Space - musicfromouterspace.com. The Micro Sample & Hold, its circuit, text and images are Ray's.

Mirrored and recoded by Mess O' Pedals to preserve Ray's work and keep it accessible. Only the HTML is mine - the design, the words, and the wit are all Ray Wilson's.