Stufin
Home Quick Cart Profile

TSOP1838

Buy Now on Stufin

Component Name

TSOP1838

Description

The TSOP1838 is an infrared (IR) receiver module designed for remote control applications in various IoT devices, consumer electronics, and appliances. It is a high-sensitivity, low-power consumption component that provides a reliable and efficient way to receive IR signals.

Functionality

The TSOP1838 IR receiver module converts the incoming IR signal from a remote control into a digital output signal that can be easily interpreted by a microcontroller or other digital devices. The module operates on a supply voltage of 2.7V to 5.5V, making it suitable for a wide range of applications.

Key Features

  • High Sensitivity: The TSOP1838 has a high sensitivity of 0.3mW/m, allowing it to detect IR signals from a distance of up to 45 meters.
  • Wide Bandwidth: The module operates at a frequency range of 36kHz to 40kHz, making it compatible with most IR remote control systems.
  • Low Power Consumption: The TSOP1838 has a low power consumption of 0.5mA, which reduces the overall power requirement of the system and increases battery life in battery-powered devices.
  • Built-in Filter: The module has a built-in filter to reject interference and noise, ensuring a reliable and accurate reception of IR signals.
  • Digital Output: The TSOP1838 provides a digital output signal that is directly compatible with microcontrollers, making it easy to interface with digital systems.
  • Small Package: The module is available in a compact SMD package, making it ideal for use in space-constrained applications.
  • Wide Operating Temperature: The TSOP1838 operates over a wide temperature range of -25C to 85C, making it suitable for use in various environments.
  • High Immunity to Ambient Light: The module has a high immunity to ambient light, ensuring reliable operation even in bright lighting conditions.
  • Compliance with Major IR Protocols: The TSOP1838 is compatible with major IR protocols, including Philips, NEC, and Sony.

Applications

  • Remote control systems for TV, audio equipment, and other consumer electronics
  • IoT devices, such as smart home automation systems and wearables
  • Industrial control systems and automation equipment
  • Medical devices, such as remote monitoring systems and medical implants
  • Automotive systems, such as remote keyless entry and car audio systems

Pinout

The TSOP1838 has a 3-pin package with the following pinout
Pin 1VCC (Supply Voltage)
Pin 2GND (Ground)
Pin 3OUT (Digital Output)

Dimensions

The TSOP1838 is available in a small SMD package with dimensions of 4.90mm x 2.80mm x 1.35mm.

Datasheet

For detailed specifications, application notes, and technical information, please refer to the TSOP1838 datasheet.

Pin Configuration

  • TSOP1838 Infrared Receiver Module Documentation
  • The TSOP1838 is a popular infrared (IR) receiver module widely used in various applications, including remote control systems, robotics, and automation. This module is designed to receive IR signals and output a corresponding digital signal.
  • Pin Description:
  • The TSOP1838 module has 3 pins, which are described below:
  • ### Pin 1: Vcc (Power Supply)
  • Pin Function: Power supply input
  • Voltage Range: 4.5V to 5.5V
  • Typical Voltage: 5V
  • Connection: Connect to a power source (e.g., a 5V regulated output from a voltage regulator or a microcontroller's Vcc pin)
  • ### Pin 2: OUT (Output)
  • Pin Function: Digital output signal
  • Output Level: Active low ( Logic 0 when IR signal is received, Logic 1 when no IR signal is received)
  • Output Type: Open-drain output (requires an external pull-up resistor)
  • Connection: Connect to a microcontroller's digital input pin (e.g., Arduino's digital pin) through a pull-up resistor (1k to 10k)
  • ### Pin 3: GND (Ground)
  • Pin Function: Ground connection
  • Connection: Connect to the ground of the power source and the microcontroller
  • Connecting the TSOP1838 Module:
  • To connect the TSOP1838 module, follow these steps:
  • 1. Power Supply:
  • Connect the Vcc pin (Pin 1) to a 5V power source (e.g., a voltage regulator or a microcontroller's Vcc pin).
  • 2. Output Connection:
  • Connect the OUT pin (Pin 2) to a digital input pin on your microcontroller (e.g., Arduino's digital pin).
  • Add an external pull-up resistor (1k to 10k) between the OUT pin and the microcontroller's Vcc pin.
  • 3. Ground Connection:
  • Connect the GND pin (Pin 3) to the ground of the power source and the microcontroller.
  • Example Connection Diagram:
  • Here's an example connection diagram using an Arduino Uno board:
  • TSOP1838 Vcc (Pin 1) Arduino Uno 5V
  • TSOP1838 OUT (Pin 2) Arduino Uno Digital Pin 2
  • TSOP1838 OUT (Pin 2) Arduino Uno 5V through 1k pull-up resistor
  • TSOP1838 GND (Pin 3) Arduino Uno GND
  • Remember to use a breadboard or PCB to connect the component securely and ensure reliable communication between the TSOP1838 module and your microcontroller.

Code Examples

TSOP1838 Infrared Receiver Module Documentation
The TSOP1838 is a popular infrared (IR) receiver module widely used in various IoT and electronics projects. It's a highly sensitive and reliable component for receiving IR signals, making it suitable for remote control systems, IR communication, and other applications.
Pinout and Connections
The TSOP1838 module has three pins:
| Pin | Description |
| --- | --- |
| VCC | Power supply (typically 5V) |
| GND | Ground |
| OUT | Signal output |
Code Examples:
### Example 1: Basic IR Receiver with Arduino
This example demonstrates how to use the TSOP1838 module with an Arduino board to receive IR signals from a remote control.
```c
const int irReceiverPin = 2;  // Pin 2 for Arduino Uno/Nano
void setup() {
  Serial.begin(9600);
  pinMode(irReceiverPin, INPUT);
}
void loop() {
  if (digitalRead(irReceiverPin) == LOW) {
    Serial.println("IR signal received!");
    // Add your code here to handle the IR signal
  }
}
```
Hardware Connection:
Connect the VCC pin of the TSOP1838 module to the 5V pin of the Arduino board.
 Connect the GND pin of the TSOP1838 module to the GND pin of the Arduino board.
 Connect the OUT pin of the TSOP1838 module to digital pin 2 of the Arduino board.
### Example 2: IR Remote Control with Raspberry Pi (Python)
This example demonstrates how to use the TSOP1838 module with a Raspberry Pi to decode IR signals from a remote control using the LIRC (Linux Infrared Remote Control) library.
```python
import RPi.GPIO as GPIO
import lirc
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)
lirc.init("my_remote")
try:
    while True:
        code = lirc.nextcode()
        if code:
            print("Received IR code:", code)
            # Add your code here to handle the IR code
except KeyboardInterrupt:
    pass
lirc.deinit()
```
Hardware Connection:
Connect the VCC pin of the TSOP1838 module to the 3.3V pin of the Raspberry Pi.
 Connect the GND pin of the TSOP1838 module to the GND pin of the Raspberry Pi.
 Connect the OUT pin of the TSOP1838 module to GPIO pin 17 of the Raspberry Pi.
These examples demonstrate the basic usage of the TSOP1838 IR receiver module. You can modify and extend these examples to suit your specific IoT project requirements.