Skip to main content
2 of 2
minor spelling
user avatar
user avatar

How to connect IR Transmitter and Receiver Module?

The IR Transmitter and Receiver module has both receiver and transmitter in same board. I tried Arduino IR Remote library example to decode Remote signal using below connection, but its not working.

  • IR MODULE: ARDUINO
  • Ground -> Ground
  • 5V -> 5V
  • RXD -> PIN 11
  • TXD -> PIN 10

The board also has 3 pin connector (Gnd, 5v, S). How to connect pins to Arduino to receive/decode and send IR signals? (Can't able to find any tutorial for this type of board)

IR Transmitter and Receiver Front IR Transmitter and Receiver Back

Example Code:

#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
  delay(100);
}
Kalaivanan
  • 131
  • 1
  • 1
  • 2