Universal remote decoder
Read the codes from any handheld remote and print them, then replay them to control other gear.
A TSOP4838 infrared receiver module that demodulates 38 kHz remote-control signals into a clean digital output.

The IR receiver is a self-contained module (the Vishay TSOP4838) that detects the infrared light from a TV or appliance remote and turns it into a logic signal a microcontroller can read. Inside are a photodiode, an amplifier, and a 38 kHz band-pass filter and demodulator, so the output already strips away the carrier and gives you just the data bits.
It has three pins: OUT, GND, and VCC. The output idles HIGH and pulls LOW when a matching 38 kHz burst arrives, so decoding libraries measure the timing of those LOW and HIGH pulses to recover the remote code. The TSOP4838 is tuned specifically for a 38 kHz carrier, which is the most common remote frequency.
It runs from roughly 2.5 to 5.5 V, so it works directly with both 5 V and 3.3 V boards. Because it responds only to modulated 38 kHz light, it ignores steady ambient light and most background infrared, which makes remote decoding reliable indoors.
| Pin | Function | Type |
|---|---|---|
OUT Signal OUT | Digital | Open collector |
GND GND | Power | Power in |
VCC VCC | Power | Power in |
Verified from the Tinkered component library.
The IR Receiver (TSOP4838) connects to any of the microcontrollers supported in Tinkered. Mind the 3.3 V logic level on 3.3 V boards.
This module already demodulates the 38 kHz carrier and outputs clean data. Treating it like a raw photodiode and trying to sample the carrier yourself gives noise, not codes.
The pin order is not the same on every module. Reversing VCC and GND can damage the part, and a wrong OUT pin gives no signal. Check the specific board silkscreen or datasheet before wiring.
Without the recommended series resistor and decoupling capacitor, power-supply noise can cause spurious pulses and dropped codes, especially on a busy breadboard.
Strong sunlight contains broadband infrared that can saturate the receiver and cut range dramatically. These modules are designed for indoor remote-control use.
Read the codes from any handheld remote and print them, then replay them to control other gear.
Drive a rover from a TV remote by mapping buttons to motor commands.
Switch lamps or appliances on and off from a remote using relay outputs.
Turn remote presses into keyboard or serial commands to control a computer or media player.
Drop the IR Receiver (TSOP4838) into a circuit, write firmware, and simulate it in your browser, then deploy to real hardware. All in one editable Tinkered project.