Delete comment from: Ken Shirriff's blog
Hello.I am a bigginer in this area so I got some problems:
-I managed to set the receiver to get the code from a rc helicpter trasmitter, but all I ge in the serial monitor were impossible to understaand values :
UNKNOWN: BEA23CC0
UNKNOWN: BEA23CC0
UNKNOWN: BEA23CC0
UNKNOWN: BEA23CC0
UNKNOWN: BEA23CC0
UNKNOWN: A381B17A
UNKNOWN: 40ECE322
UNKNOWN: 40ECE322
UNKNOWN: 15CD9A68
UNKNOWN: 53E087CA
UNKNOWN: 709EC746
UNKNOWN: CAFDC726
UNKNOWN: F2B41972
UNKNOWN: DFFB6328
UNKNOWN: 4D8C3D8E
UNKNOWN: E8C95D8
UNKNOWN: BEA23CC0
I used tih code :
#include
const int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
irrecv.blink13(true);
}
void loop() {
if (irrecv.decode(&results)) {
if (results.decode_type == NEC) {
Serial.print("NEC: ");
} else if (results.decode_type == SONY) {
Serial.print("SONY: ");
} else if (results.decode_type == RC5) {
Serial.print("RC5: ");
} else if (results.decode_type == RC6) {
Serial.print("RC6: ");
} else if (results.decode_type == UNKNOWN) {
Serial.print("UNKNOWN: ");
}
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
}
so I would like to know how to decode those digits and how to turn them into a signal that I can use to control some motors for example- can you help me?
Thanks in advance
Jan 24, 2013, 8:48:01 AM
Posted to A Multi-Protocol Infrared Remote Library for the Arduino

