Receiving Infrared Signal

Receiving Infrared Signal

Overview

Infrared (IR) light is not visible to the human eye, but this project will make you believe in it! Using a simple IR receiving module, this project will make just about any of your projects wireless.

Check out this link for more reading on the science of receiving and decoding IR signals: https://learn.sparkfun.com/tutorials/ir-communication

Materials

Robotlinking IR Receiver Module

Car MP3 IR Transmitter

Arduino Uno

Assorted Wires

Wiring for the Receiver

Arduino

IR Receiver

GND

Pin G

5V

Pin R

Pin 11

Pin Y

Adding the IRremote library

Basic Code for the Receiver

Project 1: Turn an LED ON/OFF

LED Wiring:

Additional Code:

In the above code, you want to insert some decision making blocks in the main loop of your code in between the lines:

“translateIR();” and “irrecv.resume();”

Try something like this…

if(results.value ==0xFFC23D)

{

digitalWrite(13,HIGH);

}

if(results.value==0xFF6897)

{

digitalWrite(13,LOW);

}

Suggested Extras

- Add an ON/OFF switch to any project you are working on. - Control a servo’s position remotely.

- Make a tollbooth go up/down based on IR input.

Last updated

Was this helpful?