Hi All
I am trying the IR Library from Ken Shirriff's blog: arduino - the GITHUB Version
I am using an Arduino Duemilanove
I have an IR Receiver and it has picked up the TV as using a NEC code - The TV is a Sharp.
The code to turn the TV on is 2FD48B7 and the capture sketch says it is 32 bits.
So I am trying to send this back to the TV from Arduino
The IRRecvDUMP sketch produces this output
Decoded NEC: 2FD48B7 (32 bits)
Raw (68): 7026, 8950, -4450, 550, -550, 600, -500, 600, -550, 550, -550, 600, -550, 550, -550, 550, -1650, 600, -550, 550, -1650, 550, -1650, 600, -1600, 600, -1650, 550, -1650, 550, -1650, 600, -500, 600, -1650, 550, -550, 600, -1600, 600, -550, 550, -550, 600, -1600, 600, -550, 550, -550, 600, -550, 550, -1650, 550, -550, 600, -1600, 600, -1650, 550, -550, 600, -1600, 600, -1650, 550, -1650, 550
I have Pin 3 to 100ohm Resister to IP Transmitter (long leg), (short leg) to ground.
I can see the IR resister light up if I use a Cell Phone to look at the sensor.
My sketch
/*
- 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()
{
Serial.begin(9600);
}
void loop() {
if (Serial.read() != -1) {
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x2FD48B7, 32);
delay(40);
}
Serial.print("Done...");
}
}
So I send a keypress in serial monitor and it sends the NEC code to the TV but nothing happens.
I do not know how to trouble shoot this.
chris
=(