Let's cover a simple relay circuit that can be used with the Pi.
The first thing we do is figure it out conceptually, ok? Now you can only draw 50ma at +3.3V off of a Pi GPIO pin, so what you have to do is 2 or 3-stage it.
What you do is you use a SSR also known as a "solid-state relay". I'm not talking about the big suckers, but there are small DIP chips that you can get for under a dollar at Mouser or Digikey that are true microminiture SSR's. Electrically (from what I understand) they are just photo-triac optoisolators.
So for a smaller mechanical relay you can just two-stage it like this. To three-stage you run your SSR to a small relay that then throws the coil on the larger relay.
The trick is to quickly select the parts you need. How you order off of Mouser is by going to Mouser and search off of the top search box on every page. Its like google (kinda) so it matters what search terms you put in so you can drill-down their catalog of parts quickly. So for SSR, I'd type in "solid state relay dip" and see what comes up. Now before you go ordering what you do is you download the datasheet for each part you are thinking will do the job and check that the specs line up.
Now a DIP package SSR chip WILL be thrown by a Pi GPIO signal, ok (I'd still check to see if the voltage on it is OK..as in look for a lower voltage on its internal LED). But check to see that the voltage and the current capability of the SSR will throw the electromechanical relay. When you are confident of this THEN order the parts.
I'll go through the process myself manually and post up on this thread the parts that WILL work together. Then breadboard and do up a custom PCB (presensitized), drill and solder in the parts. You might want to case it as well (radio shack, or just add it to your part order).



***not the board we are working on***


