Components / Sensors / IR receiver VS1838B

IR receiver VS1838B

Receives 38 kHz signals from TV-style remotes.

Measures38 kHz modulated infrared (TV remote codes)
RangeUp to about 10 to 15 m from a remote
AccuracyDecodes NEC, Sony and other protocols with a library
InterfaceDigital, LOW while receiving a burst
SensorsReviewedMPN VS1838BUsed in 18 projects
VS1838B
In short

What is the IR receiver VS1838B and what is it used for?

Receives 38 kHz signals from TV-style remotes. Makers use it for remote control projects.

Sunlight and some LED lamps add noise. Keep it shaded.
In the real world

TV and AC remotes

How it works

A photodiode and filter output a clean digital signal when a 38 kHz IR burst arrives.

Key specifications

Sensor specValue
Measures38 kHz modulated infrared (TV remote codes)
RangeUp to about 10 to 15 m from a remote
AccuracyDecodes NEC, Sony and other protocols with a library
InterfaceDigital, LOW while receiving a burst
Supply voltage2.7 to 5.5 V
Operating temperature−25 to 85 °C

Pinout

OUT (left, dome toward you)Signal
GND (middle)Ground
VCC (right)Supply

How to use it

Check the pin order for your exact part: modules on a small PCB often label them differently. Use the IRremote library to print each button's code.

#include <IRremote.hpp>
void setup() { Serial.begin(9600); IrReceiver.begin(11); }
void loop() { if (IrReceiver.decode()) { Serial.println(IrReceiver.decodedIRData.command, HEX); IrReceiver.resume(); } }

Applications

Buy at

Common questions

What is the IR receiver VS1838B used for?

In products: TV and AC remotes. In maker projects: remote control projects.

How does the IR receiver VS1838B work?

A photodiode and filter output a clean digital signal when a 38 kHz IR burst arrives.

What voltage does the IR receiver VS1838B need?

2.7 to 5.5 V.

How do I connect the IR receiver VS1838B to an Arduino or ESP32?

Digital, LOW while receiving a burst. Pins: OUT (left, dome toward you) (Signal), GND (middle) (Ground), VCC (right) (Supply).