Hi,I'm working on an arduino remote control for LG air conditioner that should assemble mode, temp, fan speed (and any other parameters) and emulate the original remote control.Can anybody point me to some resources about LG air conditioning codes?Many thanks,Adi

That library will allow you to record the IR codes, store them and send them. There isn't an LG protocol in the library but you can send the raw codes.

Thanks TargettioYour hint worked. Used the library to decode on/off times then gave 0/1 for each pulse duration. I obtained a 28 byte stream. Using slightly different commands (for example set temp with a degree difference) I managed to map each command inside the stream. The stream has a 4 bit CRC that sums each 4 bit group.

Your ir is modulated with aprox 38 khz, so using the sound card is the wrong way to start.From your picture I don't understand how you captured it, but lets start the way I did it:

My advice is to spend 2€ on a 38khz ir receiver with digital output and a ir led and install the library from the second post.You should be able to see the byte stream and play it back. If your air conditioner responds to it you have a solution using certain preconfigured commands.

Decoding is another story: The library will give you the streams in a numeric format that can be converted into a 1/0 stream (with ms excel)You set the temp to 29 and then to 28 and look for the differences in the stream...Let me know when you have the hardware tested with the library and give me the output from ir library, I'll fill in the excel and post it.

One word of caution: the remote is the state machine memory, if you use another remote in parallel your arduino is quite lost.

The code I have until now are some undocumented test, but the main is irsend.sendRaw(codesArray,buffer_size,38);

Hi Adi,I installed the IR library for Arduino, and used it to record the signal sent by my remote control to my Elco airconditioner.However, when using the IRecvDump sketch, the output is in a form such as

I use Arduino 1.0.1in the verification phase of the first code posted by Adis:

[ERROR]Programmi\arduino-1.0.1\libraries\LG/LG.h:49: error: 'byte' does not name a typeProgrammi\arduino-1.0.1\libraries\LG/LG.h:51: error: 'byte' does not name a typeProgrammi\arduino-1.0.1\libraries\LG/LG.h:51: error: 'byte' does not name a typeProgrammi\arduino-1.0.1\libraries\LG/LG.h:51: error: 'byte' does not name a type

[Possible solution] in 'LG.h' I changed the code to "unsigned char"................ but appears a new error: