Home automation server with router

Home automation server with router
Turn a cheap router into a home automation server!

This project will allow you to switch outlets/lights from your iPhone, or any browser.
You will also be able to send out serial commands remotely.

This project is based on SmartLinc.
http://www.smarthome.com/2412N/SmartLinc-INSTEON-Central-Controller/p.aspx
http://wiki.smarthome.com/index.php?title=2412_Manual_rev_2.0

Components
• OpenWRT compatible router, with serial header
• AVR microcontroller Development Board (like Arduino)
• Actuators like: RF switched outlets (433.92Mhz) with a remote

 
Remove these adsRemove these ads by Signing Up
 

Step 1Overview

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.
« Previous StepDownload PDFView All StepsNext Step »
25 comments
Feb 21, 2012. 12:08 PMengcu90 says:
Hello
Great project!
I am doing it, but I have a problem that hex data is not received correctly.
First I tried to send from the router to my PC via:

echo -e "\x9B\x11\x08\x22\xC5\x0D" > /dev/ttyS0

I received: 0x9B 0x11 0x08 0x22 0xC5 0x0D 0x0D 0x0A
I receive 2 bytes in excess and I don't know why!

Then I tried to send from the router to pic, then from pic to my PC to check the received data, I get only 6 bytes but all wrong, not the data I sent.

I am using pic18f452 as I didn't use avr before..
I think the problem is the interface circuit..I used shmitt trigger, res, cap as you did but it doesn't work. Is this circuit need to be modified to be suitable for PIC?
Thanks
Sep 13, 2011. 8:40 AMssrinivas says:
hey mrx23, its a great project. I have decided to do this project as a part of my graduation project. it would be great if u help me. looking forward for some support. thanks man :)
Aug 21, 2011. 3:42 AMEddy Dean says:
looks great, but, how could this be done without WINSCP (as this does not work on my computer)?
Jul 19, 2011. 9:15 PMjohan_tr2000 says:
Nice idea mrx23 and joejoerowley.
Can you elaborate in more detail how to set up and configure the 741 so it allowed to remote control from outside wifi network (from internet)?
May 20, 2011. 6:33 AMMarkV6 says:
Nice project, any idea how to send data the other way? For example show a temperature from the serial port to the website.
Dec 2, 2010. 8:24 AMskeegan says:
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
schematic.png
Nov 14, 2010. 9:10 AMmadmax2003 says:
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
Nov 13, 2010. 11:48 AMan4rchyy says:
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
Nov 13, 2010. 2:39 PMan4rchyy says:
Thank you very much! This will be a great help along with your instructable
Nov 10, 2010. 1:22 PMSkyriam says:
I think X10 would be much cheaper since you skip the "Avr, RF, RF Remote" part.
Nov 13, 2010. 2:14 AMrocco says:
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.
Nov 12, 2010. 1:39 AMyoda112 says:
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.
Nov 11, 2010. 5:23 PMdbzoo says:
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
Nov 10, 2010. 5:37 PMComputothought says:
Liked the web page. I may borrow it.
Nov 10, 2010. 11:57 AMnfarrow says:
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.
Nov 10, 2010. 11:41 AMnfarrow says:
I had that phone at one time LOL
Nov 7, 2010. 11:04 AMjoejoerowley says:
Very very cool! You could even port forward the router and allow remote control from outside your wifi network! Nice project!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
12
Followers
1
Author:mrx23dot