Thanks Erdin
strange thing is the data captured from my RF remote had inconsistent "pulse length"
below is data from the same button pressed for a few times. What would I use for pulse length value ? 300 or 299
Decimal: 1080226 (24Bit) Binary: 000100000111101110100010 Tri-State: not applicable PulseLength: 300 microseconds Protocol: 1
Raw data: 9304,260,936,260,940,256,940,856,340,260,936,260,936,260,944,256,952,248,1064,2544,2240,1020,180,632,340,860,340,260,936,68,120,76,3872,360,3888,72,28,28,3972,216,3764,364,64,44,3680,152,36,64,2500,
Decimal: 1080226 (24Bit) Binary: 000100000111101110100010 Tri-State: not applicable PulseLength: 299 microseconds Protocol: 1
Raw data: 9308,260,936,260,936,260,932,864,340,256,940,256,956,244,960,280,1428,708,3332,2084,148,692,336,860,336,860,340,260,936,860,340,860,340,856,344,256,940,452,36,28,196,52,3344,404,3576,476,3712,316,1184,
Decimal: 1080226 (24Bit) Binary: 000100000111101110100010 Tri-State: not applicable PulseLength: 299 microseconds Protocol: 1
Raw data: 9304,260,936,260,936,264,932,864,336,260,936,260,936,260,936,264,936,260,932,864,336,860,340,860,340,860,340,256,940,860,340,856,344,856,340,720,88,36,768,48,2392,684,3524,240,36,116,3632,32,16,
Decimal: 1080226 (24Bit) Binary: 000100000111101110100010 Tri-State: not applicable PulseLength: 300 microseconds Protocol: 1
Raw data: 9304,260,936,260,936,260,936,860,340,260,932,264,936,260,936,260,936,264,936,860,336,864,340,856,340,860,340,256,940,860,348,852,360,1228,816,12,928,116,1592,568,3640,68,16,304,740,44,2908,120,100,
Decimal: 1080226 (24Bit) Binary: 000100000111101110100010 Tri-State: not applicable PulseLength: 300 microseconds Protocol: 1
Raw data: 9308,256,936,260,940,256,940,860,340,256,940,260,936,260,952,248,988,336,1840,3328,340,860,336,860,344,856,340,264,936,856,340,860,340,856,344,244,3684,512,16,60,3612,396,3176,44,364,692,3468,84,3936,
my current sketch still has no respond
/*
Example for different sending methods
http://code.google.com/p/rc-switch/
Need help? http://forum.ardumote.com
*/
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
// variables will change:
int buttonState = 0; // variable for reading the pushbutton status
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(7, INPUT);
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
// Optional set pulse length.
mySwitch.setPulseLength(299);
// Optional set protocol (default is 1, will work for most outlets)
mySwitch.setProtocol(1);
// Optional set number of transmission repetitions.
//mySwitch.setRepeatTransmit(15);
}
void loop() {
buttonState = digitalRead(7);
if(buttonState == HIGH) {
digitalWrite(13, LOW);
mySwitch.send(1080226, 24);
delay(1000);
}
else {
digitalWrite(13,HIGH);
}
}