Hello i tried the Receiving side of the IR and that worked with a remote. But when i tried The IR transmitting I got nothing Not sure IF it's transmitting or not.
Edited: I finally got something to show up and i get some strange things on it.
Enabling IRin
Enabled IRin
4CB0FADF
4B0D9D45
A90
A90
A90
0
A90
0
A90
A90
A90
A90
A90
A90
A90
A90
A90
A90
A90
A90
A90
A90
A90
A90
A90
BC484DB
4B0D9D45
4B0D9D45
4B0D9D45
4B0D9D45
75F2B3F9
Using the default sketch below
Receiving
/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
IRsend irsend;
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
// In case the interrupt driver crashes on setup, give a clue
// to the user what's going on.
Serial.println("Enabling IRin");
irrecv.enableIRIn(); // Start the receiver
Serial.println("Enabled IRin");
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
delay(1);
}
Sending:
/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
for (int i = 0; i < 3; i++) {
irsend.sendSony(0xa90, 12);
delay(40);
}
delay(5000); //5 second delay between each signal burst
}