this is the output on the serial monitor when i pressed the ON button
10:23:00.104 ->
10:23:00.104 ->
10:23:00.104 -> Protocol=PulseDistance Raw-Data=0x2 35 bits LSB first
10:23:00.104 ->
10:23:00.104 -> Send on a 8 bit platform with:
10:23:00.104 -> uint32_t tRawData[]={0x5060071A, 0x2};
10:23:00.104 -> IrSender.sendPulseDistanceWidthFromArray(38, 8750, 4500, 550, 1700, 550, 650, &tRawData[0], 35, PROTOCOL_IS_LSB_FIRST, <RepeatPeriodMillis>, <numberOfRepeats>);
10:23:00.145 ->
10:23:00.145 -> Raw result in internal ticks (50 us) - with leading gap
10:23:00.145 -> rawData[74]:
10:23:00.145 -> -65535
10:23:00.145 -> +175,-90
10:23:00.145 -> +11,-13 +11,-34 +11,-13 +11,-34
10:23:00.145 -> +11,-34 +11,-13 +11,-13 +10,-13
10:23:00.145 -> +11,-35 +10,-35 +11,-34 +11,-13
10:23:00.145 -> +10,-13 +11,-13 +11,-13 +10,-13
10:23:00.145 -> +11,-13 +11,-12 +11,-13 +11,-13
10:23:00.145 -> +11,-13 +10,-35 +11,-34 +11,-13
10:23:00.145 -> +10,-13 +11,-13 +11,-13 +10,-13
10:23:00.145 -> +11,-34 +11,-13 +11,-34 +11,-13
10:23:00.145 -> +11,-13 +11,-34 +11,-13 +10
10:23:00.145 -> Sum: 1341
10:23:00.145 -> Raw result in microseconds - with leading gap
10:23:00.167 -> rawData[74]:
10:23:00.167 -> -3276750
10:23:00.167 -> +8750,-4500
10:23:00.167 -> + 550,- 650 + 550,-1700 + 550,- 650 + 550,-1700
10:23:00.167 -> + 550,-1700 + 550,- 650 + 550,- 650 + 500,- 650
10:23:00.167 -> + 550,-1750 + 500,-1750 + 550,-1700 + 550,- 650
10:23:00.167 -> + 500,- 650 + 550,- 650 + 550,- 650 + 500,- 650
10:23:00.167 -> + 550,- 650 + 550,- 600 + 550,- 650 + 550,- 650
10:23:00.167 -> + 550,- 650 + 500,-1750 + 550,-1700 + 550,- 650
10:23:00.201 -> + 500,- 650 + 550,- 650 + 550,- 650 + 500,- 650
10:23:00.201 -> + 550,-1700 + 550,- 650 + 550,-1700 + 550,- 650
10:23:00.201 -> + 550,- 650 + 550,-1700 + 550,- 650 + 500
10:23:00.201 -> Sum: 67050
10:23:00.201 ->
10:23:00.201 -> Result as internal 8bit ticks (50 us) array - compensated with MARK_EXCESS_MICROS=20
10:23:00.201 -> uint8_t rawTicks[73] = {175,90, 11,13, 11,34, 11,13, 11,34, 11,34, 11,13, 11,13, 10,13, 11,35, 10,35, 11,34, 11,13, 10,13, 11,13, 11,13, 10,13, 11,13, 11,12, 11,13, 11,13, 11,13, 10,35, 11,34, 11,13, 10,13, 11,13, 11,13, 10,13, 11,34, 11,13, 11,34, 11,13, 11,13, 11,34, 11,13, 10}; // Protocol=PulseDistance Raw-Data=0x2 35 bits LSB first
10:23:00.235 ->
10:23:00.235 -> Result as microseconds array - compensated with MARK_EXCESS_MICROS=20
10:23:00.235 -> uint16_t rawData[73] = {8730,4520, 530,670, 530,1720, 530,670, 530,1720, 530,1720, 530,670, 530,670, 480,670, 530,1770, 480,1770, 530,1720, 530,670, 480,670, 530,670, 530,670, 480,670, 530,670, 530,620, 530,670, 530,670, 530,670, 480,1770, 530,1720, 530,670, 480,670, 530,670, 530,670, 480,670, 530,1720, 530,670, 530,1720, 530,670, 530,670, 530,1720, 530,670, 480}; // Protocol=PulseDistance Raw-Data=0x2 35 bits LSB first
10:23:00.268 ->
10:23:00.268 -> uint16_t address = 0x0;
10:23:00.268 -> uint16_t command = 0x0;
10:23:00.268 -> uint32_t rawData = 0x2;
10:23:00.300 ->
10:23:00.300 ->
10:23:00.300 -> Pronto Hex as string
10:23:00.300 -> char prontoData[] = "0000 006D 0025 0000 0151 00AC 0016 0018 0016 0041 0016 0018 0016 0041 0016 0041 0016 0018 0016 0018 0014 0018 0016 0043 0014 0043 0016 0041 0016 0018 0014 0018 0016 0018 0016 0018 0014 0018 0016 0018 0016 0016 0016 0018 0016 0018 0016 0018 0014 0043 0016 0041 0016 0018 0014 0018 0016 0018 0016 0018 0014 0018 0016 0041 0016 0018 0016 0041 0016 0018 0016 0018 0016 0041 0016 0018 0014 06C3 ";
and this is the output when i pressed the OFF button
10:25:49.391 ->
10:25:49.391 ->
10:25:49.391 -> Protocol=PulseDistance Raw-Data=0x2 35 bits LSB first
10:25:49.391 ->
10:25:49.391 -> Send on a 8 bit platform with:
10:25:49.391 -> uint32_t tRawData[]={0x50600712, 0x2};
10:25:49.391 -> IrSender.sendPulseDistanceWidthFromArray(38, 8750, 4500, 550, 1700, 550, 650, &tRawData[0], 35, PROTOCOL_IS_LSB_FIRST, <RepeatPeriodMillis>, <numberOfRepeats>);
10:25:49.391 ->
10:25:49.391 -> Raw result in internal ticks (50 us) - with leading gap
10:25:49.423 -> rawData[74]:
10:25:49.423 -> -65535
10:25:49.423 -> +175,-90
10:25:49.423 -> +11,-13 +11,-34 +11,-13 +11,-13
10:25:49.423 -> +10,-35 +11,-12 +11,-13 +11,-13
10:25:49.423 -> +11,-34 +11,-34 +11,-34 +11,-13
10:25:49.423 -> +11,-13 +11,-12 +11,-13 +11,-13
10:25:49.423 -> +11,-12 +11,-13 +11,-13 +11,-12
10:25:49.423 -> +11,-13 +11,-34 +11,-34 +11,-13
10:25:49.423 -> +11,-13 +11,-12 +11,-13 +11,-13
10:25:49.423 -> +11,-34 +11,-13 +10,-35 +11,-12
10:25:49.423 -> +11,-13 +11,-34 +11,-13 +11
10:25:49.423 -> Sum: 1320
10:25:49.423 -> Raw result in microseconds - with leading gap
10:25:49.423 -> rawData[74]:
10:25:49.423 -> -3276750
10:25:49.455 -> +8750,-4500
10:25:49.455 -> + 550,- 650 + 550,-1700 + 550,- 650 + 550,- 650
10:25:49.455 -> + 500,-1750 + 550,- 600 + 550,- 650 + 550,- 650
10:25:49.455 -> + 550,-1700 + 550,-1700 + 550,-1700 + 550,- 650
10:25:49.455 -> + 550,- 650 + 550,- 600 + 550,- 650 + 550,- 650
10:25:49.455 -> + 550,- 600 + 550,- 650 + 550,- 650 + 550,- 600
10:25:49.455 -> + 550,- 650 + 550,-1700 + 550,-1700 + 550,- 650
10:25:49.455 -> + 550,- 650 + 550,- 600 + 550,- 650 + 550,- 650
10:25:49.488 -> + 550,-1700 + 550,- 650 + 500,-1750 + 550,- 600
10:25:49.488 -> + 550,- 650 + 550,-1700 + 550,- 650 + 550
10:25:49.488 -> Sum: 66000
10:25:49.488 ->
10:25:49.488 -> Result as internal 8bit ticks (50 us) array - compensated with MARK_EXCESS_MICROS=20
10:25:49.488 -> uint8_t rawTicks[73] = {175,90, 11,13, 11,34, 11,13, 11,13, 10,35, 11,12, 11,13, 11,13, 11,34, 11,34, 11,34, 11,13, 11,13, 11,12, 11,13, 11,13, 11,12, 11,13, 11,13, 11,12, 11,13, 11,34, 11,34, 11,13, 11,13, 11,12, 11,13, 11,13, 11,34, 11,13, 10,35, 11,12, 11,13, 11,34, 11,13, 11}; // Protocol=PulseDistance Raw-Data=0x2 35 bits LSB first
10:25:49.521 ->
10:25:49.521 -> Result as microseconds array - compensated with MARK_EXCESS_MICROS=20
10:25:49.521 -> uint16_t rawData[73] = {8730,4520, 530,670, 530,1720, 530,670, 530,670, 480,1770, 530,620, 530,670, 530,670, 530,1720, 530,1720, 530,1720, 530,670, 530,670, 530,620, 530,670, 530,670, 530,620, 530,670, 530,670, 530,620, 530,670, 530,1720, 530,1720, 530,670, 530,670, 530,620, 530,670, 530,670, 530,1720, 530,670, 480,1770, 530,620, 530,670, 530,1720, 530,670, 530}; // Protocol=PulseDistance Raw-Data=0x2 35 bits LSB first
10:25:49.554 ->
10:25:49.554 -> uint16_t address = 0x0;
10:25:49.554 -> uint16_t command = 0x0;
10:25:49.554 -> uint32_t rawData = 0x2;
10:25:49.554 ->
10:25:49.554 ->
10:25:49.554 -> Pronto Hex as string
10:25:49.554 -> char prontoData[] = "0000 006D 0025 0000 0151 00AC 0016 0018 0016 0041 0016 0018 0016 0018 0014 0043 0016 0016 0016 0018 0016 0018 0016 0041 0016 0041 0016 0041 0016 0018 0016 0018 0016 0016 0016 0018 0016 0018 0016 0016 0016 0018 0016 0018 0016 0016 0016 0018 0016 0041 0016 0041 0016 0018 0016 0018 0016 0016 0016 0018 0016 0018 0016 0041 0016 0018 0014 0043 0016 0016 0016 0018 0016 0041 0016 0018 0016 06C3 ";
this is how i connect the circuit
IR LED => Arduino Mega 2560
anode => D9
cathode => GND