SynthMaker Manual Help Watch Open SynthMaker (opens in a new tab)
Circuits

Logic chips and the 555

A chip is one line of a parts list: its name, its pins in a fixed order, then its part number. The CMOS 4000 series (gates, flip-flops, counters and switches), the 40106's Schmitt inverters and the 555 timer play as their data sheets say, each edge where it falls between two samples.

Pro: anyone can open any module and read its code, parts list or patch. Writing your own, or changing one, needs SynthMaker Pro. Turning its knobs is free.

Sub-octave's schematic: two 4013 flip-flops drawn as boxes with their pins' names, their outs through two pots into a mix and a capacitor to out.
Sub-octave: two 4013 flip-flops under a saw, each drawn as a box with its pins.

1Writing a chip

Write its inputs, then its outputs, then its part number, then its supply:

U1 clk d set reset q nq 4013 supply vdd
  • Its pins in a fixed order: inputs, then outputs. The tables below give each chip's order.
  • nc stands for an output you don't use: no wire, no cost. Every input is joined to something; tie a spare one to gnd or to the supply, as on a board.
  • supply vdd: the point a supply holds from ground (V1 vdd gnd 9V, or its volts a setting). Without it, a fixed 5 V.
  • An input takes no current and is high while it's over half the chip's supply. An output is at the supply's volts or at 0 V.
  • Lines of one part number fill its packages in the order they're written: a 4070's first four lines are one chip, the fifth starts the next.

2Gates

One line is one gate. Two inputs and an output, or for the 4069 one of each:

U1 a b out 4070

Example: XOR ring. A 4070's out is high while its two inputs differ. Two square waves through it give their sum and difference tones, like a ring modulator, rough and bright. A little RC smooths its edges.

XorRing · the parts listListen ↗: XOR Ring (opens in a new tab)
circuit XorRing  setting input: 5 V  setting output: 5 V  in b  U1 in b x 4070  Rx x y 10k  Cy y gnd 3.3n  C1 y out 1u  Rl out gnd 100kend
PartWhat it isIts lineDIP: pins, gate by gateSold as
4001, 4011, 4071, 4081NOR, NAND, OR, ANDa b out14: 1 2 3 · 5 6 4 · 8 9 10 · 12 13 11; VDD 14, VSS 7CD40xxB, HEF40xxB, MC140xxB
4070, 4077XOR, XNORa b out14: as aboveCD4070B, HEF4070B, MC14070B
4069inverter (six)in out14: 1 2 · 3 4 · 5 6 · 9 8 · 11 10 · 13 12CD4069UB, HEF4069UB, MC14069UB

3Flip-flops, counters and shift registers

A flip-flop, a counter or a section of a shift register is one line:

U1 clk d set reset q nq 4013
U2 clk inhibit reset q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 carry 4017
  • 4013, a D flip-flop: q takes d at clk's rising edge; set or reset alone wins. Its nq into its own d halves its clock.
  • 4017, a decade counter: the next output goes high at each rising edge of clk, while inhibit is low; reset sends it back to q0. Its q8 into its own reset counts 0 to 7.
  • 4015 (clk data reset q1 q2 q3 q4) and 4094 (clk data strobe enable q1 … q8 qs qs2): shift registers. Data moves one stage on at each rising edge of clk.

Example: Sub-octave. Two 4013s under a saw: the first changes once each time the saw rises past half the supply, half as often as the note, and the second half as often again. One and two octaves down, mixed in under the saw by two pots.

SubOctave · the parts listListen ↗: Sub-octave (opens in a new tab)
circuit SubOctave  setting input: 5 V  setting output: 5 V  setting sub1: 70%  setting sub2: 45%  U1 in nq1 gnd gnd q1 nq1 4013  U2 q1 nq2 gnd gnd q2 nq2 4013  R1 in m 10k  P1 q1 a gnd 10k sub1  P2 q2 b gnd 10k sub2  R2 a m 10k  R3 b m 10k  Rm m gnd 10k  C1 m out 1u  Rl out gnd 100kend

Example: Baby 8. A 4017 steps through eight pots, one each clock tick; its q8 goes back into its own reset, so it counts 0 to 7. The pot whose step is high sets the voltage out, a Quantiser puts it on a scale, and it plays the oscillator.

Baby8 · the parts listListen ↗: Baby 8 (opens in a new tab)
circuit Baby8  setting output: 5 V  setting step1: 10%  setting step2: 55%  setting step3: 30%  setting step4: 80%  setting step5: 20%  setting step6: 65%  setting step7: 45%  setting step8: 95%  in clock  U1 clock gnd q8 q0 q1 q2 q3 q4 q5 q6 q7 q8 nc nc 4017  P1 q0 w1 gnd 100k step1  P2 q1 w2 gnd 100k step2  P3 q2 w3 gnd 100k step3  P4 q3 w4 gnd 100k step4  P5 q4 w5 gnd 100k step5  P6 q5 w6 gnd 100k step6  P7 q6 w7 gnd 100k step7  P8 q7 w8 gnd 100k step8  R1 w1 sum 100k  R2 w2 sum 100k  R3 w3 sum 100k  R4 w4 sum 100k  R5 w5 sum 100k  R6 w6 sum 100k  R7 w7 sum 100k  R8 w8 sum 100k  U2 gnd sum m opamp  Rf m sum 82k  Ri m n 10k  U3 gnd n out opamp  Ro out n 10kend
PartIts lineDIP: pins in its line's orderSold as
4013clk d set reset q nq14: 3 5 6 4 1 2 · 11 9 8 10 13 12; VDD 14, VSS 7CD4013B, HEF4013B, MC14013B
4015clk data reset q1 q2 q3 q416: 9 7 6 5 4 3 10 · 1 15 14 13 12 11 2; VDD 16, VSS 8CD4015B, HEF4015B, MC14015B
4017clk inhibit reset q0 … q9 carry16: 14 13 15 3 2 4 7 10 1 5 6 9 11 12; VDD 16, VSS 8CD4017B, HEF4017B, MC14017B
4094clk data strobe enable q1 … q8 qs qs216: 3 2 1 15 4 5 6 7 14 13 12 11 9 10; VDD 16, VSS 8CD4094B, HEF4094B, MC14094B

4Schmitt inverters: the 40106

One gate of a hex Schmitt-trigger inverter. Its out is high while its input is low, and it flips at two different voltages, up and down, so a slow wave can't make it chatter:

U1 in out 40106 supply vdd

A resistor from its out back to its input, and a capacitor from its input to ground, make an oscillator: the classic one-chip drone. Its thresholds follow its supply, from the CD40106B's data sheet. U1 in out 14584 is the same gate with the 14584's thresholds, as schmitt is.

Example: One-chip noise box. Six oscillators from one 40106, a pot each. Three drones beat against each other, a slow one and a rhythm push the others' capacitors, and a buzz is pushed until it breaks up.

circuit NoiseBox  setting drone1: 35%  setting drone2: 55%  setting drone3: 22%  setting slow: 50%  setting rhythm: 40%  setting buzz: 50%  setting output: 9 V  R0 in gnd 100k  V1 vdd gnd 9V  # 1, 2, 3: drones (each 10k and a 470k pot, 22n: about 120 Hz to 5 kHz), apart so they beat; 2 wobbled by the slow one through  # 1M (a modulating resistor a few times its timing one bends it; nearer would stall it), 3 kicked at each of 1's edges through  # 470p (a sync-like jolt: its tone tears as 1 and 3 drift)  U1 x1 y1 40106 supply vdd  R1 y1 a1 10k  P1 a1 x1 x1 470k drone1  C1 x1 gnd 22n  U2 x2 y2 40106 supply vdd  R2 y2 a2 10k  P2 a2 x2 x2 470k drone2  C2 x2 gnd 22n  Rm2 y4 x2 1M  U3 x3 y3 40106 supply vdd  R3 y3 a3 10k  P3 a3 x3 x3 470k drone3  C3 x3 gnd 22n  Ck3 y1 x3 470p  # 6: the buzz (4.7k and a 220k pot, 10n), kicked by the rhythm through 2.2n and bent by drone 3 and the slow one until it  # breaks up  U6 x6 y6 40106 supply vdd  R6 y6 a6 4.7k  P6 a6 x6 x6 220k buzz  C6 x6 gnd 10n  Ck6 y5 x6 2.2n  Rx6 y3 x6 470k  Rs6 y4 x6 680k  # 4: slow (10k and a 1M pot, 1u: about 1 to 120 Hz, mostly well under 10)  U4 x4 y4 40106 supply vdd  R4 y4 a4 10k  P4 a4 x4 x4 1M slow  C4 x4 gnd 1u  # 5: a rhythm (10k and a 1M pot, 220n: about 5 Hz up into a growl)  U5 x5 y5 40106 supply vdd  R5 y5 a5 10k  P5 a5 x5 x5 1M rhythm  C5 x5 gnd 220n  # the mix: the three drones and the buzz into a low-pass (about 3.4 kHz), then a capacitor (no DC)  Ra y1 m 47k  Rb y2 m 47k  Rc y3 m 68k  Rd y6 m 56k  Cm m gnd 2.2n  C7 m out 2.2u  R9 out gnd 47kend
PartDIP: in out, gate by gateSold as
4010614: 1 2 · 3 4 · 5 6 · 9 8 · 11 10 · 13 12; VDD 14, VSS 7CD40106B, HEF40106B, MC14106B
1458414: as the 40106MC14584B

5Switches: the 4066 and the 4051

A 4066 switch joins two points while its control is over half its supply, and keeps them apart otherwise. A 4051 joins its common to one of eight channels, the one its three address inputs count in binary:

U1 a b control 4066
U2 a b c inh com x0 x1 x2 x3 x4 x5 x6 x7 4051 supply vdd

A switch's resistance, closed, is its data sheet's: 470 Ω at 5 V, 180 Ω at 10 V, 125 Ω at 15 V. A 4051's signals stay between 0 V and its supply.

Example: 4066 Chopper. A square LFO opens and closes one switch seven times a second: the sound passes, stops, passes.

# One switch of a 4066: the sound passes while ctl is over half its 5 V supply, and stops while it's under. A square LFO# (±5 V at ctl) opens and closes it 7 times a second; the small capacitor softens the clicks.circuit Chopper  setting input: 1 V  setting output: 1 V  in ctl  U1 in a ctl 4066  Rl a gnd 10k  R1 a out 1k  C1 out gnd 100nend

Example: 4051 Sequencer. Three 4013s count the clock in binary; their outputs are a 4051's address, so it plays eight pots in turn, as a Baby 8 does.

# Three 4013s count the clock in binary (each /Q into its own D: half as often as the one before); their Qs are the 4051's# address, so it joins its common to channel 0, 1, 2 … 7 in turn. Each channel is a pot's wiper; a follower plays the one joined.circuit MuxSeq  setting output: 5 V  setting step1: 10%  setting step2: 55%  setting step3: 30%  setting step4: 80%  setting step5: 20%  setting step6: 65%  setting step7: 45%  setting step8: 95%  in clock  V1 vdd gnd 5V  U1 clock n1 gnd gnd q1 n1 4013 supply vdd  U2 n1 n2 gnd gnd q2 n2 4013 supply vdd  U3 n2 n3 gnd gnd q3 n3 4013 supply vdd  U4 q1 q2 q3 gnd com w1 w2 w3 w4 w5 w6 w7 w8 4051 supply vdd  P1 vdd w1 gnd 100k step1  P2 vdd w2 gnd 100k step2  P3 vdd w3 gnd 100k step3  P4 vdd w4 gnd 100k step4  P5 vdd w5 gnd 100k step5  P6 vdd w6 gnd 100k step6  P7 vdd w7 gnd 100k step7  P8 vdd w8 gnd 100k step8  R1 com gnd 1M  U5 com out out opampend
PartIts lineDIP: pins in its line's orderSold as
4066a b control14: 1 2 13 · 4 3 5 · 8 9 6 · 11 10 12; VDD 14, VSS 7CD4066B, HEF4066B, MC14066B
4051a b c inh com x0 … x716: 11 10 9 6 3 13 14 15 12 1 5 2 4; VDD 16, VSS 8 (VEE 7, tied to VSS)CD4051B, HEF4051B, MC14051B

6The 555 timer

A 555, or one half of a 556, is one line: its pins in a fixed order, its part number, and its supply, which it needs:

U1 trig thr reset out dis cv 555 supply vcc
  • trig under a third of the supply starts a pulse: out high, discharge off. thr over two thirds ends it: out low, discharge on. reset low holds out low.
  • out is 1.7 V under its supply while high, 0 V while low. dis is a switch to ground while out is low.
  • cv is the two-thirds point. Leave it nc, or give it a voltage or a capacitor to move both thresholds.
  • An astable (trig and thr joined, a resistor to dis, a capacitor to ground) is an oscillator. A monostable (thr and dis joined) gives one pulse each time it's triggered.

Inside, its divider, its two comparators and its latch are its data sheet's block diagram, with TI's typical figures. Its period doesn't move with its supply, as on a board.

Example: the Atari Punk Console. A 556's first half is an astable; each time its out falls it triggers the second half, a monostable, which can't fire again until its pulse is over. So it sounds on every second, third, fourth or fifth edge, and its pitch falls in steps. Play it, with its knobs and its schematic, on its own page.

circuit SteppedTone  setting pitch: 45%, from 0% to 100%  setting step: 30%, from 0% to 100%  setting output: 5 V  R0 in gnd 100k  V1 vcc gnd 9V  # the astable: 1k, 22k and the pitch pot (up to 500k), 2.2n: about 620 Hz to 14 kHz  R1 vcc d1 1k  R2 d1 p1 22k  P1 p1 c1 c1 500k pitch  C1 c1 gnd 2.2n  U1 c1 c1 vcc a d1 nc 556 supply vcc  # the monostable: triggered by the astable's out, its pulse 1.1 (4.7k + the step pot) 10n: 0.05 to 5.5 ms  R3 vcc p2 4.7k  P2 p2 c2 c2 500k step  C2 c2 gnd 10n  U2 a c2 vcc o c2 nc 556 supply vcc  # out through a capacitor (no DC)  C3 o out 10u  R9 out gnd 10kend
PartDIPIts line's pins (trig thr reset out dis cv)Supply, groundSold as
55582 6 4 3 7 58, 1NE555, LM555, NA555
556146 2 4 5 1 3 · 8 12 10 9 13 1114, 7NE556, LM556, SA556

7Their limits

  • A circuit holds up to 8 logic chips and 4 switches.
  • No propagation delays (a few hundred nanoseconds on the data sheets, a hundredth of a sample), no output resistance, no input protection diodes.
  • A 4069 biased as an amplifier (a resistor from its out to its in) has no linear region here: use an op-amp for that. An RC oscillator of two inverters works.
  • The 555's CMOS versions (7555, TLC555) aren't modelled.

Remember