Loading...
Pages: [1]   Go Down
Author Topic: IR - recieve(d) code(s) - howto use ???  (Read 966 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all.

I am playing with an IR-reciever i plugged out off, some old electronics, i can't tell the Khz off the thing, but it has three legs 1=OUT 2=GND 3=+5vdc (VCC).

I sat it up on the Arduino, and had a lot of problems, recieving codes, until i found this code on the net :

http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html

Quote
#include <IRremote.h>

int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
}

Now i am getting code's... ect. REMOTE DOWN = 801491a9 - but i can't figure out howto go from here ??? - I tried diferent code's to catch the output, but can't make it work. ?

Can any here help me further on ???

Jesper.
Logged

Pages: [1]   Go Up
Print
 
Jump to: