This year's automated singing Pumpkin display.
Step 1: Introduction
This halloween prop is a motion activated projection of three singing pumpkins. When triggered a talking pirate skull is activated with a fog machine giving 20 second blast of fog! Then the projection starts. There are two alternating songs - Monster Mash and Thriller. After the the song has finished there is another blast of fog. If the sensor has not been activated in a about 15 minutes the fog machine will give a blast.
To make the prop I used an off the shelf pirate skull that no longer activates at night. It works in really bright light but not at night when you want it too. Luckily it has a test switch. I wired this to a relay which is driven by my Python script on a Raspberry Pi. I also connect the fog machine to another relay on the Pi. The video output from the Pi is sent to a small video projector. It projects the singing pumpkins on to three actual pumpkins. I used plastic ones this year as I wanted to give the illusion that they were floating. Regular pumpkins are bit too heavy, so I used the cheap plastic store bought ones. The are held in place by using bent coat hangers glued into a 2x4 niche base and sprayed black. All the electronics and projector and speakers are hidden behind a grave stone I created out of MDF and sprayed with primer and a stone textured finish. The PIR is placed in the top of the carving like a jewel.
Step 2: Parts -Electronics
For this project I used a Raspberry Pi Zero W, a PIR, and 2 relay modules. Examples of the parts are listed below:
I used two, but you can buy double, triple, quad etc., relay boards .
Raspberry Pi Zero W: https://www.adafruit.com/product/3400
I chose the Zero Pi W because it's small enough and has wifi built in. You will need keyboard, monitor and power supply to get up and running. You could use the projector as the monitor if you can read the text etc.. One thing I like about the wifi connection is that I can stop and start it remotely from a terminal program on my phone or iPad.
Yes I know they sell 5, but that's the same price as one everywhere else I looked. Plus sometimes these can be broken, so by having 5 some should work. All mine worked. You have to let them get stabilized before using them. If you try to use one out of the packet you will get that it is always on. Wait 5 minutes before testing. That worked for me.
Projector: I bought this from Woot many years ago, but there are all sorts of projectors for sale ranging from $50 and up... As my projector is old I needed an HDMI to VGA adapter (https://www.adafruit.com/product/3048 ) . The modern projectors have HDMI in. Also make sure you know what size HDMI cable you need from the Pi. The Pi zero uses the mini HDMI. You can by a mini to regular HDMI connector. which is recommended for use with a Pi Zero.
Step 3: Parts - Non-electronic
Fog Machine with a remote control:The remote control on mine is not very sophisticated, there is one button that calls for fog. Depending on your fog machine you need to be able put a wires on the "call for fog" button. These wires got to the N/O contacts of the relay. Then when the relay activates it as though you pressed the button. My remote has high ( AC ) voltage in it. SO BE CAREFUL HOW YOU WIRE YOUR FOG SWITCH. Some of the new ones may be low voltage. If in doubt get help or don't do wire it up! I'm not supplying a diagram as your machine may vary. A ground fogger might be better if you have one. I passed the fogger output through a polystyrene cooler filled with ice. This did chill the fog a bit, but not as much as I'd have liked. Next year dry ice!
Pirate Skull: I bought this from a Halloween pop up store one year and I'm sure they are still available. Any prop will do that has a demo or test button. This prop is battery powered so wiring across the switch to the relay should not be a problem. But once again if doubt ask.
Grave stone: There are plenty of the polystyrene ones on sale at the stores. However, I wanted a more robust one so I could hide the electronics and have the sensor in the headstone. But you can be creative. You could embed the sensor in another pumpkin.
Coat hangers and scrap wood: To create a stand so the pumpkins look to be suspended above the ground. Also a glue gun, tape and assorted screws. I spray painted the wood and coat hangers matte black to hide them at night.
Pumpkins: Real or store bought as long as you can focus an image on them. You don't have to carve the real ones!
Animated Singing Pumpkins: There are many available on the web and Youtube but I bought the Thriller one from here:
You have also to buy the audio track and edit them together, but that is for another instructable...
Case for electronics: I 3D printed one from here:
Power cords: Here's the list of my power connections:
- Wall wart for the Pi
- Powered Speakers
- Fog machine
I used an extension cord from the garage and then a multi-output extension.
Software: The Raspberry Pi will need an operating system and there are plenty of instructables and assistance on setting up a Pi. https://www.raspberrypi.org
I wrote this Python code after reading other projects on the web who had created similar set ups, The main routine waits for the sensor to activate, then switches on the pirate, the fog machine and then the projected animation. At the end of the song, more fog and then wait for the sensor again. I had two animations so the code switches between them. I also logged the songs played to a file so I could check on activity if I wasn't there. The code will also random spew fog if not activated in a 15 minute period. I probably need to revisit the code and tidy it up, but it was working as I wanted it. It can be downloaded from here:
Step 4: Set Up
The two main steps are setting up the Raspberry pi and the script and setting up the prop. There is more information on the GitHub page on wiring up the props. I have enclosed a Fritzing diagram of my two relay set up that matches the Python code. However, if you're familiar with the Pi and coding you can change pin connections, add more relays etc...
The next step is installing it in the garden or wherever you want to scare, sorry impress the trick-or-treaters. I chose the space between our garage and house. I had another projector screening floating phantoms as a back drop. This also made wiring everything up easier and making sure no trick-or-reater would not trip over anything.
Once everything is in place and wired I remotely log into the Raspberry Pi and start of the code. I did create an auto running one for a friend as he wanted it totally autonomous. I wanted more control. Plus I could tweak any timings etc.. For example this year I didn't have the pumpkins lined up so both animations played squarely on the surface. So I changed the code just to play the Thriller video this year. (Since edited the Monster Mash video so the pumpkins heads line up with the Thriller heads.)
Step 5: Summary
Only down side this year was that we had only one trick or treater and we forgot to take a video of the set up! Now's a good time to check out the sales at these pop up Halloween stores. You might snag something that can be used next year! For me it's make a still of the videos so I can line up the pumpkins better than having to play the video during set up. Work on the ground fogger and see what else I can add via another relay connected to the Pi!