Hello,
I have worked with my AC at home and I found that to send a 38khz signal (with amega 2560), I had to put the IR led on for 8 micros and off for 7 micros ( checked with an oscilloscope)
Are you sure about the pulses sequence ? Only one mistake and nothing happens.
I am using a simple transistor (it is necessary due to the several hundred of mAmps required by the LED) and IR led with no particular specification. No capacitor in the circuit.
My function for the pulse is (so I have accurate duration of the pusles, and 38 khz frequency)
void blink(int Micros) {
unsigned long tstart = micros();
while (micros() - tstart < Micros) {
digitalWrite(LEDIR,HIGH);
delayMicroseconds(8);
digitalWrite(LEDIR,LOW);
delayMicroseconds(7);
}
digitalWrite(LEDIR,LOW); //just to be sure to have the led off
}