« Back to DIY

Dead-Bug Hive

A six-oscillator CD40106 drone box, point-to-point · By Onion Madder · Mess O' Pedals

One chip, six oscillators, an unholy amount of drone. The CD40106 is a hex Schmitt-trigger inverter - six little logic gates that, with one resistor and one cap each, each turn into a square-wave oscillator. Wire up all six, mix them together, and you've got a whole hive of detuned tones beating against each other. Built dead-bug, of course — legs flattened out flat and every part soldered straight to them. No breadboard, no PCB.

This is build two in the dead-bug series, after the Dead-Bug Mosquito. Same rules, same vape-pack power - and if you've seen the MFOS Weird Sound Generator I mirror, you've already met this chip: the WSG runs on 40106 oscillators too.

⚠ Before you start tap to expand / collapse

Hot iron, obviously. 350°C of don't-grab-that. Ventilate, don't breathe the flux smoke, park it in its stand every time.

CMOS has one hard rule: never leave an unused gate input floating. Any inverter you don't turn into an oscillator, tie its input to ground. Floating CMOS inputs draw current, buzz, and can even latch up. It's in Step 3 - just don't forget it.

Mind polarity on the electrolytic output cap and your power source - backwards electrolytics bulge or pop.

If you power it from a salvaged lithium pack, the usual cell cautions apply - see Do You Want to Survive the Vapocalypse?

How it works, in one breath

A Schmitt-trigger inverter flips its output opposite to its input - but with hysteresis, meaning it snaps high and low at two different thresholds instead of one. Hang a resistor from an inverter's output back to its input, and a capacitor from that input to ground, and the cap endlessly charges and discharges between the two thresholds. That's a relaxation oscillator - a square wave, no crystal, no fuss. The resistor sets the pitch (bigger = slower), the cap sets the range (bigger = lower). The 40106 gives you six of these in one 14-pin chip, so you can stack six voices and let them fight.

What you'll need

New to the parts? Each line notes how to spot it - the printed marking, the package, or the polarity clue.

  • A CD40106 integrated circuit held in a clip, its black 14-pin DIP body printed CD40106 with the notch at one end marking pin 1.CD40106 (a.k.a. CD40106B / MC14106) hex Schmitt inverter, 14-pin DIP - spot it: CD40106 printed on top; a notch marks pin 1
  • A single potentiometer standing on the bench, splined shaft, threaded bushing and three solder lugs.1M pots for playable pitch (with a ~1K–10K series resistor each so they never hit zero). Spot it: pots are marked B = linear taper (use these), value after
  • Three ceramic capacitors held side by side: a blue disc printed 101J 3KV and two smaller yellow ones printed 102 and 103.Ceramic capacitors, one value per voice - I run the whole ladder: 101 (100pF, highest whistle), 102, 103, 104, 105, 106 (10 µF, slow LFO clicks). Six voices, six values, and the spread is what stops it sounding like one fat buzz. Spot it: the printed code is the value - and they don't have to match each other to work. My 101 is a big blue disc marked 101J 3KV simply because that's the only 100pF I had; it sits next to little yellow ones and behaves identically. Read the number, ignore the packaging.
  • A single yellow ceramic capacitor with its two silver legs, printed 104.0.1 µF ceramic - supply decoupling (printed 104)
  • Three colour-banded resistors suspended between two strips of tape, their long leads running top to bottom.Mixing resistors, ~10K, one per voice you use - bands brown-black-orange, or meter them; non-polar
  • An orange cylindrical electrolytic capacitor held in a clip, printed 1 uF 50 VDC, with two long silver legs.Mixing capacitors, one per voice - 1 µF non-polarised (NP / bipolar) is the one to reach for. Audio swings both ways, so a cap that doesn't care about direction is the safe choice here. Spot it: NP caps are usually printed NP or BP on the body
  • A small cylindrical electrolytic capacitor with a stripe down one side marking its negative leg.10 µF electrolytic - output DC-blocker. Spot it: a little can; the stripe marks the minus leg, longer leg is +
  • A panel-mount output jack with its solder lugs.Output: a small speaker + an LM386 amp (an 8-pin DIP printed LM386) for real volume — that's the Dead-Bug Hornet — OR a jack to an amplifier - see Step 7
  • A small SPST toggle switch with its threaded bushing, nut and two solder lugs.SPST toggle for on/off - a 2-lug switch
  • The power source for the build, wired with leads ready to connect.Power source - at least two vape cells in series (7.4V; three gives you 11.1V), or a 9V battery
  • A 5 mm LED with its two legs, the longer leg marking the positive anode side.LED + a series resistor (~1K–10K) as a power indicator. Spot it: the longer leg is + (anode), and the flat spot on the rim marks the negative side
  • The square tin enclosure used for this build.Enclosure preferably grounded, if not, then copper tape for grounding
  • Solid-core hookup wire, soldering iron, cutters, multimeter
Everything for the build laid out on a workbench. On the left, lengths of orange and yellow hookup wire, a few small resistors, a row of orange electrolytic capacitors, and a battery pack wrapped in red tape. Along the bottom, the ceramic voice capacitors - one large blue disc beside a group of small yellow ones - an LED, and the black CD40106 chip. On the right sits the square tin with all six potentiometers already mounted through the lid and wired together with blue and green pairs, plus a red toggle switch and the output jack.
Everything, plus the tin already populated. Note the one blue cap sitting among the yellows — different package, same job.

Quick reference - the whole build on one card

Pinout plus every connection at a glance. The steps below walk through it slowly; this is the bench card.

“A” = input, “Y” = output. Notch marks pin 1. Keep the chip label-up and this map reads exactly as you see it — no mirroring, no mental flipping.

Power (first)

  • Pin 14 → V+ (3–15V; vape pack ideal)
  • Pin 7 → ground
  • 0.1 µF across pin 14 ↔ pin 7
  • Every unused input → ground

One voice (repeat per inverter)

  • Output → input via R (1M pot + 1K series) - pitch
  • Input → ground via C (0.1µF low … 0.001µF high; 1µF = LFO)
  • Output → to mixer

The six voices - in / out

  • V1 → in 1 / out 2
  • V2 → in 3 / out 4
  • V3 → in 5 / out 6
  • V4 → in 9 / out 8 (right side flips!)
  • V5 → in 11 / out 10
  • V6 → in 13 / out 12

Mix → out

  • Each output → 10K → shared mix bus
  • Mix bus → output
  • Mix bus → 10µF (+ to bus) → jack / LM386 → ground

Step 1 Presolder everything, then populate the panel

Do this before the chip ever comes out of its bag. Every joint you make on a loose part at the bench is a joint you don't have to make later, one-handed, inside a tin, next to five wires that are already in the way.

Tin every leg and every wire end first. A tinned lug and a tinned wire join with a single touch of the iron — no third hand, no holding a wire steady while you chase it with solder.

A stripped yellow hookup wire held up beside a clip, its exposed end freshly tinned so the strands are fused into one solid silver tip.
Tin the wire ends. Fused strands push into a joint instead of splaying out.
A potentiometer held in a helping-hands clip with one of its three solder lugs freshly tinned, and a colour-banded resistor held just below it with its own lead tinned, ready to be joined.
Pot lug tinned, resistor lead tinned. Both sides ready before they ever meet.
The same potentiometer with the resistor now soldered onto its outer lug and hanging straight down, while a green wire waits below with its tinned end pointing up.
Series resistor onto the outer lug — the one that keeps the pot from ever reaching zero ohms.
The potentiometer with its resistor attached and a green wire soldered to the end of that resistor, plus a second blue wire tinned and waiting alongside.
Then the wire onto the far end of the resistor. Two colours so you can tell the roles apart later.
A close-up of a finished joint held in the clip: a yellow wire soldered onto a component lead, the connection covered in a neat bead of solder.
One joint, done at the bench, in the open, with both hands.

Pots need one more thing before they go in: snap the anti-rotation tab off unless your enclosure has the matching hole for it. Same move as in the ISD1820 build — grip it with needle-nose pliers and it breaks away cleanly.

Now drill the panel and mount everything: six pots, the LED, the toggle and the output jack. There is a 1:1 drilling template for the 4.5″ tin further down if you want the hole positions done for you.

A red toggle switch mounted through the corner of the tin lid, with an orange and a yellow wire already soldered to its two lugs. A potentiometer with its own resistor and wires sits nearby on the panel.
Switch mounted and wired in place — presoldered lugs make this a two-second joint.
The inside of the tin lid fully populated: six potentiometers mounted through the panel in two rows of three, each with a small resistor soldered to one lug and blue and green wires running from them, plus an LED and a toggle switch mounted at the bottom and an output jack in the corner with orange and yellow leads.
The populated panel. Every part mounted, every part already wired — and the chip hasn't been touched yet.

This is the order that saves the most grief. By the time the CD40106 comes out, the enclosure is a finished harness waiting for it, and every remaining joint is on the chip itself.

Step 2 Flatten the legs — and leave it label-up

Bend all fourteen legs out flat, so they splay sideways instead of pointing down. Those flattened legs are your tie points; everything solders straight onto them.

Do not flip the chip over. Plenty of dead-bug guides tell you to glue it belly-up, and that is where people get lost: flipping the package mirrors the pinout, so every pin lands on the opposite side from the map you're reading. Leave it label-up, notch where you can see it, and the pinout above matches the chip in front of you exactly.

I keep it label-up right through mapping the pinout, wiring the decoupling cap, and soldering the first pins. There is no point in the build where flipping it makes anything easier.

Step 3 Power rails - and the CMOS rule

Run a V+ bus and a ground bus, hook up the two power pins, and drop the decoupling cap across the chip. Then the one rule that trips everybody up: every inverter input you're not using gets tied to ground. Building three voices out of six? Tie the other three inputs (pins for 4A, 5A, 6A, whichever you skip) straight to ground. Leave the unused outputs alone - it's only floating inputs that misbehave.

Power & housekeeping
ConnectToWhy
Pin 14V+Supply positive (VDD)
Pin 7GroundSupply negative (VSS)
0.1 µFPin 14 → Pin 7Decoupling, right at the chip
Every unused inputGroundNo floating CMOS inputs - ever

Step 4 Build one voice

Here's the whole oscillator, on inverter 1. Resistor from the output (pin 2) back to the input (pin 1); cap from that input to ground; the output is your signal. Make the resistor a 1M pot (plus a ~1K series resistor) and you've got a pitch knob. Get this one squeaking before you build the rest.

Voice 1 (inverter 1)
ConnectToPart
Pin 2 (out)Pin 1 (in)Pitch = 1M pot + 1K series
Pin 1 (in)GroundRange cap (e.g. 0.1 µF)
Pin 2 (out)→ to mixer (Step 5)Signal tap

Step 5 Add the rest of the hive

Every voice is the same three connections - just on a different inverter. Here are all six input/output pairs. Give each a different cap for a wide spread, or the same cap with different pots for a tight, beating cluster. You don't have to build all six; two or three already sound huge.

All six inverters - out → R → in, and in → C → ground
VoiceInput (A)Output (Y)Suggested cap
1Pin 1Pin 20.1 µF - low growl
2Pin 3Pin 40.1 µF
3Pin 5Pin 60.01 µF - mid
4Pin 9Pin 80.01 µF
5Pin 11Pin 100.001 µF - high whistle
6Pin 13Pin 121 µF - slow LFO / clicks

Note the right side flips: on inverters 4–6 the output is the lower-numbered pin. Watch which is A and which is Y.

Step 6 Mix them down

You can't just tie the outputs together - they'd fight. Give each voice a ~10K resistor into a shared mix bus node; that lets them blend politely. Then run the bus straight to the output stage - there is no volume pot on this build, the level is set by the amp you plug into.

Each voice also gets a 1 µF mixing capacitor, and the order matters: voice output → 10K resistor → cap → mix bus. Resistor first, cap second. Six voices, six resistors, six caps.

Use non-polarised (NP / bipolar) caps here. Audio swings both directions, so a part that doesn't care which way round it sits is the sane default.

Bench note - untested variation tap to expand / collapse

On this particular build I'm using ordinary polarised 1 µF electrolytics instead of NP, purely because I have a pile of them and I want to hear what happens. I have not built it this way before.

Don't copy that part yet. Wire NP caps and you're on known ground. If the polarised ones turn out fine I'll say so here; if they don't, this note becomes the warning.

Resistor mixer
ConnectToPart
Each voice output10K resistorthen the cap - resistor first
10K resistorMix busvia a 1 µF NP cap
Mix busOutput stage (Step 7)no volume pot on this build

Want per-voice level or on/off? Give each voice its own small pot or toggle before the 10K instead. That's the difference between a fixed drone and a playable one.

Step 7 Get it out of the box

Unlike the 555, the 40106's little logic outputs can't shove a speaker around on their own - straight into 8 Ω you'll get a whisper. Pick your output to match how loud you need it:

Two ways out
OptionHowResult
LM386 amp10 µF → LM386 input → speakerActually loud — it's the next chip in your pile (the Dead-Bug Hornet)
Line / jack out10 µF → 1K series → jack tip; sleeve to groundInto an amp or pedal - let them do the work

Step 8 Power up

Wire your SPST toggle in the V+ line, flip it, and start sweeping pitch knobs. Each voice comes in as its own tone; together they beat, throb, and grind. Swapping caps mid-build is the fastest way to find the range you like.

Voltage note tap to expand / collapse

The CD40106 is CMOS and runs happily anywhere from about 3V to 15V. More volts shifts the pitches up and stiffens the output a touch. At least two vape cells in series (7.4V - three gives you 11.1V) or a 9V battery.

Step 9 If it won't sing

  • A voice is dead silent? Double-check its feedback resistor really goes output→input, and the cap goes input→ground. Easy to swap A and Y on the right-hand side (pins 8–13), where the output is the lower pin number.
  • Whole chip buzzy or hot? A floating input. Hunt down any unused inverter input and tie it to ground.
  • No sound at all? Confirm pin 14 at V+ and pin 7 at ground, and that you didn't skip the 0.1 µF decoupling cap.
  • Barely audible? That's the raw output into a speaker - expected. Add the LM386, or go into an amp (Step 6).
  • A pot does nothing at one end? The series resistor doing its job. Nothing at all? You're on the wrong two lugs - use the wiper + one end.
Boxing it up? Six pitch pots want a clean panel - so don't eyeball the holes. I drew a true-scale drilling template: six holes in two rows of three on a 2″ grid, in a 6″ square, with crosshair targets, a scale-check ruler, and the pot hole sizes.
The 6-pot template isn't up for download yet — measure from the dimensions above for now. (The tin template linked earlier is a different size; don't print that one for this panel.)

Going further: make them misbehave

Six independent voices is just the start. The fun is getting them to talk to each other:

  • Cross-modulation. Run one voice's output through a resistor (~100K) into another voice's input node. Now one oscillator warps the other's pitch - growls, sidebands, and gnarly FM textures. Try a slow voice modulating a fast one.
  • Built-in LFO. Give one voice a big cap (1 µF+) so it ticks below hearing, and patch it into the others' inputs - instant tremolo, sirens, and rhythmic pulsing.
  • Body contacts. Bring an inverter's input out to two bolts. Bridge them with a wet finger and your skin's resistance bends the pitch.
  • Feed the series. A 40106 voice makes a perfect clock for the next builds - run one into a CD4024 to divide it into sub-octaves and stepped melodies, or into a CD4046's CV input to sweep a whole other oscillator. That's where these three chips become one instrument.
  • Gate it. Want the drones to pulse instead of hold? The Dead-Bug Cicada is this same idea on a CD4093, whose voices have enable inputs - let a slow Cicada voice switch the Hive on and off for rhythm.

Build one voice, get it squeaking, then keep going down the row. By voice six you'll understand exactly why people hoard these chips. Show me what you make.

The 40106 oscillator is folk knowledge of the DIY-synth / Lunetta world - the same building block behind Ray Wilson's MFOS Weird Sound Generator and countless noise boxes. This write-up, wiring, and words are my own. Build it, bend it, make it yours.