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
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 spec | Value |
|---|---|
| Measures | 38 kHz modulated infrared (TV remote codes) |
| Range | Up to about 10 to 15 m from a remote |
| Accuracy | Decodes NEC, Sony and other protocols with a library |
| Interface | Digital, LOW while receiving a burst |
| Supply voltage | 2.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
TV-remote control of projectsIR code learning
Builds that use it
Guided build
TV remote relay switch
Guided build
TV remote code reader
Guided build
Infrared data link
Guided build
Cloud AC control with IR
Guided build
TV sleep timer that sees when you leave
Guided build
Window sensor that stops the AC
Guided build
Remote control code reader
Guided build
Pico infrared remote code reader
Showing 8 of 18
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).
