SoulReaver
Member
Hello everybody,
I have a problem that I always get a different code from the same button.
The IRremote library I have from Teensyduino
The code is:
The Serial Output from the same button is:
72F69EF1
DC79B059
D652DCCF
E94488A0
96DA2157
183A6D4C
EDBE796B
9C1EA3B6
FFFFFFFF
I tried to include the other libraries (V2.8.0) but it doesn't work. I just don't understand why it works with my arduino uno but not with the teensy 3.2
Now to the wiring
The teensy is connected to the pc via USB and from a 5v adapter Vin and Gnd from the teensy and from the IR receiver Gnd and Vcc.
The LED from the teensy also flickers when I press a button.
I really need help and I hope you have a solution for this.
Best Regards
I have a problem that I always get a different code from the same button.
The IRremote library I have from Teensyduino
The code is:
Code:
#include <IRremote.h>
const int RECV_PIN = 13;
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
}
}
72F69EF1
DC79B059
D652DCCF
E94488A0
96DA2157
183A6D4C
EDBE796B
9C1EA3B6
FFFFFFFF
I tried to include the other libraries (V2.8.0) but it doesn't work. I just don't understand why it works with my arduino uno but not with the teensy 3.2
Now to the wiring
The teensy is connected to the pc via USB and from a 5v adapter Vin and Gnd from the teensy and from the IR receiver Gnd and Vcc.
The LED from the teensy also flickers when I press a button.
I really need help and I hope you have a solution for this.
Best Regards