IRRemote dump from air conditioning

Greetings!

I want to make air conditioning unit controlled via IR led from Arduino at home. I’ve installed IRRemote library and modified it a bit to increase it’s receive buffer for bigger packet capture. I’ve captured various packets of data from my remote and trying to learn its format.
Here is how one packet looks like:

Encoding  : SANYO
Code      : FFFFFFFF (0 bits)
Timing[115]:
     + 550, - 400     + 600, -1400     + 600, - 400     + 550, - 450
     + 550, - 450     + 550, - 400     + 600, - 400     + 600, - 400
     + 600, - 400     + 600, -1400     + 550, - 400     + 600, - 400
     + 600, -1400     + 550, - 450     + 550, - 450     + 550, -1400
     + 600, -1400     + 550, -1400     + 600, -1400     + 550, -1400
     + 600, - 400     + 600, - 400     + 600, - 400     + 550, - 450
     + 550, - 450     + 550, - 450     + 550, - 400     + 600, - 400
     + 600, - 400     + 600, - 400     + 600, - 400     + 550, - 450
     + 550, - 450     + 550, - 400     + 600, - 400     + 600, - 400
     + 600, - 400     + 600, - 400     + 550, - 450     + 550, - 450
     + 550, - 400     + 600, - 400     + 600, - 400     + 600, - 400
     + 600, - 400     + 550, - 450     + 550, - 450     + 550, - 450
     + 550, - 400     + 600, - 400     + 600, - 400     + 600, - 400
     + 550, -1450     + 550, -1400     + 600, -1400     + 550, -1400
     + 600, -1900     +3050
unsigned int  rawData[115] = {550,400, 600,1400, 600,400, 550,450, 550,450, 550,400, 600,400, 600,400, 600,400, 600,1400, 550,400, 600,400, 600,1400, 550,450, 550,450, 550,1400, 600,1400, 550,1400, 600,1400, 550,1400, 600,400, 600,400, 600,400, 550,450, 550,450, 550,450, 550,400, 600,400, 600,400, 600,400, 600,400, 550,450, 550,450, 550,400, 600,400, 600,400, 600,400, 600,400, 550,450, 550,450, 550,400, 600,400, 600,400, 600,400, 600,400, 550,450, 550,450, 550,450, 550,400, 600,400, 600,400, 600,400, 550,1450, 550,1400, 600,1400, 550,1400, 600,1900, 3050};  // SANYO FFFFFFFF

Full packet capture with various modes turned on (commented) and 3 capture per mode (to catch capture errors) are posted here: http://pastebin.com/kisrK5xw
As the error margin was set default to 25 in IRRemote lib I guess it’s not pretty accurate. But that can be normalized by hand anyways. Like +550 and + 600 are the same.

Could somebody give me an insight on how it’s formed? As far as I understand a bit is always formed with ~ +600 pulse and then a “negative” pulse length means either 0 or 1. ~ -400 is one or another, while ~ -1400 is opposite.
And something like “+ 650, -2850 +3050” marks “end of data”. I’m slightly confused on a negative value here because it ranges in a wide band from -2900 to a -1800. Is it just a little stretched or it might have some meaning depending on it’s length here?

On first glance it doesn't look like a complete capture.

try this sketch:

AnalysIR, I was just reading this post: Samsung AirCo, IRremote lib and Arduino - IRForum found it a few minutes ago before checking your reply here :slight_smile:
Thanks for your sketch, will try it a bit later and report back.

Here is how output from AnalysIR sketch looks like (same one command repeated):

Press the button on the remote now - once only

Raw: (231) 3144, -8856, 636, -368, 636, -1360, 616, -388, 636, -364, 640, -364, 636, -368, 636, -364, 640, -364, 636, -368, 636, -1364, 608, -396, 636, -364, 636, -1364, 608, -396, 636, -364, 636, -1364, 608, -1392, 604, -1392, 608, -1388, 608, -1392, 604, -396, 636, -364, 640, -364, 640, -364, 640, -364, 636, -364, 640, -364, 640, -364, 640, -364, 640, -360, 640, -364, 640, -364, 640, -364, 640, -364, 640, -360, 640, -364, 640, -364, 640, -360, 640, -364, 640, -364, 640, -364, 636, -364, 640, -364, 640, -364, 640, -364, 636, -364, 640, -364, 640, -364, 640, -364, 640, -360, 640, -364, 640, -364, 640, -1360, 640, -1360, 636, -1360, 636, -1364, 636, -2864, 3088, -8884, 636, -1364, 636, -396, 580, -420, 608, -396, 608, -396, 604, -396, 608, -396, 608, -396, 608, -396, 604, -1364, 636, -420, 584, -392, 612, -1360, 636, -420, 584, -1360, 640, -1360, 636, -420, 580, -1364, 636, -1364, 636, -1360, 636, -1360, 640, -1360, 636, -1364, 632, -1364, 636, -1360, 640, -408, 592, -364, 640, -364, 640, -1360, 636, -1360, 640, -1360, 636, -392, 608, -364, 640, -364, 640, -364, 640, -364, 640, -360, 640, -364, 640, -380, 624, -364, 640, -1360, 636, -1364, 636, -360, 640, -1364, 636, -1360, 636, -364, 640, -364, 640, -364, 636, -364, 640, -364, 640, -364, 640, -360, 640, -1364, 636, -1360, 636, -1364, 636, -1360, 636, 

Press the button on the remote now - once only

Raw: (231) 3112, -8888, 604, -424, 556, -1420, 600, -424, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 556, -448, 552, -1420, 580, -448, 556, -444, 556, -1420, 580, -448, 552, -448, 556, -1420, 584, -1416, 576, -1420, 580, -1420, 576, -1420, 580, -444, 556, -448, 556, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 556, -448, 556, -444, 556, -448, 556, -448, 556, -448, 580, -420, 584, -420, 580, -424, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -420, 580, -424, 580, -424, 580, -420, 584, -420, 580, -424, 580, -420, 584, -1396, 600, -1396, 604, -1392, 604, -1396, 604, -1896, 3084, -8884, 604, -1396, 604, -420, 584, -420, 580, -424, 580, -424, 580, -420, 584, -420, 584, -420, 580, -420, 584, -1392, 604, -424, 580, -420, 584, -1392, 604, -424, 580, -1396, 600, -1396, 604, -420, 584, -1392, 604, -1392, 608, -1392, 604, -1392, 608, -1392, 604, -1396, 600, -1396, 604, -1396, 600, -424, 580, -424, 580, -424, 580, -1392, 608, -1392, 604, -1392, 604, -424, 580, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -1392, 604, -1420, 580, -420, 584, -1416, 580, -1420, 580, -420, 584, -420, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -1416, 580, -1420, 580, -1416, 580, -1420, 580, 

Press the button on the remote now - once only

Raw: (231) 3108, -8892, 600, -424, 580, -1396, 604, -424, 576, -424, 580, -424, 580, -424, 580, -424, 576, -424, 580, -424, 560, -1416, 596, -428, 580, -424, 572, -1404, 600, -424, 580, -424, 568, -1408, 600, -1396, 588, -1412, 588, -1408, 580, -1420, 580, -444, 560, -444, 556, -444, 560, -444, 556, -448, 556, -448, 556, -444, 556, -448, 556, -448, 556, -448, 556, -444, 556, -448, 556, -448, 556, -448, 556, -444, 556, -448, 580, -424, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -1396, 604, -1392, 604, -1396, 604, -1392, 604, -2400, 3080, -8888, 604, -1396, 604, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -1392, 604, -420, 584, -420, 584, -1392, 604, -420, 584, -1396, 600, -1396, 604, -420, 584, -1392, 604, -1392, 608, -1392, 604, -1392, 608, -1392, 604, -1392, 604, -1396, 604, -1392, 604, -424, 580, -420, 584, -420, 584, -1392, 604, -1392, 608, -1392, 604, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -1392, 604, -1396, 604, -420, 584, -1416, 580, -1420, 580, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -420, 584, -420, 584, -1416, 580, -1420, 580, -1416, 580, -1420, 580, 

Press the button on the remote now - once only

Raw: (231) 3084, -8916, 576, -448, 556, -1420, 580, -444, 556, -448, 556, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -1420, 576, -448, 556, -448, 556, -1420, 576, -448, 556, -448, 556, -1420, 576, -1420, 580, -1420, 576, -1420, 580, -1420, 576, -448, 556, -448, 552, -448, 556, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 556, -448, 556, -444, 560, -444, 580, -424, 580, -424, 580, -420, 580, -424, 584, -420, 580, -420, 580, -424, 580, -424, 580, -424, 580, -420, 584, -420, 580, -424, 580, -424, 580, -420, 584, -420, 584, -420, 580, -1396, 604, -1392, 604, -1392, 608, -1392, 604, -1896, 3080, -8892, 604, -1392, 604, -424, 580, -420, 584, -420, 580, -424, 580, -424, 580, -424, 580, -420, 580, -424, 580, -1396, 604, -420, 580, -424, 580, -1396, 604, -420, 584, -1392, 604, -1392, 604, -424, 580, -1392, 608, -1392, 604, -1396, 600, -1396, 604, -1392, 604, -1396, 604, -1392, 604, -1396, 604, -420, 584, -420, 584, -420, 580, -1392, 608, -1392, 604, -1396, 600, -424, 580, -424, 580, -420, 584, -420, 580, -424, 580, -424, 580, -420, 584, -420, 584, -420, 580, -1420, 580, -1420, 580, -420, 580, -1420, 580, -1416, 580, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -1420, 580, -1420, 576, -1420, 580, -1416, 580, 

Press the button on the remote now - once only

Raw: (231) 3088, -8912, 580, -448, 556, -1420, 576, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 556, -444, 556, -1420, 580, -448, 552, -448, 556, -1420, 580, -448, 552, -448, 556, -1420, 580, -1420, 576, -1420, 580, -1420, 576, -1420, 580, -448, 552, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 556, -448, 556, -444, 556, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 556, -448, 556, -444, 580, -424, 580, -424, 580, -424, 580, -420, 584, -420, 580, -424, 580, -420, 584, -420, 580, -424, 580, -424, 580, -420, 584, -420, 580, -424, 580, -424, 580, -420, 584, -1392, 604, -1392, 608, -1392, 604, -1392, 608, -1896, 3080, -8888, 604, -1396, 604, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -1392, 604, -424, 580, -420, 584, -1396, 600, -424, 580, -1396, 604, -1392, 604, -420, 584, -1392, 604, -1392, 608, -1392, 604, -1392, 604, -1396, 604, -1396, 600, -1396, 604, -1392, 604, -424, 580, -424, 580, -424, 584, -1388, 604, -1392, 608, -1392, 604, -424, 580, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -1392, 604, -1420, 580, -420, 584, -1416, 580, -1420, 580, -420, 580, -424, 580, -420, 584, -420, 584, -420, 580, -424, 580, -420, 584, -1416, 580, -1420, 580, -1420, 576, -1420, 580,

This one looks different from IRRemote output :slight_smile:

I imported your signals into AnalysIR and they decode as Vestel AC

the first 4 are 112 data bits and the last 2 are 56 data bits. That likely expalins why you were getting strange results with IRremote. Either way, our sketch is more accurate - so best to use that in this scenario.

Your timings are a bit off..but not neccesarily fatal..what IR receiver are you using (link)?

PS: Vestel may be a rebrand/OEM of another make. Please post the Make, model of your AC unit & remote control.

The IR receiver I use are from some local electronics store sold as TSOP1736 compatible. But it’s marked as TFM 5360. Datasheet here. I’ve just noticed that I don’t have a pull-up resistor on data line and I don’t have decoupling capacitor, so this might be a reason for timing issues. I can try with them to stabilize readings is this would help.

AC Unit are Samsung AQ09CLN
Remote control marked as:
HZN 090209 3CD
DB93-07073A V00

DB93-07073A seems to be it’s model. It looks like the one attached.

controlarcond450x450.jpg

This is an very old model of IR Receiver and is tuned for 36kHZ.

Your AC is running on 38kHz. It is not a very big deal.

Something like a TSOP34438 would be best for 38kHZ AC signals.

You should be able to send your signals using sendRAW of IRremote.

Thanks! I didn't knew the carrier frequency for my remote so I just took a first available receiver knowing it will detect close frequencies anyways.
I've added pull-up and capacitor and here is a few dumps of the packets with the same settings. Seems like it still drifts but I guess that is because different carrier freqs.

Raw: (231) 3112, -8884, 636, -424, 548, -1396, 632, -424, 580, -396, 608, -396, 604, -396, 608, -396, 608, -396, 608, -392, 608, -1368, 632, -424, 576, -396, 608, -1364, 636, -424, 576, -400, 604, -1368, 632, -1364, 632, -1368, 632, -1364, 632, -1368, 632, -420, 580, -420, 584, -420, 584, -420, 584, -420, 584, -420, 580, -420, 584, -420, 580, -424, 580, -424, 580, -420, 584, -420, 580, -424, 580, -420, 584, -420, 584, -420, 584, -392, 608, -392, 612, -392, 612, -364, 616, -388, 612, -416, 588, -412, 592, -412, 588, -392, 616, -384, 620, -384, 616, -388, 612, -416, 596, -408, 600, -376, 616, -388, 612, -1392, 608, -1388, 608, -1388, 608, -1392, 608, -2892, 3112, -8860, 608, -1388, 608, -392, 632, -372, 612, -392, 612, -416, 584, -420, 584, -416, 588, -392, 608, -396, 608, -1416, 580, -396, 608, -420, 584, -1416, 580, -420, 584, -1416, 584, -1412, 584, -396, 608, -1416, 580, -1416, 584, -1416, 580, -1416, 584, -1392, 604, -1392, 608, -1388, 608, -1392, 608, -420, 584, -416, 584, -420, 584, -1416, 580, -1416, 584, -1416, 584, -420, 580, -420, 584, -392, 612, -392, 608, -420, 584, -420, 584, -420, 584, -416, 584, -392, 612, -1392, 608, -1388, 608, -420, 584, -1412, 584, -1416, 584, -420, 580, -420, 584, -420, 584, -420, 584, -392, 608, -420, 584, -420, 584, -1416, 580, -1416, 584, -1416, 580, -1416, 584 
Raw: (231) 3112, -8884, 608, -396, 604, -1396, 604, -396, 608, -396, 608, -392, 608, -396, 608, -396, 620, -384, 624, -376, 632, -1372, 620, -376, 612, -392, 608, -1392, 608, -392, 608, -396, 612, -1388, 632, -1368, 628, -1368, 632, -1364, 636, -1364, 632, -368, 636, -368, 636, -368, 616, -388, 620, -408, 604, -376, 628, -372, 632, -372, 628, -372, 624, -404, 592, -412, 596, -408, 588, -412, 588, -412, 588, -420, 584, -420, 584, -420, 584, -416, 584, -420, 584, -420, 584, -420, 580, -420, 584, -420, 584, -420, 584, -416, 584, -420, 584, -416, 588, -416, 584, -420, 584, -420, 584, -420, 584, -416, 588, -1388, 608, -1388, 612, -1388, 608, -1388, 612, -1888, 3088, -8884, 608, -1392, 608, -392, 612, -388, 612, -420, 584, -416, 588, -416, 584, -420, 584, -416, 588, -392, 612, -1388, 608, -392, 612, -416, 584, -1392, 608, -396, 608, -1388, 608, -1392, 608, -392, 608, -1392, 608, -1388, 608, -1392, 608, -1388, 608, -1388, 612, -1388, 608, -1388, 612, -1388, 608, -396, 608, -416, 588, -416, 588, -1388, 608, -1392, 604, -1392, 608, -396, 608, -416, 588, -388, 612, -392, 612, -416, 584, -420, 584, -420, 584, -420, 584, -408, 596, -1388, 608, -1416, 580, -420, 584, -1416, 584, -1412, 584, -420, 584, -420, 584, -416, 584, -420, 584, -392, 612, -416, 584, -420, 584, -1416, 584, -1412, 584, -1416, 584, -1412, 584 
Raw: (231) 3088, -8912, 580, -424, 580, -1416, 580, -424, 580, -424, 580, -420, 580, -424, 580, -424, 580, -424, 580, -420, 580, -1420, 580, -424, 580, -420, 580, -1420, 580, -420, 580, -424, 580, -1420, 580, -1420, 576, -1420, 580, -1416, 580, -1420, 580, -424, 576, -424, 580, -424, 580, -424, 576, -424, 580, -424, 584, -420, 580, -424, 576, -424, 580, -424, 580, -424, 580, -424, 576, -424, 580, -424, 580, -424, 580, -424, 576, -424, 580, -424, 580, -424, 576, -428, 576, -424, 580, -424, 580, -424, 576, -428, 576, -424, 580, -424, 576, -432, 572, -424, 580, -424, 580, -424, 576, -428, 576, -424, 580, -1420, 576, -1424, 576, -1420, 576, -1424, 592, -2908, 3056, -8916, 576, -1420, 580, -424, 580, -424, 576, -428, 576, -428, 576, -424, 580, -424, 576, -428, 576, -424, 580, -1420, 576, -424, 580, -424, 580, -1420, 576, -424, 580, -1420, 576, -1424, 576, -424, 580, -1420, 576, -1420, 576, -1424, 576, -1420, 580, -1416, 580, -1420, 576, -1420, 580, -1420, 576, -428, 576, -428, 576, -428, 576, -1420, 580, -1416, 580, -1420, 576, -428, 576, -424, 576, -428, 576, -428, 576, -424, 580, -424, 576, -428, 576, -428, 576, -424, 580, -1420, 576, -1420, 580, -424, 576, -1424, 600, -1396, 604, -400, 600, -404, 600, -404, 584, -416, 576, -428, 576, -428, 600, -428, 552, -1420, 576, -1420, 588, -1412, 600, -1396, 604 
Raw: (231) 3088, -8912, 580, -424, 580, -1416, 580, -424, 580, -420, 580, -424, 580, -424, 580, -424, 580, -424, 576, -424, 580, -1420, 580, -420, 580, -424, 580, -1416, 580, -424, 580, -424, 580, -1420, 576, -1420, 580, -1420, 576, -1420, 580, -1420, 576, -424, 580, -424, 580, -424, 576, -428, 576, -424, 580, -424, 580, -424, 576, -424, 580, -424, 580, -424, 580, -424, 576, -424, 580, -424, 580, -424, 580, -424, 576, -428, 576, -428, 576, -424, 576, -428, 576, -424, 580, -424, 580, -424, 576, -428, 576, -424, 580, -424, 576, -428, 576, -424, 580, -424, 580, -424, 576, -428, 576, -428, 576, -424, 580, -1420, 600, -1396, 604, -1396, 576, -1420, 580, -1920, 3056, -8916, 576, -1420, 580, -424, 580, -424, 576, -428, 576, -428, 576, -424, 576, -428, 576, -428, 576, -424, 580, -1420, 576, -424, 580, -424, 576, -1424, 576, -428, 576, -1420, 604, -1396, 600, -400, 580, -1420, 600, -1396, 604, -1396, 576, -1420, 576, -1420, 580, -1420, 576, -1420, 580, -1420, 576, -428, 576, -428, 576, -428, 580, -1416, 596, -1400, 604, -1396, 576, -424, 580, -424, 576, -428, 576, -428, 576, -428, 572, -428, 576, -428, 576, -428, 576, -424, 576, -1424, 592, -1404, 604, -400, 604, -1396, 600, -1396, 604, -424, 564, -416, 600, -400, 604, -400, 600, -404, 576, -428, 572, -448, 556, -1424, 576, -1420, 580, -1420, 600, -1396, 604 
Raw: (231) 3088, -8940, 552, -448, 556, -1444, 556, -448, 552, -448, 560, -444, 556, -448, 552, -448, 556, -448, 556, -448, 556, -1440, 556, -448, 556, -448, 552, -1448, 552, -448, 556, -448, 552, -1444, 556, -1444, 552, -1444, 556, -1444, 552, -1444, 556, -448, 556, -448, 552, -448, 556, -448, 556, -448, 552, -452, 552, -452, 552, -448, 556, -448, 552, -452, 552, -452, 552, -448, 552, -452, 552, -452, 552, -448, 552, -452, 552, -452, 552, -452, 552, -448, 552, -452, 552, -452, 552, -452, 552, -448, 580, -424, 580, -424, 576, -428, 576, -428, 576, -424, 580, -424, 580, -424, 576, -428, 576, -424, 580, -1420, 576, -1420, 576, -1424, 576, -1420, 576, -1924, 3056, -8916, 576, -1424, 576, -428, 572, -428, 576, -452, 552, -452, 552, -448, 552, -452, 552, -452, 552, -452, 552, -1420, 576, -452, 552, -452, 552, -1420, 576, -452, 552, -1424, 572, -1424, 576, -452, 552, -1420, 576, -1420, 576, -1424, 576, -1420, 580, -1420, 576, -1420, 580, -1420, 576, -1420, 580, -448, 552, -452, 552, -452, 552, -1420, 576, -1420, 580, -1420, 576, -452, 552, -448, 556, -448, 552, -452, 552, -452, 552, -448, 556, -452, 552, -448, 552, -448, 556, -1420, 576, -1420, 580, -448, 556, -1416, 580, -1420, 576, -452, 552, -452, 552, -448, 556, -448, 556, -448, 552, -448, 556, -448, 556, -1420, 576, -1420, 580, -1420, 576, -1420, 580

So I guess this "3088, -8940" marks a beginning of packet or a part of it and the pulse are always at ~550us while space are either ~450us or ~1400us for 0 and 1. Am I right here?

EDIT: Like the example capture I've posted in this reply decoded like this:

|01000000010010011111000000000000000000000000000000001111?|10000000010010110111111110001110000000001101100000001111|

Any comments on my last post?

So I guess this "3088, -8940" marks a beginning of packet or a part of it and the pulse are always at ~550us while space are either ~450us or ~1400us for 0 and 1. Am I right here?

In general yes. The first 2 are the header and thereafter the longer space is usually a binary '1'.

You should also note that standard IR receivers will always 'distort' the mark/space timings...see this post on our blog:
Infrared Receivers – signal lag and distortion

That is why we have a signal 'clean' feature in AnalysIR that can automatically correct the timings and thus get better performance/range from the remote control signals.