Hello guys, I want send a IR signal to turn my lamp ON/OFF, I used a example from IRremote library (IRrecvDumpV2) and I got this with my IR receiver:
Encoding : UNKNOWN
Code : A32AB931 (32 bits)
Timing[23]:
+1200, - 450 +1250, - 450 + 400, -1250 +1200, - 450
+1250, - 450 + 400, -1250 + 400, -1250 + 400, -1250
+ 400, -1250 + 400, -1250 + 400, -1250 +1250
unsigned int rawData[23] = {1200,450, 1250,450, 400,1250, 1200,450, 1250,450, 400,1250, 400,1250, 400,1250, 400,1250, 400,1250, 400,1250, 1250}; // UNKNOWN A32AB931
The encoding is unkown, so, I tried to send it as raw with this example:
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
int khz = 38; // 38kHz carrier frequency for the NEC protocol
unsigned int irSignal[] = {1200,450, 1250,450, 400,1250, 1200,450, 1250,450, 400,1250, 400,1250, 400,1250, 400,1250, 400,1250, 400,1250, 1250}; //AnalysIR Batch Export (IRremote) - RAW
irsend.sendRaw(irSignal, sizeof(irSignal) / sizeof(irSignal[0]), khz); //Note the approach used to automatically calculate the size of the array.
delay(1000); //In this example, the signal will be repeated every 5 seconds, approximately.
}
It's not turning it on, what's the problem? Thanks