Problema solucionado.
Gracias a Sui del foro http://forum.ardumote.com/
La solucion es :
Not sure if I'm right but you'll need the relay to first learn a code.
- Upload this sketch to your Arduino.
Code: Select all
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
}
void loop() {
delay(1000);
mySwitch.switchOn("11101", "00010");
delay(3000);
mySwitch.switchOff("11101", "00010");
while (true) {}
}
-
Relay: Power up, press red button until LED lit.
-
Within 20 seconds, press reset on arduino. relay LED blink then off to notify adaption successful.
-
If it worked you can control the realay with this commands: mySwitch.switchOn("11101", "00010"); mySwitch.switchOff("11101", "00010");