Hey guys,
I am trying to use my arduino board as a tv remote using a ir transmitter.
Problem is the IRremote library is fixed with pin 3 but since i am using a induino board(uno clone) which has a inbuilt ir transmitter its connected to A0 so i want to change pin 3 to A0.
How can i do that?
Thanks.
The IR remote signal is based on a square wave generated by a timer. It requires a hardware timer and a pin that can output the timer specific signal.
oh, so the arduino cant support a it transmitter on a A0 pin,
then wonder why it was connected to that pin if it cant transmit data with that pin.
Are you talking about an IR transmitter or receiver? Your board contains an receiver which is not bound to any specific pin in the IRremote library.
You can look at the example on the induino site. Might not work for your TV though; lots of studying and trial/error and you might get there.
http://www.induino.com/2013/07/generating-remote-control-signals-using.html
Other reading about analysing: http://www.induino.com/2013/07/interfacing-tv-remote-with-on-board.html
If it is the IR library I am thinking of, you can alter the timer in the boarddefs.h file. For the Uno type boards, you have a choice of pin 3 or pin 9 but other boards have different options.
some extra info: i tries using ir receiver to read my tv signals an it shouwed 64,128,312 and some no. like that
1)Well i am trying to make a transmitter.
2)I saw the induino page with the code, butTHEIR code could not create the signal i wanted like small no. All the no it generated was like 8 digits long. I checked it using another receiver connected to another arduino.
3) I am using the IRremote library i downloaded from here http://z3t0.github.io/Arduino-IRremote/
4) Also in the website it showed the the transmitter is connected to A0 only.
thanks
I just switched the transmit pin from 3 to 9 under the IRremote.h library on a Pro Mini.
At line 191 in the library's boarddefs.h file, you'll see this code:
#else
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
// ATmega48, ATmega88, ATmega168, ATmega328
#define IR_USE_TIMER1 // tx = pin 9
//#define IR_USE_TIMER2 // tx = pin 3
You just uncomment the one you want to use, and comment out the other one.
Follow the links in reply #4. You can just change pin 14 (A0) to almost any pin you like, the source code is there. You will not be able to use Ken Shirriff's IR library with A0, for the reasons already stated in above replies.
Thanks guys,
That link worked finally. Only problem is it wont send any correct signal.
I made a program recording all data and put it in a excel so to send a preferred signal i have to give the corresponding input.
Still i am not able to use the IRremote library but the code from simple labs is working fine.
Thanks a lot guys ! 
Which protocol does your remote control use? Numbers are useless without knowledge of the protocol - unless you use sendRaw() which is not based on code numbers.