Flare-Up Pumpkin

by J_Hodgie in Living > Halloween

12223 Views, 21 Favorites, 0 Comments

Flare-Up Pumpkin

IMG_0004.JPG
DSCN2993.JPG
DSCN2998.JPG
DSCN3005.JPG
How to make a pumpkin that flares up with a strobe light goes off when people walk by.

This year for Halloween I wanted something flashier, so I decided to create a pumpkin that would react to people walking near it. After a bit of brainstorming I came up with this, The Flare-Up Pumpkin.


Materials and Tools

DSCN2969.JPG
Here follows a list of what you will need to create the pumpkin.

Materials:
- 1 Pumpkin
- 1 Tea Light
- 1 Arduino
- 1 Strobe Light
- 2 5V Relays & Sockets
- 1 Solenoid
- 1 BBQ Lighter
- 2 Photosensors (Non-IR)
- 2 Resistors to Match the Photosensors(Same Value in Used Light Level)
- Male Headers
- Heat Shrink Tubing
- Wire
- Solder
- Hot Glue
- 24V adapter (for the solenoid, it may be different for yours)
- 9V adapter (for the Arduino)

Tools:
- Soldering Iron
- Hot Glue Gun
- Wire Cutter/Stripper
- Steak Knife
- Hobby Knife (X-acto Knife)
- Drill Bits

Program the Microcontroller

DSCN1013.JPG
To load the attached code onto the Arduino, open the file "Flare_Up_Pumpkin.pde" in the Arduino environment and follow the standard procedure to load it onto the Arduino (it varies from version to version of the hardware).

If you are doing this I am assuming you already know how to program an arduino. If not there are some good tutorials here.

Solder the Sensors

DSCN2933.JPG
DSCN2936.JPG
DSCN3023.JPG
Sensor Circuit.bmp
The light sensors work by comparing their resistance (dependent one the amount of light hitting the sensor) to a set value resistor. As the resistance of the sensor changes, the the voltage at the point between the light sensor and resistor changes. This voltage can be read by the arduino.

For this project, solder the light sensor on the end of a wire long enough to reach where it is needed. It is also good to use some heat shrink tubing around the bare wires at the end, because of the moisture in the pumpkin.

Next, expose a portion of the wire that connects to the negative sensor lead (the one to be read by the arduino). Solder one side of the resistor to the wire near the cut. The other side of the resistor needs to be soldered to the ground.

See the schematic below in the pictures for clarification and for the pins on the arduino to connect.

Solder all of the connections to go to the arduino (+5V, ground and 2 sensors) to the header, so it can be easily removed later.

Build the Gas Supply

DSCN2932.JPG
DSCN2983.JPG
DSCN2928.JPG
DSCN2982.JPG
DSCN2984.JPG
DSCN2986.JPG
DSCN2929.JPG
Gas Circuit.bmp
To construct the gas supply, start by disassembling the BBQ lighter and removing the gas container and lines.

Once that is finished, use hot glue and attach the solenoid to the gas. Attach it so that when the solenoid is activated, the gas opens. You may need to modify the solenoid so that it fits the gas supply, and so it has enough strength to turn on the gas. I modified mine (from a broken record player) by removing the spring, and flattening the spring anchors. I also added some neodymium magnets to help the strength of the solenoid.

Once that works reliably, connect the relay so that when it switches on, it completes the loop between the 24V adapter and the solenoid. See the electrical diagram in the pictures to help clarify things.

Hack the Strobe Light

DSCN2966.JPG
DSCN2959.JPG
DSCN2960.JPG
DSCN2951.JPG
DSCN2953.JPG
DSCN2957.JPG
DSCN2958.JPG
DSCN2961.JPG
DSCN2962.JPG
DSCN2963.JPG
DSCN2964.JPG
DSCN2965.JPG
This is one of the more dangerous steps (assuming you haven't caught your eyebrows on fire yet) because of the high voltages in the strobe light.

The idea is that you want to control the strobe light by using the relay to either ground or pull up the point that controls the speed of the strobe light. So when the relay is tripped, the point gets pulled high, causing the light to flash.

I set mine up to work by first having the strobe knob set to max. I then soldered the relay so that it connects the middle of the knob(where the voltage controls the flashing speed) to the ground. This causes it not to flash. When the relay is tripped the connection is broken, allowing it to flash. (see the pictures for more notes)

Before you go using this configuration, know that it is dangerous to short the positive to the ground. My strobe has a resistor (to control the max flashing rate) between the positive and the control potentiometer(knob). This makes it so it doesn't short. If yours doesn't have one, it might be good to add it before trying this.

It is also important to make sure the relay can handle the voltages you will be applying across it. My voltmeter registered 140V DC max across the point I will be using, which is within the 150V DC my relay is rated for.

Carve the Pumpkin

DSCN2993.JPG
DSCN2994.JPG
DSCN2996.JPG
DSCN2998.JPG
DSCN3000.JPG
DSCN3003.JPG
IMG_0004.JPG
DSCN2989.JPG
DSCN2990.JPG
DSCN2992.JPG
DSCN2991.JPG
I leave this step up to you. There are many good instructables on how to carve a pumpkin and with a quick Google search you can find many free patterns.

To carve the victim I like to use a steak knife for the larger parts and a hobby knife and drill bit (not in a drill) for the finer details.

Final Assembly

DSCN3005.JPG
DSCN2945.JPG
DSCN3006.JPG
DSCN3021.JPG
IMG_0004.JPG
IMG_0010.JPG
Start by drilling a hole large enough for the gas line and light sensor to detect the flame to fit through.

Next, attach all of the components to the pumpkin. I Find that the most effective way to attach the parts is using bent paper clips. However, if you are going to attach the strobe light or other heavier object to the pumpkin, I suggest using wood screws.

Once you have the sensor and gas threaded through the hole, use a couple more paper clips to anchor them to the pumpkin and aim them where they are needed. I suggest placing the gas opening 4 cm (about 2") away from the flame. Place the light sensor just off to the side behind the gas opening.



A potential pitfall is the gas may miss the flame if it is bumped or the flame height lowers, so aim accordingly. If the strobe light goes off for more then a second, this means the flame sensor missed when the gas went off, which stops the program. To fix it, just reset the arduino and adjust the sensor so it won't happen again. The continuous flash could also mean the pumpkin is low on gas, or isn't putting out enough gas, so fill it up or open the regulator if needed.

When everything is adjusted properly the system works quite reliably, producing a nice effect when people walk up.