Build a Home Automation System

Information

Build a Home Automation System

Creating a home automation system that could be accessed with any internet capable device.

Website: http://thenewtech.tv/tech-life/arduinox10-home-automation-over-wifi
Members: 3
Latest Activity: Aug 22, 2012

Instructions & Materials

Introduction

On an episode of Hak5 they discussed setting up a garage door to be opened with a mobile device. Unfortunately, the audio was missing on the section where they discussed building/configuring the actual hardware to operate the garage door. This episode inspired me to start working on some home automation that could be accessed with any internet capable device without the need to install any software on the device. I wanted to be able to control several lights throughout my house and my garage.

I decided to use x10 to give me a starting point.

X10 is an international and open industry standard for communication among electronic devices used for home automation, also known as domotics. It primarily uses power line wiring for signaling and control, where the signals involve brief radio frequency bursts representing digital information. A wireless radio based protocol transport is also defined – wikipedia

Hardware

  1. Arduino
  2. 10KΩ Resistor
  3. x10 PSC04
  4. x10 Lamp Module
  5. x10 Universal Relay Module
  6. RJ11 Cable
  7. RJ11 Jack
  8. A LAMP server with an open USB port

Step 1: Building and Configuring the Arduino

Follow the wiring schematics below for wiring your Arduino to an RJ11 Jack.

Data Pin = Pin 8

Zero Crossing Pin = Pin 9

X10 - arduino wiring schematic

First, wire the 5v connection on the arduino to the 10KΩ resistor. This will be wired to the data pin 8. Second wire data pin 8 to the black wire on the RJ 11 surface jack. Wire the green and red wires on the RJ11 surface jack together and wire them to the ground pin on the arduino. Finally wire the data pin 9 to the yellow wire on the surface jack (sometimes you may have to swap the data pin and the zero crossing pin depending on if the RJ11 cord is a cross over or not)

RJ 11 Jack Wiring

Arduino and RJ11 Jack

Grab the x10 Libraryfrom arduino.

Clone my github repository https://github.com/jfurcean/House-Control.git.

Push the arduino/x10House.pde to the arduino. This code reads data in the form of ascii characters over the USB. It converts the characters into x10 byte codes that are used with the x10 Library. It then uses the x10 Library to push x10 commands out to the PSC04 moudle over RJ11.

Step 2: Configuring the Webserver

A webserver running PHP with an open USB port is required. I used a LAMP server running Ubuntu 11.04. Drop the contents of www from my github repository into your active web directory. Inside index.php you must set $serialPathto the path that your arduino is connected to. For example

$serialPath = “/dev/ttyUSB0″;

If your using Apache as your webserver you must allow Apache to write to that path name.
sudo chgrp www-data /dev/ttyUSB0

sudo chmod 775 /dev/ttyUSB0


The web application reads config files to display certain x10 actions. When viewing the web application you need to make sure userNameset. For example:
http://192.168.1.101?userName=john.

This will then use john.xml as the config file. The config file determines what stuff you can control.
<modules>
<module name=’Living Room’ house=’a’ unit=’1′ type=’light’/>
<module name=’Bed Room’ house=’a’ unit=’3′ type=’light’/>
<module name=’Garage’ house=’a’ unit=’2′ type=’button’/>
</modules>

Web Interface

Web Interface - x10 Modules Listing

Web Interface - Light x10 Module Control

Web Interface - x10 Button Module Control

Step 3: Add/Wire x10 Modules

All that is left is to plug any lamp into a lamp module, an appliance into an appliance module or wire a garage door, sprinkler, etc to the universal relay module.

x10 Lamp Module

x10 Universal Relay Module

Step 4: Enjoy

Enjoy being able to control your house from any internet capable device connected to your network

Light Control via iPod Touch

Garage Door Control via iPod Touch

Questions? Comments? Suggestions?

Please feel free to contact me

Discussion Forum

This project does not have any discussions yet.

Comment Wall

Comment

You need to be a member of Build a Home Automation System to add comments!

 

Members (2)

 
 
 

Find us on Facebook

@wired_design

From Wired Design

A High-Tech Street Sign That’s Plugged Into Social Media

A High-Tech Street Sign That’s Plugged Into Social Media
Like most other “all points” signs in the world, this one will lead you in the right direction towards your destination. But that’s pretty much where the similarities end.

FiftyThree, Makers of Hit Sketching App ‘Paper,’ Score $15M in VC Funding

FiftyThree, Makers of Hit Sketching App ‘Paper,’ Score $15M in VC Funding
Georg Petschnigg, FiftyThree's co-founder, is tight-lipped about what exactly his team has in the works. The company remains focused on building a new generation of creativity tools.

This Revolutionary Cooler Could Save Millions of Lives

This Revolutionary Cooler Could Save Millions of Lives
For the past four years, Global Good has been working on the Passive Vaccine Storage Device, an insulated container that will help to keep vaccines fresh for more than a month at a time.

This Smart Lounge Chair Is an Oasis for Road Warriors

This Smart Lounge Chair Is an Oasis for Road Warriors
The new Massaud Collection creates small islands of productivity optimized for mobile workers.

Events

© 2013   Created by Design Site Creator.

Badges  |  Report an Issue  |  Terms of Service