IR remote/The receiver/03. The receiver, pin by pin
The receiver · 03 of 11

The receiver, pin by pin

Four pins, one three-legged chip and a resistor you cannot see. SIGNAL idles HIGH and goes LOW while a remote is sending, which is the opposite of what most people expect of a sensor, and the red LED shows it before any code runs.

What is on the board

The TK15 from the parts side: a black board with a gold border. Near the top, a steel box with an X-shaped window lies flat, its three legs running down to three holes in the middle of the board. At the top right, a small LED above a resistor. A tan capacitor sits between the holes and the header. Two large mounting holes, lonely binary and IR RECEIVER up the left edge, a remote-control icon on the right, and a right-angle header along the bottom labelled GND, VCC, NC and SIGNAL.
The parts side. The receiver lies flat in its shield; the window is its lens.

One chip does the work: a Vishay TSOP18138, bent over so it lies flat inside a steel shield, looking out through the X-shaped window. Its legs are OUT, GND and VS, left to right. Everything else is support: a 100 nF capacitor across the supply, and a red LED with a 1 kΩ resistor.

A shield like this is there to keep electrical noise off the amplifier inside; the window lets infrared in. The receiver looks out of the parts side of the board, so that side faces the remote.

The four pins

The TK15, pin by pin
from the net list
Pin
Supply
2.0–5.5 V
Draws
0.35 mA
Pins to wire
3
SIGNAL is the receiver's own output. It idles HIGH, held there by 30 kΩ inside the chip, and drops LOW while a 38 kHz burst arrives. Active low, and weakly high: it can sink 5 mA and source almost nothing, so read it, never power anything from it.

GND is on the square pad; count from it. VCC feeds the chip, the capacitor and the red LED. NC is connected to nothing.

SIGNAL is the chip's own output, and three things about it matter. It is active low: a burst of 38 kHz pulls it to near 0 V, and no burst lets it rise. It is weakly high: the only thing holding it up is a 30 kΩ resistor inside the chip. And it can sink 5 mA but source almost nothing, so read it and never power anything from it.

A burst becoming a low

A burst goes in, a low comes out
active low
Idle level
HIGH
While a burst arrives
LOW
How low
near 0 V
Nothing is happening. SIGNAL sits HIGH, held there by 30 kΩ inside the chip. Light arriving makes the pin go down. A sketch that waits for a HIGH sees a pin that is already high, forever.

There is no clock and no data line: one wire whose level goes down while light of the right kind is arriving. Everything a remote says is in how long the line stays down and how long it stays up.

The red LED

It runs from VCC, through its resistor, down into SIGNAL, so it lights whenever the chip pulls SIGNAL low: it flickers while a remote is sending, whether or not any code is running. That one observation separates "the remote, the board or the wiring" from "the sketch", and it costs nothing.

It gets about 3 mA on 5 V and about 1.2 mA on 3.3 V, where it is a little dimmer.

Which VCC

The chip runs from 2.0 to 5.5 V, and SIGNAL idles at whatever VCC is. So VCC is your board's own logic voltage: 5V on an Uno, 3V3 on an ESP32, ESP32-S3 or Pico. Fed 5 V beside a 3.3 V board, SIGNAL would idle at 5 V on a pin rated for 3.3.

The back of the TK15: a black board with a gold border, lonely binary across the top, a boxed TK15 IR RECEIVER, two mounting holes, the receiver's three solder joints, DETECTS INFRARED SIGNALS and LED INDICATES RECEPTION in white, and four header pads along the bottom with the square one on the right.
The back. No pin names; the square pad, now on the right, is still GND.

When it does not work

digitalRead always returns 1

That is the idle state. SIGNAL is HIGH until a burst arrives, and each low in a NEC frame lasts 560 microseconds. A loop that reads the pin every few milliseconds misses almost all of them, which is why the library samples it on a timer every 50 microseconds instead.

Does SIGNAL need a pull-up resistor?

No. There is a 30 kΩ pull-up inside the chip. An external pull-up changes nothing; a strong pull-down breaks it, because the chip's 30 kΩ cannot lift the line against one and it never reads HIGH again.

Can I power an LED from SIGNAL?

No: it is held HIGH through 30 kΩ and can supply almost nothing. It can sink up to 5 mA, which is how the board's own red LED is wired, from VCC down into SIGNAL. Read the pin; let your sketch drive anything else.

It misbehaves beside a motor or an LED strip

Vishay suggests a series resistor and a 4.7 µF capacitor on the supply where there is ripple. This board fits only a 100 nF capacitor, so a motor or an LED strip on the same rail can reach the amplifier inside. Give it a quiet 3.3 V or 5 V.

Is this a VS1838B?

No. It is a Vishay TSOP18138, a different maker's part with a documented datasheet: a supply range of 2.0 to 5.5 V, a 30 kΩ internal pull-up and a ±45° half angle. Most of what is written about the VS1838B does not apply to it.

Where this goes next

Three wires and a library, and every button on the remote prints its own number.

Your first key code

Edit this page — content/books/ir-receiver/the-receiver-pin-by-pin.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

This page covers several products. Choose yours to see the right discussions.

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum