Wednesday, October 31, 2012

Arduino IR Receiver

I recycled a InfraRed receiver module from an old VCR tonight. I connected it to my Arduino 2560, and I'm displaying raw data in the serial monitor whenever I press a key on the remote. I'm attempting to do something useful with this data, like turn lights on and off, or adjust my thermostat. Will post more as the project develops.





int IRsignal[] = {
// ON, OFF (in 10's of microseconds)
    34, 1896,
    444, 440,
    52, 164,
    56, 164,
    54, 164,
    54, 54,
    56, 54,
    56, 54,
    54, 56,
    54, 54,
    56, 166,
    52, 164,
    54, 164,
    56, 54,
    54, 56,
    54, 58,
    52, 54,
    56, 56,
    52, 58,
    52, 58,
    52, 164,
    54, 54,
    56, 54,
    56, 56,
    52, 54,
    56, 54,
    56, 166,
    52, 164,
    54, 56,
    54, 164,
    54, 164,
    56, 162,
    56, 164,
    54, 164,
    54, 4526,
    442, 434,
    56, 164,
    54, 164,
    54, 164,
    56, 54,
    54, 56,
    54, 54,
    56, 54,
    56, 54,
    54, 164,
    54, 164,
    56, 164,
    54, 54,
    56, 54,
    56, 54,
    54, 56,
    54, 58,
    52, 54,
    54, 56,
    52, 166,
    54, 60,
    50, 54,
    56, 56,
    54, 56,
    54, 56,
    52, 166,
    52, 164,
    56, 54,
    54, 166,
    54, 162,
    56, 164,
    54, 164,
    54, 164,
    56, 4524,
    444, 434,
    54, 162,
    56, 162,
    58, 162,
    56, 52,
    58, 52,
    58, 54,
    54, 56,
    54, 54,
    56, 164,
    54, 164,
    54, 162,
    56, 164,
    54, 162,
    56, 0};