Stufin
Home Quick Cart Profile

TSOP 1838B small

Buy Now on Stufin

Component Documentation

TSOP 1838B Small

Overview

The TSOP 1838B Small is a tiny, infrared (IR) receiver module designed for use in remote control systems and other infrared-based applications. This compact device is capable of receiving IR signals and converting them into digital output signals that can be easily interpreted by microcontrollers or other digital systems.

Functionality

The TSOP 1838B Small is designed to receive IR signals in the 38 kHz frequency range, which is a common frequency used in most remote control systems. When an IR signal is received, the module converts the signal into a digital output signal that can be connected directly to a microcontroller or other digital device. The module's internal amplifier and filter circuits ensure reliable signal reception and noise reduction, making it suitable for use in a wide range of applications.

Key Features

  • Small Size: The TSOP 1838B Small has a compact design, making it ideal for use in space-constrained applications.
  • High Sensitivity: The module has a high sensitivity to IR signals, allowing it to detect signals from a distance of up to 45 meters.
  • Wide Angle of View: The TSOP 1838B Small has a wide angle of view of 45, allowing it to receive signals from a variety of angles.
  • Low Power Consumption: The module operates at a low voltage of 2.7-5.5V and has a low current consumption of 0.4mA, making it suitable for battery-powered devices.
  • Digital Output: The module provides a digital output signal that can be directly connected to a microcontroller or other digital device.
  • Built-in Filter: The module has a built-in filter circuit that reduces noise and interference, ensuring reliable signal reception.
  • Operating Temperature Range: The TSOP 1838B Small operates over a wide temperature range of -25C to +85C, making it suitable for use in a variety of environments.

Pinout

The TSOP 1838B Small has a 3-pin package with the following pinout
Pin 1VCC (2.7-5.5V)
Pin 2OUT (Digital Output)
Pin 3GND (Ground)

Applications

The TSOP 1838B Small is suitable for use in a wide range of applications, including

Remote control systems

IR remote receivers

IoT devices

Robotics

Home automation systems

Automotive systems

Conclusion

The TSOP 1838B Small is a compact, high-performance IR receiver module that is ideal for use in a variety of applications. Its high sensitivity, wide angle of view, and low power consumption make it an excellent choice for designers and engineers looking to add IR capability to their projects.

Pin Configuration

  • TSOP 1838B Small IR Receiver Module Documentation
  • Pinout Explanation:
  • The TSOP 1838B small IR receiver module has a total of 3 pins, which are explained below:
  • Pin 1: VS (Supply Voltage)
  • Function: Power supply pin, connects to the positive voltage of the power source.
  • Recommended voltage range: 2.7V to 5.5V.
  • Typical voltage: 5V.
  • Pin 2: OUT (Output)
  • Function: Output pin, provides the demodulated IR signal.
  • Logic level: CMOS compatible, output high (V_out = VCC) when no IR signal is present, and output low (V_out = 0V) when an IR signal is detected.
  • Maximum output current: 2mA.
  • Pin 3: GND (Ground)
  • Function: Ground pin, connects to the negative voltage of the power source.
  • Provides a reference point for the circuit.
  • Connection Structure:
  • To connect the TSOP 1838B small IR receiver module to a microcontroller or other circuitry, follow the below structure:
  • Step 1: Power Connection
  • Connect Pin 1 (VS) to the positive voltage of the power source (e.g., +5V).
  • Connect Pin 3 (GND) to the negative voltage of the power source (e.g., GND).
  • Step 2: Output Connection
  • Connect Pin 2 (OUT) to a digital input pin on the microcontroller or other circuitry.
  • Use a pull-up resistor (typically 1k to 10k) to connect between Pin 2 (OUT) and the positive voltage of the power source, if necessary.
  • Note:
  • Ensure the power supply voltage and current meet the recommended specifications to avoid damage to the module.
  • Use a suitable IR transmitter (e.g., IR LED) to transmit the IR signal, and align it with the TSOP 1838B small IR receiver module for reliable communication.
  • Consult the datasheet for specific application notes and precautions when using the TSOP 1838B small IR receiver module.
  • By following this pinout explanation and connection structure, you can successfully integrate the TSOP 1838B small IR receiver module into your IoT project or application.

Code Examples

Component Documentation: TSOP1838B Small Infrared Receiver Module
Overview
The TSOP1838B is a small infrared (IR) receiver module designed for remote control applications in various devices, such as TVs, air conditioners, and other home appliances. This module is a popular choice for IoT projects due to its small size, low power consumption, and high sensitivity.
Technical Specifications
Operating voltage: 2.7V to 5.5V
 Operating frequency: 38 kHz
 Sensitivity: -45 dBm
 Carrier frequency: 38 kHz
 Output type: Digital signal (TTL level)
 Dimensions: 4.5 mm x 2.3 mm x 1.1 mm
Code Examples
### Example 1: Arduino IR Receiver using TSOP1838B
This example demonstrates how to use the TSOP1838B to receive IR signals using an Arduino board.
Hardware Requirements
Arduino Board (e.g., Arduino Uno)
 TSOP1838B IR Receiver Module
 Breadboard and jumper wires
 IR Remote Control (any device that transmits IR signals)
Software Requirements
Arduino IDE (version 1.8.13 or later)
Code
```c
#include <IRremote.h>
const int irReceiverPin = 11;  // Pin connected to TSOP1838B output
IRrecv irrecv(irReceiverPin);
decode_results results;
void setup() {
  Serial.begin(9600);
  irrecv.enableIRIn();  // Start the IR receiver
}
void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);  // Print received IR code
    irrecv.resume();  // Receive the next value
  }
  delay(50);
}
```
Explanation
In this example, we connect the TSOP1838B output to digital pin 11 of the Arduino board. We use the `IRremote` library to receive and decode the IR signals. In the `loop()` function, we check if a new IR code is received, print it to the serial monitor, and resume the receiver to await the next signal.
### Example 2: Raspberry Pi Python Script using TSOP1838B
This example demonstrates how to use the TSOP1838B to receive IR signals using a Raspberry Pi and Python.
Hardware Requirements
Raspberry Pi (any model)
 TSOP1838B IR Receiver Module
 Breadboard and jumper wires
 IR Remote Control (any device that transmits IR signals)
Software Requirements
Raspbian OS (latest version)
 Python 3.x (installed on the Raspberry Pi)
Code
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pin for TSOP1838B output
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)  # Pin 17 as input
def read_ir_signal():
    signal = []
    while True:
        if GPIO.input(17) == 0:  # IR signal detected
            signal.append(1)
        else:
            signal.append(0)
        time.sleep(0.00005)  # Sample rate: 20 kHz
        if len(signal) > 100:  # Buffer size: 100 samples
            break
    return signal
while True:
    ir_signal = read_ir_signal()
    print("Received IR signal:", ir_signal)
    time.sleep(0.5)  # Delay between readings
```
Explanation
In this example, we connect the TSOP1838B output to GPIO pin 17 of the Raspberry Pi. We use the `RPi.GPIO` library to set up the pin as an input and read the IR signal. The `read_ir_signal()` function samples the IR signal at 20 kHz and stores it in a buffer. We then print the received IR signal to the console and wait for the next signal.
These examples demonstrate the basic usage of the TSOP1838B IR Receiver Module in different contexts. The module can be used in various IoT projects, such as home automation, robotics, and gaming applications.