Decoding Mitsubishi AIRcooler Mitsubishi MSZ-GE25VA G-Inverter remote type KM09A

hello

i changed the rawbuf to 300 in the IRLib.h and tried this code :

#include <IRLib.h>

int RECV_PIN = 11;

IRsend irsend;
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency


unsigned int Signal_0_0[] = {3406,1664,416,1274,416,1274,442,390,442,390,442,390,416,1274,442,390,442,390,416,1274,416,1274,442,390,416,1274,442,390,442,390,416,1274,416,1274,442,390,416,1274,416,1274,442,390,442,390,416,1274,442,390,442,390,416,1274,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,416,1274,442,390,442,390,442,390,442,390,442,390,442,390,442,390,416,1274,442,390,442,390,416,1274,442,390,442,390,416,1274,442,390,442,390,442,390,442,390,442,390,416,1274,416,1274,442,390,416,1274,416,1274,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,416,1274,442,390,442,390,416,1274,442,390,416,1274,442,390,442,390,416,1274,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,442,390,416,1274,416,1274,416,1274,416,1274,442,390,442,390,442,390,416,16383}; //AnalysIR Batch Export - RAW

void setup()
{
}

// Stores the code for later playback
void loop()
{
  irsend.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export - RAW
 delay(5000);
}

Unfortunatly nothing happend on my AIRcooler Mitsubishi MSZ-GE25VA G-Inverter and the remote type KM09A

I wonder if the IRCode found on a forum are right.
I used the IRrecvdump sketch and the outputs are :

ON:

Decoded Unknown: Value:0 (0 bits)
Raw samples(36): Gap:450
Head: m450 s450
0:m350 s500 1:m400 s450 2:m400 s450 3:m400 s450
4:m400 s450 5:m400 s450 6:m450 s450 7:m350 s500
8:m400 s450 9:m400 s1300 10:m350 s1350 11:m450 s1300
12:m300 s550 13:m400 s1300 14:m350 s500 15:m400 s450

16:m350
Extent=18350
Mark min:300 max:450
Space min:450 max:1350

Decoded Unknown: Value:0 (0 bits)
Raw samples(36): Gap:500
Head: m400 s450
0:m400 s450 1:m350 s550 2:m400 s450 3:m400 s450
4:m400 s450 5:m400 s450 6:m400 s500 7:m350 s500
8:m350 s500 9:m400 s1300 10:m400 s1300 11:m350 s1350
12:m400 s450 13:m450 s1300 14:m400 s450 15:m400 s450

16:m400
Extent=18400
Mark min:350 max:450
Space min:450 max:1350

OFF:

Decoded Unknown: Value:0 (0 bits)
Raw samples(36): Gap:550
Head: m350 s500
0:m350 s500 1:m400 s450 2:m400 s500 3:m350 s500
4:m300 s550 5:m400 s450 6:m400 s450 7:m400 s450
8:m450 s450 9:m300 s1400 10:m350 s1350 11:m400 s1300
12:m350 s500 13:m450 s450 14:m300 s550 15:m400 s450

16:m400
Extent=17550
Mark min:300 max:450
Space min:450 max:1400

Decoded Unknown: Value:0 (0 bits)
Raw samples(36): Gap:450
Head: m400 s450
0:m400 s450 1:m400 s450 2:m400 s500 3:m350 s500
4:m300 s550 5:m400 s450 6:m400 s450 7:m400 s450
8:m450 s450 9:m300 s1400 10:m300 s1400 11:m400 s1300
12:m350 s500 13:m400 s500 14:m300 s550 15:m400 s450

16:m400
Extent=17550
Mark min:300 max:450
Space min:450 max:1400

Can someone helps me to translate in raw format?
Regards
Benoit

I wonder if the IRCode found on a forum are right.

Where did you get the signals. Did you record them yourself using the library or just copy them from a forum?

post the code you used to capture the signals & post the signal output again. (remember RAWBUF should be set to 230)

Hello again,
Here is what i did today.

1. i put rawbuf to 230 in IRLib.h

#define RAWBUF 230 // Length of raw duration buffer (cannot exceed 255)

2. I loaded the sketch “IRrecvDump” see below

/* Example program for from IRLib – an Arduino library for infrared encoding and decoding
 * Version 1.3   January 2014
 * Copyright 2014 by Chris Young http://cyborg5.com
 * Based on original example sketch for IRremote library 
 * Version 0.11 September, 2009
 * Copyright 2009 Ken Shirriff
 * http://www.righto.com/
 */
/*
 * IRLib: IRrecvDump - dump details of IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 */

#include <IRLib.h>

int RECV_PIN = 11;

IRrecv My_Receiver(RECV_PIN);

IRdecode My_Decoder;
unsigned int Buffer[RAWBUF];

void setup()
{
  Serial.begin(9600);
  delay(2000);while(!Serial);//delay for Leonardo
  My_Receiver.enableIRIn(); // Start the receiver
  My_Decoder.UseExtnBuf(Buffer);
}

void loop() {
  if (My_Receiver.GetResults(&My_Decoder)) {
    //Restart the receiver so it can be capturing another code
    //while we are working on decoding this one.
    My_Receiver.resume(); 
    My_Decoder.decode();
    My_Decoder.DumpResults();
  }
}

3. I captured the remote “on” signal see below

Decoded Unknown: Value:0 (0 bits)
Raw samples(230): Gap:52830
Head: m3300 s1800
0:m350 s1350 1:m350 s1350 2:m350 s500 3:m350 s500
4:m450 s450 5:m400 s1300 6:m400 s450 7:m350 s500
8:m350 s1350 9:m350 s1350 10:m350 s500 11:m450 s1300
12:m350 s500 13:m350 s500 14:m400 s1300 15:m450 s1300

16:m300 s550 17:m300 s1400 18:m350 s1350 19:m350 s500
20:m350 s500 21:m350 s1400 22:m300 s550 23:m300 s550
24:m300 s1400 25:m400 s450 26:m350 s500 27:m450 s450
28:m300 s550 29:m300 s550 30:m400 s450 31:m400 s450

32:m400 s450 33:m450 s450 34:m400 s450 35:m400 s450
36:m400 s450 37:m400 s450 38:m400 s450 39:m450 s450
40:m350 s500 41:m400 s450 42:m400 s450 43:m350 s550
44:m400 s450 45:m400 s1300 46:m350 s500 47:m350 s500

48:m350 s500 49:m350 s500 50:m450 s450 51:m400 s1300
52:m400 s450 53:m350 s500 54:m400 s450 55:m400 s500
56:m350 s500 57:m400 s1300 58:m400 s450 59:m400 s450
60:m350 s500 61:m400 s500 62:m400 s450 63:m400 s450

64:m400 s450 65:m400 s450 66:m400 s500 67:m350 s500
68:m350 s1350 69:m400 s1300 70:m350 s500 71:m350 s500
72:m350 s1400 73:m400 s450 74:m300 s1400 75:m400 s450
76:m350 s500 77:m350 s500 78:m400 s1350 79:m300 s550

80:m300 s1400 81:m350 s500 82:m400 s450 83:m400 s1300
84:m350 s1400 85:m400 s1300 86:m300 s1400 87:m350 s500
88:m350 s500 89:m450 s450 90:m350 s500 91:m400 s450
92:m400 s450 93:m400 s450 94:m400 s500 95:m350 s500

96:m400 s450 97:m400 s450 98:m400 s450 99:m400 s450
100:m400 s500 101:m400 s450 102:m400 s450 103:m400 s450
104:m400 s450 105:m400 s500 106:m350 s500 107:m400 s450
108:m400 s450 109:m400 s450 110:m400 s500 111:m350 s500

112:m400 s450 113:m400
Extent=123800
Mark min:300 max:450
Space min:450 max:1400

Decoded Unknown: Value:0 (0 bits)
Raw samples(230): Gap:16950
Head: m3450 s1800
0:m350 s1350 1:m350 s1350 2:m350 s500 3:m400 s450
4:m450 s450 5:m350 s1350 6:m400 s450 7:m400 s450
8:m400 s1350 9:m300 s1400 10:m300 s550 11:m400 s1300
12:m350 s500 13:m350 s500 14:m400 s1350 15:m350 s1350

16:m300 s550 17:m350 s1350 18:m350 s1350 19:m350 s500
20:m350 s500 21:m400 s1300 22:m400 s500 23:m350 s500
24:m400 s1300 25:m400 s450 26:m400 s450 27:m400 s450
28:m400 s450 29:m400 s500 30:m350 s500 31:m400 s450

32:m400 s450 33:m400 s450 34:m400 s500 35:m350 s500
36:m350 s500 37:m350 s500 38:m400 s450 39:m400 s500
40:m350 s500 41:m400 s450 42:m400 s450 43:m400 s450
44:m400 s500 45:m350 s1350 46:m400 s450 47:m400 s450

48:m400 s450 49:m400 s450 50:m400 s450 51:m450 s1300
52:m400 s450 53:m400 s450 54:m400 s450 55:m400 s450
56:m400 s500 57:m350 s1350 58:m400 s450 59:m400 s450
60:m400 s450 61:m400 s450 62:m450 s450 63:m400 s450

64:m400 s450 65:m400 s450 66:m400 s450 67:m400 s450
68:m400 s1350 69:m400 s1300 70:m350 s500 71:m350 s500
72:m400 s1300 73:m400 s450 74:m400 s1350 75:m400 s450
76:m400 s450 77:m400 s450 78:m350 s1350 79:m400 s450

80:m400 s1350 81:m350 s500 82:m400 s450 83:m400 s1300
84:m400 s1300 85:m350 s1350 86:m350 s1350 87:m350 s550
88:m300 s550 89:m400 s450 90:m400 s450 91:m400 s450
92:m400 s450 93:m400 s500 94:m350 s500 95:m350 s500

96:m350 s500 97:m400 s450 98:m400 s450 99:m400 s450
100:m400 s500 101:m350 s500 102:m350 s500 103:m400 s450
104:m400 s450 105:m400 s500 106:m350 s500 107:m400 s450
108:m400 s450 109:m400 s450 110:m400 s450 111:m400 s450

112:m400 s500 113:m350
Extent=123850
Mark min:300 max:450
Space min:450 max:1400

4. I captured the remote “Off” signal (see below)

Decoded Unknown: Value:0 (0 bits)
Raw samples(230): Gap:5740
Head: m3300 s1800
0:m350 s1350 1:m350 s1350 2:m350 s550 3:m300 s550
4:m300 s550 5:m400 s1300 6:m350 s500 7:m350 s500
8:m450 s1250 9:m350 s1400 10:m350 s500 11:m400 s1300
12:m350 s500 13:m400 s450 14:m400 s1350 15:m300 s1400

16:m400 s450 17:m300 s1400 18:m350 s1350 19:m400 s450
20:m350 s500 21:m450 s1300 22:m300 s550 23:m400 s450
24:m400 s1300 25:m400 s450 26:m400 s450 27:m350 s550
28:m400 s450 29:m300 s550 30:m350 s500 31:m400 s450

32:m350 s550 33:m350 s500 34:m400 s450 35:m350 s500
36:m400 s450 37:m400 s450 38:m400 s500 39:m350 s500
40:m400 s450 41:m350 s500 42:m400 s450 43:m350 s550
44:m400 s450 45:m300 s550 46:m400 s450 47:m400 s450

48:m350 s550 49:m400 s450 50:m400 s450 51:m400 s1300
52:m400 s450 53:m350 s550 54:m400 s450 55:m350 s500
56:m400 s450 57:m400 s1300 58:m450 s450 59:m300 s550
60:m400 s450 61:m400 s450 62:m350 s500 63:m450 s450

64:m350 s500 65:m350 s500 66:m350 s500 67:m400 s450
68:m400 s1300 69:m400 s1300 70:m350 s550 71:m300 s550
72:m400 s1300 73:m400 s450 74:m400 s1300 75:m400 s450
76:m450 s450 77:m400 s450 78:m400 s1300 79:m400 s450

80:m350 s1350 81:m400 s450 82:m450 s450 83:m400 s1300
84:m300 s1400 85:m350 s1350 86:m350 s1350 87:m350 s500
88:m350 s500 89:m350 s550 90:m350 s500 91:m350 s500
92:m400 s450 93:m400 s450 94:m350 s500 95:m350 s500

96:m450 s450 97:m350 s500 98:m400 s450 99:m400 s450
100:m400 s450 101:m450 s400 102:m400 s500 103:m350 s500
104:m400 s450 105:m400 s450 106:m400 s450 107:m400 s450
108:m450 s450 109:m350 s500 110:m300 s550 111:m400 s450

112:m400 s450 113:m400
Extent=122900
Mark min:300 max:450
Space min:400 max:1400

Decoded Unknown: Value:0 (0 bits)
Raw samples(230): Gap:16950
Head: m3450 s1750
0:m450 s1300 1:m400 s1300 2:m350 s500 3:m350 s500
4:m450 s450 5:m400 s1300 6:m350 s500 7:m400 s450
8:m400 s1300 9:m400 s1300 10:m450 s450 11:m300 s1400
12:m300 s550 13:m300 s550 14:m400 s1300 15:m400 s1300

16:m400 s450 17:m350 s1400 18:m300 s1400 19:m300 s550
20:m350 s500 21:m400 s1300 22:m400 s450 23:m400 s450
24:m450 s1300 25:m400 s450 26:m400 s450 27:m400 s450
28:m400 s450 29:m400 s500 30:m350 s500 31:m400 s450

32:m400 s450 33:m400 s450 34:m350 s500 35:m400 s450
36:m450 s450 37:m350 s500 38:m300 s550 39:m400 s450
40:m400 s450 41:m400 s450 42:m350 s550 43:m350 s500
44:m400 s450 45:m400 s450 46:m400 s450 47:m350 s500

48:m450 s450 49:m400 s450 50:m350 s500 51:m400 s1300
52:m400 s450 53:m400 s450 54:m450 s450 55:m300 s550
56:m400 s450 57:m400 s1300 58:m450 s450 59:m350 s500
60:m400 s450 61:m400 s450 62:m350 s500 63:m400 s450

64:m400 s500 65:m350 s500 66:m300 s550 67:m400 s450
68:m400 s1300 69:m400 s1300 70:m350 s500 71:m400 s500
72:m350 s1350 73:m400 s450 74:m400 s1300 75:m400 s450
76:m400 s450 77:m400 s450 78:m400 s1350 79:m350 s500

80:m400 s1300 81:m400 s450 82:m400 s450 83:m400 s1300
84:m400 s1300 85:m450 s1300 86:m300 s1400 87:m350 s500
88:m400 s450 89:m400 s450 90:m450 s450 91:m350 s500
92:m350 s500 93:m400 s450 94:m400 s450 95:m400 s450

96:m400 s500 97:m350 s500 98:m400 s450 99:m400 s450
100:m400 s450 101:m400 s500 102:m350 s500 103:m400 s450
104:m400 s450 105:m400 s450 106:m400 s450 107:m450 s450
108:m350 s500 109:m300 s550 110:m350 s500 111:m400 s500

112:m350 s500 113:m400
Extent=123050
Mark min:300 max:450
Space min:450 max:1400

What do you think ?
is it possible to reproduce this with arduino ?

Thanks in advance

Great progress... :slight_smile:

....but the problem now is that you have hit the new limit of 230 with RAWBUF, which means your signal is longer than 230.

..So the only option is to now increase it to the max of 255 (and hope the signal is not longer than that)

If you capture the signal with RAWBUF set to 255, I will be able to generate the signal for you.

What did you do differently from before? as you changed rawbuf before and it had no effect?

Hello

Here is another capture with RAWBUF to 250 (signal on)

Decoded Unknown: Value:0 (0 bits)
Raw samples(250): Gap:45882
Head: m3350 s1750
0:m350 s1350 1:m350 s1350 2:m400 s500 3:m350 s500
4:m300 s550 5:m400 s1300 6:m350 s500 7:m350 s500
8:m450 s1300 9:m300 s1400 10:m350 s500 11:m400 s1300
12:m350 s500 13:m400 s450 14:m450 s1300 15:m300 s1400

16:m350 s500 17:m350 s1350 18:m350 s1350 19:m350 s500
20:m450 s450 21:m400 s1300 22:m350 s500 23:m400 s450
24:m400 s1300 25:m350 s500 26:m450 s450 27:m400 s450
28:m400 s450 29:m400 s450 30:m400 s500 31:m300 s550

32:m400 s450 33:m350 s500 34:m350 s500 35:m400 s450
36:m350 s550 37:m300 s550 38:m300 s550 39:m400 s450
40:m350 s500 41:m400 s450 42:m350 s550 43:m350 s500
44:m350 s500 45:m350 s1350 46:m450 s450 47:m300 s550

48:m400 s450 49:m400 s450 50:m400 s450 51:m350 s1350
52:m400 s500 53:m300 s550 54:m350 s500 55:m350 s500
56:m400 s450 57:m350 s1350 58:m450 s400 59:m350 s550
60:m400 s450 61:m400 s450 62:m400 s450 63:m350 s500

64:m450 s450 65:m400 s450 66:m300 s550 67:m400 s450
68:m350 s1350 69:m350 s1350 70:m350 s500 71:m400 s500
72:m300 s1400 73:m350 s500 74:m350 s1350 75:m400 s450
76:m400 s500 77:m400 s450 78:m400 s1300 79:m350 s500

80:m350 s1350 81:m350 s1400 82:m350 s1350 83:m300 s1400
84:m350 s500 85:m350 s1350 86:m350 s500 87:m350 s550
88:m350 s500 89:m350 s500 90:m350 s500 91:m350 s500
92:m400 s450 93:m450 s450 94:m400 s450 95:m400 s450

96:m350 s500 97:m350 s500 98:m350 s500 99:m450 s450
100:m400 s450 101:m350 s500 102:m350 s500 103:m350 s500
104:m400 s500 105:m300 s550 106:m400 s450 107:m400 s450
108:m400 s450 109:m350 s550 110:m300 s550 111:m300 s550

112:m350 s500 113:m350 s500 114:m350 s500 115:m450 s450
116:m400 s450 117:m350 s500 118:m400 s450 119:m350 s500
120:m450 s400 121:m450 s450 122:m400 s450 123:m350
Extent=132350
Mark min:300 max:450
Space min:400 max:1400

Decoded Unknown: Value:0 (0 bits)
Raw samples(250): Gap:17100
Head: m3500 s1750
0:m400 s1300 1:m350 s1400 2:m350 s500 3:m350 s500
4:m400 s450 5:m350 s1350 6:m350 s550 7:m400 s450
8:m300 s1400 9:m350 s1350 10:m350 s500 11:m400 s1300
12:m400 s450 13:m400 s500 14:m350 s1350 15:m350 s1350

16:m400 s450 17:m400 s1300 18:m450 s1300 19:m300 s550
20:m350 s500 21:m400 s1300 22:m350 s500 23:m350 s500
24:m450 s1300 25:m400 s450 26:m400 s450 27:m400 s450
28:m350 s500 29:m400 s450 30:m450 s450 31:m300 s550

32:m400 s450 33:m400 s450 34:m350 s500 35:m450 s450
36:m300 s550 37:m400 s450 38:m400 s450 39:m400 s450
40:m400 s450 41:m450 s450 42:m400 s450 43:m350 s500
44:m350 s500 45:m350 s1350 46:m350 s500 47:m350 s550

48:m300 s550 49:m300 s550 50:m350 s500 51:m400 s1300
52:m400 s450 53:m350 s550 54:m400 s450 55:m400 s450
56:m350 s500 57:m350 s1350 58:m400 s450 59:m450 s400
60:m450 s450 61:m400 s450 62:m350 s500 63:m350 s500

64:m350 s500 65:m450 s450 66:m300 s550 67:m300 s550
68:m400 s1300 69:m400 s1300 70:m350 s500 71:m400 s500
72:m400 s1300 73:m400 s450 74:m350 s1350 75:m400 s450
76:m450 s400 77:m450 s450 78:m300 s1400 79:m350 s500

80:m350 s1350 81:m400 s1300 82:m350 s1350 83:m350 s1400
84:m300 s550 85:m350 s1350 86:m350 s500 87:m400 s450
88:m400 s450 89:m450 s450 90:m400 s450 91:m300 s550
92:m400 s450 93:m350 s500 94:m350 s500 95:m450 s450

96:m300 s550 97:m300 s550 98:m400 s450 99:m350 s500
100:m400 s450 101:m350 s500 102:m450 s450 103:m400 s450
104:m350 s500 105:m350 s500 106:m400 s450 107:m350 s500
108:m350 s550 109:m300 s550 110:m300 s550 111:m400 s450

112:m400 s450 113:m400 s500 114:m300 s550 115:m400 s450
116:m300 s550 117:m350 s500 118:m400 s450 119:m350 s500
120:m450 s400 121:m450 s450 122:m300 s550 123:m400
Extent=132500
Mark min:300 max:450
Space min:400 max:1400

Here is another capture with RAWBUF to 300 (signal on)

Decoded Unknown: Value:0 (0 bits)
Raw samples(36): Gap:450
Head: m350 s550
0:m400 s450 1:m350 s500 2:m350 s500 3:m350 s500
4:m400 s450 5:m350 s550 6:m300 s550 7:m400 s450
8:m350 s500 9:m350 s500 10:m350 s1350 11:m350 s500
12:m350 s500 13:m450 s1300 14:m400 s1300 15:m400 s1300

16:m350
Extent=18350
Mark min:300 max:450
Space min:450 max:1350

Decoded Unknown: Value:0 (0 bits)
Raw samples(36): Gap:550
Head: m300 s550
0:m300 s550 1:m350 s500 2:m350 s500 3:m350 s500
4:m450 s450 5:m300 s550 6:m400 s450 7:m350 s500
8:m350 s550 9:m400 s450 10:m300 s1400 11:m400 s450
12:m400 s450 13:m450 s1300 14:m300 s1400 15:m400 s1300

16:m350
Extent=18350
Mark min:300 max:450
Space min:450 max:1400

How do you know that there is a buffer overflow ?

Thanks

You have hit the limit for the RAWBUF at 250, that you set.

Is there a reason you didnt follow the suggestion in my previous post?

It is no good setting RAWBUF to 300 - it will not work. Please read my previous post again!

hello

OK so i let the RAWBUF to 250
No reason, i am trying to understand.. how does it work !
So are you able to decode and help me with the previous capture where RAWBUF is equal to 250.?

Thanks

My suggestion is to set RAWBUf to the maximum value of 255.

We know from your latest dump that your signal is longer than 250.

If your signal is longer than 255, then you cannot use the existing Arduino libraries (unless you want to redesign them)

The reason is that it is designed to handle only signals with up to a total of 255 marks and spaces.

hi-again

here is the output with RAWBUF 255

Decoded Unknown: Value:0 (0 bits)
Raw samples(255): Gap:42980
Head: m3350 s1800
0:m300 s1400 1:m350 s1350 2:m350 s500 3:m350 s500
4:m350 s500 5:m400 s1350 6:m300 s550 7:m350 s500
8:m400 s1300 9:m350 s1350 10:m350 s500 11:m350 s1400
12:m300 s550 13:m350 s500 14:m350 s1350 15:m350 s1350

16:m350 s500 17:m350 s1400 18:m300 s1400 19:m350 s500
20:m300 s550 21:m350 s1350 22:m350 s500 23:m350 s550
24:m300 s1400 25:m300 s550 26:m350 s500 27:m350 s500
28:m350 s500 29:m350 s550 30:m300 s550 31:m350 s500

32:m350 s500 33:m350 s500 34:m350 s550 35:m350 s500
36:m350 s500 37:m400 s450 38:m350 s500 39:m350 s500
40:m350 s500 41:m350 s550 42:m300 s550 43:m350 s500
44:m400 s450 45:m350 s1350 46:m350 s500 47:m350 s550

48:m300 s550 49:m350 s500 50:m350 s500 51:m350 s1350
52:m350 s500 53:m350 s550 54:m300 s550 55:m350 s500
56:m350 s500 57:m350 s1350 58:m350 s500 59:m350 s550
60:m300 s550 61:m350 s500 62:m350 s500 63:m350 s500

64:m350 s500 65:m400 s500 66:m300 s550 67:m350 s500
68:m350 s1350 69:m350 s1350 70:m400 s500 71:m300 s550
72:m350 s1350 73:m350 s500 74:m350 s1350 75:m350 s500
76:m350 s500 77:m350 s550 78:m350 s1350 79:m350 s500

80:m350 s1350 81:m350 s1350 82:m350 s550 83:m300 s1400
84:m350 s1350 85:m350 s1350 86:m350 s1350 87:m350 s500
88:m350 s500 89:m350 s500 90:m350 s550 91:m300 s550
92:m350 s500 93:m350 s500 94:m350 s500 95:m350 s500

96:m350 s550 97:m350 s500 98:m350 s500 99:m350 s500
100:m350 s500 101:m400 s500 102:m350 s500 103:m350 s500
104:m350 s500 105:m400 s500 106:m300 s550 107:m350 s500
108:m350 s500 109:m350 s500 110:m350 s500 111:m350 s500

112:m350 s550 113:m300 s550 114:m300 s550 115:m350 s500
116:m350 s500 117:m350 s500 118:m350 s550 119:m350 s500
120:m300 s550 121:m350 s500 122:m400 s500 123:m300 s550
124:m300 s550 125:m350 s500
Extent=135400
Mark min:300 max:400
Space min:450 max:1400

Decoded Unknown: Value:0 (0 bits)
Raw samples(255): Gap:17200
Head: m3450 s1800
0:m350 s1350 1:m350 s1350 2:m350 s500 3:m350 s550
4:m300 s550 5:m350 s1350 6:m350 s500 7:m350 s500
8:m350 s1350 9:m350 s1400 10:m300 s550 11:m350 s1350
12:m350 s500 13:m350 s500 14:m350 s1350 15:m400 s1350

16:m300 s550 17:m350 s1350 18:m350 s1350 19:m350 s500
20:m350 s500 21:m350 s1400 22:m300 s550 23:m300 s550
24:m350 s1350 25:m350 s500 26:m350 s500 27:m350 s500
28:m350 s550 29:m300 s550 30:m300 s550 31:m350 s500

32:m350 s500 33:m350 s500 34:m400 s500 35:m300 s550
36:m350 s500 37:m350 s500 38:m350 s550 39:m350 s500
40:m350 s500 41:m350 s500 42:m350 s500 43:m350 s550
44:m350 s500 45:m300 s1400 46:m350 s500 47:m350 s500

48:m350 s550 49:m300 s550 50:m350 s500 51:m350 s1350
52:m350 s500 53:m350 s500 54:m350 s500 55:m350 s550
56:m300 s550 57:m300 s1400 58:m350 s500 59:m350 s500
60:m350 s500 61:m350 s550 62:m350 s500 63:m300 s550

64:m350 s500 65:m350 s500 66:m350 s500 67:m350 s550
68:m300 s1400 69:m350 s1350 70:m350 s500 71:m350 s500
72:m350 s1350 73:m350 s550 74:m300 s1400 75:m350 s500
76:m350 s500 77:m350 s550 78:m300 s1400 79:m300 s550

80:m350 s1350 81:m350 s1350 82:m350 s500 83:m400 s1350
84:m300 s1400 85:m300 s1400 86:m350 s1350 87:m350 s500
88:m350 s500 89:m350 s500 90:m350 s500 91:m350 s550
92:m300 s550 93:m350 s500 94:m350 s500 95:m350 s500

96:m350 s550 97:m300 s550 98:m350 s500 99:m400 s450
100:m350 s500 101:m350 s500 102:m350 s500 103:m350 s550
104:m300 s550 105:m350 s500 106:m350 s500 107:m350 s500
108:m350 s550 109:m300 s550 110:m350 s500 111:m350 s500

112:m350 s500 113:m400 s450 114:m400 s500 115:m300 s550
116:m350 s500 117:m350 s500 118:m350 s500 119:m350 s500
120:m350 s500 121:m350 s550 122:m300 s550 123:m350 s500
124:m400 s450 125:m350 s500
Extent=135500
Mark min:300 max:400
Space min:450 max:1400

So possible to decode ?
Thanks

Unfortunately, your signal is longer than the max for the Arduino libraries.

The good news is that, I have written a short sketch based on AnalysIR firmware which seems to work for at least a length of 800 on Atmega 328 Arduinos or longer on Leonardo & DUE. This gives the same output as IRrecvDump. I will make this available later today or tomorrow, once I have completed basic testing.

You can then record your signal & I will import it back into AnalysIR to generate the code for IRLib or IRremote. You will then be able to use that example to copy all of yur other signals.

Ok

You can get a copy of the sketch which can handle 800 marks & spaces, via the link at the end of our latest blog post.

Just copy and paste the code into a blank sketch in the Arduino IDE. Compile & download to your Arduino as normal.

NB: Make sure your IR receiver is connected to PIn 2 on the Arduino, with Vcc & GND also connected.

Then open the Serial monitor @ 115,200 BAUD and after a prompt press the key (once just briefly) on your remote.

Copy the output from one or 2 different signals & post them here. I will them import them into AnalysIR and export the Arduino code for sending the signals.

Hi,

Here is the Remote "on" code capture with your code :

Raw: (583) 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,

Here is the Remote "off" code capture with your code :

Raw: (583) 3500, -1664, 488, -1228, 516, -1212, 500, -368, 496, -364, 460, -416, 440, -1284, 436, -436, 496, -372, 440, -1284, 436, -1292, 504, -364, 492, -1236, 496, -380, 464, -408, 488, -1232, 500, -1228, 496, -372, 492, -1228, 492, -1236, 496, -372, 496, -372, 440, -1284, 500, -368, 456, -412, 436, -1288, 444, -428, 500, -368, 496, -372, 444, -424, 492, -372, 496, -372, 492, -376, 524, -360, 492, -372, 464, -408, 488, -376, 492, -372, 440, -428, 492, -376, 488, -372, 496, -372, 492, -372, 496, -368, 496, -368, 500, -368, 444, -424, 496, -368, 432, -436, 444, -424, 440, -428, 492, -376, 488, -1232, 512, -360, 496, -368, 444, -424, 496, -372, 492, -376, 492, -1228, 492, -376, 488, -380, 488, -380, 444, -424, 496, -368, 496, -372, 440, -424, 444, -428, 488, -380, 488, -376, 492, -1228, 492, -1232, 500, -380, 496, -368, 496, -1228, 496, -372, 440, -1284, 500, -376, 460, -412, 496, -368, 496, -1228, 496, -368, 496, -368, 488, -376, 492, -376, 500, -1220, 500, -1224, 496, -1224, 500, -1224, 496, -372, 492, -376, 492, -372, 440, -428, 440, -424, 440, -424, 444, -424, 440, -428, 440, -424, 464, -404, 440, -428, 436, -432, 464, -404, 464, -404, 460, -408, 440, -424, 440, -428, 440, -432, 444, -420, 444, -424, 444, -420, 464, -400, 448, -420, 444, -424, 444, -420, 444, -420, 444, -424, 436, -428, 448, -420, 444, -420, 468, -404, 460, -404, 440, -432, 436, -432, 444, -420, 436, -432, 444, -424, 464, -404, 440, -428, 436, -424, 444, -424, 440, -428, 440, -424, 440, -428, 440, -428, 436, -436, 444, -416, 460, -412, 444, -424, 460, -408, 440, -428, 436, -1288, 444, -1284, 488, -380, 468, -404, 440, -424, 440, -428, 440, -17048, 3576, -1716, 500, -1224, 464, -1264, 492, -376, 444, -432, 436, -440, 456, -1264, 468, -400, 448, -424, 460, -1272, 492, -1232, 500, -364, 460, -1264, 488, -384, 440, -424, 464, -1264, 500, -1228, 492, -372, 440, -1284, 440, -1284, 500, -368, 464, -408, 436, -1288, 496, -376, 440, -428, 460, -1264, 496, -368, 468, -404, 440, -428, 440, -428, 436, -428, 440, -428, 436, -428, 436, -436, 444, -420, 464, -408, 436, -428, 440, -428, 440, -428, 436, -428, 460, -408, 448, -424, 460, -408, 436, -432, 468, -404, 440, -428, 440, -424, 440, -428, 440, -420, 444, -424, 440, -428, 440, -424, 464, -1264, 500, -368, 444, -424, 440, -424, 464, -404, 440, -428, 440, -1280, 492, -376, 460, -412, 444, -424, 440, -424, 444, -424, 440, -424, 444, -420, 464, -404, 444, -428, 460, -408, 468, -1256, 444, -1284, 488, -380, 444, -424, 444, -1280, 472, -404, 460, -1268, 496, -388, 436, -428, 440, -428, 436, -1288, 496, -372, 444, -424, 440, -424, 444, -420, 464, -1264, 492, -1232, 500, -1224, 496, -1228, 492, -376, 440, -428, 448, -416, 440, -428, 448, -424, 440, -424, 444, -420, 444, -432, 444, -420, 448, -424, 440, -424, 444, -424, 440, -428, 440, -428, 440, -428, 468, -404, 492, -376, 500, -372, 440, -432, 500, -360, 440, -432, 500, -364, 500, -364, 492, -376, 488, -380, 496, -364, 492, -376, 492, -376, 488, -376, 492, -380, 444, -428, 488, -376, 440, -424, 524, -356, 500, -364, 500, -368, 456, -412, 444, -428, 492, -372, 492, -376, 492, -372, 492, -372, 464, -404, 440, -428, 440, -432, 464, -404, 440, -432, 444, -424, 496, -376, 488, -376, 492, -372, 492, -1232, 500, -1224, 468, -404, 492, -372, 496, -372, 492, -372, 492,

Thanks very much for your help
Regards

Great Progress... :slight_smile:

So I have imported these signals into AnalysIR & have attached the image below.

Here is the code to send the signal using IRLib (it will not work with IRremote)

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History: MItsubishi Aircon
Type : Key : Value : Bits
0 : RAW :  :  : 0
1 : RAW :  :  : 0
*/

// 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


unsigned int Signal_0_0[] = {3500,1664,488,1228,516,1212,500,368,496,364,460,416,440,1284,436,436,496,372,440,1284,436,1292,504,364,492,1236,496,380,464,408,488,1232,500,1228,496,372,492,1228,492,1236,496,372,496,372,440,1284,500,368,456,412,436,1288,444,428,500,368,496,372,444,424,492,372,496,372,492,376,524,360,492,372,464,408,488,376,492,372,440,428,492,376,488,372,496,372,492,372,496,368,496,368,500,368,444,424,496,368,432,436,444,424,440,428,492,376,488,1232,512,360,496,368,444,424,496,372,492,376,492,1228,492,376,488,380,488,380,444,424,496,368,496,372,440,424,444,428,488,380,488,376,492,1228,492,1232,500,380,496,368,496,1228,496,372,440,1284,500,376,460,412,496,368,496,1228,496,368,496,368,488,376,492,376,500,1220,500,1224,496,1224,500,1224,496,372,492,376,492,372,440,428,440,424,440,424,444,424,440,428,440,424,464,404,440,428,436,432,464,404,464,404,460,408,440,424,440,428,440,432,444,420,444,424,444,420,464,400,448,420,444,424,444,420,444,420,444,424,436,428,448,420,444,420,468,404,460,404,440,432,436,432,444,420,436,432,444,424,464,404,440,428,436,424,444,424,440,428,440,424,440,428,440,428,436,436,444,416,460,412,444,424,460,408,440,428,436,1288,444,1284,488,380,468,404,440,424,440,428,440,17048,3576,1716,500,1224,464,1264,492,376,444,432,436,440,456,1264,468,400,448,424,460,1272,492,1232,500,364,460,1264,488,384,440,424,464,1264,500,1228,492,372,440,1284,440,1284,500,368,464,408,436,1288,496,376,440,428,460,1264,496,368,468,404,440,428,440,428,436,428,440,428,436,428,436,436,444,420,464,408,436,428,440,428,440,428,436,428,460,408,448,424,460,408,436,432,468,404,440,428,440,424,440,428,440,420,444,424,440,428,440,424,464,1264,500,368,444,424,440,424,464,404,440,428,440,1280,492,376,460,412,444,424,440,424,444,424,440,424,444,420,464,404,444,428,460,408,468,1256,444,1284,488,380,444,424,444,1280,472,404,460,1268,496,388,436,428,440,428,436,1288,496,372,444,424,440,424,444,420,464,1264,492,1232,500,1224,496,1228,492,376,440,428,448,416,440,428,448,424,440,424,444,420,444,432,444,420,448,424,440,424,444,424,440,428,440,428,440,428,468,404,492,376,500,372,440,432,500,360,440,432,500,364,500,364,492,376,488,380,496,364,492,376,492,376,488,376,492,380,444,428,488,376,440,424,524,356,500,364,500,368,456,412,444,428,492,372,492,376,492,372,492,372,464,404,440,428,440,432,464,404,440,432,444,424,496,376,488,376,492,372,492,1232,500,1224,468,404,492,372,496,372,492,372,492}; //AnalysIR Batch Export - RAW

My_Sender.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export - RAW
 // AnalysIR IR Protocol: RAW, Key:  


unsigned int Signal_1_1[] = {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

My_Sender.IRsendRaw::send(Signal_1_1, sizeof(Signal_1_1)/sizeof(int), khz); //AnalysIR Batch Export - RAW
 // AnalysIR IR Protocol: RAW, Key:

You can see from the screenshot that the signal seems to be repeated - sent twice each time. It is one of the longest I have seen to date.
Let me know how you get on & don't forget you have to insert the code above into an IRLib sketch & make sure you only send one at a time!

Hi
I'm trying to get my project done with this Mitsubishi model as well and I have seen the nice job you are doing with AnalysIR. I'd like to support and purchase it but I couldn't figured out if AnalysIR is generating the code also (I'm not so familiar with coding)?
Thank's

Hello

Here is my sketch with your code translation (Signal_0_0)

#include <IRLib.h>
int RECV_PIN = 11;
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

void setup()
{
}

void loop() 
{
  irsend.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export - RAW
 delay(1000);
}

Unfortunatly it doesn't work !

question , how to be sure that it is 38khz. How to know the modulation frequence ?

I have recapture the 'on' sequence see below to be sure with your code :

Raw: (583) 3444, -1716, 520, -1208, 440, -1284, 436, -424, 440, -424, 516, -356, 512, -1216, 516, -352, 512, -356, 436, -1284, 520, -1208, 440, -424, 516, -1208, 440, -424, 516, -356, 508, -1212, 508, -1220, 440, -428, 512, -1216, 440, -1288, 444, -428, 512, -356, 444, -1276, 512, -356, 508, -360, 444, -1276, 444, -424, 440, -420, 448, -420, 444, -424, 444, -420, 444, -420, 444, -424, 464, -416, 440, -428, 512, -360, 440, -424, 444, -420, 508, -360, 444, -420, 444, -424, 432, -436, 440, -424, 444, -420, 432, -432, 520, -348, 444, -1284, 436, -424, 516, -360, 444, -416, 468, -408, 524, -348, 516, -1224, 444, -420, 436, -432, 508, -360, 516, -356, 436, -432, 508, -1216, 516, -352, 436, -428, 440, -428, 512, -356, 520, -348, 432, -436, 516, -352, 440, -424, 440, -432, 508, -356, 520, -1208, 512, -1216, 444, -420, 444, -424, 516, -1212, 520, -348, 516, -1208, 516, -356, 444, -420, 468, -412, 432, -1292, 440, -428, 436, -432, 436, -428, 436, -1288, 444, -1280, 440, -1284, 512, -1216, 516, -1208, 436, -432, 436, -428, 512, -360, 440, -424, 516, -352, 440, -424, 516, -356, 512, -360, 496, -368, 432, -432, 520, -348, 496, -372, 516, -352, 492, -372, 492, -376, 512, -356, 520, -352, 492, -376, 512, -360, 492, -372, 444, -424, 492, -372, 444, -424, 492, -372, 516, -356, 500, -360, 516, -356, 436, -432, 464, -412, 516, -348, 520, -348, 496, -372, 492, -376, 436, -436, 432, -432, 432, -432, 500, -364, 512, -356, 436, -436, 492, -368, 436, -428, 436, -432, 496, -368, 436, -432, 432, -432, 496, -372, 516, -352, 516, -352, 436, -432, 508, -360, 496, -368, 500, -368, 516, -352, 516, -1208, 512, -1216, 440, -428, 440, -424, 440, -17044, 3608, -1688, 516, -1212, 436, -1284, 520, -348, 520, -348, 516, -356, 436, -1292, 512, -352, 516, -356, 436, -1288, 444, -1276, 444, -424, 516, -1208, 440, -424, 516, -356, 432, -1292, 440, -1284, 512, -352, 512, -1212, 520, -1208, 440, -436, 516, -352, 440, -1280, 512, -360, 444, -416, 492, -1232, 520, -352, 524, -348, 432, -436, 496, -368, 516, -356, 492, -376, 500, -368, 432, -432, 436, -432, 496, -368, 508, -360, 496, -368, 508, -364, 512, -356, 436, -432, 496, -372, 496, -368, 496, -372, 516, -356, 500, -364, 488, -1232, 500, -368, 508, -360, 444, -420, 436, -432, 432, -436, 516, -1212, 432, -436, 440, -424, 464, -412, 444, -424, 444, -424, 492, -1232, 488, -376, 492, -372, 492, -372, 496, -372, 440, -428, 488, -380, 436, -428, 508, -364, 492, -372, 516, -352, 492, -1228, 492, -1232, 436, -428, 440, -424, 492, -1236, 520, -356, 496, -1224, 444, -424, 432, -432, 520, -352, 492, -1228, 440, -428, 512, -352, 492, -376, 436, -1288, 432, -1292, 516, -1208, 512, -1212, 508, -1216, 444, -424, 524, -356, 436, -428, 524, -352, 492, -372, 492, -368, 520, -352, 492, -372, 492, -376, 440, -424, 440, -428, 492, -372, 440, -424, 516, -352, 492, -380, 496, -368, 508, -360, 496, -368, 496, -368, 500, -368, 516, -352, 516, -356, 500, -364, 488, -380, 500, -364, 456, -416, 492, -372, 516, -360, 496, -376, 520, -352, 492, -372, 496, -368, 496, -368, 436, -432, 496, -372, 432, -436, 492, -372, 460, -412, 496, -368, 512, -356, 496, -368, 520, -352, 460, -408, 460, -412, 496, -368, 508, -360, 496, -364, 500, -368, 508, -360, 496, -368, 496, -368, 500, -368, 496, -372, 464, -1260, 512, -1212, 500, -368, 496, -368, 436,

Strange because the 'on' code is not always the same !!!
Do you know why ?

Regards

Strange because the 'on' code is not always the same !!!
Do you know why ?

Probably because it toggles on / off

question , how to be sure that it is 38khz. How to know the modulation frequence ?

not sure, but most Aircons are 38kHz. (I havent seen one yet that is not 38kHz)
You could also try 36,40 & 56 frequencies as a test

Did you check with a digital camera that the signal is being sent?
How close to the Aircon is the IR LED when sending?
What is the model of IR LED?
Which pin is it connected to on the Arduino?
How is it wired (Circuit)?
Which version # of IRLib are you using?

OK - I have found some other issues.

IRLib: can only send up to 255 marks & spaces using sendRAW - so we cannot use IRlib unfortunately, because your signal is 833 long.

IRremote: cannot send a signal with a mark or space longer than circa 16000 uSecs. Unfortunately your signal has a 17000 uSec space in the middle.

I tried out a workaround, but I found out that your signal which is 833 long runs out of memory with IRremote.

Solution (hopefully)
Your signal seems to be sent twice with a 17000 uSec gap in between . This may be to increase the chance of a good signal or it could be basic error checking.

So I have included a sketch, for you to test, which sends the first part of the signal only.
If that does not work then uncomment the next 2 lines of code that will send the second part with a 17ms gap.

/*
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(17); //<<<<<<<<<<<<<<<uncomment here if it doesnt work
//  irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0) / sizeof(int), khz);  //<<<<<<<<<<<<<<<uncomment here if it doesnt work

  delay(10000); //send signal every 10 seconds for testing
}

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

Great news....

It should take you the same amount of time as it would take me to convert your ON signal.

In the interest of you learning....Just study what I did and use a text editor - should take you circa 60 seconds!

If you make some attempts and fail, then I will try to point out your mistakes.....but first your should at least try :slight_smile:

Regarding AnalysIR, please visit (or make contact via) our website for more info.

Hello

Just to finish can you please decode the off signal see my last post

Thanks