Hi,
We are working on our senior project in which we are using the Arduino Duemilanove and an X10 system. We want the arduino to send basic x10 commands.What we have done is as far we have done the hardware setup as shown in http://www.arduino.cc/en/Tutorial/X10. We are using X10 power line interface, X10 lamp module, X10 transceiver module along with Arduino Duemilanove and Rj-11 cable. We also downloaded the x10 library from this website and tried to run a simple blink program:
/*
X10 blink
Blinks an lamp on an X10 lamp module.
Example was built using a PL513
X10 One-Way Interface Module from http://www.smarthome.com
as the modem, and a Powerhouse X10 Lamp Module from Smarthome
to plug the lamp in.
created 15 June 2007
by Tom Igoe
*/
#include <x10.h>
#include <x10constants.h>
#define zcPin 5
#define dataPin 6
// set up a new x10 instance:
x10 myHouse = x10(zcPin, dataPin);
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Lights on:");
// send a "lights on" command 3 times:
myHouse.write(A, ON,3);
delay(500);
Serial.println("Lights off:");
// send a "lights off" command 3 times:
myHouse.write(A, OFF,3);
delay(500);
}
The program uploads and runs just fine however, we get this output:
Lights on:
and thats it. The module should be turning on and off so lights on and lights off should be repeating. We have tried changing the delay and rewiring some connections also with using different digital pins for zero crossing and data but still no success. Also when we try to measure the data of the data pin on the oscilloscope we do not get anything. What do you suggest we do? We have looked at all the hardware connections and they seem to be right and software is directly from the library itself. We were thinking maybe where we are connecting these X10 modules may attenuate the signal but we are not exactly sure why it is not workin. Any ideas or suggestions on what is wrong or how to find out what is possibly wrong?
Thank you,
Ansum