This project is a combination of several difference resources:
- My single-outlet control project with Raspberry Pi and Python, originally inspired by user wilq44's Raspberry Pi GPIO home automation
- WiringPi, software written by Gordon Henderson that allows "Arduino style" control of the GPIO pins from the command line in a Linux terminal
- Voice Command, a package written by Steven Hickson that allows voice control of the Raspberry Pi by connecting to a Google speech-to-text service.
A couple notes before you begin. This project is up-to-date as of December 2013, but Gordon and Steve may update their respective software in the future. If you notice any major changes to WiringPi or Voice Command that make my instructions obsolete, please leave a comment or send me a message. Also, while my previous Instructable was written to be super beginner friendly, this one is a little more advanced so it skips over a lot of the introductory material. I refer back to the single-channel version several times, instead of duplicating the content here.
Here is a list of the parts I used. Of course, if you know what you're doing you can make substitutes as needed, or shop around for cheaper suppliers. Quantities in parenthesis.
Materials & Tools
- (1) Raspberry Pi model B with standard accessories (power supply, monitor, keyboard/mouse, SD card, ethernet cable or USB wifi adapter). See my other Instructable for a list of the exact accessories I use.
- (1) USB webcam or microphone*. I have a Logitech Quickcam Pro 9000.
- (1) Three-channel wireless outlet remote, $21
- (1) Solderless breadboard, $10
- (5 different colored spools) 22 AWG solid-core hookup wire, $17
- (1 pack of 10) M/F jumper wires, $4
- (6) SPDT relay, $2
- (6) N-channel MOSFET, $1
- Multimeter, soldering iron, wire strippers, small Philips screwdriver. See my other Instructable for some suggestions if you don't already own tools.
The cost of this project depends heavily on what you already have lying around. If you already have a Raspberry Pi, webcam/mic and basic electronics equipment (tools, breadboard, jumper wire etc) it will only be about $40 for the wireless remote, relays and MOSFETs, and the cost goes up from there.
*My Quickcam Pro is 5 years old and I'm not sure if this exact model has been discontinued, or if it is the same thing as the "Webcam Pro 9000", which pops up on Amazon. You may need to do some poking around online to find out if your webcam is compatible with the Raspberry Pi (keep in mind that you only need the mic, and don't care about video). This wiki has an extensive list of verified peripherals.