Can anyonte tell me how ir works?

i have created a simple 7 segment num display.

i have 2 buttons, one for + num (0>1>2...>9 each time i press) and one for -num (9>8>7>....>0 each time i press it).

Now i want to do that with a simple TV remote control (for example +- volume buttons)

any help?

This is a really good intro/explanation: infrared

http://www.arduino.cc/playground/Code/InfraredReceivers

http://blog.lucaseckels.com/2009/08/23/arduino-ir-transmitter/

The receiver is the hard part, you can use transistors and IR LED's for the transmitter part.

There is special coding needed to be able to get digital out in a fashion where it can be read in. Look up manchester encoding.

When I've done some work with something, e.g. using IR controllers to send commands to an Arduino, I delight in "making do" with bits and pieces salvaged from my junk box.

When getting started, I like to give myself advantages, if I can, and it isn't too expensive.

nuelectronics.com have an IR sensor and a suitable IR controller for, combined, about $8, plus the cost of mailing them to you from the UK. Might be worth considerering....

Nah, just rip the receiver out of an old VCR, DVD or a junk PC/laptop with an IRDA transmitter/receiver. Old type TVs with a cathode ray tube can be shocking so if you are going to be a Darwin candidate, have a will ready.

Most are simple and run on +5volts and put out a nice +5V square wave.