« Back to the stripboard layouts

UNVERIFIED - NOT BUILT YET. This layout was drawn and checked in Copper Bottom, and the circuit was simulated with the real parts' limits, but nobody has soldered it or heard it. What it sounds like on this page is the simulation, and the voltages are arithmetic. Build it once, fix whatever fought back, and this banner comes off.

Electronic Whoopie Cushion

PE-017 in Pointless Electronics · By Onion Madder · Mess O' Pedals

Sit on it and it farts. A switch in the cushion fires one CD40106, which plays a low tone, chops it into a sputter, and lets it sag and die away, through a speaker. One chip, two transistors and a 9 V battery on a 13 by 21 board.

It is Pointless Electronics model PE-017. It does one thing, and it does it every time somebody sits down.

The Electronic Whoopie Cushion drawn as a stripboard diagram, titled Electronic Whoopie Cushion, 21 by 13 stripboard. Thirteen orange copper strips lettered a to m run left to right under 21 numbered columns. One chip, IC1, the 14-pin CD40106, stands with its notch at the top over strips a to g, between columns 10 and 13. Left of the chip the parts stand in columns down the strips: R8 and R9 long and upright at the far left, the green ceramic caps C3, C1 and C2, D1 near the top with its band at the top, R1 and R2 short in column 9, R3, R4 and D2 lower down with D2's band at the bottom, and R6 at the bottom. Two pink electrolytics, C4 and C5, sit on the bottom strips. Right of the chip three short blue links step down from strip a to strip f, a long link runs down column 14 from strip a to strip j, and another down column 21 from strip g to strip m. The transistor Q1 stands on strips g to i in column 19, and Q2 on strips j to l in column 12, with R7 lying along strip l to its right. Gray X marks show the cuts. The pads are labeled at the left edge: TRIG_G, TRIG, V+ and GND; and at the right: SPK- and SPK+. Around the board the panel parts are drawn with a wire to every pad: the cushion switch, the power toggle and the 9 V battery at the left, the speaker at the right. Below, the same board drawn from the solder side, mirrored, every solder point a dark dot, a row of cuts in the column beside the chip, and the chip as an outline with pin 1 boxed. A parts list and an OFF THE BOARD block, one line per panel part, run underneath.
The Electronic Whoopie Cushion, 13 strips by 21 holes. Copper Bottom draws 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.

What you'll need

tap to expand / collapse

Seventeen parts on the board plus the chip and five links, and four off it. There is no R5: the numbering skips it.

  • 1× CD40106 hex Schmitt inverter, DIP-14 (IC1) - spot it: fourteen legs, 40106 printed on top (CD40106BE, HEF40106). A 74HC14 has the same pinout but is not rated for 9 V, so check the print. It solders straight to the board, notch at the top
  • 2× 2N3904 NPN transistors (Q1, Q2) - spot it: small black half-round body, 2N3904 on the flat face. Flat face toward you, legs down, they read E, B, C left to right, and the drawing labels every leg
  • 2× 1N4148 diodes (D1, D2) - spot it: small glass body with a black band at one end. D1's band goes at the top, on strip a; D2's at the bottom, on strip k
  • 1× 47 Ω resistor (R7) - spot it: bands yellow-violet-black. It carries the speaker current, about 130 mA in short pulses, so a 1/2 W one is the safe pick. It lies along strip l
  • 1× 1K resistor (R8) - spot it: bands brown-black-red. Feeds Q1's base
  • 1× 47K resistor (R6) - spot it: bands yellow-violet-orange. Drains the envelope
  • 2× 100K resistors (R2, R4) - spot it: bands brown-black-yellow
  • 1× 150K resistor (R1) - spot it: bands brown-green-yellow. Sets the tone
  • 1× 470K resistor (R9) - spot it: bands yellow-violet-yellow. Bends the pitch as the fart dies
  • 1× 1M resistor (R3) - spot it: bands brown-black-green. Sets how long the one-shot lasts
  • 1× 0.1 µF ceramic (C1) - spot it: a small disc or blob marked 104. Sets the tone with R1
  • 2× 1 µF caps (C2, C3) - spot it: ceramic or film marked 105, no stripe. C2 sets the flutter, C3 couples the cushion switch into the one-shot
  • 1× 47 µF electrolytic (C5) - spot it: a small can with a stripe down one side; the stripe leg is negative. Stripe down, on the ground strip m
  • 1× 100 µF electrolytic (C4) - spot it: a bigger can, the supply reservoir. Stripe down, on strip m. Pick a slim one, about 5 mm across: R9's lead lands one hole to its right
  • 5× wire links - offcuts of component leg. None of them runs under the chip

Off the board

  • 1× switch for the cushion - anything that closes while somebody sits on it: two sheets of foil with foam between them, a pressure mat, or a momentary button under the cushion. One side to TRIG, the other to TRIG_G. Not tried yet, any of them
  • 1× 8 Ω speaker - small is fine, 0.25 W or more. Plus to SPK+, minus to SPK-
  • 1× 9 V battery and snap. Black to GND
  • An SPST toggle for power, in the battery's red lead between the battery and the board's V+ pad. Every build on this shelf gets one, and this one needs it: switched on and waiting, it draws about 2 mA, which flattens a 9 V battery in about ten days

The layout file is the guide

Like every layout on this shelf, the build document for this one is the file itself: ↓ Download Electronic_Whoopie_Cushion.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.

J1, J2 and J3 tie the three spare inputs high, pins 13, 11 and 9, from the supply at pin 14. That holds their outputs low, which is why pin 8, an output, can share the ground strip with pin 7: the column beside the chip is cut on every strip but that one. Leave out J3 and pin 8 fights the ground strip.

Copper Bottom reports this one clean, and every connection in the netlist below is on the board.

The netlist

tap to expand / collapse

The netlist is written 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. TONE is the tone oscillator, FLUT the slow flutter that chops it, SHOT the one-shot the cushion fires, ENV the envelope cap that the one-shot fills and the speaker drains, and SW the cushion switch. OUT12 and OUT10 are the spare gates' outputs, which go nowhere.

The off-board wiring

Six pads leave the board: the cushion switch, the speaker and the supply.

PadGoes to
TRIG / TRIG_GThe two sides of the cushion switch. Which way around does not matter
SPK+ / SPK-The speaker's plus and minus
V+The power toggle; the toggle's other lug to the battery's red lead
GNDThe battery's black lead

Before you sit on it

Switch it on: it should stay silent. Then meter to ground. These numbers are the datasheet and the simulation, not off a built board.

MeterExpect
IC1 pin 14, the V+ padThe battery, about 9 V
The TRIG pad, IC1 pin 5The full supply. TRIG drops to zero while the switch is closed
IC1 pin 6Zero. It goes high while somebody sits, for up to about a second
IC1 pins 8, 10 and 12Zero: the spare gates, inputs tied high
Strip k, C5's plus legUnder a volt while waiting, about 8 V while sat on

If it farts with nobody on it, the cushion switch is closed: meter TRIG. If it never makes a sound, check pin 6 goes high when you short TRIG to TRIG_G with a wire, then look at D2 and C5 and both transistors' legs.

How it works, in one breath

Three of the CD40106's six inverters do the work. The first, with R1 and C1, is the tone oscillator, and its output switches Q1, which pulls the speaker's minus side to ground. The second, with R2 and C2, is a flutter about 12 times a second, and through D1 it holds the tone oscillator still for half of every flutter, so the tone comes out in puffs. The third is the one-shot: closing the cushion switch kicks pin 5 low through C3, pin 6 goes high and fills C5 through D2, and R3 brings pin 5 back up in under a second. C5 is the envelope. Q2 follows it and feeds the speaker's plus side through R7, so the fart is as loud as C5 is full, and once the one-shot ends it fades out as C5 drains.

R9 runs from the envelope back into the tone oscillator, so the pitch sags as the envelope falls. In the simulation each puff is two pulses of the tone, about 17 ms apart while it is loud and about 30 ms apart as it dies, roughly 59 Hz falling to 33. Sat on and held, it plays loud for about a second and fades over another; a quick tap plays for as long as the tap and then fades. Whether that sounds like a fart is for the bench.

Things to try

None of these have been tried.

  • Higher or lower. C1 sets the tone: 47 nF (473) for a higher squeak, 0.22 µF (224) for a lower rumble
  • A wetter rasp. R2 sets the flutter: 47K makes it about twice as fast
  • Longer. R3 sets the one-shot: 2.2M about doubles how long it plays loud when somebody stays sat down

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 38 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 56 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.

Electronic Whoopie Cushion 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.
Electronic Whoopie Cushion 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 IC1 (CD40106) 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 (1N4148): C11 to C8.
The SECOND hole named gets the banded end - the cathode. Backwards, nothing works at all.
3Diode D2 (1N4148): C13 to I16.
4Transistor Q1 (2N3904): flat face toward you, legs E/B/C left to right into C15, C16, C17.
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.
5Transistor Q2 (2N3904): flat face toward you, legs E/B/C left to right into H15, H16, H17.

Jumpers

On a breadboard: Jumpers
StepDo
6Jumper: A3 to A8 (C1.A to R1.A).
7Jumper: J8 to the top + rail (IC1.14 to V+).
8Jumper: J9 to the top + rail (IC1.13 to V+).
9Jumper: J11 to the top + rail (IC1.11 to V+).
10Jumper: J13 to the top + rail (IC1.9 to V+).
11Jumper: J17 to the top + rail (Q2.C to V+).
12Jumper: A14 to the bottom − rail (IC1.7 to GND).
13Jumper: A15 to the bottom − rail (Q1.E to GND).
14Jumper: J14 to the top − rail (IC1.8 to GND).
15Jumper: A4 to F16 (C5.A to R6.A).
16Jumper: tie the top + rail to the bottom + rail at the right-hand end, so they are one rail.
17Jumper: tie the top − rail to the bottom − rail at the right-hand end, so they are one rail.

Resistors

On a breadboard: Resistors
StepDo
18Resistor R1 (150k): B8 to B9.
19Resistor R2 (100k): C10 to B11.
20Resistor R3 (1M): C12 to bottom + rail.
21Resistor R4 (100k): C2 to bottom + rail.
22Resistor R6 (47k): G16 to top − rail.
23Resistor R7 (47R): I15 to I18.
24Resistor R8 (1k): C9 to B16.
25Resistor R9 (470k): D8 to J16.

Ceramics and film

On a breadboard: Ceramics and film
StepDo
26Cap C1 (100n): C3 to bottom − rail.
27Cap C2 (1u): B10 to bottom − rail.
28Cap C3 (1u): B12 to B2.

Electrolytics

On a breadboard: Electrolytics
StepDo
29Cap C4 (100u): + leg into the bottom + rail, − leg into the bottom − rail.
The stripe on the can marks the MINUS leg. Backwards, an electrolytic eventually vents.
30Cap C5 (47u): + leg into C4, − leg into the bottom − rail.

Off-board

On a breadboard: Off-board
StepDo
31Wire for SPK-: into A17.
This is where speaker - joins the board.
32Wire for SPK+: into J18.
This is where speaker + joins the board.
33Wire for TRIG: into A2.
This is where trigger switch / foil cushion lead 1 joins the board.
34Wire for TRIG_G: into the bottom − rail.
This is where trigger switch / foil cushion lead 2 joins the board.

Power up

On a breadboard: Power up
StepDo
35GND - battery -: clip to the bottom − rail.
36V+ - battery + via power switch: clip to the bottom + rail.
37Before the battery: meter on continuity.
rail to rail reads open, not a short
A3 to A8 beeps (C1.A to R1.A)
J8 to top + rail beeps (IC1.14 to V+)
J9 to top + rail beeps (IC1.13 to V+)
J11 to top + rail beeps (IC1.11 to V+)
J13 to top + rail beeps (IC1.9 to V+)
J17 to top + rail beeps (Q2.C to V+)
A14 to bottom − rail beeps (IC1.7 to GND)
A15 to bottom − rail beeps (Q1.E to GND)
38Power on.

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

A Schmitt inverter with a resistor and a cap is the classic one-chip oscillator, and a one-shot into an envelope cap is out of every CMOS cookbook. The layout and the words are mine, and so is anything wrong with them.