Professional Documents
Culture Documents
Home Automation Server Router
Home Automation Server Router
Step 3: Configure the Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 4: Setup the web page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 5: Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 6: More Technical Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 7: What is gained? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/Home-automation-server-with-router/
http://www.instructables.com/id/Home-automation-server-with-router/
Step 1: Overview
The System The Router runs a web server, you access it via browser. After you push a button on the web page the router sends out a serial command, we process this with a microcontroller, the AVR converts it to RF protocol, injects it into the RF remote, which controls the RF outlets.
Step 2:
Buy a router, listed here:http://wiki.openwrt.org/toh/start I chose the TP-Link TL-WR741ND, because it is cheap (~$30). Disassembly it (this will void the warranty!). You will have to solder a serial header to the circuit board, to gain access to the serial port. The TL-WR741ND instructions can be found here: http://wiki.openwrt.org/toh/tp-link/tl-wr741nd For other routers, search here: http://wiki.openwrt.org/toh/start After finished soldering, manage the four cables out of the case, through the vent holes. I used a RJ22 plug at the end, for rapid connection.
http://www.instructables.com/id/Home-automation-server-with-router/
Image Notes 1. Nice case for AVR and RF remote :D 2. RJ22 connection 3. TP-Link TL-WR741ND Router 4. AC adapter for AVR & RF remote
http://www.instructables.com/id/Home-automation-server-with-router/
http://www.instructables.com/id/Home-automation-server-with-router/
File Downloads
HomeAutomation web page.zip (1 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'HomeAutomation web page.zip']
Packet Generator.xls (17 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Packet Generator.xls']
Step 5: Hardware
For me the Atmega88 (with internal 8Mhz oscillator) failed to run on 3V3 (supplied by the router), so I had to include an external power supply, with 5V. Because of that, we need to make a voltage conversion between the 5V MCU <-> 3V3 Router serial. This PSU also has a 12V rail for the RF remote control, so it can run without battery. Signal injection into RF remote controller You need to find your own remote control's data path, normally it is between the IC and the transistor (see image). Use a resistor for driving the transistor. Firmware Burn the firmware using: http://www.atmel.com/forms/software_download.asp?family_id=607&fn=dl_AvrStudio4Setup.exe http://sourceforge.net/projects/winavr/files/WinAVR/20100110/WinAVR-20100110-install.exe/download http://electronics-diy.com/avr_programmer.php MCU: ATMEGA88 Oscillator: internal 8Mhz Clear DIV8 fuse! Firmware included in zip file. You are more than welcome to share your improvements on the software.
http://www.instructables.com/id/Home-automation-server-with-router/
http://www.instructables.com/id/Home-automation-server-with-router/
Image Notes 1. TX IC
File Downloads
MCU M88 int8Mhz.zip (36 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'MCU M88 int8Mhz.zip']
Remote Encoder HX2262.pdf ((612x792) 341 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Remote Encoder HX2262.pdf']
Schematic.ms10 (162 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Schematic.ms10']
Schematic.pdf ((595x842) 62 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Schematic.pdf']
File Downloads
Remote Decoder PT2272.pdf ((612x792) 1 MB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Remote Decoder PT2272.pdf']
Remote Encoder HX2262.pdf ((612x792) 341 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Remote Encoder HX2262.pdf']
http://www.instructables.com/id/Home-automation-server-with-router/
Image Notes 1. Address setup 2. RX IC 3. RF PSU Connector 4. Relay driver transistor 5. Relay
Image Notes
http://www.instructables.com/id/Home-automation-server-with-router/
1. RX IC 2. RF board
http://www.instructables.com/id/Home-automation-server-with-router/
http://www.instructables.com/id/Home-automation-server-with-router/
File Downloads
SmartLinc web pages by xlurkr.zip (354 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'SmartLinc web pages by xlurkr.zip']
http://www.instructables.com/id/Home-automation-server-with-router/
Related Instructables
A Media Center solution even the wife and kids will use. by Hextor
Comments
19 comments Add Comment
skeegan says:
Dec 2, 2010. 8:24 AM REPLY Hi mrx23, This project is great- I think it could be really useful for me. I have a couple of questions regarding the schematic (please forgive my electronic ignorance:). Schematic attached-would be great if you could offer some insight. S
mrx23 says:
Dec 4, 2010. 3:00 PM REPLY hi, - 1st 2 arrows: Schmitt trigger inverters, in one package you get 6 of them, the last 2 of them are unused (so they had to be terminated properly) - the PSU nets are only connected logically, in the schematic - the last one is an LED I wouldn't recommend this project for beginners, first you should learn the basics on an Arduino. Cheers,
madmax2003 says:
Nov 14, 2010. 9:10 AM REPLY Why didn't you use an arduino with Ethernet shield? In my opinion its easier than the Serial Communication between Router and arduino. What do you think? Greets max
mrx23 says:
Hi, using a router as an embedded system has a lot of advantages: for ~$30 you get: - ~17MB of free user flash space (that's a lot) - LAN PHY, no need to get magnetics, no soldering involved - Sweet case, SMPS PSU - Wifi -> can't beat this with AVR :D - Linux OS, the possibilities are endless - upload new web pages via SSH anytime - No hassle with IP stack - 400 Mhz CPU - Possible USB 1.1/2.0 support - Pre-installed web server app You will save insane amount of time, if you choose this route. Serial communication was very easy, it's a state machine in C, built in one day. Lets compare this to the widely used Arduino: Arduino Eth Shield $40 Arduino $30 -> flash space for web pages <<1MB + PSU + CASE + Time^2... It's an easy choice.
http://www.instructables.com/id/Home-automation-server-with-router/
mrx23 says:
Nov 11, 2010. 2:46 AM REPLY I'm not familiar with the X10 prices, but these RF switched outlets cost about $8 each. X10 products unfortunately are not available in our country. You can make this system much safer, if you protect your home network with WPA2.
an4rchyy says:
Nov 13, 2010. 11:48 AM REPLY Would you be able to link a page for the outlets you used? I was unable to find switched outlets for 8$ and it would be great to get them that cheaply
mrx23 says:
3 for $25
http://www.amazon.com/Stanley-31164-Wireless-Control-Transmitter/dp/B0020ML762/ref=sr_1_5?s=hi&ie=UTF8&qid=1289680424&sr=1-5
an4rchyy says:
Thank you very much! This will be a great help along with your instructable
kal00 says:
I think X10 would be much cheaper since you skip the "Avr, RF, RF Remote" part.
rocco says:
Nov 13, 2010. 2:14 AM REPLY X10 is only cheaper if you exclude the feature that costs the most - the web based control of power outlets/switches... so, that's not really a fair comparison.
yoda112 says:
Nov 12, 2010. 1:39 AM REPLY Nice projet. I would like to use the same router. What version of the router did you use? And what version of openwrt? Do you have any problems with openwrt? Thank you.
mrx23 says:
Nov 12, 2010. 1:48 AM REPLY I used v1.9 HW, this might be the latest you can get in shops. For this device I downloaded this firmware: http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/ar71xx/default/openwrt-ar71xx-generic-tl-wr741nd-v1-squashfs-factory.bin Openwrt runs perfectly, it's very stable.
dbzoo says:
Nov 11, 2010. 5:23 PM REPLY Yeah not a bad effort I did something similar with an old ADSL router - see the Home Automation Hub project. http://www.dbzoo.com/livebox/livebox
mrx23 says:
Nice work!
yoghurtsniffer says:
Nov 11, 2010. 3:18 AM REPLY Hi, Nice project. I am planning on doing something very similar very soon if time permits. But from scratch. I have some ideas on some protocols i can use with some of the Arduino stuff. Thanks for your ible :D
Computothought says:
Liked the web page. I may borrow it.
nfarrow says:
Nov 10, 2010. 11:57 AM REPLY If you had some kind of security on your router you could plug the, "RF switched outlet" to an automated door opener/gate and only give the security key & web address to only people you want over.
nfarrow says:
I had that phone at one time LOL
joejoerowley says:
Very very cool! You could even port forward the router and allow remote control from outside your wifi network! Nice project!
http://www.instructables.com/id/Home-automation-server-with-router/