| 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 |
|
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 tiny breadboard atop the Adafruit Pi Plate . 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 Adafruit Pi Plate . I used orange LEDs (58K2458 ) 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):
Qty | Newark SKU | Part |
---|---|---|
1 | 43W5302 | Raspberry Pi Model B |
1 | 44W3453 | Adafruit Pi Plate |
1 | 44W3465 | Adafruit Pi Box |
2 | 83C0223 | Fairchild PN2222BU NPN BJT |
2 | 38K0327 | Multicomp 1K Ohm resistor |
4 | 09J9321 | Lumex 5mm Red LED |
4 | 38K0351 | Multicomp 220 Ohm resistor |
4 | 20J2488 | Lumex 5mm Yellow LED |
4 | 33R8548 | Alternative Yellow if 20J2488 not in stock: Bivar 5mm Yellow LED |
4 | Alternative to Yellow: Vishay 5mm Orange LED | |
4 | 38K0345 | 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 (38K0351 ) for the Red LEDs, but you can substitute with 180 Ohm resistors (38K0345 ) 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.
UPDATE: I've written a follow-up blog post to describe the design of the software and how to install it from GitHub. A big thanks to Bonnie King for bringing her Python experience to the project.
Cheers,
Drew
element14 | |||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||
Additional Parts | |||||||||||||||||||||||||||||||||||||||||||||
*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. |
Top Comments