• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeArduinoShieldsUse Linker Infrared Receiver on Arduino
Previous Next

Use Linker Infrared Receiver on Arduino

Posted by: admin , March 22, 2014

[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Parts List” tab_id=”1395232232-1-49″][vc_column_text]

  1. 1  x  Linker Infrared Receiver
  2. 1   x  [bigcommerce link=”/linker-kit-base-shield-for-raspberry-pi-with-adc-interface/” target=”_blank”]Linker Base Shield[/bigcommerce]
  3. 1   x  Infrared Transmitter
  4. 2   x Arduino Uno
  5. 1   x   [bigcommerce link=”/20-cm-cable-for-linker-kit/” target=”_blank”]20cm cable for linker kit[/bigcommerce]
  6. Several jumper wires

[/vc_column_text][/vc_tab][vc_tab title=”Wiring Diagram” tab_id=”1395232232-2-54″][vc_column_text]Connect D11 of  the Linker Infrared Receiver  to D11 of Linker base shield D11 using Linker cable.

The Linker base shield is installed on  a [bigcommerce link=”/cityduino-arduino-uno-compatible-device/” target=”_blank”]Arduino Uno[/bigcommerce]

Arduino Uno is connected to PC.

  • +5V of the second Arduino Uno  – > +5 of Infrared Emitters and Detectors
  • GND of the second Arduino Uno  – > GND of Infrared Emitters and Detectors
  • D3 of the second Arduino Uno   – >  DIN of Infrared Emitters and Detectors

ir_linker_01[/vc_column_text][/vc_tab][vc_tab title=”Test Code” tab_id=”1395235026500-2-4″][vc_column_text]The code of the receiver:

First download the corresponding IRremote library:IRremote

Then unzip the library under library directory of Arduino IDE:

Choose the example shown below and download the code into Arduino:

IR_LINKER_03

The code of transmitter:

#include "IRremote.h"

IRsend irsend;

void setup()
{
    Serial.begin(9600);
}

void loop() {
    Serial.println ("Begin test IR module!");
    irsend.sendNEC(0x9f8e7d6c, 32);
    delay (3000);
}

[/vc_column_text][/vc_tab][vc_tab title=”Test Result” tab_id=”1395235028705-3-4″][vc_column_text]Using a serial port terminal to open the COM port of the receiver:

We will observe that the receiver printing  9F8E7D6C  every 3 seconds.
When we stop  transmitting, the data will be in random noise.

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Shields

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors