Hi! I'm sorry for my english =)
I try to control my TV with Arduino Yun. I use IRremote library.
One of examples:
/*
* 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.sendSony(0xa90, 12); // Sony TV power code
delay(40);
}
}
}
All examples said to use D3 for output, but it's not work.
I was looking for a solution. So, I found that D13 works. Is it OK?
But signals are too low - I can control my TV at distance not more 2 meters (7 feet).
I think the problem is that D13 has its own resistor. Am I right?
The question is - how I can change the pin for output IR signals?
P.S. I've read this topic: Changing Pin settings of an IR Library - Troubleshooting - Arduino Forum but I afraid of doing it.