For Halloween, I thought I would combine the networking and GPIO capabilities of the Raspberry Pi to create a pumpkin with lights and sound which can be controlled via a web page. The Raspberry Pi goes inside the pumpkin along with LEDs and a small speaker:
Thanks very much to my colleague Liz Houtz for letting me use her nicely carved cat-o'-latern. I lined the inside of the pumpkin with a gallon ziplock bag to keep the gear from getting too messy. The power and Ethernet cable went through the carving of the cat's tail on the backside.
The simple web interface is intended to allow one to trigger sound or lights remotely via a browser on a computer, smartphone or tablet:
UPDATE: I've written a new post covering how to install the software for the project: A second helping of Pumpkin Pi
Here's video of the an audio clip being played while the lights are flashing. However, the ability to choose from any sound file in a specified directory was added after this was shot:
I prototyped with a atop the . Pieces of drinking straw can optionally be placed over the LEDs to further diffuse the light:
Once I was satisfied with the circuit, I soldered the components on to the . I used orange LEDs () in place of yellow LEDs in this example:
The LEDs are powered from the Raspberry Pi's 5V rail and controlled via transistors that the Pi' GPIO pins can turn on and off:
Here is the list of parts that you'll need (excluding the portable speaker which I got from Amazon):
|1||Raspberry Pi Model B|
|1||Adafruit Pi Plate|
|1||Adafruit Pi Box|
|2||Fairchild PN2222BU NPN BJT|
|2||Multicomp 1K Ohm resistor|
|4||Lumex 5mm Red LED|
Multicomp 220 Ohm resistor
|4||Lumex 5mm Yellow LED|
Alternative Yellow if 20J2488 not in stock:
Bivar 5mm Yellow LED
Alternative to Yellow:
Vishay 5mm Orange LED
|4||Multicomp 180 Ohm resistors|
You can add all the above parts, except the Raspberry Pi, to a Newark element14 shopping cart via this link: Add to Cart.
Note: you may want increase the quantity of the LED, resistor, and transistor parts. Since they are very low cost, it's a good idea to get a few extra in case one gets damaged or lost during assembly. Also, I've specified 220 Ohm resistors () for the Red LEDs, but you can substitute with 180 Ohm resistors () if you find they are too dim.
If you don't have any soldering equipment, then you may be interested in Newark element14's low-cost soldering supplies.
*Products and resources listed are listed to help members build their own Pi Projects. They are suggestions and listed for educational purposes. For substitutions of any parts, please post a question asking the original author.