This is a classic trick that all Halloween decorators know and use to frighten Trick or Treaters.
But instead of buying it, why not make your own !?
In this tutorial, I will show you how to make your own motion / Wifi activated pumpkin, from beginning to end. It uses popular, easily available components that you should have lying around.
Let's get started!
Step 1: Bill of Materials
- Bill of Materials
Materials for Motion Detecting Pumpkin
Car horn x1
PIR Sensor (Motion Sensor)x1
Female headers x3
Wire (Solid, 24 gauge)
Wire (18 guage, optional
Any Power NPN Transistor or N-channel MOSFET x1
7805 5V Linear regulator x1
470 ohm resistor x1
1uf Capacitor (electrolytic) x2
12v Power Supply (or 12v lead-acid battery) x1
12v Relay x1
12v Battery charger x1
Materials for Wifi-Activated Pumpkin
- Raspberry Pi (any)
- Computer with mouse, keyboard, monitors,ect.
- Female headers x2
- Wire (24 guage)
- Power NPN transistor or N-channel MOSFET x1
- 12v Relay x1
- Car horn x1
- 12v Power supply (or 12v lead-acid battery) x1
- micro sd card x1
- 7805 5v Linear power supplyx1
- 1uf Electrolytic Capacitor x2
- Micro usb power cord /A to B USB cable
12v Battery charger x1
- Wood screws
Step 2: Tools
- Sharp Blade (or drywall saw)
- Soldering iron
- Sponge/ cleaning steel wool for Soldering iron tip
- Drill bits
- screwdriver/ screwdriver bits
Step 3: Soldering
When building circuits, I recommend building it on a breadboard and testing it for usability, and then soldering it.
If you don't know how to solder, not to worry. I have posted an excellent video tutorial from Collin's Lab (Adafruit). Acess the link below.
Step 4: Wifi-Activated Pumpkin
Wifi- Activated Pumpkin
To make this Wifi-Activated Pumpkin, I will be using the Raspberry Pi and the Blynk application.
To first write the software onto the micro sd card, consult this link. Writing Rasbian onto a sd card
To set up your Raspberry Pi: How to setup Raspberry Pi
Blynk with the Raspberry PiBlynk with the Raspberry Pi
Once you have setup the Blynk application on both your phone and your Raspberry Pi，set it as your model of Raspberry Pi. Create a new project and a new button. Set the button to GPIO pin 18. Attach the pin to your MOSFET or NPN power transistor, as shown in the schematic on the next step.
Step 5: Wifi-Activated Pumpkin Cont'd
The circuit for the Wifi-activated Pumpkin:
Also build or add a 5v Power supply for the Raspberry Pi.
To build a power supply from scratch, first connect the 12v battery's positive (red) and negative (black) terminals to the VIN and ground of the LM7805. Then connect both the LM7805's VIN and VOUT pins to ground of the LM7805 using the 1ufelectrolytic (polarity sensitive) capacitors.
After that is complete, cut off the USB A end of the A to B USB cable (micro USB cable) and strip red and black (positive and negative) wires. If there are other differently colored wires, just leave them.
Connect the black and red wires to the VIN and ground of the LM7805.
In the case that you are adding a premade supply, make sure that it can supply at least 700 milliamps.
Step 6: Motion-Activated Pumpkin
Build The circuit
The schematic may seem daunting at first, but it is really a very simple circuit.
I recommend building it on a breadboard and testing it for usability, and then soldering it.
Step 7: The Enclosure for the Motion or Wifi-activated Pumpkin
For the enclosure of the wifi activated pumpkin, I cut some scrap plywood into 15x20 rectangles and drilled holes into the sides of two of the pieces of plywood. I then used this as a template, and drilled into the sides of the other two pieces. Then cut another two pieces of plywood for the bottom, and use the same technique to drill holes into the vertical pieces. Now screw the wood screws into their corresponding holes.
You should have a neat wooden box.
Step 8: Pumpkin Carving
Carving your Pumpkin
Last, but not least, we are carving the pumpkin that will be the enclosure for our Wifi or motion-activated pumpkin. Make sure that your pumpkin can comfortably contain the 20x30cm enclosure for the electronics.
I recommend using a stencil which is taped onto the pumpkin, which is then cut out with a knife or a drywall saw, if you have one.
With that, my project is done!
Make sure to vote for me in the instructables contests!