After seeing many projects that use microcontrollers to switch mains voltages [Rob Miles] decided to share his preferred method. The shots you see above are an enclosed relay, part number RIBTU1C manufactured by Functional Devices Inc.
This in itself is not the full control scheme that he uses, but it takes care of the bulk of the hardware. He uses a triggering circuit based on a 555 timer (PDF). [Rob] mentioned that if you shop around, you can get the relay, 555 timer, and other components for under $15. This is a great solution for the money when you consider that you get an enclosure meant for handling high voltage and a nice terminal block to which you can connect the mains wiring. The relay itself can be triggered by a 9V battery via the transistor in the control circuit.
Notice the protoboard in the image above. There’s plenty of room for your driver circuit to rest inside the box, protected by that barrier from the HV circuitry. Check out the rest of the images he sent us after the break.