| Visit our Halloween space and find out how to win one of two Cel Robox 3D Printers. There are two ways to win:
| Share your Project and Win |
#ShareTheScare Competition | ||
The Ben Heck Show Episodes |
Halloween has always been one of my favorite holidays, so much so that I founded a business that makes professional-grade props and controllers for Haunted Houses. This naturally led to Element14 asking me to create a couple of projects that were easy enough for the community to follow along and replicate the project at home. For my first project, I am going to be creating a very unique halloween candy dispenser that utilizes a trivia game to dispense the candy.
The Concept
The idea behind this project is to create a halloween-based candy dispenser that requires the trick or treaters to answer a simple Halloween trivia question in order to obtain the maximum amount of candy. When the trick or treater steps in front of the candy cauldron, the Raspberry Pi will display a trivia question on the touch-screen LCD hat along with four answers. If the trick or treater gets the answer right, he or she will be rewarded with three pieces of candy. If the trick or treater gets the answer wrong, they will only receive a single piece of candy.
In addition to this functionality, the Raspberry Pi will play a “Correct” audio event if the answer is correct. Neopixel LEDs will illuminate and flash a pattern. If the answer is incorrect, the Raspberry Pi will play an “Incorrect” audio event and flash a different pattern on the neopixel LEDs. The Raspberry Pi will also control several “ambient” LEDs around the base and in another area of the device.
DIY Foam Tombstone. Image courtesy DiyNetwork.com
At the moment, I am planning on building a custom tombstone from pink insulation foam, and using either my X-Carve CNC to carve it out, or using a combination of an Exacto knife and an old soldering iron to carve and shape the tombstone. Originally I had plans on using a 4-foot to 5-foot Frankenstein statue, but was unable to locate one that was within my budget of $100 for the physical prop.
I will either be utilizing Drupal or straight PHP and Python to build the trivia interface. Alternatively I may use a combo of all three to get the job done. Basically I need to have the LCD display a question and have touch buttons for four different answers. When the correct answer is chosen, the Pi will need to activate the candy dispenser and kick out the appropriate number of pieces of candy.
The candy dispenser will be a simple magazine design that holds Starburst candies which will be pushed out and dropped into a cauldron by a simple hobby servo. I will be 3D Printing the candy magazine and dispenser mechanism in the sake of saving some time, but I will include the sketchup design files so that those of you following at home can figure out how to construct this from wood, foam core, styrene, or some other material you are familiar with.
The Hardware.
Most of the electronic components for this project can be found in the Trick or Trivia kit found here at Element14, with some parts needing to be purchased from MCM Electronics.
This whole project is based around the new Raspberry Pi 7-inch DSI Touch Screen DisplayRaspberry Pi 7-inch DSI Touch Screen Display. This new screen is purposely designed for the Raspberry Pi, and utilizes the DSI port on the Raspberry Pi itself which frees up the HDMI port for other multimedia duties.
Newark.com
Newark Part No. | Notes | Qty | Manufacturer / Description |
36K745036K7450 | 5v coil relay | 1 | OMRON SPDT, 5 VDC, 10A Relay |
38Y646738Y6467 | RPi | 1 | RASPBERRY PI 2, MODEL B, |
38Y647038Y6470 | SD Card | 1 | RASPBERRY PI 8GB NOOBS MICRO SD CARD |
44W493244W4932 | PSU | 1 | POWER SUPPLY 5V, 1A |
06W104906W1049 | USB Cable | 1 | USB A PLUG TO MICRO USB B PLUG |
53W628553W6285 | WiFi Dongle | 1 | ADAFRUIT USB WIFI MODULE |
26Y846026Y8460 | Mood LEDs | 1 | ADAFRUIT NEOPIXEL Strip 1M 144LED |
26Y845526Y8455 | Ambient LED | 1 | ADAFRUIT NEOPIXEL STICK |
40P118440P1184 | Speaker | 1 | VISATON SPEAKER, 20 kHz, 8OHM, 4W |
87K702787K7027 | 10mm LEDs | 5 | LED, RED, T-3 (10MM) |
58K382758K3827 | Resistors | 5 | METAL FILM RESISTOR, 220 OHM, 250mW, 1% |
10M846410M8464 | Flyback Diode for Relay | 1 | 1N40011N4001 Rectifier Diode 50 V 1 A |
34C109234C1092 | PSU Vreg | 1 | 7805 LINEAR VOLTAGE REGULATOR, 5V, TO-220-3 |
58K379658K3796 | PSU LED Resistor | 1 | METAL FILM RESISTOR, 1KOHM, 250mW, 1% |
17F216517F2165 | PSU Filter Cap | 1 | CERAMIC CAPACITOR 0.1UF, 50V, X7R, 20% |
69K794969K7949 | PSU Filter Cap | 1 | ELECTROLYTIC CAPACITOR 47UF, 50V, 20% |
69K790769K7907 | PSU Filter Cap | 1 | ELECTROLYTIC CAPACITOR 100UF, 50V, 20%, |
14N941814N9418 | PSU LED | 1 | RED, T-1 3/4 (5MM) |
49Y171249Y1712 | 7-Inch Touch Screen | 1 | Raspberry Pi 7" Touch Screen Display |
MCM Electronics
MCM Part No. | Notes | Qty | Manufacturer / Description |
Servo | 1 | 28-17452 - TowerPro SG-5 Standard Servo | |
Audio Amp | 1 | Audio Amplifier Kit 2 X 5W RMS | |
Logic Level Converter | 1 | 8 Channel Logic Level Converter | |
Project Enclosure | 1 | ABS Case Gray - 5-5/8" x 3-1/8" x 1-3/16" |
As you can see, this project has quite a few components that are required, but there are a few that are totally optional. If you wanted to save a little money, you could purchase the 30 or 60 pixel per meter strips of neopixels and save a good bit. Also, you could forgo the NeoPixels all together and save close to $100.
In addition to these parts that you will need to order, you will also need to pick up two 4-foot x 8-foot sheets of 1-inch thick rigid home insulation foam from your local hardware store. If you live in a colder climate than I do, then you might be able to find rigid insulation foam up to three inches thick, and could skip having to laminate foam together. You will also need a few yards of 3-conductor wire, or 100 feet or more of single conductor wire that will need to be paired up for the NeoPixel and Audio components. Finally, you will need an 3.5mm audio extension cable, a ethernet patch cable, or a wifi router. A soldering iron will be needed to assemble parts of the kit, as well as to carve some of the tombstone. Other handtools such as screwdrivers, pliers, and wire cutters are needed.
If you have any questions, suggestions, or comments in general, please feel free to leave them below, or by sending me a private message here at Element14. If anyone chooses to follow along at home and build their own Trick or Trivia Candy Dispenser, please post photos, and even blog post if you can as I am very excited to see your work!
I will be posting an update every week with the project wrapping up on October 16th. I have taken the liberty of laying out each of the weekly milestones below.
Project Introduction
Building The Trivia Interface
- Interfacing Ambient and Triggered Audio Events
- Building The Candy Dispenser & Servo Coding
- Carve Foam Tombstone
- October 24th - Assembly and Testing
- October 28th - Project Wrap-up
Top Comments