Introduction: Super Mario Bros. Warp Pipe Sound Effect Toilet Touch Sensor

About: Click on my avatar to see my other instructables!


To skip to the videos of the warp pipe in action, click here!

Are you bored with your toilet making the same boring sound every time you flush? Well then I've got just the thing for you! Introducing Toilet Tones! For the low, low price of just $9.95 per flushtone, you can have all your favorite toilet-time-tunes at the jiggle of a handle!

...Um, no that's not right. Sorry, I must have dreamed that last bit. This instructable is about adding the Super Mario Bros. warp pipe sound effect to your toilet flushing experience. To do this we'll be using an inexpensive "sound drop key chain" which has the warp pipe sound effect. A sound drop key chain is a bauble that plays a single sound effect when you press a button. The green key chain in the second picture above plays the warp pipe sound effect.

Materials and Tools
Warp Pipe Sound Drop Key Chain
2N3906 PNP Transistor
2N3904 NPN Transistor
1 kohm Resistor
10 kohm Resistor
0.1 uF Capacitor
~1 sq. in (~6.45 cm^2) of Protoboard
~1 yard (~1 meter) of Wire
Two Cardboard Tubes (one with a slightly larger diameter than the other)
Printout of a SMB Warp Pipe (scaled to the cardboard tubes' dimensions)
Soft Plastic Lid (like those found on a can of mixed nuts)
Small Phillips Screwdriver
Soldering Iron
Solder
Hot Glue Gun
Hot Glue
Scissors
Paste


Step 1: Look Inside

The picture above shows a couple shots of what the pipe sound drop key chain looks like on the inside. I added the red (power), black (ground), and green (S4) wires to aid in prototyping. The sound effect IC is underneath the epoxy blob and plays the pipe sound effect when the S4 pin is brought high. Although this key chain only plays the pipe sound effect when the play button is pressed, if pins S1, S2, or S3 are brought high the sound effect IC will output the jump, coin, or death sound effects respectively.

So how can the key chain be made to play the sound effect when the toilet is flushed? My first idea was to affix the key chain to the underside of the reservoir cover and have the trip lever press the play button when the flush handle is pushed down. However, after a bit of experimentation I decided the trip lever was too weak for this and that the sound effect would be difficult to hear over the noise of the flushing if it was inside the reservoir. I was also worried the key chain would come unstuck and clog the toilet; this is after all the place where “[expletive deleted] happens.” Therefore I decided to use a simple circuit that would bring pin S4 high when I touched the metal toilet handle.

Step 2: Touch Circuit

There are many ways to sense touch but to keep it simple I used a sort of Sziklai pair circuit to detect the static electric field that is present on our skin almost all the time. If you are familiar with triboelectric series you’ll know that human skin picks up a positive charge when rubbed by some of the materials used to make clothing. This positive charge is used to switch on an NPN transistor which turns on a PNP transistor which switches the key chain’s battery voltage onto the sound effect IC’s pin. The capacitor prevents the circuit from bouncing so that the sound effect IC is only triggered once. The 100k resistor limits the current through the base of the PNP transistor and the quiescent current should the NPN transistor be partially on. The 1k resistor is suppose to limit the base current of the NPN transistor and keep the high voltages from the static electricity off of the base but I’m not certain how necessary it really is. I think high voltage should leap across the 1k resistor as if it wasn’t even therefore, but the circuit works better with it in. Comments on how to improve the touch circuit are very welcome.

Step 3: Enclosure

I made an enclosure for the circuit that resembles the warp pipes in Super Mario Bros out of cardboard tubes. The larger tube is from a roll of toilet paper and I think the smaller one was left over from a roll of sheet plastic. To decorate the enclosure I scaled, printed out, and pasted an image of the pipe taken from the game. To scale the image properly I first split it into two separate images. Then I scaled, while preserving the aspect ratio, the image of the bottom part of the pipe to be 2.5 inches wide because that is half of the circumference of the smaller cardboard tube. Next, I performed the same scaling to the upper part of the pipe, then horizontally stretched it to a width of 2.75 inches which is half of the circumference of the larger cardboard tube. After that, I put both scaled images into a single image to make it easier to print. I left some whitespace in between them to make cutting the pieces out easier. Finally, I printed out two copies of the image, one per side of a single sheet of paper; then cut and pasted them onto cardboard tubes cut to the proper length.

Step 4: Assembly and Installation

Now that I had my enclosure finished I was almost ready to put the circuit inside it. Before I did that I added some long lengths of solid core 24 AWG wire to the circuit. One of which acts as a grounding wire and goes to the water intake valve. The other is the sensor wire which attaches to the 1k resistor and the metal part of the toilet handle inside the reservoir. I also cut out a couple plastic circles from a lid I rescued from the recycle bin and used them to seal up the ends of the pipe. Please note that although the grounding wire and the S4 wire are both green they are not connected. Once I had the circuit sealed up all I had to do was connect the grounding wire to the metal water intake valve and the sensor wire to the toilet handle. Sorry the picture of the handle connection is out of focus, but you get the idea.

Step 5: Demonstration

Here’s a video of the Super Mario Bros. Toilet Warp Pipe in action. Notice that I don’t have to flush the toilet to activate it. This way you can amaze your friends without wasting water.



It also works when using your foot to touch the handle. Even germaphobes can enjoy the fun!




Extra Notes
Finally, please be aware that this sort of touch sensor can be unreliable because of the vagaries of static electricity. Sometimes it will trigger before you touch it, other times it will trigger as you move away from it. Sometimes it won’t trigger and other times it will trigger multiple times. Actually flushing the toilet sometimes activates the circuit more than once. I’m assuming this is somehow caused by the water flowing through the grounding pipe. If you can’t make a connection to a metal water pipe, that’s not a big problem because the “grounding wire” for this circuit doesn’t actually have to be at earth potential. As long as your electrostatic field is strong enough to induce charge to move then the circuit will work, just not as well; also there will be a period where re-touching the handle won’t reactivate the circuit because the induced charge hasn’t dissipated yet. If the sensor doesn’t trigger try rubbing your pants on your leg a little bit to generate some static or touching the grounding wire to balance the charge. Sealing up both ends of the pipe with the plastic disks cut down on the loudness of the sound effect and also makes it difficult to replace the batteries; on the other hand, not sealing the pipe could leave the circuit vulnerable to the high humidity of a bathroom. If I had this project to do over, I'd like to see what kind of results I got by triggering the sound effect with a strong magnet attached to the flush handle and a reed switch inside the reservoir, opposite the magnet.

Comments
Constructive comments on how to improve the circuit and my fuzzy understanding (mis-understanding?) of static electricity circuits are greatly appreciated; book titles and article links would be most helpful.

Hack It! Challenge

Participated in the
Hack It! Challenge