The sequences you've sent me are not working
Here the code I've used to test it:
Code: Select all
#include <IRremote.h>
IRsend irsend;
unsigned int Signal_Beep_0[] = {1450,250,1350,750,450,800,1250,450,1250,850,400,1250,400,1250,400,1300,400,850,1250,850,400,1250,400,1250,400,1300,400,1250,400,1300,400,1250,400,1300,350,1300,400,1250,400}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int Signal_Beep_1[] = {1400,250,1350,800,450,850,1200,450,1200,900,350,1300,400,1300,350,1300,400,850,1250,850,350,1300,400,1300,350,1300,400,1250,400,1300,400,1300,350,1300,400,1250,400,1300,350}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int Signal_Beep_2[] = {1400,250,1300,800,450,850,1250,400,1200,900,400,1250,400,1300,400,1250,400,850,1200,900,400,1250,400,1300,400,1250,400,1300,400,1250,400,1250,400,1300,350,1300,400,1250,400}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int Signal_OFF_3[] = {3200,600,600,650,1400,250,1350,350,1300,350,1300,400,1250,400,1250,850,400,1250,400,1250,450,1250,400,1250,400,1300,400,1250,400,1250,400,1250,450,1250,400,1250,400}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int Signal_OFF_4[] = {3150,600,650,600,1400,250,1400,300,1300,350,1300,400,1250,450,1200,850,400,1250,400,1300,400,1250,400,1250,450,1250,400,1250,400,1250,450,1250,400,1250,400,1250,400}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int Signal_ON_5[] = {3200,550,600,650,1400,300,1300,400,1250,400,1250,450,1250,850,350,900,1200,450,1250,400,1250,850,400,1250,400,1250,450,1250,400,1250,450,1250,400,1250,400,1250,400}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int Signal_ON_6[] = {3200,600,600,600,1450,250,1350,350,1300,350,1300,400,1200,850,400,850,1250,450,1250,400,1250,850,400,1250,400,1300,400,1250,400,1250,400,1250,400,1350,350,1250,400}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int Signal_ON_7[] = {3250,550,600,650,1400,250,1350,350,1250,400,1250,450,1250,850,350,850,1250,450,1250,400,1250,850,400,1250,400,1250,450,1250,400,1250,400,1300,400,1250,400,1250,400}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int khz[] = {38, 40, 49, 36, 56, 33, 30, 455};
void setup()
{
Serial.begin(9600);
}
void loop() {
// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit http://www.AnalysIR.com or email info@....... for further details
// int khz=38; //NB Change this default value as neccessary to the correct modulation frequency
for (int i = 0; i < 9; i++) {
Serial.print("Sending signal at: ");
Serial.print(khz[i]);
Serial.println(" kHz");
Serial.println("Sending signal Signal_Beep_0");
irsend.sendRaw(Signal_Beep_0, sizeof(Signal_Beep_0)/sizeof(int), khz[i]); //AnalysIR Batch Export (IRremote) - RAW
delay(300);
Serial.println("Sending signal Signal_Beep_1");
irsend.sendRaw(Signal_Beep_1, sizeof(Signal_Beep_1)/sizeof(int), khz[i]); //AnalysIR Batch Export (IRremote) - RAW
delay(300);
Serial.println("Sending signal Signal_Beep_2");
irsend.sendRaw(Signal_Beep_2, sizeof(Signal_Beep_2)/sizeof(int), khz[i]); //AnalysIR Batch Export (IRremote) - RAW
delay(300);
Serial.println("Sending signal Signal_OFF_3");
irsend.sendRaw(Signal_OFF_3, sizeof(Signal_OFF_3)/sizeof(int), khz[i]); //AnalysIR Batch Export (IRremote) - RAW
delay(300);
Serial.println("Sending signal Signal_OFF_4");
irsend.sendRaw(Signal_OFF_4, sizeof(Signal_OFF_4)/sizeof(int), khz[i]); //AnalysIR Batch Export (IRremote) - RAW
delay(300);
Serial.println("Sending signal Signal_ON_5");
irsend.sendRaw(Signal_ON_5, sizeof(Signal_ON_5)/sizeof(int), khz[i]); //AnalysIR Batch Export (IRremote) - RAW
delay(300);
Serial.println("Sending signal Signal_ON_6");
irsend.sendRaw(Signal_ON_6, sizeof(Signal_ON_6)/sizeof(int), khz[i]); //AnalysIR Batch Export (IRremote) - RAW
delay(300);
Serial.println("Sending signal Signal_ON_7");
irsend.sendRaw(Signal_ON_7, sizeof(Signal_ON_7)/sizeof(int), khz[i]); //AnalysIR Batch Export (IRremote) - RAW
delay(1000);
}
}
Thanks!
Simon