controling SAMSUNG Air Conditioner

Everything related to protocols and IR codes
jonalama
Posts: 12
Joined: Fri Sep 06, 2019 10:42 pm

controling SAMSUNG Air Conditioner

Post by jonalama »

Hello,
I am using the first circuit showing in the video below (2:04) to decode my AC remote.
https://www.youtube.com/watch?v=kmf8ZfWdGU4&t=471s
The arduino code: http://farrellf.com/arduino/infrared.ino
After uploading the code it keeps me showing this result for my AC remote ON/OFF button.
FFFFFFFF
100,500,1500,500,450,550,400,550,400,550,400,550,450,550,400,500,500,500,450,550,1450,550,400,550,450,550,400,550,450,550,1450,550,1500,550,400,500,1500,550,1450,600,1400,550,1500,550,1450,500,1500,550,1500,550,1450,550,450,500,450,550,400,550,1450,550,1450,550,1500,500,1500,550,1450,500,500,500,450,500,500,500,450,550,400,500,500,500,1550,450,1500,500,500,500,450,500,500,500,1500,550,400,550,450,550,450,500,450,500,500
FFFFFFFF
100,500,1500,550,400,500,450,550,400,500,450,500,450,550,450,500,450,550,450,500,1500,500,450,500,500,500,500,500,1500,500,1500,450,1550,500,500,450,1550,450,1550,500,1500,500,1500,500,1500,500,1500,550,1500,500,1500,550,450,450,500,500,450,550,1500,500,1500,500,1500,500,1500,500,1500,500,500,450,500,550,450,500,450,450,550,450,500,500,1550,500,1500,500,450,500,500,500,500,500,1500,500,450,500,500,500,450,550,450,500,450

While for my tv remote I have this result for on/off button :
E0E040BF
67,4550,4400,650,1550,650,1550,650,1600,650,450,600,500,650,450,650,450,650,500,600,1600,650,1550,650,1600,600,500,600,500,650,450,650,450,650,450,650,500,600,1600,650,450,650,450,650,500,600,500,600,500,650,450,650,1550,650,500,600,1600,650,1550,650,1600,600,1600,650,1550,650,1600,600

E0E040BF
67,4550,4350,650,1550,650,1600,650,1550,650,450,650,450,650,500,600,500,600,500,650,1550,650,1600,600,1600,650,450,650,450,650,500,600,500,600,500,650,450,650,1550,650,500,600,500,600,500,650,450,650,450,650,500,600,1600,600,500,650,1550,700,1550,600,1600,650,1550,650,1600,600,1600,650

Could you please help me to fix it? It is really urgent. Thanks
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: controling SAMSUNG Air Conditioner

Post by AnalysIR »

2 things..

- Try using 38kHz for the AC & not 40kHz....most ACs are 38kHz
- The buffer size in that code is 100 in size. You signal is longer that 100...so increase the buffer size for 'durations'

Finally, make sure to bring the emitter close to the AC as you are driving it directly from the GPIO pin. Using a transistor driver circuit will perform much better.
jonalama
Posts: 12
Joined: Fri Sep 06, 2019 10:42 pm

Re: controling SAMSUNG Air Conditioner

Post by jonalama »

Hello,

Thank you for your help.

I have added a transistor and changed the the band into 38khz.

The only problem is that the power button only reacts when I press it towards my AC, not in the IR emitter. Below I will show the results:

49B0F624
5,900,400,600,450,450
4CB0FADF
5,650,300,450,500,800
(when i press the button towards my AC)

FFFFFFFF
57,300,1600,350,600,300,750,150,700,250,700,300,650,250,850,250,600,400,600,300,1700,150,800,350,600,450,2700,250,1700,300,1650,350,650,350,3600,350,3700,300,1750,150,1800,300,1750,200,1800,150,1800,150,900,200,750,200,1800,250,1800,200,1750,350
(when i press the button towards the IR emitter)

Is that ok?
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: controling SAMSUNG Air Conditioner

Post by AnalysIR »

I presume you meant IR receiver (not emitter)...

try recording with the following sketch from our blog: https://www.analysir.com/blog/2014/03/1 ... s-arduino/

That will improve things a lot

If it doesn't work, please confirm you have updated your code as suggested above & post the latest version
jonalama
Posts: 12
Joined: Fri Sep 06, 2019 10:42 pm

Re: controling SAMSUNG Air Conditioner

Post by jonalama »

Hello,

I tried both ways, but still my AC or TV doesn't get any command from Arduino...
Also I am using a transistor and a resistance 220ohm for IR LED.
jonalama
Posts: 12
Joined: Fri Sep 06, 2019 10:42 pm

Re: controling SAMSUNG Air Conditioner

Post by jonalama »

This is the circuit
You do not have the required permissions to view the files attached to this post.
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: controling SAMSUNG Air Conditioner

Post by AnalysIR »

I meant a circuit diagram.

It is hard to see the connections on the transistor. I suspect it is bad-ish

Put a 100r to 1K resistor between pin 3 and the base of the transistor.

Change the resistor in series with the IR LED to between 10R & 100R.

Even better do a web search for a good example Ir transistor driver.

(There is an even more advanced one available in our blog)
jonalama
Posts: 12
Joined: Fri Sep 06, 2019 10:42 pm

Re: controling SAMSUNG Air Conditioner

Post by jonalama »

Maybe this is clearer
You do not have the required permissions to view the files attached to this post.
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: controling SAMSUNG Air Conditioner

Post by AnalysIR »

OK now change it to reflect my suggestions above. & re-post the updated Fritzing image.

I am not 100% confident of your current connections to the Transistor. Please post the model of transistor to make get an idea of the pin-out!

PS: try to make the wires reflect common convetions...red=>5V, GND=>black/green/brown...
...or similar
Post Reply