Arduino Uno

lot's of LED's

Corner
-->

Infrared receiver

I've disasabled my old "IRman" and found inside a TSOP1736. Later on, I opened a digital TV receiver I found at the recycling center. It contained a receiver labeled "B156". I didn't find any datasheet, but using the pinout found at ladayada.net, it worked out quite well.

Schematic

Infrared receiver

Photo

Infrared receiver

Sample code

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// load the library
#include <IRremote.h>

// define where theoutput is connected
const int RECV_PIN = 2;

// define a receiver object
IRrecv irrecv(RECV_PIN);

// define there the results should goto
decode_results results;

void setup()
{
  // start the serial output
  Serial.begin(115200);
  // start the receiver
  irrecv.enableIRIn(); 
}

void loop() 
{
  // if there is a result
  if (irrecv.decode(&results)) 
  {
    // print it to the serial line
    Serial.println(results.value, HEX);
    // receive the next value
    irrecv.resume(); 
  }
}

Links

 Datasheet TSOP1736

 A Multi-Protocol Infrared Remote Library for the Arduino