-
Popular Posts
-
Search
-
Recent Posts
Follow for New Updates
Tags
amazon analytics api apple blog browser chrome chromium Design dropbox error extension facebook firefox google greasemonkey ipad javascript jQuery keyboard linux lion mac Marketing mysql os x osx php plugin project quicksilver scam search SEO social spam ssl themes twitter unix ux video windows woo wordpress
Tag Archives: arduino
Review: X10 Home Automation with Arduino
This is a re-post of this blog posting since it appears to be a 404. —- My current project revolves around using the Arduino and the X10 home automation protocol and hardware. The gist of what I am doing with this project is using the Parallax RFID (found here) tag to identify me and then use X10 protocol/hardware (Part# 1134B from SmartHomes via Amazon) to automate my home. Below is the wiring diagram. In this example, I control 1 device (on X10 circuit A, device 1). I initally turn the device off. When the RFID tag I am looking for is read, I turn the lights on. Next time that tag is read, I turn the lights off. I acknowledge various changes by providing feedback to the user via blinking LEDs and serial comms to the PC. I use the free SSH/telnet client PuTTY, found here. Now, for the code… ——————————————– #include x10.h #include x10constants.h // RFID reader variables #define TAG_LEN 12 char tag[12] = {’0′, ‘F’, ’0′, ’3′, ’0′, ’3′, ’7′, ’1′, ’8′, ’5′}; char code[12]; int bytesread = 0; int ledPin = 13; // Connect LED to pin 13 int rfidPin = 2; // RFID enable pin connected to digital pin 2 int val=0; // X10 Control unit variables int zcPin = 9; int dataPin = 8; int repeat = 1; boolean LightsOn = false; // Declare and instance of an X10 control module x10 myHouse = x10(zcPin, dataPin); // 9 is 0xing pin; 8 is data pin … Continue reading

