Infrared Receiver

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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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 and rename it as IRremote. unzip the file. Copy the folder.

2.control+click on the arduino application on show package contents the folder called contents. you will find another folder called resources in it the resources folder, you will find a file called java in it. open it 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() {




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.

Be the First to Share


    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    3 Discussions

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


    4 years ago on Introduction

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