arduino & TV communication using IR

In this link:

the hardware side consists of a....
IR Receiver
IR Transmitter

if you just wanted to control a TV using the arduino you wouldnt need the receiver am i right or does the TV need to communicate back to the arduino?....
Infrared is completely new for me :slight_smile:

You would not need the receiver if you just want to control a TV from the Arduino and you know what codes to send.

The receiver will be handy if you don't know the codes to send and need to read them from the existing remote control.

i was thinking about that aswell but i wasnt too sure, if i had to read the codes coming from the remote would i just hook the receiver up and get it to print the codes in to the serial monitor??

after doing some research i presume this might be a hard topic (for a beginner) :slight_smile:
all the more fun! will i be able to transmit back out the code that i receive from the remote in hope that it will make the TV do what i want it to?
will codes need to be reversed?? :confused:

I had to use the receiver to figure out the code for each button:

If your remote isn’t supported by the library you can use the raw codes like in this guy’s strange project:

There are two main types of sensors that work with infrared: infrared detectors (2 wire) and infrared receivers (3 wire). Receivers are tuned to listen to specific IR frequencies, normalize the signal, and filter out all the noise while detectors would leave all of this up to you. It's impractical to use an IR detector with a remote control as you will spend so much time worrying about ambient light and you'll have a hard time getting a clear signal at a distance of more than a few feet.

With IR receivers, you need to be careful in selecting your IR receiver module because the various modules are designed to work with specific, branded IR remote protocols. I.e. Sony is different than Panasonic. There are also modules for "learning remotes" that accept a wide range of protocols and "fixed gain" modules that are the only type that have no requirements as to the timing required for a "low" in the 38khz pulse frequency sent to them. A good chart can be found at the Vishay web site with respect to the variety that is out there: IR Receivers | Vishay. If you poke around in their datasheets you'll find descriptions of the IR pulse patterns that they are each designed to detect.

The PNA4601M receiver that Big Oil's link uses appears to be a fixed gain receiver.

i understand how it all works just wondering if someone can assist abit more in the receiving and converting the code part :slight_smile: