Hi,
YOUR ARE A GENIUS
this code is working for the 'ON' sequence :
/*
Author: AnalysIR 2004 - http://www.AnalysIR.com/
This sketch is Free to use - without restriction
*/
#include <IRremote.h>
IRsend irsend;
int khz = 38; //NB Change this default value as neccessary to the correct modulation frequency
//unsigned int Signal_0_0[] = {3464,1700,516,1212,488,1232,500,364,492,372,464,408,452,1276,440,428,488,380,496,1224,500,1228,492,368,444,1296,500,364,492,376,436,1292,516,1212,496,368,488,1240,492,1228,496,372,492,380,496,1228,496,368,496,372,496,1228,512,356,488,380,456,412,496,368,500,368,432,436,440,432,496,372,432,440,492,372,492,376,492,372,492,376,488,376,460,412,496,368,456,412,496,372,528,348,464,404,460,1260,492,376,492,376,488,380,496,368,468,408,492,1228,440,428,500,364,460,416,492,372,492,372,464,1264,456,412,464,404,496,372,496,372,492,376,436,432,436,432,496,372,492,372,496,372,492,1228,440,1288,500,364,488,380,520,1216,440,428,492,1232,436,432,500,364,488,376,492,1232,500,372,492,376,492,376,488,376,492,1228,512,1216,516,1212,492,1228,500,368,520,360,432,436,440,428,492,372,460,408,492,372,492,376,460,408,488,376,492,372,492,376,492,372,440,428,492,372,440,432,432,436,496,368,496,372,496,372,492,376,492,372,492,372,492,376,492,376,488,376,460,416,492,368,464,408,492,372,492,372,496,372,492,376,492,368,496,372,496,368,496,372,496,376,456,416,492,372,440,424,496,372,524,356,468,404,444,424,440,424,440,432,448,420,444,424,444,420,444,424,444,1280,492,1228,440,432,488,1236,496,364,436,436,440,17040,3636,1660,464,1268,444,1280,492,376,492,376,440,428,464,1260,464,400,496,372,440,1284,504,1224,464,408,456,1276,456,416,496,368,444,1276,496,1228,464,404,492,1228,460,1268,496,372,496,368,444,1288,496,368,468,404,440,1284,436,428,440,432,444,424,464,404,440,424,440,424,444,420,444,428,440,424,440,428,440,428,436,432,444,420,468,400,444,424,464,408,436,432,436,432,444,420,464,404,444,1276,464,408,460,424,440,424,444,420,444,428,440,1280,492,376,436,432,436,424,496,372,460,408,460,1264,468,404,440,428,468,404,496,368,444,424,464,404,440,424,440,428,440,424,440,428,492,1228,440,1288,444,424,440,428,440,1284,448,420,448,1276,464,404,440,436,460,412,444,1280,444,424,460,408,440,428,436,428,440,1280,460,1268,464,1260,440,1284,440,424,440,428,436,440,440,424,440,432,444,424,528,348,444,424,440,436,440,424,444,424,440,428,440,428,436,428,440,424,440,428,440,424,440,424,444,428,448,416,440,436,440,436,460,408,448,416,440,428,492,376,520,360,464,408,500,368,496,368,436,436,492,376,492,372,492,376,492,376,488,372,496,372,460,408,492,376,500,364,468,404,440,424,444,420,500,368,464,404,464,408,444,420,488,380,488,376,436,436,440,424,464,1264,436,1292,492,372,464,1260,440,424,496,376,436}; //AnalysIR Batch Export - RAW
unsigned int Signal_0_0[] = {3464, 1700, 516, 1212, 488, 1232, 500, 364, 492, 372, 464, 408, 452, 1276, 440, 428, 488, 380, 496, 1224, 500, 1228, 492, 368, 444, 1296, 500, 364, 492, 376, 436, 1292, 516, 1212, 496, 368, 488, 1240, 492, 1228, 496, 372, 492, 380, 496, 1228, 496, 368, 496, 372, 496, 1228, 512, 356, 488, 380, 456, 412, 496, 368, 500, 368, 432, 436, 440, 432, 496, 372, 432, 440, 492, 372, 492, 376, 492, 372, 492, 376, 488, 376, 460, 412, 496, 368, 456, 412, 496, 372, 528, 348, 464, 404, 460, 1260, 492, 376, 492, 376, 488, 380, 496, 368, 468, 408, 492, 1228, 440, 428, 500, 364, 460, 416, 492, 372, 492, 372, 464, 1264, 456, 412, 464, 404, 496, 372, 496, 372, 492, 376, 436, 432, 436, 432, 496, 372, 492, 372, 496, 372, 492, 1228, 440, 1288, 500, 364, 488, 380, 520, 1216, 440, 428, 492, 1232, 436, 432, 500, 364, 488, 376, 492, 1232, 500, 372, 492, 376, 492, 376, 488, 376, 492, 1228, 512, 1216, 516, 1212, 492, 1228, 500, 368, 520, 360, 432, 436, 440, 428, 492, 372, 460, 408, 492, 372, 492, 376, 460, 408, 488, 376, 492, 372, 492, 376, 492, 372, 440, 428, 492, 372, 440, 432, 432, 436, 496, 368, 496, 372, 496, 372, 492, 376, 492, 372, 492, 372, 492, 376, 492, 376, 488, 376, 460, 416, 492, 368, 464, 408, 492, 372, 492, 372, 496, 372, 492, 376, 492, 368, 496, 372, 496, 368, 496, 372, 496, 376, 456, 416, 492, 372, 440, 424, 496, 372, 524, 356, 468, 404, 444, 424, 440, 424, 440, 432, 448, 420, 444, 424, 444, 420, 444, 424, 444, 1280, 492, 1228, 440, 432, 488, 1236, 496, 364, 436, 436, 440}; //AnalysIR Batch Export - RAW
void setup()
{
Serial.begin(9600);
irsend.enableIROut(khz);
delay(1000);
Serial.println(F("AnalysIR"));
}
void loop()
{
irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0) / sizeof(int), khz);
delay(10000); //send signal every 10 seconds for testing
}
Last think, Is it possible to translate for me the 'OFF' code below ?
Raw: (583) 3464, -1700, 516, -1208, 440, -1280, 440, -428, 436, -432, 520, -352, 492, -1232, 436, -428, 436, -432, 496, -1224, 444, -1280, 516, -352, 512, -1216, 516, -352, 440, -424, 492, -1228, 516, -1212, 516, -352, 492, -1260, 408, -1288, 516, -352, 496, -372, 460, -1264, 436, -428, 488, -380, 520, -1216, 440, -428, 460, -412, 464, -404, 492, -372, 440, -428, 460, -412, 440, -428, 440, -428, 436, -432, 444, -428, 492, -372, 492, -376, 488, -376, 440, -428, 456, -412, 496, -368, 436, -436, 492, -372, 524, -352, 440, -428, 440, -428, 488, -376, 492, -376, 500, -372, 440, -424, 492, -372, 496, -1228, 436, -432, 436, -436, 460, -408, 492, -372, 492, -376, 500, -1224, 444, -424, 440, -424, 496, -384, 436, -436, 496, -368, 432, -432, 496, -372, 496, -368, 444, -424, 516, -356, 436, -1288, 496, -1224, 496, -376, 488, -376, 488, -1232, 500, -368, 496, -1228, 516, -356, 500, -368, 444, -424, 440, -1284, 500, -364, 492, -376, 436, -432, 432, -1292, 492, -1232, 512, -1212, 464, -1272, 460, -1260, 524, -352, 492, -372, 492, -372, 496, -372, 460, -408, 436, -440, 492, -372, 460, -408, 488, -380, 436, -432, 444, -420, 496, -372, 464, -404, 460, -408, 488, -380, 488, -376, 488, -376, 488, -380, 488, -380, 496, -368, 444, -424, 440, -428, 440, -428, 456, -408, 436, -432, 468, -404, 440, -428, 436, -432, 444, -424, 464, -400, 444, -420, 444, -424, 464, -404, 440, -424, 440, -424, 444, -420, 444, -424, 464, -404, 440, -424, 440, -432, 468, -400, 444, -420, 444, -424, 444, -420, 444, -424, 440, -428, 440, -424, 440, -428, 436, -432, 444, -424, 444, -424, 440, -424, 440, -428, 440, -1280, 492, -376, 436, -432, 444, -420, 468, -17052, 3600, -1696, 436, -1288, 444, -1284, 460, -408, 436, -428, 456, -408, 436, -1292, 460, -408, 440, -428, 436, -1284, 468, -1264, 468, -400, 464, -1260, 440, -432, 444, -424, 464, -1260, 436, -1288, 444, -424, 464, -1260, 460, -1264, 444, -424, 464, -400, 464, -1264, 436, -432, 444, -420, 468, -1264, 444, -424, 444, -420, 464, -412, 464, -404, 440, -428, 440, -424, 440, -424, 440, -428, 440, -428, 436, -428, 460, -412, 464, -404, 440, -424, 464, -400, 444, -424, 460, -412, 464, -404, 464, -408, 436, -428, 456, -412, 436, -424, 440, -428, 460, -408, 436, -428, 436, -428, 460, -408, 436, -1284, 448, -416, 460, -408, 468, -400, 464, -404, 460, -404, 440, -1284, 440, -424, 460, -408, 460, -416, 460, -412, 440, -424, 496, -368, 496, -372, 440, -428, 440, -428, 436, -428, 492, -1236, 440, -1280, 440, -424, 496, -376, 488, -1236, 496, -372, 492, -1232, 436, -432, 488, -380, 496, -368, 444, -1280, 472, -400, 468, -400, 496, -368, 476, -1252, 468, -1256, 476, -1248, 484, -1244, 464, -1256, 476, -392, 472, -404, 496, -376, 468, -408, 468, -396, 468, -400, 464, -400, 468, -396, 488, -376, 492, -376, 488, -380, 488, -380, 484, -388, 468, -408, 488, -384, 472, -392, 484, -384, 472, -392, 504, -376, 500, -372, 492, -372, 472, -396, 492, -380, 464, -404, 472, -396, 468, -396, 472, -396, 468, -396, 472, -392, 492, -376, 492, -376, 488, -380, 484, -384, 472, -392, 476, -388, 464, -404, 496, -372, 492, -380, 464, -400, 464, -404, 472, -392, 484, -388, 468, -396, 492, -384, 492, -384, 492, -376, 468, -396, 468, -396, 472, -396, 468, -396, 468, -400, 468, -396, 492, -380, 484, -1240, 468, -396, 472, -396, 468, -396, 472,
Another question, how much is it to buy software ANALYSIR (license cost) ?
If i buy ANALYSIR, how to proceed to insert the output of the capture sketch into the software and generate the Arduino code ?
What hard is required for the ANALYSIR software ?
VERY THANKS
Regards