ON OFF
A 265353 265349
B 266325 266321
C 266649 266645
D 266757 266753
E 266793 266789
Remote Control CHACON (EMW200RC)
A 265353 265349
B 266325 266321
C 266649 266645
D 266757 266753
E 266793 266789
period 150
ON OFF
1 164023 164022
2 172771 172770
3 175687 175686
4 176659 176658
2 172771 172770
3 175687 175686
4 176659 176658
period 360
(Note: you may have to try different period intervals, only this worked for me, and it is different from what i get in show_received_code program from RemoteSwitch Library)
How control remote outlets with Arduino ?
1 - Get an RF 433Mhz transmitter module
2 - Install RemoteSwitch library
3 - Connect module to PIN 4
4 - Upload program with the right codes
#include <RemoteSwitch.h>
#define OUTLET_A_ON 265353
#define OUTLET_A_OFF 265349
#define PERIOD 150;
#define RF_TX_PIN 4
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Sending off");
transmit(OUTLET_A_OFF);
delay(5000);
Serial.println("Sending on");
transmit(OUTLET_A_ON);
delay(5000);
}
void transmit(unsigned long rcode){
unsigned long code = rcode;
unsigned long period = PERIOD;
code |= (unsigned long)period << 23;
code |= 3L << 20;
RemoteSwitch::sendTelegram(code, RF_TX_PIN); // RF transmitter pin
}
No comments:
Post a Comment