**Wireless Power Outlets** Have you ever wanted to wirelessly control power outlets from your phone? You could buy a [[http://www.amazon.com/gp/product/B00BB2MMNE/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B00BB2MMNE&linkCode=as2&tag=timlelcom-20&linkId=ZH3IL7KMGIGGQ73H|Belkin WeMo Switch]] for over $40 for 1 outlet or build your own with 5 outlets for under $35 if you already own a [[http://www.raspberrypi.org/|Raspberry Pi]]. Hopefully this post will guide you in the right direction. **Voice Control Outlets (Follow up Guides)** *[[https://timleland.com/use-siri-to-control-wireless-power-outlets-homebridge/|Siri using HomeBridge]] *[[https://timleland.com/google-home-to-control-wireless-power-outlets/|Google Home]] *[[https://timleland.com/use-amazon-echo-to-control-wireless-power-outlets/|Amazon Echo]] **Hardware Needed:** *[[http://www.amazon.com/gp/product/B00DQELHBS/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B00DQELHBS&linkCode=as2&tag=timlelcom-20&linkId=QLQ3ESJONX6AGUSB|Etekcity 5 Pack]] (Try promo code: BHRMTOFF{{wiki:Image2}}) -[[http://www.amazon.com/gp/product/B00M2CUALS/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B00M2CUALS&linkCode=as2&tag=timlelcom-20&linkId=ZDOQ7BU6VPWMTWN5|433Mhz Rf Transmitter and Receiver]] [[http://www.amazon.com/gp/product/B00INTI8R2/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B00INTI8R2&linkCode=as2&tag=timlelcom-20&linkId=YBVQTXCCFGSLE4OX|(Backup Link)]] *[[http://www.amazon.com/gp/product/B00G1PNG54/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B00G1PNG54&linkCode=as2&tag=timlelcom-20&linkId=UFRFYBTKMZYZ74MB|Raspberry Pi B+ Ultimate Starter Kit]] **Steps**: *Connect wires to Rf transmitter and receiver chips([[http://i1.wp.com/timleland.com/wp-content/uploads/2014/12/Rf-Wiring-1.png|wiring diagram]]). See this [[https://projects.drogon.net/raspberry-pi/wiringpi/pins/|article ]]for more info on gpio pins. If you would like to use different pins check out [[https://github.com/ninjablocks/433Utils|Ninjablocks 433Utils]]                                                                      {{wiki:Image3}}  *Install [[http://www.raspberrypi.org/downloads/|Rasbian]] on Raspberry Pi (If using Raspbian Jessie use /var/www/html/rfoutlet for all paths below) *[[https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/|Install Wiring Pi]] *[[http://www.raspberrypi.org/documentation/remote-access/web-server/apache.md|Install Apache and PHP]] on the Raspberry Pi *Clone web files *Make sure you have git installed. If not, type: **sudo apt-get install git** *Type: **sudo** **git clone https:%%//%%github.com/timleland/rfoutlet.git /var/www/rfoutlet** *Use RFSniffer to find RF codes for your devices *Type: **sudo /var/www/rfoutlet/RFSniffer** *Record all 6 digit codes for on/off for each outlet *Update [[https://github.com/timleland/rfoutlet/blob/master/toggle.php|toggle.php]] with your codes and pulse *Type: **sudo nano /var/www/rfoutlet/toggle.php** *If the Received pulse is different than **189**, you should [[https://github.com/timleland/rfoutlet/blob/master/toggle.php#L38|edit line 38 to your pulse length]] *[[https://github.com/timleland/rfoutlet/blob/master/toggle.php#L38|Edit lines 6-27 wth your codes]] *[[https://github.com/timleland/rfoutlet/blob/master/toggle.php#L35|If you’re using a different pin than 0, Edit line 35]] *Use ctrl + x then "y" to save your file *Change permission of codesend program so sudo isn't required: *Type: **sudo chown root.root /var/www/rfoutlet/codesend** *Type: **sudo chmod 4755 /var/www/rfoutlet/codesend** *You should now be able to turn the outlets on/off from the command line. *Type: **./codesend 349491 -l 198 -p 0** *-l is for pulse length and -p is for different pins *Browse to Raspberry Pi ip address 'http:%%//%%/rfoutlet/{{wiki:Image4}}  *Now you should be able to power on/off your outlets from a web browser. If you would like more range you can add an antenna to the transmitter chip. I cut a 12 inch wire from a cat 5 cable and it worked great. *If you would like to schedule the outlets on or off you could use [[http://www.raspberrypi.org/documentation/linux/usage/cron.md|crontab]]. Here is an example to run everyday at 8pm. -00 20 * * * /var/www/rfoutlet/codesend "code number" Let me know if you have any questions in the comments below.