Stufin
Home Quick Cart Profile

TSOP 1738

Buy Now on Stufin

Pin Configuration

  • TSOP 1738 Infrared Receiver Module Documentation
  • The TSOP 1738 is a widely used infrared (IR) receiver module in many IoT and robotics projects. This module is capable of receiving IR signals and decoding them into a digital output. Here's a detailed explanation of the pins and how to connect them:
  • Pinout:
  • The TSOP 1738 module has a total of 3 pins, which are:
  • ### Pin 1: VCC (Power Supply)
  • Function: Power supply pin for the IR receiver module.
  • Voltage: Typically operates at a voltage range of 4.5V to 5.5V.
  • Connection: Connect to a power source, such as a battery or a voltage regulator output. Ensure the voltage level is within the recommended range.
  • ### Pin 2: OUT (Output)
  • Function: Digital output pin that provides the decoded IR signal.
  • Logic Level: Active low output, meaning a logic low (0V) indicates a valid IR signal, while a logic high (VCC) indicates no signal.
  • Connection: Connect to a microcontroller or a logic circuit that can read the digital output signal.
  • ### Pin 3: GND (Ground)
  • Function: Ground pin for the IR receiver module.
  • Connection: Connect to the ground terminal of the power source or the system ground.
  • Connection Structure:
  • Here's a step-by-step guide to connecting the TSOP 1738 module:
  • 1. Connect the VCC pin (Pin 1) to a power source, such as a 5V supply from a voltage regulator or a battery.
  • 2. Connect the OUT pin (Pin 2) to a digital input pin on a microcontroller or a logic circuit.
  • 3. Connect the GND pin (Pin 3) to the ground terminal of the power source or the system ground.
  • Important Notes:
  • Ensure the power supply voltage is within the recommended range (4.5V to 5.5V) to prevent damage to the module.
  • The TSOP 1738 module is sensitive to ambient light, so it's recommended to use a shielding or a dark enclosure to minimize interference.
  • When connecting the module to a microcontroller, make sure to use a pull-up resistor (typically 1 k to 10 k) on the OUT pin to prevent floating input conditions.
  • By following these guidelines, you can successfully integrate the TSOP 1738 IR receiver module into your IoT or robotics project.

Code Examples

TSOP 1738 Documentation
Overview
The TSOP 1738 is a popular infrared (IR) receiver module commonly used in various IoT projects, remote control systems, and robotics applications. It's a compact, low-power module that detects IR signals transmitted by IR transmitters or remotes and converts them into electrical signals that can be read by microcontrollers.
Pinout
The TSOP 1738 module has three pins:
| Pin | Description |
| --- | --- |
| VCC | Power supply (typically 5V) |
| GND | Ground |
| OUT | Output signal (active low) |
Code Examples
### Example 1: Arduino Uno with TSOP 1738
In this example, we'll use the TSOP 1738 to receive IR signals from a remote control and display the received data on the Arduino Serial Monitor.
Hardware Requirements
Arduino Uno board
 TSOP 1738 IR receiver module
 IR remote control
 Breadboard and jumper wires
Code
```c++
const int ir RecevierPin = 2; // Connect OUT pin of TSOP 1738 to digital pin 2 of Arduino Uno
void setup() {
  Serial.begin(9600);
  pinMode(irRecevierPin, INPUT);
}
void loop() {
  if (digitalRead(irRecevierPin) == LOW) {
    Serial.println("IR signal received!");
    delay(50); // Debounce time to avoid multiple readings
  }
}
```
### Example 2: Raspberry Pi with TSOP 1738 and Python
In this example, we'll use the TSOP 1738 to receive IR signals and control a LED connected to the Raspberry Pi.
Hardware Requirements
Raspberry Pi board
 TSOP 1738 IR receiver module
 IR remote control
 LED and resistor
 Breadboard and jumper wires
Code
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
ir_receiver_pin = 17 # Connect OUT pin of TSOP 1738 to GPIO 17 of Raspberry Pi
led_pin = 23 # Connect LED to GPIO 23 of Raspberry Pi
GPIO.setup(ir_receiver_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(led_pin, GPIO.OUT)
while True:
    if GPIO.input(ir_receiver_pin) == 0:
        print("IR signal received!")
        GPIO.output(led_pin, GPIO.HIGH) # Turn on LED
        time.sleep(0.5) # Debounce time to avoid multiple readings
        GPIO.output(led_pin, GPIO.LOW) # Turn off LED
```
Note: In both examples, ensure that the IR remote control is properly configured and paired with the TSOP 1738 module. The debounce time and pin connections may vary depending on your specific setup and requirements.