Termostato inalambrico con codec-adaptive wireless relay [SOLUCIONADO]

Problema solucionado. :slight_smile:

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.

  1. 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) {}
}

  1. Relay: Power up, press red button until LED lit.

  2. Within 20 seconds, press reset on arduino. relay LED blink then off to notify adaption successful.

  3. If it worked you can control the realay with this commands: mySwitch.switchOn("11101", "00010"); mySwitch.switchOff("11101", "00010");