LG AC RAW code

Everything related to protocols and IR codes
Post Reply
volvodidi
Posts: 16
Joined: Sat Jan 14, 2017 3:37 pm

LG AC RAW code

Post by volvodidi »

Hi,
I have a LG AC that i would like to turn on and off with an arduino mega.
My original remote is in Sweden, here i have only a universal Remote that woks with my LG AC (tested).
I received these RAW Codes from my arduino with your sketch.

ON
Raw: (59) 8368, -4156, 552, -1528, 552, -476, 548, -484, 548, -516, 524, -1528, 552, -476, 548, -484, 552, -492, 552, -484, 552, -484, 552, -476, 548, -484, 552, -484, 548, -1528, 556, -472, 552, -492, 552, -484, 548, -480, 548, -1520, 548, -1528, 552, -484, 552, -476, 552, -1524, 552, -480, 548, -1524, 552, -484, 548, -508, 524, -1516, 552,

and for OFF
Raw: (59) 8340, -4192, 552, -1524, 556, -472, 556, -480, 520, -544, 492, -1560, 548, -480, 548, -484, 552, -484, 548, -1520, 528, -1552, 528, -508, 528, -508, 524, -504, 524, -512, 520, -524, 520, -516, 524, -512, 520, -504, 524, -512, 492, -552, 520, -508, 520, -1544, 524, -520, 516, -1556, 524, -508, 520, -516, 516, -516, 520, -1560, 516,

Now I would like to adjust my RAW codes to LG28AC Rules in analysir.
Marks and spaces ar the same 533 in the rules, but I found values with 472, should I set these values to 533?

Dieter
Bonn, germany
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: LG AC RAW code

Post by AnalysIR »

It looks like the header for these signals is 8350 followed by a 4175 space.

The other mark spaces should be
517
1551

This is based on a quick review. It is also important to note that the timings in Universal remotes may not be 100% accurate.

Post back if these timings work
volvodidi
Posts: 16
Joined: Sat Jan 14, 2017 3:37 pm

Re: LG AC RAW code

Post by volvodidi »

Hi,
the original timings will sometimes in Analysir decod as LG28AC, your timings are the same (sometimes).
If i use timings of lg28AC rules, the code will be longer and not decode as LG28AC.
If it works, its ok for me. I check it christmas with the original remote.
Dieter
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: LG AC RAW code

Post by AnalysIR »

Yes, we now have about 3 slightly different LG28AC timings defined.

When you are recording the signals, it is a good idea to keep the remote about 1->2m away from the receiver. Also, check the batteries are good.

It will be interesting to see how the original remote compares @ Christmas.
volvodidi
Posts: 16
Joined: Sat Jan 14, 2017 3:37 pm

Re: LG AC RAW code

Post by volvodidi »

Hi,
my switch clock works well with the universal remote code. And now it works with the original LG remote code.
Here the original LG Remote codes, received with arduino uno and your sketch: (dark room distance ca. 1m)

Raw: (59) 3228, -9824, 540, -1560, 520, -540, 504, -540, 524, -508, 524, -1540, 520, -512, 524, -508, 524, -508, 524, -512, 492, -536, 524, -508, 524, -516, 524, -512, 520, -1540, 524, -508, 524, -512, 520, -512, 496, -540, 516, -1536, 520, -532, 500, -536, 524, -516, 524, -508, 520, -508, 500, -536, 524, -1540, 496, -1552, 548, -508, 524,

Raw: (59) 3184, -9844, 520, -1544, 544, -520, 520, -508, 500, -536, 520, -1540, 524, -524, 524, -516, 524, -508, 524, -1536, 544, -1544, 496, -544, 524, -508, 524, -508, 520, -508, 524, -512, 520, -512, 524, -508, 520, -516, 516, -528, 520, -516, 516, -512, 492, -1588, 524, -496, 544, -1540, 500, -544, 492, -540, 496, -536, 520, -1552, 520,

This are not the same settings from my first post!

Dieter
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: LG AC RAW code

Post by AnalysIR »

Hi Dieter

Thanks for the update, very interesting :)

The signals are almost identical withe very different headers. see image from AnalysIR:
2020-01-26 13_45_59-AnalysIR 1.16.100.8303.jpg
A likely explanation: Headers (lead-in) which are placed at the start of many IR signals are used to alowl the Gain of the IR receiver to balance out for the rest of the signal after the header (aka AGC). Some devices will not use the headers when decoding/validating the signal and that may explain why the different signals both work.

It seem the total duration of the Header & Header Space are equivalent/close.
You do not have the required permissions to view the files attached to this post.
volvodidi
Posts: 16
Joined: Sat Jan 14, 2017 3:37 pm

Re: LG AC RAW code

Post by volvodidi »

First signal is on, second is off (orig remote).
Dieter
Post Reply