This project is an Interactive Haunted House built upon a cloud service that changes color of a pumpkin when requested with text message.
- Arduino Uno
- Arduino Ethernet Shield
- 2 x 12V DC power supply
- M/M Jumper Wires
- 3 1k resistors
- 3 PNP Mosfets
- LED Strip Lights
- Foam Pumpkins
- Fog Machine
- Other spooky business
Building The Circuit
This is an exact circuit with one change. Instead of a 9V battery I used a 12V AC to DC converter. A 9V battery WILL work it just won’t be as bright.
This circuit is based off of this make guide tutorial and is relatively simple. The only trick here is that we are using MOSFETs (a type of transistor) in order to amplify the voltage going to the LEDs. Because the LEDs require more than the 5V the arduino puts out, we have to use MOSFETs to amplify the power. The way it works is the Arduino sends a digital signal (PWM) to the MOSFET through the (G) gate pin. The signal switches the transistor passing the higher current at 12 V, gathered through the (S) source, out through the (D) drain to the LED strip. This is a smart way of amplifying a small PWM signal to a device that requires a higher source of power.
Remember whenever working with power to be extremely careful. Always build circuits with the power unplugged. The last thing we want is for you to fry your Arduino or yourself, leave the shocking to Dr. Frankenstein.
Once you’ve got the circuit looking like this, we should be ready to go on to Step 2.
The Arduino Software
Now let’s get the Arduino piece working. Before we look at the code let’s make sure you are all setup.
First you need to:
- Download the Arduino IDE
- Connect the Arduino to your computer
- Download then Install the ArduinoPusherLibrary
- Sign up for Pusher
- Locate your Pusher API key
Now that you’re all set to go, let’s set up a sketch to make the Arduino talk to Pusher and trigger some fun LED colors.
Tags: Arduino, Ethernet shield, LED strip, halloween, pumpkin, hauntedhack, pusher, 201310
Author: Jarod Reyes