Showing posts with label avidsen. Show all posts
Showing posts with label avidsen. Show all posts

Saturday, 27 August 2011

Remote outlets, AVIDSEN and CHACON


Remote Control AVIDSEN (103107)

ON OFF
A 265353 265349
B 266325 266321
C 266649 266645
D 266757 266753
E 266793 266789

period 150
















Remote Control CHACON (EMW200RC)

ON OFF
1 164023 164022
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
}


Tuesday, 4 January 2011

Arduino Remote Control Outlet

Today i bought an remote control outlet kit from avidsen (2 adapters + remote control)
Using the library and info from here and here, was possible to decode the on/off codes.

After finding these codes, i added and actuator to the platform with two functions on() and off()



Electric water heater


Outlet adapter


Outlet adapter and remote control



Actuator in system


Mobile version





New update: i was forgetting one important thing, set a policy to turn on water heater between 7 am and 8 am and turn off after 8 am.


My policies in system


turn_heater_on policy info