Page 1 of 1

IR Code is not sending properly

Posted: Wed Sep 19, 2018 12:45 pm
by srivatsan
Encoding : SAMSUNG
Code : B24D1FE0 (32 bits)
Timing[99]:
+4400, -4350 + 550, -1600 + 600, - 500 + 550, -1650
+ 550, -1600 + 550, - 550 + 550, - 500 + 600, -1600
+ 550, - 550 + 550, - 500 + 600, -1600 + 550, - 550
+ 550, - 500 + 600, -1600 + 550, -1600 + 550, - 550
+ 550, -1600 + 600, - 500 + 550, - 550 + 550, - 550
+ 550, -1600 + 550, -1600 + 600, -1600 + 550, -1600
+ 550, -1650 + 550, -1600 + 550, -1600 + 600, -1600
+ 550, - 550 + 550, - 500 + 550, - 550 + 550, - 550
+ 550, - 550 + 550, - 500 + 600, -1600 + 550, - 550
+ 550, - 500 + 600, -1600 + 550, - 550 + 550, - 500
+ 550, - 550 + 550, -1650 + 550, - 500 + 550, -1650
+ 550, -1600 + 550, - 550 + 550, -1600 + 550, -1650
+ 550, -1600 + 450
unsigned int rawData[99] = {4400,4350, 550,1600, 600,500, 550,1650, 550,1600, 550,550, 550,500, 600,1600, 550,550, 550,500, 600,1600, 550,550, 550,500, 600,1600, 550,1600, 550,550, 550,1600, 600,500, 550,550, 550,550, 550,1600, 550,1600, 600,1600, 550,1600, 550,1650, 550,1600, 550,1600, 600,1600, 550,550, 550,500, 550,550, 550,550, 550,550, 550,500, 600,1600, 550,550, 550,500, 600,1600, 550,550, 550,500, 550,550, 550,1650, 550,500, 550,1650, 550,1600, 550,550, 550,1600, 550,1650, 550,1600, 450}; // SAMSUNG B24D1FE0
unsigned int data = 0xB24D1FE0;

Encoding : SAMSUNG
Code : B24D7B84 (32 bits)
Timing[99]:
+4350, -4350 + 550, -1650 + 550, - 500 + 600, -1600
+ 550, -1600 + 550, - 550 + 550, - 550 + 550, -1600
+ 550, - 550 + 550, - 550 + 550, -1600 + 550, - 550
+ 550, - 550 + 550, -1600 + 550, -1600 + 600, - 500
+ 550, -1650 + 550, - 500 + 600, -1600 + 550, -1600
+ 550, -1650 + 550, -1600 + 550, - 550 + 550, -1600
+ 550, -1650 + 550, -1600 + 550, - 550 + 550, - 550
+ 550, - 500 + 550, - 550 + 550, -1600 + 600, - 500
+ 550, - 550 + 550, -1600 + 600, -1600 + 550, -1600
+ 550, - 550 + 550, - 550 + 550, - 550 + 550, - 500
+ 550, - 550 + 550, - 550 + 550, - 550 + 550, - 500
+ 600, -1600 + 550, -1600 + 550, -1650 + 550, -1600
+ 550, -1600 + 550
unsigned int rawData[99] = {4350,4350, 550,1650, 550,500, 600,1600, 550,1600, 550,550, 550,550, 550,1600, 550,550, 550,550, 550,1600, 550,550, 550,550, 550,1600, 550,1600, 600,500, 550,1650, 550,500, 600,1600, 550,1600, 550,1650, 550,1600, 550,550, 550,1600, 550,1650, 550,1600, 550,550, 550,550, 550,500, 550,550, 550,1600, 600,500, 550,550, 550,1600, 600,1600, 550,1600, 550,550, 550,550, 550,550, 550,500, 550,550, 550,550, 550,550, 550,500, 600,1600, 550,1600, 550,1650, 550,1600, 550,1600, 550}; // SAMSUNG B24D7B84
unsigned int data = 0xB24D7B84;



the above codes are received by TSOP1738 while i try to transmit this code my air conditioner is not responding (i used the hex code )

The program i used to send is
#include <IRremote.h>

#define POWER 0xB24D1FE0 //from IRrecvDemo, Ken Shirriff
#define SAMSUNG_BITS 32

IRsend irsend;

void setup()
{
Serial.begin(9600);

pinMode (3, OUTPUT); //output as used in library
}
int khz = 38;
// ON the A / C

void loop() {

irsend.sendSAMSUNG(POWER, 32);

delay (5000);

}//end of loop


it is not working
help me please

Re: IR Code is not sending properly

Posted: Wed Sep 19, 2018 8:25 pm
by AnalysIR
Try using the following (more accurate) sketch to record the signals and post the results (assign useful names to each signal.)
https://www.analysir.com/blog/2014/03/1 ... s-arduino/

Unfortunately, you will not be able to send using hex with IRremote. Fortunately, we have several examples on our blog that show how to do it.

Off the top of my head...the TSOP1738 is a very old design & may not be the best for ACs.

Re: IR Code is not sending properly

Posted: Thu Sep 20, 2018 5:15 am
by srivatsan
Can you please suggest which IR Receiver will suit best for receiving the code from AC, my AC is bluestar verticool split

Re: IR Code is not sending properly

Posted: Thu Sep 20, 2018 11:54 am
by AnalysIR
Without knowing the carrier frequency it is difficult to say.

Generally 95%+ of all ACs are 38kHz.

So, I would usually suggest TSOP34438 or TSSP4038.

However, try with the sketch I linked above first, in case it works OK.