# Electronic Demon Costume

## Hello!

 **Spark the demon** isn’t really a bad guy, he’s just got a job to do: tangling the cord on those phone/MP3 earbuds in your backpack or pocket. His old job was mangling tapes in car audio systems, but there’s so little call for that anymore that the rare case is just handed off to a minion.  
![](https://cdn-learn.adafruit.com/assets/assets/000/008/402/medium800/projects_RarFace.jpg?1396864748)

Two of my favorite things are electronics and Halloween…why not combine them? Spark came together through a series of Adafruit tutorials and postings leading up to Halloween 2012. The costume features an Arduino-based voice changer, an animated LED matrix face and glowing EL wire wings and horns. He debuted on the weekly Google+ Show & Tell hangout, but has since made other appearances including **Maker Faire Bay Area 2013**.

![](https://cdn-learn.adafruit.com/assets/assets/000/011/759/medium800/projects_wings.jpg?1382328660)

Two ideas we hope you’ll take away from this:

- The costume _wasn’t_ carefully planned, it was improvised and upgraded in steps. Electronics doesn’t need to be a daunting, formal thing — don’t be afraid to experiment and play when developing your own Halloween or cosplay ideas. I _still_ pull it out and add new things occasionally.  
- The software we wrote is all open source…you can take it apart, remix it, use a little or a lot, improve or adapt it to your own projects (which we hope you’ll share!)

We don’t have a step-by-step “walk through” tutorial for Spark’s complete costume, but nearly all of the electronic elements are derived from other guides…

# Relevant Tutorials
- [**Animating Multiple LED Backpacks**](http://learn.adafruit.com/animating-multiple-led-backpacks) (and the prerequisite [**Adafruit LED Backpacks**](http://learn.adafruit.com/adafruit-led-backpack) guide). This illustrates the wiring for the LED matrices that make up the face. The idea of combining this with a Wave Shield (for playing back prerecorded sounds) is touched on here.  
- **[Wave Shield Voice Changer](http://learn.adafruit.com/wave-shield-voice-changer "Link: http://learn.adafruit.com/wave-shield-voice-changer")** (and the prerequisite **[Wave Shield guide](http://learn.adafruit.com/adafruit-wave-shield-audio-shield-for-arduino)**). This shows how to combine the Wave Shield with a microphone to alter one’s voice. There are two example programs for this tutorial: “adavoice” is the voice changer alone, while **“adavoice\_face” also adds the LED backpack face animation** …the latter code is what the demon is using.
- **[Working with](http://learn.adafruit.com/el-wire)[EL Wire](http://learn.adafruit.com/el-wire "Link: http://learn.adafruit.com/el-wire")**  
- [**EL Wire Animal Masks**](http://learn.adafruit.com/el-wire-animal-masks) (similar construction techniques were used for Spark’s wings and horns)
- **[Firewalker LED Sneakers](http://learn.adafruit.com/firewalker-led-sneakers/overview)**

This video summarizes an early iteration of the costume and electronics: http://www.youtube.com/watch?v=8HZFY4Xti7k

 **Maker Faire post-mortem:** the video and voice changer guide both already mention this, but it bears repeating: the electronics need to be protected from moisture, especially condensed breath. The most common trouble spot encountered at Maker Faire was the microphone amplifier board. [This new tiny wired mic](https://www.adafruit.com/products/1935 "Link: https://www.adafruit.com/products/1935"), if soldered in place of the microphone on the amplifier board, might assist in moving the amp board further away from dampness. (The mic itself will still need some waterproofing, perhaps sealed in a tiny Ziploc baggie or a deflated balloon.)  
![](https://cdn-learn.adafruit.com/assets/assets/000/011/760/medium800/projects_horns.jpg?1382328760)

# Frequently-Asked Questions
### 

 **Nope!** But a simple programming trick makes their movement seem natural: instead of repeating the same loop of actions (which our brains pick up very quickly), all the parameters are randomly generated: where the eyes are looking, how long they fixate in one position and the time between blinks. If they seem to be reacting to the conversation, that’s through coincidence and imagination.  
### 

 **Not exactly.** We’re _giving away the plans,_ with many of the parts available through our shop. This way every monster is unique: yours might have just one eye, or three, or have them on eyestalks like a crab. Go wild with it!### 

It's a tight squeeze, and had to break a few rules…but yes, **one Arduino runs the whole show!** You can look through the source code (adavoice\_face, included with the voice changer software) to see how this works.

### 

The LED eyes sit slightly _above_ the wearer’s own eyes, while the sheer fabric of the “morph suit” passes just enough light for limited vision inside. There’s no camera.  
  
If vision and safety are a concern, or if you’re just not keen on spandex, you could build atop a bike helmet with a robot or alien face that sits <u>above</u> your own head. The [EL Wire Animal Masks](http://learn.adafruit.com/el-wire-animal-masks) tutorial shows some great examples of this style!

### 

The goal was not to produce the _highest-tech_ costume, it was to create a project that _inspires learning and creativity._ Arduino is extremely easy to learn, widely available and offers lots of compatible add-ons like our Wave Shield. “Power users” can adapt the ideas here to their own device of choice.

### 

The chest piece (which holds the speakers) was cut and formed from Sintra (a.k.a. foamed PVC), an easily-worked thermoplastic. One or two red LEDs are installed behind each rib.  
  
The breathing effect was achieved using a PWM output on the Arduino (the analogWrite() function), connected to a [power MOSFET](http://adafruit.com/products/355 "Link: http://adafruit.com/products/355") to drive all the LEDs. It’s similar to the code and wiring used in this [RGB LED Strip guide](http://learn.adafruit.com/rgb-led-strips/overview), but using discrete LEDs in parallel instead.

### 

 **It’s much, much simpler than that.** It’s a variant on a technique called _granular synthesis._ Basically, a short audio sample (about 10 milliseconds) is continually being recorded in a loop. It’s simultaneously being played back _at a different speed,_ either duplicating or ignoring small sections of the data to maintain the timing. It’s explained in a little more detail in the [Wave Shield Voice Changer](http://learn.adafruit.com/wave-shield-voice-changer/principles-of-operation "Link: http://learn.adafruit.com/wave-shield-voice-changer/principles-of-operation") tutorial. Even a modest Arduino can handle this, whereas an FFT would require a significantly more potent processor.  
### 

Several colors of T-shirt puff paint from a local craft store. Low tech and cheap!

**For other questions not covered here, you can search or ask in the [Adafruit Customer Support Forums](http://forums.adafruit.com). Try the “Wearables” or “Glowy Things” sub-categories.**  

## Related Guides

- [Adafruit LED Backpacks](https://learn.adafruit.com/adafruit-led-backpack.md)
- [micro:bit Lesson 2. Controlling LEDs on Breadboard](https://learn.adafruit.com/micro-bit-lesson-2-controlling-leds-on-breadboard.md)
- [Adafruit Arcade Bonnet for Raspberry Pi](https://learn.adafruit.com/adafruit-arcade-bonnet-for-raspberry-pi.md)
- [MIDI for Makers](https://learn.adafruit.com/midi-for-makers.md)
- [Adafruit Speaker Bonnet for Raspberry Pi](https://learn.adafruit.com/adafruit-speaker-bonnet-for-raspberry-pi.md)
- [ TensorFlow Lite for EdgeBadge Quickstart](https://learn.adafruit.com/tensorflow-lite-for-edgebadge-kit-quickstart.md)
- [LED Matrix Hourglass](https://learn.adafruit.com/led-matrix-hourglass.md)
- [IR Sensor](https://learn.adafruit.com/ir-sensor.md)
- [Introducing Adafruit Crickit #MakeRobotFriend](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit.md)
- [Ambient Sound Machine](https://learn.adafruit.com/ambient-machine.md)
- [Pathfinder Robot Companion](https://learn.adafruit.com/pathfinder.md)
- [RGB & HSV NeoPixel Dialer](https://learn.adafruit.com/rgb-hsv-neopixel-dialer.md)
- [How to Build a Testing Jig](https://learn.adafruit.com/how-to-build-a-testing-fixture.md)
- [Really Simple Animatronic Tail](https://learn.adafruit.com/really-simple-animatronic-tail.md)
- [DotStar Fortune Necklace with Bluetooth and Touch](https://learn.adafruit.com/dotstar-fortune-necklace.md)
