# Halloween Scream Box

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/115/702/medium800/sensors_DSC00717.jpg?1664988122)

Do you need a last minute Halloween decoration to scare your friends and trick-or-treaters? &nbsp;Try building a scream box that lets out blood-curdling screams when it's opened! &nbsp;By using a [passive infrared (PIR) motion sensor](https://www.adafruit.com/product/189)&nbsp;and an [Audio FX board](https://www.adafruit.com/product/2133)&nbsp;you can build this&nbsp;scream box without even using a separate microcontroller or&nbsp;writing any code!

Before you get started it will help to familiarize yourself with the following guides:

- [Audio FX Sound Board Guide](../../../../adafruit-audio-fx-sound-board/overview)
- [PIR Motion Sensor Guide](../../../../pir-passive-infrared-proximity-motion-sensor/overview)

# Halloween Scream Box

## Hardware

# Parts

You'll need the following parts for this project:

- **[Audio FX sound board](https://www.adafruit.com/product/2133)**

  - Pick up the [Audio FX board with line level&nbsp;output](https://www.adafruit.com/product/2133)&nbsp;if you have an&nbsp;amplified speaker to play sound, or get an [Audio FX board with integrated amplifier](https://www.adafruit.com/product/2210)&nbsp;if you have&nbsp;just a [small speaker driver](https://www.adafruit.com/products/1313).

- **[PIR sensor](https://www.adafruit.com/product/189)**
- **Small portable speaker**

  - Pick a speaker that can connect to your Audio FX board, either [an amplified speaker](http://www.amazon.com/XBOOM-Portable-Rechargeable-Enhanced-Resonator/dp/B0082E9K7U)&nbsp;to connect to the Audio FX board with line level output or a [speaker driver](https://www.adafruit.com/products/1313)&nbsp;to connect to the Audio FX board with built in amplifier.

- **Small box to hold all the components**

  - Let your imagination run wild with what will hold the components and how it will be decorated. &nbsp;Check out local craft stores for pre-made wooden or paper mache boxes that are a great starting point.

- **[3xAA battery holder](http://www.adafruit.com/product/771)**

  - Make sure to use exactly&nbsp;3x AA (or AAA) batteries. &nbsp;If you use 4 or more batteries the voltage will be too high (6+ volts) and could damage the Audio FX board.

- [**1x&nbsp;NPN transistor**](http://www.adafruit.com/product/756)

  - This is used to invert the PIR sensor signal into an active low signal that the Audio FX board expects. &nbsp;Alternatively you could [use a 74HC04 as mentioned in the remote sound board guide](../../../../audio-fx-remote-control/wiring).

- **1x 100 kilo-ohm resistor, 1/4 watt**
- **1x 1 kilo-ohm resistor, 1/4 watt**
- **[Half-size breadboard](https://www.adafruit.com/products/64)**
- **[Jumper wires](https://www.adafruit.com/products/1957)**
- **[Soldering tools](https://www.adafruit.com/products/136)**

# Assembly

Connect the parts as shown in the diagram below:

![](https://cdn-learn.adafruit.com/assets/assets/000/020/588/medium800/sensors_halloween_screambox_bb.png?1414040015)

Most of the wiring is relatively straightforward, just connect component grounds to battery ground and component VIN/voltage input to battery positive voltage. &nbsp;

For the PIR sensor if you haven't used it yet make sure to [read its guide to understand how to hook it up and adjust its sensitivity](../../../../pir-passive-infrared-proximity-motion-sensor/overview).

However for the NPN transistor pay special attention to how it's oriented and connected to components. &nbsp;With the flat side of the transistor facing you the emitter is the left-most leg, the base is the middle leg, and the collector is the right-most leg. &nbsp;The emitter should be connected directly to battery ground. &nbsp;The base should be connected to a 100 kilo-ohm resistor which is connected to the PIR sensor output (middle yellow wire). &nbsp;Finally the collector should be connected to both the 1 kilo-ohm resistor up to battery positive, and any of the switch inputs on the Audio FX board (like switch 5 shown above). &nbsp;

If you're curious you can find more details about [using an NPN transistor as an inverter/not-gate on this page](http://electronicsclub.info/transistorcircuits.htm).

Finally plug in or connect your speakers to the audio output of the Audio FX board. &nbsp;Place all the components into your box and make sure the PIR sensor is facing up at the opening of the box.&nbsp;That's it, your hardware is assembled!

Here's what my hardware setup looks like:

![](https://cdn-learn.adafruit.com/assets/assets/000/020/586/medium800/sensors_DSC00717.jpg?1414036813)

# Halloween Scream Box

## Audio Setup

With the hardware assembled you're ready to load sounds on the Audio FX board. &nbsp;First make sure you've [read the Audio FX board guide](../../../../adafruit-audio-fx-sound-board/copying-audio-files)&nbsp;to audio files are copied to the board. &nbsp;Then connect the Audio FX board's USB&nbsp;micro connector to your computer or laptop. &nbsp;You should see your computer mount the Audio FX board as a USB mass storage device. &nbsp;

Next you'll want to gather some sound files to copy to the Audio FX board. &nbsp;I found some scary scream sound effects on [archive.org](http://www.archive.org/), such as:

- [Wilhelm Scream](https://archive.org/details/WilhelmScreamSample)&nbsp;- This is a classic scream that's used in [almost every horror film](https://www.youtube.com/watch?v=cdbYsoEasio)!
- [https://archive.org/details/Scream\_20130315](https://archive.org/details/Scream_20130315)
- [https://archive.org/details/Scream\_201303](https://archive.org/details/Scream_201303)
- [https://archive.org/details/scream\_115](https://archive.org/details/scream_115)
- [https://archive.org/details/scream565](https://archive.org/details/scream565)

Make sure to download the **Ogg Vorbis** or **WAV** &nbsp;versions of the sound effects. &nbsp;The Audio FX board can't play other formats like MP3.

Since there's only one trigger from the PIR sensor to the Audio FX board, you probably want to use the randomization feature of the board to play a random scream or other scary sound. &nbsp;To use randomization rename all your files to the format:

**TxxRANDn.OGG** or **TxxRANDn.WAV**

Where **xx** is the number of the trigger input on the audio board and **n** is a number from 0 to 9 to identify up to 10 sound files that will randomly be chosen for playback. &nbsp;In my case&nbsp;I'm using Audio FX input number 5 and have 5 sound effects so my files look like:

![](https://cdn-learn.adafruit.com/assets/assets/000/020/589/medium800/sensors_screamwavs.png?1414043818)

Once you've copied the files to the Audio FX board eject the drive from your computer and unplug the device. &nbsp;Now turn on the battery power and you will likely hear the sound effects play for a moment as the PIR sensor starts up. &nbsp;Close the box and try opening it.&nbsp; Surprise! You should hear&nbsp;a random scream! &nbsp;The PIR sensor will continue to play screams until you close the box and it stops detecting motion.

If you don't hear screams make sure the speaker is turned on and that you can see the green power LED on the Audio FX board. &nbsp;When the PIR sensor detects motion and triggers a sound you should see a red LED on the Audio FX board turn on. &nbsp;If you don't see the red LED turn on or hear the sound, then you might need to adjust the PIR sensor sensitivity. &nbsp;Check out the [PIR guide for more details on adjusting the sensitivity](../../../../pir-passive-infrared-proximity-motion-sensor/testing-a-pir). &nbsp;You can also play with the retriggering and delay time on the PIR sensor to have it play for longer or shorter times.

That's all there is to building the Halloween scream box project! &nbsp;Try scaring unsuspecting friends or coworkers by putting the box on your desk. &nbsp;Or you can even mount the hardware under someone's desk to really give them a fright when they sit down! &nbsp;Have fun and happy Halloween!


## Featured Products

### Adafruit Audio FX Sound Board - WAV/OGG Trigger with 2MB Flash

[Adafruit Audio FX Sound Board - WAV/OGG Trigger with 2MB Flash](https://www.adafruit.com/product/2133)
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/2133)
[Related Guides to the Product](https://learn.adafruit.com/products/2133/guides)
### Adafruit Audio FX Sound Board + 2x2W Amp - WAV/OGG Trigger - 2MB

[Adafruit Audio FX Sound Board + 2x2W Amp - WAV/OGG Trigger - 2MB](https://www.adafruit.com/product/2210)
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/2210)
[Related Guides to the Product](https://learn.adafruit.com/products/2210/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)
### PIR (motion) sensor

[PIR (motion) sensor](https://www.adafruit.com/product/189)
PIR sensors are used to detect motion from pets/humanoids from about 20 feet away (possibly works on zombies, not guaranteed). This one has an adjustable delay before firing (approx 2-4 seconds), adjustable sensitivity **and** we include a 1 foot (30 cm) cable with a socket so you...

In Stock
[Buy Now](https://www.adafruit.com/product/189)
[Related Guides to the Product](https://learn.adafruit.com/products/189/guides)
### Speaker - 3" Diameter - 8 Ohm 1 Watt

[Speaker - 3" Diameter - 8 Ohm 1 Watt](https://www.adafruit.com/product/1313)
Listen up! This 3" diameter speaker cone is the perfect addition to any audio project where you need an 8 ohm impedance and 1W or less of power. We particularly like this cone as it has 4 handy mounting tabs 60mm apart.  
  
Works great with our <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/1313)
[Related Guides to the Product](https://learn.adafruit.com/products/1313/guides)
### Waterproof 3xAA Battery Holder with On/Off Switch

[Waterproof 3xAA Battery Holder with On/Off Switch](https://www.adafruit.com/product/771)
Keep your power source safe and toasty in these waterproof 3xAA battery holders. They're just like classic switched battery holders, but designed for survival! The case has a rubber gasket around the edge of the case (its black and hard to see in the photos but it is there) and attaches...

In Stock
[Buy Now](https://www.adafruit.com/product/771)
[Related Guides to the Product](https://learn.adafruit.com/products/771/guides)
### NPN Bipolar Transistors (PN2222) - 10 pack

[NPN Bipolar Transistors (PN2222) - 10 pack](https://www.adafruit.com/product/756)
Transistors are powerful little electronic switches, and we really like these NPN transistors whenever we need to control medium-power electronics such as small motors, solenoids, or IR LEDs. We find them so handy, they come in a pack of 10!

Each transistor is a general-purpose...

In Stock
[Buy Now](https://www.adafruit.com/product/756)
[Related Guides to the Product](https://learn.adafruit.com/products/756/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...

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

## Related Guides

- [PIR Motion Sensor](https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 2](https://learn.adafruit.com/overwatch-lucio-gun-pt-2.md)
- [Phone-Activated Talking Dog Collar](https://learn.adafruit.com/phone-activated-talking-dog-collar.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 3](https://learn.adafruit.com/overwatch-prop-gun-lucios-blaster-pt-3.md)
- [Sound Sample Sweater](https://learn.adafruit.com/sound-sample-sweater.md)
- [Han Solo Blaster Cosplay](https://learn.adafruit.com/han-solo-blaster-cosplay.md)
- [Cup o' Sound](https://learn.adafruit.com/cup-o-sound.md)
- [Portable Trellis Sound Board](https://learn.adafruit.com/portable-trellis-sound-board.md)
- [Screaming Cauldron](https://learn.adafruit.com/screaming-cauldron.md)
- [Audio FX Remote Control](https://learn.adafruit.com/audio-fx-remote-control.md)
- [Ray Gun Blaster](https://learn.adafruit.com/ray-gun-blaster.md)
- [Adafruit Audio FX Sound Board](https://learn.adafruit.com/adafruit-audio-fx-sound-board.md)
- [Adafruit MicroSD SPI or SDIO Card Breakout Board](https://learn.adafruit.com/adafruit-microsd-spi-sdio.md)
- [Adafruit Proto Screw Shield](https://learn.adafruit.com/adafruit-proto-screw-shield.md)
- [Adafruit bq25185 USB / DC / Solar Charger with 5V Boost Board](https://learn.adafruit.com/adafruit-bq25185-usb-dc-solar-charger-with-5v-boost-board.md)
- [Adafruit ESP32-S3 TFT Feather](https://learn.adafruit.com/adafruit-esp32-s3-tft-feather.md)
