Fog machines can be unruly beasts. Especially the non-professional models you buy for halloween. With low duty cycles, causing massive amounts of fog when you don’t need it, and no fog when you do. Wouldn’t it be nice to have fog only when people come up to your house? Yeah, I thought so too. Here we are going to make a motion triggered fog machine that will turn on when ever someone comes up to your door.
Step 1: The Parts
I used a 12vDC/125vAC relay from RadioShack. (I’m sure you can find a similar one somewhere else for cheaper) You can use what ever you like as long as the reed switch is rated for current up to 120vAC. Although this one says the coil requires 12vdc you should be able to get away with using a 9v battery.
http://www.newark.com/nte-electronics/r73-5d10-12/power-relay-spdt-12vdc-10a-pc-board/dp/02H7519 (This one should work exactly the same)
http://www.newark.com/jsp/search/productdetail.jsp?sku=94C2790 (Your 9v batteries probably wont last long in the 12v relay so you may want to try a 6v one)
*A Distance Sensor
This is the HC-SR04 Distance Sensor. We will use it as a digital tripwire. This one is cheaper than the “Ping” sensor and just as easy to use. I will provide the appropriate libraries later on so you don’t unnecessarily rip out your hair.
You are going to need something to control the 9v power supply. If you decide to use a 5v relay you should still use a transistor to protect your Arduino from the relay.
The diode is to keep you from ruining your transistor. Admittedly I didn’t use a diode for my first version of this and it worked fine but after reading more it started looking like a better idea.
The resistor is for a little added protection for your Arduino from the 9v battery and the relay. I used a 220OHM resistor.
*A Battery Connector
($2.99 for 5)
You need to connect to your battery some how dont you?
*A Project Box
I used a 2×3” project box from radio shack but you should probably look elsewhere to get a better price.
You want your wires to stay neat and tidy dont you?
*Copper Clad PerfBoard
To put your project on. I cut mine to about 1 1/2” x 1 3/4”
*Stranded Hookup wire
You need stranded wire to go from the remote to the project box. Use stranded wire for this because it can handle the constant movement this wire will endure. It also must be able to handle the AC current.
*Solid Core Hookup Wire
This wire is used for hooking up your circuitry and for connecting to the Arduino.
*A Fog Machine WITH A REMOTE!
(I paid $30 for mine but you may find them at better prices depending what time of year it is)
You need to make sure you get a fog machine with a corded remote with a switch or else trying to follow this intractable could get tricky. (if you like tricky then go ahead and get one with a different style remote) We are going to modify the remote so the whole fog machine will not be turned off completely and it will not need to heat up again every time you want fog.
(This is the one I bought but they are sold out for now so I have another one listed aswell)http://www.partycity.com/product/fog+machine+400+with+remote.do?sortby=ourPicks&size=all&from=Search&navSet=fog
Do I really need to go into why you need this?
To Check continuity and for shorts.
You are going to use it to cut holes in your project box
And I suppose thats it.
Step 2: Schematic
Follow the schematic and everything will turn out fine ^_^
Step 3: The Relay
Our relay is a little different than the one used in the schematic. Our coil pins are right next to each other.
Check the data sheet for your specific relay to make sure you are connecting to the right pins.
Tack down one pin of the relay then you can continue to solder on the other components.
[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]A Relay
A Distance Sensor
For more detail: Motion Triggered Fog Machine using an Arduino