Arduino - Sending Infrared Signal

0

I'm trying to turn on and off a Sony projector with Arduino, I've already been able to capture the code sent by the controller. But when transmitting this signal to the projector, nothing happens. Please, can anyone help me? This is the code I'm using:

#include <boarddefs.h>
#include <IRremote.h>
#include <IRremoteInt.h>
#include <ir_Lego_PF_BitStreamEncoder.h>

IRsend irsend;

void setup()
{
}

void loop() 
{
    for (int i = 0; i < 3; i++) 
{
    irsend.sendSony(0x542A, 32);
    delay(40);
}

delay(5000); //5 segundos

}

I also tried to send RAW, it looks like this:

#include <boarddefs.h>
#include <IRremote.h>
#include <IRremoteInt.h>
#include <ir_Lego_PF_BitStreamEncoder.h>

IRsend irsend;

void setup()
{
}

void loop() 
{
    for (int i = 0; i < 3; i++) 
{irsend.sendSony(160602400600115060060060012006006006001200550600600600600600600600600120060060060012005506006001200600600, 32);

    delay(40);
}

delay(5000); //5 segundos

}
    
asked by anonymous 23.02.2017 / 01:39

0 answers