DIGITAL IR Transmitter Module (SKU:DFR0095)

From DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.com

Introduction

IR Transmitter Module is designed for IR communication which is widely used for operating the television device from a short line-of-sight distance. The remote control is usually contracted to remote.

Since infrared (IR) remote controls use light, they require line of sight to operate the destination device. The signal can, however, be reflected by mirrors, just like any other light source.

If operation is required where no line of sight is possible, for instance when controlling equipment in another room or installed in a cabinet, many brands of IR extenders are available for this on the market. Most of these have an IR receiver, picking up the IR signal and relaying it via radio waves to the remote part, which has an IR transmitter mimicking the original IR control.

Infrared receivers also tend to have a more or less limited operating angle, which mainly depends on the optical characteristics of the phototransistor. However, it’s easy to increase the operating angle using a matte transparent object in front of the receiver.

Applications

  • Infrared remote control
  • Infrared communication

Specification

  • Power Supply:3-5V
  • Infrared center frequency:850nm-940nm
  • Infrared emission angle: about 20degree
  • Infrared emission distance: about 1.3m (5V 38Khz)
  • Interface socket:JST PH2.0
  • Size:30x22mm
  • Mounting hole: inner diameter is 3.2mm,spacing is 15mm


Pinout Diagram

DFR0095 pinout.png
  • GND:power negative
  • VCC:power positive
  • D :digital input; HIGH=open emission, LOW=close emission


Tutorial

See infrared

a) Target: Infrared emission every 1 second

b) Hardware List

c) Software List

d) Connect Diagram

DFR0095 Diagram.png

e) Step by Step

  • Open "Blink" example at rduino IDE
  • Modify the pin of "int led = 13" to 3
  • Upload

f) Result

In the darkness of the environment, you are going to see blinking blue light on phone's screen when use camera to shoot the infrared LED.


Infrared remote/communication

a) Target: Infrared remote/communication

b) Hardware List

c) Software List

d) Connect Diagram

  • IR Transmitter: same as above, Notice: Arduino-IRremote only supports D3 as transmitter.
  • IR Receiver: connet it to D11 port.

e) Step by Step

  • Open Arduino IDE
  • Upload code to the UNO connected with IR Transmitter:
 #include <IRremote.h>
 
 IRsend irsend;
 
 void setup()
 {
 }
 
 void loop() {
 
     irsend.sendRC5(0x0, 8); //send 0x0 code (8 bits)
     delay(200);
 
     irsend.sendRC5(0x1, 8); 
     delay(200);
 }
 
  • Upload code to the UNO connected with IR Receiver:
 #include <IRremote.h>
 
 const int RECV_PIN = 11;
 const int LED_PIN = 13;
 
 IRrecv irrecv(RECV_PIN);
 
 decode_results results;
 
 void setup()
 {
   Serial.begin(9600);
   irrecv.enableIRIn(); // Start the receiver
 }
 
 void loop() 
 {
     
   if (irrecv.decode(&results)) 
   {
     if ( results.bits > 0 )
     {
       int state;
       if ( 0x1 == results.value )	
       {		
         state = HIGH;
       }
       else
       {
       	state = LOW;
       }
 		
       digitalWrite( LED_PIN, state );			
     }
 
     irrecv.resume();        // prepare to receive the next value
   }
 }

f) Result The "L" LED of the shield connected with IR Receiver will blink when IR Receiver faces to IR Transmitter.





Nextredirectltr.pngGo Shopping DIGITAL IR Transmitter Module (SKU:DFR0095)