Pages: 1 [2]   Go Down
Author Topic: Solved: LG air conditioning codes  (Read 19729 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

adis is there a way of turning the unit off with provided libary?
I will be working on a web-client seeing these lg ac units have issues turning back on once they loose power smiley.

any information would be great thanks.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13707
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

from a previous post
Quote
power off:1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1

so looks like it can be done
(never used those thingies disclaimer)
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

by the looks of the libary that was supplied though thats the turn off for each of the compoents not the unit its self.

class LG
{
   public:
      // fields
      unsigned int codes[LG_buffer_size];
      // methods
      // setter
      LG(int _mode,
            int _fan,
            int _temperature,
            int _state);
      // getter
      // debugging
      void debug();
   private:
      // fields
      byte crc;
      // methods
      void FillBuffer(byte _pos, byte _bit, byte _value);
};
Logged

Cosenza, Calabria - Italy
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to create a program that allows you to control all (or almost all) Brands of air conditioners.
Is there anyone who has already done it?
Some of you have never planned an air conditioner that is not LG?

Thanks to all of you ... :-)

PS: I will open another post anyway
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All

I am just wondering which model LG remotes this is for.

Thanks

Darryl
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Code:
Raw (76): 21114 1400 -1450 500 -500 500 -500 450 -1000 450 -500 500 -500 950 -550 450 -1000 950 -550 450 -950 500 -500 950 -550 450 -500 450 -550 450 -500 450 -550 450 -500 450 -550 450 -550 450 -550 400 -550 450 -550 450 -500 450 -550 450 -500 450 -550 450 -550 400 -550 450 -550 400 -1000 950 -550 1400 -1500 450 -550 400 -550 450 -1000 450 -550 400 -550 950

and I have no idea how to convert this to hex.
Can you please give me a hand?

Thanks!
-Ethan

Hi, did you find a solution to your problem ?

Many thnaks
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All

I am just wondering which model LG remotes this is for.

Thanks

Darryl

The code works with LG S09AW
Regards,
Adi
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Adis,

Im trying to achieve what you have been able to do with the lg remote, using the codes mentioned in the earlier posts. Im using the Uno and been able  to record the incoming IR pulses from the remote controller. But if I send them from the uno  and compare it to the pulses sent from the remote controller itself, the uno seems less bright and the LG aircon doesnt respond. Is there a way to address this issue or is it normal?

Appreciate your help in this.

Cheers,
Arvind
« Last Edit: June 29, 2013, 06:16:44 am by arvindk62 » Logged

Offline Offline
Full Member
***
Karma: 2
Posts: 175
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I used this code for LG A/C Power On : Header NEC + 10001000 + 0000 0000 + 10100100 + 1110 + final pulse (520,4200usecs)
and it works fine with the LG Air Condition power on but how i switch off ?Not the same....i can't switch off....
Can you share the code for power off and others functions?
I find the code from there....http://irremote.psiloc.com/Show.aspx?d=Air%20Conditioner
Thanks.
Logged

Web / sms / bluetooth / arduino / android remote control. Home Automation projects.
http://www.power7.net

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi power7net,

these are the two codes which I received

using IRrecord
ON
Received unknown code, saving as raw
 m8750 s4150 m500 s1550 m400 s650 m150 s900 m50 s3200 m100 s750 m50
OFF
Received unknown code, saving as raw
 m8750 s4200 m500 s1650 m50 s250 m50 s650 m100 s900 m50 s3000 m50 s1000 m50 s4300 m50 s1850 m0 s1000 m100

using IRrecvDump
ON
Unknown encoding: 1C583E4B (32 bits)
Raw (16): -21000 8850 -4050 500 -1600 200 -100 100 -650 150 -850 150 -2900 150 -950 100
OFF
Unknown encoding: 8BCEFF74 (32 bits)
Raw (18): -22958 8850 -4050 650 -1500 150 -900 100 -3950 150 -950 100 -4150 100 -1750 150 -850 200

But a funny thing happens when I cycle the ON/OFF button more than 5-6 times, the codes double in size for both functions and return to the original size, after cycling them 5-6 more times.

Cheers,
Arvind
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Another HELP!!??? smiley-lol   smiley-grin

I use Arduino 1.0.1
in 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 type
Programmi\arduino-1.0.1\libraries\LG/LG.h:51: error: 'byte' does not name a type
Programmi\arduino-1.0.1\libraries\LG/LG.h:51: error: 'byte' does not name a type
Programmi\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:

sketch_LG_ino.cpp.o: In function `setup':
C:\Users\ALESSA~1\AppData\Local\Temp\build6352010931496577367.tmp/sketch_LG_ino.cpp:22: undefined reference to `LG::LG(int, int, int, int)'
C:\Users\ALESSA~1\AppData\Local\Temp\build6352010931496577367.tmp/sketch_LG_ino.cpp:25: undefined reference to `LG::debug()'


to solve that just change the header on LG.h from '#include <wprogram.h>' to '#include <Arduino.h>'
Logged

Lake Tyers Beach
Offline Offline
Full Member
***
Karma: 3
Posts: 133
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Folks,
Just an idea for you people out there working on these IR controller codes.  As a teacher a I got fed up with students fiddling with remotes (setting too high a temp, too low a temp and also setting timer functions so it starts up Friday night and runs all weekend hahaha, Not!!!)   Also some teachers who think the system will get to the thermostatic operating point  quicker if the Thermostat is really cranked up and then forget it, grrrr Even some science teachers do this.)

So two devices would be neat. First a "simple on/off button controller" for the desired Heater/Cooler that only switches it off and on and cannot choose the temperature or alter any other function.  So a Split system would have it set on the "feel good" setting.  This would be in the classroom for the staff or students to use at their discretion (Preferably screwed down somewhere).  The second device I would issue to cleaners and it simply could be pressed every time they cleaned a room to set all the default settings the school board wanted for the school to use.  This may need the incorporation of multiple brand protocols to cover a whole school.  This would at least reset the systems on a regular basis in case some one brings their own controller (eg School has clever Arduino users who read this column smiley

What do you think?  A commercial opportunity?  Plus an energy saver!!!

Cheers, Rob
Logged

Learning Flute and C++, heading for a meltdown.

Pages: 1 [2]   Go Up
Jump to: