« Back to the stripboard layouts

Built and verified on the bench. The same circuit, ref for ref, is my Paper Ring Mod.

XOR Ring Mod

Two inputs, one chip, one knob · By Onion Madder · Mess O' Pedals

Plug two oscillators into it and it smashes them together. An XOR gate is a ring modulator for square waves: its output is high only when its two inputs disagree, and that is the same thing as multiplying two square waves, so out comes the sum and the difference of the two pitches. This is that gate with a front end on each input that squares up whatever you feed it, so it is drawn to take the outputs of the other builds on this site straight from their jacks. One CD4070 does all of it, on a 10 by 17 board.

The XOR Ring Mod layout drawn as a stripboard diagram, titled XOR Ring Mod, 17 by 10 stripboard. Ten orange copper strips run left to right, lettered a to j, with 17 numbered columns. The CD4070 chip, U1, stands in the middle on strips b to h, with a short diagonal link drawn across its body. Left of the chip: R1 standing on strips a and b, the pink electrolytic C3, R8 lying on a slant from strip a to strip c, C1, R2 and R3 standing across the strips, and a long blue link running down to strip j, where the pink electrolytic C4 lies over a cut. Right of the chip: R7 and R6 standing up, R4 and R5 across the strips, D1 standing between strips b and f, C5 near the top right, C2 near the bottom right, and two blue links down the strips. Gray X marks show ten cut holes. Off-board parts sit in the margins with a wire to each pad: input jacks JK2 and JK3 on the left wired to IN A, IN B and GND3; the DC jack DC1 and the power toggle SW1 at the top right on GND and +9V; the output jack JK1 and the A100K volume pot POT1 at the right on GND2 and OUT. Below, the same board drawn from the solder side, mirrored, every solder point a dark dot. A parts list and an OFF THE BOARD block run underneath.
The board as Copper Bottom draws it: the component side on top, then the same board from the solder side with the columns running the other way, so a cut is the same hole in both pictures. The panel parts sit around the board with a wire to every pad, and the OFF THE BOARD block at the bottom says where each leg goes.
The XOR Ring Mod built on a small piece of stripboard on a dark bench, one 14-pin chip across the middle among resistors, two small electrolytics and yellow ceramic capacitors. Yellow and blue wires run from one edge to two jacks with pink patch cables at the left, a blue and a black wire run to a third jack with a pink cable at the right, and green, white and blue wires reach a pot at the top right. Orange wires run to a blue toggle, there is a DC jack at the left edge, and behind it all sit a black synth box with silver knobs and a jack marked OUT, and the corner of a practice amp.
Built and working, on the bench in October 2026, with both inputs and the output on patch cables and the volume pot on flying leads.

Built, and heard

Built on stripboard in October 2026, and it sounds great: exactly how you expect a ring mod to sound, kind of robotic and outer spacey.

What you'll need

tap to expand / collapse

Fourteen parts on the board plus the chip and five links, and six off it.

  • 1× CD4070 quad XOR, DIP-14 (U1) - spot it: fourteen legs, the number printed on top, a notch at one end. A CD4030 is the same thing under an older number. Three gates are used and the fourth is tied off. It solders straight to the board
  • 1× 1N5817 Schottky (D1) - spot it: fat black body, a gray band at one end. Reverse-polarity protection on the supply; it stands between strips b and f, band up on strip b, the chip's supply strip
  • 4× 100K resistor (R1, R4, R7, R8) - spot it: bands brown-black-yellow. R7 and R8 make half the supply; R1 and R4 hang each input on it
  • 2× 10K resistor (R2, R5) - spot it: bands brown-black-orange. One in front of each input gate
  • 2× 1M resistor (R3, R6) - spot it: bands brown-black-green. The feedback that gives each input its snap. Do not swap them with the 100Ks
  • 3× 100nF ceramic (C1, C2, C5) - spot it: printed 104. C1 and C2 couple the two inputs; C5 sits across the supply
  • 2× 10 µF electrolytic (C3, C4) - spot it: a small can with a stripe down one side; the stripe leg is the negative one. C3 holds the half supply still, stripe to ground. C4 is the output cap, lying along strip j with its stripe to the right, toward OUT
  • 5× wire links - offcuts of component leg. One of them, J5, runs diagonally under the chip's body, so it goes in before the chip does

Off the board

  • 1× A100K log pot - volume. Lug 3 to OUT, lug 1 to GND2, wiper to the output jack tip. The output is a full-swing square wave, so you will want it
  • 3× 1/4 inch jacks - in A and in B on the left, out on the right. Input tips to IN A and IN B, both input sleeves to GND3; output tip to the volume wiper, sleeve to GND2
  • 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 XOR_Ring_Mod.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.

Both inputs come in on the left and the output leaves on the right, the way the jacks go on my boxes. Input B reaches the left edge along strip i, and the output reaches the right edge along strip j. J5 is the one link under the chip: it carries input B's squared signal from pin 11 across to pin 6, diagonally between the pin rows, and it has to be soldered in before the chip.

The netlist

tap to expand / collapse

My script wrote this from the design and the board was checked against it in Copper Bottom: every connection it names is on the board and nothing on the board is missing from it. GA and GB are the two input gates, QA and QB their squared outputs, and MIX is the XOR of the two. Pin 10 is the spare gate's output and is left empty, which is why it is not listed.

The off-board wiring

Six pads leave the board: two inputs and their ground, the output and its ground, and the supply.

PadGoes to
IN A / IN BThe two input jack tips. Anything with a wave on it: the output of another build, a synth, a drum machine. Turn the source up; see below for how loud
GND3Both input jack sleeves
OUTVolume pot lug 3. The wiper goes to the output jack tip, and lug 1 to GND2
GND2Volume pot lug 1 and the output jack sleeve. Same net as GND
+9V / GNDThe supply, through the power toggle. DC jack positive to the toggle and the toggle to +9V; negative to GND

How it works, in one breath

An XOR gate only understands high and low, so each input first goes through a gate of its own that decides which one it is. C1 blocks whatever DC the source carries, R2 feeds pin 1, and R1 hangs pin 1 on half the supply, which R7 and R8 make and C3 holds still. R3 runs from that gate's output back to its input, and because the gate does not invert, the feedback pushes the way the output already went: by the arithmetic the input has to move about 0.4 V past the middle before the gate flips, and the same back the other way. That is what makes a ragged or slow wave come out as a clean square, and it is why an unplugged input sits still instead of buzzing. Input B gets the same treatment from R5, R4 and R6 on pins 13 and 11.

The two clean squares meet in the third gate, pins 5 and 6, and its output on pin 4 is high only when they disagree. Flipping one square wave in step with another is multiplying them, so what comes out is the sum and the difference of the two pitches and their harmonics, and neither original on its own. C4 takes the DC off, and the volume pot sets how much leaves. The fourth gate does nothing: pin 8 is tied to ground and pin 9 rides along on input B's signal, so neither of its inputs is left floating.

The front end wants a swing of roughly 1 V each way from the middle, about 2 V peak to peak, to switch reliably. That is arithmetic, and the CD4070's own switching point is only promised to land somewhere in the middle third of the supply, so a particular chip may want more. The builds on this site put out a square wave as big as their supply, so with their volume up there is plenty.

Things to try

None of these have been tried on this board. They are the obvious knobs.

  • Two of the other builds into it. A Mosquito 556 on one input and a Dragonfly VCO on the other, and sweep one while the other holds still
  • One input only. The empty side sits still, so you hear the other input squared up, which is a fuzz of sorts on its own
  • Close pitches. Two oscillators nearly in tune give a difference tone that is slow enough to hear as a beat
  • Change the snap. R3 and R6 at 470K make the inputs harder to flip, so a quiet source drops out; at 2.2M they flip more easily and a slow wave may chatter at the edges

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 33 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 49 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.

XOR Ring Mod drawn on a half-size breadboard, 30 columns by Copper Bottom. The picture shows each part and jumper between lettered and numbered holes, with the rails along the top and bottom. Every hole in it is written out in the steps below.
XOR Ring Mod on a breadboard, generated from the layout file. The steps below name every hole in it.

The semiconductors

On a breadboard: The semiconductors
StepDo
1Seat U1 (CD4070) across the center channel, notch to the LEFT: pin 1 in E8, pin 14 in F8.
Pins 1-7 run E8 to E14; pins 8-14 run back F14 to F8.
Anywhere in the same bank and column is the same point - E8 and A8 are both pin 1.
2Diode D1 (1N5817): top + rail to H8.
The SECOND hole named gets the banded end - the cathode. Backwards, nothing works at all.

Jumpers

On a breadboard: Jumpers
StepDo
3Jumper: A3 to E5 (C3.A to R8.A).
4Jumper: A9 to the bottom − rail (U1.2 to GND).
5Jumper: A14 to the bottom − rail (U1.7 to GND).
6Jumper: J9 to the top − rail (U1.13 to GND).
7Jumper: J14 to the top − rail (U1.8 to GND).
8Jumper: A10 to A12 (R3.B to U1.5).
9Jumper: A13 to J11 (U1.6 to U1.11).
10Jumper: I11 to J13 (U1.11 to U1.9).
11Jumper: tie the top − rail to the bottom − rail at the right-hand end, so they are one rail.

Resistors

On a breadboard: Resistors
StepDo
12Resistor R1 (100k): C8 to C5.
13Resistor R2 (10k): B4 to B8.
14Resistor R3 (1M): D8 to D10.
15Resistor R4 (100k): H10 to B5.
16Resistor R5 (10k): I7 to I10.
17Resistor R6 (1M): G10 to G11.
18Resistor R7 (100k): I8 to D5.
19Resistor R8 (100k): A5 to bottom − rail.

Ceramics and film

On a breadboard: Ceramics and film
StepDo
20Cap C1 (100n): C2 to C4.
21Cap C2 (100n): H5 to H7.
22Cap C5 (100n): G8 to top − rail.

Electrolytics

On a breadboard: Electrolytics
StepDo
23Cap C3 (10u): + leg into C3, − leg into the bottom − rail.
The stripe on the can marks the MINUS leg. Backwards, an electrolytic eventually vents.
24Cap C4 (10u): + leg into C11, − leg into C7.

Off-board

On a breadboard: Off-board
StepDo
25Wire for IN A: into A2.
This is where input A jack tip - any oscillator, at or near full volume joins the board.
26Wire for IN B: into J5.
This is where input B jack tip - the other oscillator joins the board.
27Wire for OUT: into A7.
This is where volume pot lug 3 joins the board.
28Wire for GND2: into the bottom − rail.
This is where volume pot lug 1 and the output jack sleeve joins the board.
29Wire for GND3: into the bottom − rail.
This is where both input jack sleeves joins the board.

Power up

On a breadboard: Power up
StepDo
30+9V - DC jack +, through the power switch: clip to the top + rail.
31GND - DC jack - (center pin, 9V center-negative pedal supply): clip to the bottom − rail.
32Before the battery: meter on continuity.
rail to rail reads open, not a short
A3 to E5 beeps (C3.A to R8.A)
A9 to bottom − rail beeps (U1.2 to GND)
A14 to bottom − rail beeps (U1.7 to GND)
J9 to top − rail beeps (U1.13 to GND)
J14 to top − rail beeps (U1.8 to GND)
A10 to A12 beeps (R3.B to U1.5)
A13 to J11 beeps (U1.6 to U1.11)
I11 to J13 beeps (U1.11 to U1.9)
33Power on.

Translated by Copper Bottom v1.7.29 from XOR_Ring_Mod.json.

An XOR as a ring modulator for square waves is the standard Lunetta trick and belongs to everyone who has ever built one, and a gate with feedback as a Schmitt trigger is out of every CMOS cookbook. Putting both on one chip, and the layout, are mine and so is anything wrong with them.