Termite Mk II
A shift-register noise box with clock in and CV out · By Onion Madder · Mess O' Pedals
The Termite with three things added. A CLOCK IN jack, so a sequencer can step it in time. A PATTERN toggle, LONG for the 127-step pattern or SHORT for one of 15. And a CV OUT jack that puts out a stepped voltage with eight levels, for the pitch input of something else. Two chips and a transistor on a 20 by 39 board.
The Termite is a shift register passing bits along on every tick of a clock, with an XNOR gate feeding two of them back in. On paper it gave a really neat range, from clicks to a sort of machine buzz or whine. This board keeps that circuit and its PITCH and VOLUME knobs. With nothing plugged into CLOCK IN it runs from its own clock, the same as before.
What you'll need
tap to expand / collapse
Twenty-seven parts on the board plus the two chips and twenty links, and ten off it.
- 1× CD4015 dual 4-stage shift register, DIP-16 (U1) - spot it: sixteen legs, 4015 printed on top, a notch or a dot at the pin 1 end. It sits left of center, notch toward strip a
- 1× CD4077 quad XNOR, DIP-14 (U2) - spot it: fourteen legs, 4077 printed on top. A 4070 is XOR, not XNOR, and will not do: check the print. It sits right of center, notch toward strip a. Both chips solder straight to the board
- 1× 2N3904 NPN transistor (Q1) - spot it: a small black half-cylinder with three legs and 2N3904 on the flat. It takes the clock input. The leg order varies by maker, so check E, B and C on your part's datasheet before you solder
- 9× 1N4148 diodes (D2 to D10) - spot it: a small orange glass bead with a black band at one end. D3 to D10 stand in a row by U1 and are the lockup reset; D2 stands on end beside Q1 and protects its base
- 1× 1N5817 Schottky (D1) - spot it: fat black body, a gray band at one end. Reverse-polarity protection on the supply; it stands on end at the top of the board, band on strip a
- 1× 2.2K resistor (R4) - spot it: bands red-red-red. It feeds the power LED, which is off the board
- 3× 10K resistors (R1, R7, R12) - spot it: bands brown-black-orange. R1 is in series with the pitch pot, R7 is Q1's load, R12 feeds the lockup diodes
- 1× 47K resistor (R8) - spot it: bands yellow-violet-orange. The biggest step of the CV output
- 4× 100K resistors (R3, R5, R6, R9) - spot it: bands brown-black-yellow. R3 is half of the power-on reset, R5 and R6 sit on the clock input, R9 is the middle step of the CV output. R6 stands on end
- 1× 220K resistor (R10) - spot it: bands red-red-yellow. The smallest step of the CV output
- 2× 1M resistors (R2, R11) - spot it: bands brown-black-green. R2 is part of the clock; R11 stands on end beside U2 and holds the pattern input steady while the toggle is between its two sides
- 3× ceramic caps - spot it: a small disc or blob with a three-digit code. C1 is 1 nF (
102) and sets the clock's range; C2 and C3 are 0.1 µF (104). C2 is the other half of the power-on reset, C3 sits across the supply - 1× 10 µF electrolytic (C4) - spot it: a small can with a stripe down one side; the stripe leg is the negative one. It is the output cap, stripe on strip f, toward VOL_3
- 20× wire links - offcuts of component leg. Two of them, J3 under U1 and J6 under U2, run under a chip's body, so they go in before the chips do
Off the board
- 1× B500K linear pot - pitch, two lugs. Wiper to PITCH_W, lug 3 to PITCH_3. Lug 1 stays empty
- 1× A100K log pot - volume. Lug 3 to VOL_3, lug 1 to GND_P, wiper to the OUT jack tip
- 1× B100K linear pot - CV depth. Lug 3 to CV_3, lug 1 to GND_P, wiper to the CV OUT jack tip
- 1× SPDT toggle, on-on - pattern. Middle lug to PAT_C, one side to PAT_L for LONG, the other to PAT_S for SHORT
- 1× switched jack - CLOCK IN. Tip to CLK_T, the switch lug to CLK_SW, sleeve to GND_P. The switch lug is the one that touches the tip with nothing plugged in. The drawing shows a 3.5 mm jack; a 1/4 inch one wires the same way
- 1× jack - CV OUT. Tip to the CV depth wiper, sleeve to GND_P. 3.5 mm on the drawing, the same as the clock jack
- 1× 1/4 inch jack - the output. Tip to the volume wiper, sleeve to GND_P
- 1× LED - the power light. Long leg to LED, short leg to GND_P. R4 on the board sets its current
- 1× DC jack, 9 V center negative
- An SPST toggle for power, in the positive supply lead between the DC jack and the board's 9V pad. Every build on this shelf gets one, and the drawing above shows it
The layout file is the guide
Like every layout on this shelf, the build document for this one is the file itself: ↓ Download Termite_Mk_II.json - import it into Copper Bottom and the editor gives you the board picture, the placement walkthrough, the electrical checks and a printable build sheet, all from the same file. No coordinates are written out on this page on purpose: the editor is the viewer, and a number typed twice is a number that can drift.
J3 and J6 run under the chips, so solder them before the chips go in. J3 brings the supply down from strip a to U1 pin 16. J6 joins U2's two ground strips, the one at pin 13 and the one at pins 7 and 8.
Copper Bottom reports this one clean. There are two ground pads on purpose: GND takes the DC jack, and GND_P at the other corner takes every panel ground. That is six wires, so run one wire from the pad and chain it from lug to lug across the panel.
The netlist
tap to expand / collapse
My script wrote this from the design, read the copper back and compared the two, and the board was checked against it again in Copper Bottom: every connection it names is on the board and nothing on the board is missing from it. INT is the board's own clock, on its way out to the jack's switch lug; CLKIN, BASE and COL are the clock input, and CLK is the clock the register gets. N1 and OSC are the clock's two gates and JUNC the point where its timing parts meet. FB is the XNOR fed back into the register and TAP the input the pattern toggle moves. Q1B to Q4A are the seven stages of the loop, ONES the point that rises when all seven are high, CV the stepped voltage and QOUT the sound.
The off-board wiring
Thirteen pads leave the board: the supply, the panel ground, the LED, the clock jack, the pitch pot, the pattern toggle, and the two outputs.
| Pad | Goes to |
|---|---|
| 9V / GND | The supply, through the power toggle. DC jack positive, the outer sleeve lug, to the toggle and the toggle to 9V; negative, the center pin lug, to GND |
| GND_P | The panel grounds: all three jack sleeves, lug 1 of the VOLUME and CV DEPTH pots, and the LED's short leg. Same net as GND |
| LED | The power LED's long leg; its short leg to GND_P |
| CLK_T | The CLOCK IN jack's tip |
| CLK_SW | The CLOCK IN jack's switch lug, the one that touches the tip with nothing plugged in. This wire is what makes it run on its own: leave it off and the register only steps from an outside clock |
| PITCH_W / PITCH_3 | The pitch pot's wiper and lug 3. Lug 1 stays empty. If it runs backwards, move the PITCH_3 wire to lug 1 |
| PAT_C | The PATTERN toggle's middle lug |
| PAT_L | The PATTERN toggle's lug for LONG, 127 steps |
| PAT_S | The PATTERN toggle's lug for SHORT, 15 steps |
| CV_3 | CV DEPTH pot lug 3. The wiper goes to the CV OUT jack tip, and lug 1 to GND_P |
| VOL_3 | VOLUME pot lug 3. The wiper goes to the OUT jack tip, and lug 1 to GND_P |
Before you play
Leave CLOCK IN empty, turn the volume down and switch it on: the power LED should light. Then meter with the black probe on the GND pad. These numbers are arithmetic for a 9 V supply, not off a built board.
| Meter | Expect |
|---|---|
| U1 pin 16 | About 8.7 V: the supply minus the drop across D1 |
| U1 pins 6 and 14 | About zero, once the power has been on for a moment |
| U1 pin 9 | About 4.3 V, half the supply: a meter reads a running clock that way. Zero or the full supply means the clock is stopped, or the CLK_SW wire is missing |
| U1 pin 2 | About 4.3 V and wandering: the pattern is running |
Then flip PATTERN: the two sides should be two different patterns, one much shorter than the other. Patch a clock into CLOCK IN, 5 V or 9 V, and it should step in time; unplug it and it runs free again. CV OUT into the CV input of an oscillator should give a stepped melody, with DEPTH setting how wide it goes.
How it works, in one breath
Two of U2's XNOR gates, each with one input grounded so it acts as an inverter, make the clock with C1, R1, R2 and the PITCH pot. By arithmetic it runs from about 900 Hz to about 45 kHz across the knob. That clock does not go straight to the register. It goes out on CLK_SW to the clock jack's switch lug, comes back in on the tip, and passes through Q1 and a third gate, which square it up. Plug a cable in and the switch opens, so the cable's clock takes its place.
U1 is two four-stage shift registers clocked together. The third stage of the second one goes back into the first one's data input, and U2's last gate, the XNOR of that stage and one other, goes into the second one's. PATTERN picks the other: the far end of the first register for a loop of seven stages that repeats every 127 ticks, or its first stage for a loop of four that repeats every 15.
The sound is the last stage, U1 pin 2, through C4 to the volume pot. The CV is three stages of the loop added together through R8, R9 and R10, each resistor about twice the last, so the three bits make eight levels. The one pattern that never moves is all ones. C2 and R3 hold both resets high for a moment at power-on so the loop starts from zeros, and D3 to D9 watch the seven stages: if they are ever all high together, R12 pulls the reset up through D10 and the register clears itself.
Things to try
None of these have been tried.
- Clocked by the Spider. The Spider Sequencer's clock into CLOCK IN, so the pattern steps with the sequence
- CV OUT into the Dragonfly. The stepped voltage into the Dragonfly VCO's CV input, with the Termite clocked slowly
- Slower. C1 at 10 nF (
103) moves the whole clock range down by ten
The same circuit on a breadboard
tap to expand / collapse
Want to hear it before you solder it? This is the layout file above moved onto a half-size breadboard, 30 columns by Copper Bottom's to breadboard button, in 62 steps with exact holes. It is a translation, not a copy: a strip and a breadboard column are different shapes, so every part is placed fresh and the stripboard's wire links are not needed.
Checked by the app, not built by me. Copper Bottom rebuilt the connections from these holes alone and compared them with the stripboard: all 98 terminals land on the same nets. Nobody has built this breadboard version.
Turn the board so the numbers climb left to right. Then A to E is the lower bank, F to J the upper, the top rails are above J and the bottom rails below A.
The semiconductors
| Step | Do |
|---|---|
| 1 | Seat U1 (CD4015) across the center channel, notch to the LEFT: pin 1 in E8, pin 16 in F8. Pins 1-8 run E8 to E15; pins 9-16 run back F15 to F8. Anywhere in the same bank and column is the same point - E8 and A8 are both pin 1. |
| 2 | Seat U2 (CD4077) across the center channel, notch to the LEFT: pin 1 in E19, pin 14 in F19. Pins 1-7 run E19 to E25; pins 8-14 run back F25 to F19. Anywhere in the same bank and column is the same point - E19 and A19 are both pin 1. |
| 3 | Diode D1 (1N5817): top + rail to H8. The SECOND hole named gets the banded end - the cathode. Backwards, nothing works at all. |
| 4 | Diode D2 (1N4148): bottom − rail to B17. |
| 5 | Diode D3 (1N4148): H7 to H11. |
| 6 | Diode D4 (1N4148): I7 to I12. |
| 7 | Diode D5 (1N4148): G7 to G13. |
| 8 | Diode D6 (1N4148): J7 to C12. |
| 9 | Diode D7 (1N4148): C2 to C11. |
| 10 | Diode D8 (1N4148): B2 to B10. |
| 11 | Diode D9 (1N4148): D2 to H14. |
| 12 | Diode D10 (1N4148): A2 to A13. |
| 13 | Transistor Q1 (2N3904): flat face toward you, legs E/B/C left to right into C16, C17, C18. The leg order is the package order, read with the flat face toward you and legs down. Check any device you are unsure of against its datasheet. |
Jumpers
| Step | Do |
|---|---|
| 14 | Jumper: J8 to J19 (U1.16 to U2.14). |
| 15 | Jumper: A15 to the bottom − rail (U1.8 to GND). |
| 16 | Jumper: A16 to the bottom − rail (Q1.E to GND). |
| 17 | Jumper: A20 to the bottom − rail (U2.2 to GND). |
| 18 | Jumper: A25 to the bottom − rail (U2.7 to GND). |
| 19 | Jumper: J20 to the top − rail (U2.13 to GND). |
| 20 | Jumper: J25 to the top − rail (U2.8 to GND). |
| 21 | Jumper: A8 to A21 (U1.1 to U2.3). |
| 22 | Jumper: B21 to J15 (U2.3 to U1.9). |
| 23 | Jumper: B13 to J10 (D10.B to U1.14). |
| 24 | Jumper: A18 to A19 (Q1.C to R7.A). |
| 25 | Jumper: A22 to J9 (U2.4 to U1.15). |
| 26 | Jumper: J22 to J24 (U2.11 to U2.9). |
| 27 | Jumper: A14 to A23 (R8.A to U2.5). |
| 28 | Jumper: B14 to J13 (R8.A to U1.11). |
| 29 | Jumper: E2 to A3 (D10.A to R12.A). |
| 30 | Jumper: B3 to F7 (R12.A to D5.A). |
| 31 | Jumper: tie the top − rail to the bottom − rail at the right-hand end, so they are one rail. |
Resistors
| Step | Do |
|---|---|
| 32 | Resistor R1 (10k): H24 to H27. |
| 33 | Resistor R2 (1M): H21 to H18. |
| 34 | Resistor R3 (100k): C13 to bottom − rail. |
| 35 | Resistor R4 (2.2k): I8 to I5. |
| 36 | Resistor R5 (100k): D26 to D17. |
| 37 | Resistor R6 (100k): A17 to bottom − rail. |
| 38 | Resistor R7 (10k): C19 to H19. |
| 39 | Resistor R8 (47k): C14 to C7. |
| 40 | Resistor R9 (100k): H12 to B7. |
| 41 | Resistor R10 (220k): I11 to D7. |
| 42 | Resistor R11 (1M): C24 to bottom − rail. |
| 43 | Resistor R12 (10k): C3 to G8. |
Ceramics and film
| Step | Do |
|---|---|
| 44 | Cap C1 (1n): H23 to I18. |
| 45 | Cap C2 (100n): I19 to I10. |
| 46 | Cap C3 (100n): G19 to top − rail. |
Electrolytics
| Step | Do |
|---|---|
| 47 | Cap C4 (10u): + leg into C9, − leg into C6. The stripe on the can marks the MINUS leg. Backwards, an electrolytic eventually vents. |
Off-board
| Step | Do |
|---|---|
| 48 | Wire for CLK_SW: into J23. This is where CLOCK IN jack switch lug (touches the tip with nothing plugged in) joins the board. |
| 49 | Wire for CLK_T: into A26. This is where CLOCK IN jack tip joins the board. |
| 50 | Wire for CV_3: into A7. This is where CV DEPTH B100K lug 3 (wiper to CV OUT jack tip, lug 1 to GND_P) joins the board. |
| 51 | Wire for LED: into J5. This is where power LED long leg (short leg to GND_P) joins the board. |
| 52 | Wire for PAT_C: into A24. This is where PATTERN toggle middle lug joins the board. |
| 53 | Wire for PAT_L: into J14. This is where PATTERN toggle lug for LONG (127 steps) joins the board. |
| 54 | Wire for PAT_S: into A12. This is where PATTERN toggle lug for SHORT (15 steps) joins the board. |
| 55 | Wire for PITCH_3: into J27. This is where PITCH B500K lug 3 (lug 1 unused) joins the board. |
| 56 | Wire for PITCH_W: into J18. This is where PITCH B500K wiper joins the board. |
| 57 | Wire for VOL_3: into A6. This is where VOLUME A100K lug 3 (wiper to OUT jack tip, lug 1 to GND_P) joins the board. |
| 58 | Wire for GND_P: into the bottom − rail. This is where panel grounds: every jack sleeve, VOLUME and CV DEPTH lug 1, LED short leg joins the board. |
Power up
| Step | Do |
|---|---|
| 59 | 9V - DC jack + lug (outer sleeve), through the power switch: clip to the top + rail. |
| 60 | GND - DC jack - lug (center pin): clip to the bottom − rail. |
| 61 | Before the battery: meter on continuity. rail to rail reads open, not a short J8 to J19 beeps (U1.16 to U2.14) A15 to bottom − rail beeps (U1.8 to GND) A16 to bottom − rail beeps (Q1.E to GND) A20 to bottom − rail beeps (U2.2 to GND) A25 to bottom − rail beeps (U2.7 to GND) J20 to top − rail beeps (U2.13 to GND) J25 to top − rail beeps (U2.8 to GND) A8 to A21 beeps (U1.1 to U2.3) |
| 62 | Power on. |
Translated by Copper Bottom v1.8.3 from Termite_Mk_II.json.
A shift register with XOR feedback is the classic way to make noise from logic chips, and the two-gate RC clock is out of every CMOS cookbook. The layout and the words are mine, and so is anything wrong with them.