# Audio Prank Gift Box

## Overview

http://youtu.be/hjGbX8Q6Exs

![](https://cdn-learn.adafruit.com/assets/assets/000/022/858/medium800thumb/adafruit_products_greg-shake.jpg?1448315700)

What's in that gift?! Here's a fun and easy way to creatively mislead your next gift recipient with motion-activated sound effects! Use the Adafruit Audio FX board and a vibration switch to make this simple (and reusable) circuit.

Before you begin please read:

- [Adafruit Audio FX Sound Board](../../../../adafruit-audio-fx-sound-board)
- [Adafruit Guide to Excellent Soldering](../../../../adafruit-guide-excellent-soldering)

The Adafruit Audio FX Sound Board guide walks through connecting the board to your computer and and install WAV or OGG files triggered by different pins. There’s **no code** required in this project!

For this build you will need:

- [Adafruit Audio FX Sound Board](https://www.adafruit.com/search?q=Adafruit+Audio+FX+Sound+Board&b=1)
- [solderless breadboard](http://www.adafruit.com/product/64)
- [breadboard-friendly speaker](http://www.adafruit.com/product/1898)
- [slow](http://www.adafruit.com/product/1767)&nbsp;or [fast](http://www.adafruit.com/product/1766)&nbsp;vibration switch
- [10uF capacitor](http://www.adafruit.com/product/2195)
- [3xAAA battery pack](http://www.adafruit.com/product/727)&nbsp;with&nbsp;[batteries](http://www.adafruit.com/product/617)
- [JST battery connector](http://www.adafruit.com/product/1769)
- [half-size Perma-Proto](http://www.adafruit.com/product/1609)(optional)
- [solid-core hookup wire](https://www.adafruit.com/search?q=hook-up+wire&b=1)
- [stranded wire with headers](https://www.adafruit.com/search?q=premium+male+jumper&b=1)
- [heat shrink tubing](http://www.adafruit.com/product/1649)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/859/medium800/adafruit_products_audio-gift-box-00.jpg?1423055480)

# Audio Prank Gift Box

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/022/855/medium800/adafruit_products_audio-gift-box-diagram.jpg?1423030236)

A vibration switch is connected between the audio board's pin 7 and ground and orientation does not matter.

A 10uF capactitor also connects pin 7 to ground, but be sure to put it in the right way: the shorter leg goes to ground (and is also marked with - signs) and the longer leg goes to pin 7.

Since we’re using pin 7 in this diagram, the corresponding audio file on the board should be named T07.WAV or T07.OGG. You can really use any pin though…just make sure the filename matches. It’s all explained in the [Audio FX Board intro guide](https://learn.adafruit.com/adafruit-audio-fx-sound-board/overview).

Connect a speaker to one or both of the outputs on the audio board.

Optionally connect a button or switch between Rst and Gnd on the audio board (helps with troubleshooting the vibration switch).

# Audio Prank Gift Box

## Prepare Components

Solder the included screw terminals to the audio FX board.

&nbsp;

Turn the board over and solder on your JST battery connector (not included with audio board).

![adafruit_products_audio-gift-box-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/837/medium640/adafruit_products_audio-gift-box-01.jpg?1423028629)

![adafruit_products_audio-gift-box-02.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/838/medium640/adafruit_products_audio-gift-box-02.jpg?1423028695)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/856/medium800/adafruit_products_audio-gift-box-03.jpg?1423030506)

We won't use all the pins near the USB end of the board, and we want the battery connector to hang over the edge of the breadboard, so trim your headers as shown to allow the board to overhang.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/857/medium800/adafruit_products_audio-gift-box-04.jpg?1423030536)

While plugged into your solderless breadboard, solder the header pins in place from the top.

Now's also the time to load up your sounds over USB. Read more about how in the [Audio FX Board guide.](../../../../adafruit-audio-fx-sound-board)&nbsp;We loaded a bunch to play randomly when pin 7 is triggered.

To prepare your vibration switch, set it up in a pair of helping hands and tin the leads with a little solder.

&nbsp;

Also strip and tin two stranded wires.

&nbsp;

Apply a small piece of heat shrink tubing and reflow the solder between that wire and the center pole of the vibration switch.

![adafruit_products_audio-gift-box-05.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/844/medium640/adafruit_products_audio-gift-box-05.jpg?1423029135)

![adafruit_products_audio-gift-box-06.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/845/medium640/adafruit_products_audio-gift-box-06.jpg?1423029196)

Slide the heat shrink tubing over the joint and solder the other wire to the outer pole of the vibration switch.

![adafruit_products_audio-gift-box-07.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/846/medium640/adafruit_products_audio-gift-box-07.jpg?1423029267)

![adafruit_products_audio-gift-box-08.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/847/medium640/adafruit_products_audio-gift-box-08.jpg?1423029410)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/848/medium800/adafruit_products_audio-gift-box-09.jpg?1423029477)

Use a larger piece of heat shrink tubing to cover the while union. That outer wire is pretty fragile, so this heat shrink tubing adds some stability by also bridging the can of the switch, so make sure your piece is long enough to cover everything!

![](https://cdn-learn.adafruit.com/assets/assets/000/022/849/medium800/adafruit_products_audio-gift-box-10.jpg?1423029511)

Depending on the action you want to trigger your circuit, you might try the fast and slow vibration switches to see what you like best. It is helpful to label them.

We found that the fast switch was triggered by touching the box at all, and even when the subway rumbles past. The slow switch had to be shook very hard and/or flicked to be triggered. You can adjust how much the switch rattles in the box to further adjust sensitivity during the next steps.

# Audio Prank Gift Box

## Build Circuit

![](https://cdn-learn.adafruit.com/assets/assets/000/022/850/medium800/adafruit_products_audio-gift-box-11.jpg?1423029683)

Assemble the circuit on your solderless breadboard as shown in the circuit diagram. Shake your switch to test that it triggers your random sounds!

We found that sometimes on power-up the activation light would stick on, requiring a reset to the board. So you may optionally add a switch or button between Rst and Gnd to reset the board manually, or just take a jumper wire and plug/unplug after powering on.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/851/medium800/adafruit_products_audio-gift-box-12.jpg?1423029903)

Peel and stick the solderless breadboard to the inside of the box, and tape the battery pack and sensor down.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/852/medium800/adafruit_products_audio-gift-box-13.jpg?1423029932)

Optionally, transfer your circuit to a Perma-Proto board for a more permanent arrangement.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/853/medium800/adafruit_products_audio-gift-box-14.jpg?1423029979)

Try out both sensors before deciding which one is right for you, and make this sound prank your new family tradition!

# Audio Prank Gift Box

## Wrap and Give

![](https://cdn-learn.adafruit.com/assets/assets/000/022/854/medium800/adafruit_products_audio-gift-box-15.jpg?1423029999)

Place in a prominent spot and mark "do not open" for maximum curiousity! Flip on the circuit, the batteries will last about 2 days with 1000mAh AAA batteries!


## Featured Products

### Medium Vibration Sensor Switch

[Medium Vibration Sensor Switch](https://www.adafruit.com/product/2384)
The "poor man's" accelerometer/motion sensor! These spring-vibration switches are **medium sensitivity** non-directional vibration induced trigger switches. Inside is a medium hardness spring coiled around a long metal pin. When the switch is moved, the spring touches the...

In Stock
[Buy Now](https://www.adafruit.com/product/2384)
[Related Guides to the Product](https://learn.adafruit.com/products/2384/guides)
### Fast Vibration Sensor Switch (Easy to trigger)

[Fast Vibration Sensor Switch (Easy to trigger)](https://www.adafruit.com/product/1766)
The "poor man's" accelerometer/motion sensor! These spring-vibration switches are **high sensitivity** non-directional vibration induced trigger switches. Inside is a very soft spring coiled around a long metal pin. When the switch is moved, the spring touches the...

In Stock
[Buy Now](https://www.adafruit.com/product/1766)
[Related Guides to the Product](https://learn.adafruit.com/products/1766/guides)
### Slow Vibration Sensor Switch (Hard to trigger)

[Slow Vibration Sensor Switch (Hard to trigger)](https://www.adafruit.com/product/1767)
The "poor man's" accelerometer/motion sensor! These spring-vibration switches are **low sensitivity** non-directional vibration induced trigger switches. Inside is a stiff spring coiled around a long metal pin. When the switch is moved, the spring touches the center pole to...

In Stock
[Buy Now](https://www.adafruit.com/product/1767)
[Related Guides to the Product](https://learn.adafruit.com/products/1767/guides)
### Half Sized Premium Breadboard - 400 Tie Points

[Half Sized Premium Breadboard - 400 Tie Points](https://www.adafruit.com/product/64)
This is a cute, half-size breadboard with&nbsp;400 tie points, good for small projects. It's 3.25" x 2.2" / 8.3cm&nbsp;x 5.5cm&nbsp;with a standard double-strip in the middle and two power rails on both sides.&nbsp;You can pull the power rails off easily to make the breadboard as...

Out of Stock
[Buy Now](https://www.adafruit.com/product/64)
[Related Guides to the Product](https://learn.adafruit.com/products/64/guides)
### Adafruit Audio FX Sound Board + 2x2W Amp - WAV/OGG Trigger -16MB

[Adafruit Audio FX Sound Board + 2x2W Amp - WAV/OGG Trigger -16MB](https://www.adafruit.com/product/2217)
Would you like to add audio/sound effects to your next project, without an Arduino+Shield? Or maybe you don't even know how to use microcontrollers, you just want to make a sound play whenever you press a button. What about something that has to be small...

In Stock
[Buy Now](https://www.adafruit.com/product/2217)
[Related Guides to the Product](https://learn.adafruit.com/products/2217/guides)
### Breadboard-Friendly PCB Mount Mini Speaker - 8 Ohm 0.2W

[Breadboard-Friendly PCB Mount Mini Speaker - 8 Ohm 0.2W](https://www.adafruit.com/product/1898)
Listen up! This 1.1" (~30mm) diameter speaker is the perfect addition to any breadboard-based audio project where you need 8 Ohm impedance, and have 0.2W or less of power. The two pins are 15mm / 0.6" apart and fit perfectly in a breadboard or perfboard. This speaker has a durable...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1898)
[Related Guides to the Product](https://learn.adafruit.com/products/1898/guides)
### 10uF 50V Electrolytic Capacitors - Pack of 10

[10uF 50V Electrolytic Capacitors - Pack of 10](https://www.adafruit.com/product/2195)
We like capacitors so much we made a&nbsp;[kids' show about them.](https://www.youtube.com/watch?v=sy_G1oYRQmM)&nbsp; &nbsp;They're super handy and it's really helpful to have a variety lying around to pick and choose from.

<p...></p...>In Stock
[Buy Now](https://www.adafruit.com/product/2195)
[Related Guides to the Product](https://learn.adafruit.com/products/2195/guides)
### 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST

[3 x AAA Battery Holder with On/Off Switch and 2-Pin JST](https://www.adafruit.com/product/727)
This battery holder connects 3 AAA batteries together in series for powering all kinds of projects. We spec'd these out because the box is slim, and 3 AAA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries and have an on-off switch. That makes...

In Stock
[Buy Now](https://www.adafruit.com/product/727)
[Related Guides to the Product](https://learn.adafruit.com/products/727/guides)

## Related Guides

- [Pocket PiGRRL](https://learn.adafruit.com/pocket-pigrrl.md)
- [Sound Sample Sweater](https://learn.adafruit.com/sound-sample-sweater.md)
- [Make a Pi Trash Classifier with Machine Learning and Lobe](https://learn.adafruit.com/lobe-trash-classifier-machine-learning.md)
- [Halloween Scream Box](https://learn.adafruit.com/halloween-scream-box.md)
- [Adafruit Audio FX Sound Board](https://learn.adafruit.com/adafruit-audio-fx-sound-board.md)
- [Laugh Track Jacket](https://learn.adafruit.com/laugh-track-jacket.md)
- [Trellis Feather DSP-G1 Synthesizer](https://learn.adafruit.com/feather-trellis-dsp-g1-synthesizer.md)
- [Phone-Activated Talking Dog Collar](https://learn.adafruit.com/phone-activated-talking-dog-collar.md)
- [Convert your Model M Keyboard to Bluetooth with Bluefruit EZ-Key HID](https://learn.adafruit.com/convert-your-model-m-keyboard-to-bluetooth-with-bluefruit-ez-key-hid.md)
- [UV Manicure Lamp](https://learn.adafruit.com/uv-manicure-lamp.md)
- [reef-pi Guide 5: Light Controller](https://learn.adafruit.com/reef-pi-lighting-controller.md)
- [Screaming Cauldron](https://learn.adafruit.com/screaming-cauldron.md)
- [Pathfinder Robot Companion](https://learn.adafruit.com/pathfinder.md)
- [World's Smallest MAME Arcade Cabinet](https://learn.adafruit.com/worlds-smallest-mame-arcade-cabinet.md)
- [MIDI Solenoid Drum Kit](https://learn.adafruit.com/midi-solenoid-drum-kit.md)
