Introduction: Infrared Receiver

Infrared is a colour which cannot be seen by the naked eye.

Now days there are many uses of Infrared Rays. The most common use is in TV remotes. Each of your TV remote will have a LED bulging out. If you press the buttons on the remote, you will not be able to see the LED blink, but if you place a camera in front of it and press any button, you might be able to see the LED blink on the camera's screen.

Your TV might also contain a IR receiver to Decode the IR codes emitted by the Remote.

Step 1: Gather the Requisites:

You would require a TV remote;

An IR Receiver (TSOP22... series);

A spare TV remote;

Extra batteries for the remote (just in case);

An Arduino Mega 2560;

A few Jumper Wires;

A computer so you can program the Arduino and get the values.

Step 2: Installing the Infrared Library

you need to install the infrared library to use the IR receiver

steps for installing it on a MacBook Pro :

1. install the zip file from https://github.com/shirriff/Arduino-IRremote and rename it as IRremote. unzip the file. Copy the folder.

2.control+click on the arduino application

3.click on show package contents

4.open the folder called contents. you will find another folder called resources in it

5.in the resources folder, you will find a file called java in it. open it

6.in the java folder, you will find a folder named as libraries. insert the file in there

Step 3: Wiring

Connect the centre pin of the Receiver to GND. Connect the other 2 pins to pin 2 and +5v.

*note :- DO NOT interchange any of the pins. It would burn the receiver

Step 4: The Program

  • Upload the following sketch to the Arduino. Open the Serial Monitor window in the Arduino Window to see the hexadecimal codes (the manner in which the IR Receiver receives the Infrared Rays).

#include <IRremote.h>

int RECV_PIN = 2;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup() {

Serial.begin(9600);

irrecv.enableIRIn();

}

void loop() {

if (irrecv.decode(&results))

{ Serial.println(results.value, HEX);

irrecv.resume(); }

}

Step 5: Acknowledgements

i thank ya all for reading about this project.

I'm open to criticism, so feel free to comment.

Comments

author
Ritik+Bhardwaj made it!(author)2015-05-10

Nice instructable.....Please make an instructable showing How to send IR Codes using IR LED. Thanks...

author
tomatoskins made it!(author)2015-04-14

This is great! Thanks for sharing and welcome to the community!

author
MokshJadhav made it!(author)2015-04-15

really glad you enjoyed it @tomatoskins

About This Instructable

3,691views

27favorites

License:

Bio: 18 y/o guy with huge ambitions
More by MokshJadhav:PING with two 7 segment LED displays.Temperature sensor(LM35) with LCD(JHD162A)Infrared Receiver
Add instructable to: