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
}
}
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.
