PinoutSearch

IR Receiver (VS1838B)

Decodes button presses from a TV-style infrared remote.

How it works

An IR receiver is a 3-pin module that picks up the 38 kHz infrared flashes from a remote control and outputs a clean digital signal. Paired with the IRremote library, you can read a unique code for each button on almost any remote.

First run a sketch that prints the code for each button you press, then use those codes in your own if-statements.

Pins

OUT
Signal — to a digital pin.
GND
To GND.
VCC
To 5V.

Ratings

Carrier
38 kHz
Voltage
5 V

Tips

  • Pin order varies by module — check the silkscreen before wiring.
  • Print each button's code first, then match on it in code.