I've been trying to get this to work now for days without any luck. I have a remote to an electric fireplace that I want to control with an arduino. I am using the IRremote library with an ir receiver to read the code coming from the remote. Then I am using another arduino running esphome and trying to transmit the code to the fireplace to control it. Here is the irDump I am getting from the IRremote library:
Protocol=UNKNOWN Hash=0x39D41DC6 12 bits (incl. gap and start) received
Raw result in internal ticks (50 us) - with leading gap
rawData[24]:
-65535
+ 27,- 7 + 26,- 8 + 10,- 24 + 26,- 8
+ 26,- 8 + 9,- 25 + 10,- 24 + 27,- 7
+ 9,- 25 + 9,- 25 + 9,- 25 + 10
Raw result in microseconds - with leading gap
rawData[24]:
-3276750
+1350,- 350 +1300,- 400 + 500,-1200 +1300,- 400
+1300,- 400 + 450,-1250 + 500,-1200 +1350,- 350
+ 450,-1250 + 450,-1250 + 450,-1250 + 500
Result as internal ticks (50 us) array - compensated with MARK_EXCESS_MICROS=20
uint8_t rawTicks[23] = {27,7, 26,8, 10,24, 26,8, 26,8, 9,25, 10,24, 27,7, 9,25, 9,25, 9,25, 10}; // Protocol=UNKNOWN Hash=0x39D41DC6 12 bits (incl. gap and start) received
Result as microseconds array - compensated with MARK_EXCESS_MICROS=20
uint16_t rawData[23] = {1330,370, 1280,420, 480,1220, 1280,420, 1280,420, 430,1270, 480,1220, 1330,370, 430,1270, 430,1270, 430,1270, 480}; // Protocol=UNKNOWN Hash=0x39D41DC6 12 bits (incl. gap and start) received
Pronto Hex as string
char prontoData[] = "0000 006D 000C 0000 0035 000D 0033 000F 0014 002D 0033 000F 0033 000F 0012 002F 0014 002D 0035 000D 0012 002F 0012 002F 0012 002F 0014 06C3 ";
I have tried sending it many different ways but the 2 ones that I think have the most promise are these:
remote_transmitter.transmit_pronto:
data: "0000 006D 000C 0000 0031 0011 0031 0011 0010 0031 0031 0011 0031 0011 0010 0031 0010 0031 0031 0011 0010 0031 0010 0031 0010 0031 0010 06C3"
and
remote_transmitter.transmit_raw:
carrier_frequency: 38kHz
code: [1250, -450 ,1250,-450, 450,-1250, 1250,-450, 1250,-450, 450, -1250, 450, -1250, 1250, -450, 450, -1250, 450, -1250, 450, -1250, 450]
Unfortunately I haven't had any luck yet getting this to work. One of the things I feel like I don't understand and may be messing up is the leading gap. I'm not sure what that means/how I'm supposed to use it when sending. Any help would be greatly appreciated!