Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Modul IR: Examples, Pinouts, and Specs

Image of Modul IR
Cirkit Designer LogoDesign with Modul IR in Cirkit Designer

Introduction

The Modul IR (Manufacturer Part ID: UNO) by Alibaba is an infrared (IR) module designed for transmitting and receiving infrared signals. It is widely used in remote control applications, wireless communication between devices, and proximity detection. This versatile component is ideal for projects involving Arduino, Raspberry Pi, and other microcontroller platforms.

Explore Projects Built with Modul IR

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered IR Sensor Controlled Relay Module
Image of New: A project utilizing Modul IR in a practical application
This circuit uses an IR sensor to control a 1 Channel 5V Relay Module, which is powered by a 9V battery. The IR sensor detects an object and sends a signal to the relay module to switch its state, enabling or disabling the connected load.
Cirkit Designer LogoOpen Project in Cirkit Designer
IR Sensor-Controlled Relay for Motor Activation
Image of car braking system using ir sensor: A project utilizing Modul IR in a practical application
This circuit uses an IR sensor to control a relay, which in turn controls the power to a motor. When the IR sensor detects an object, it activates the relay, cutting power to the motor. The system is powered by a 7.4V source.
Cirkit Designer LogoOpen Project in Cirkit Designer
IR Sensor-Controlled Relay with LED Indicator
Image of smart TV: A project utilizing Modul IR in a practical application
This circuit uses an IR sensor to control a relay module, which in turn switches a 12V blue LED on and off. The IR sensor output is connected to the signal input of the relay, enabling the sensor to activate the relay. The relay's normally closed (NC) contact is connected to the LED, allowing the LED to be powered by a 9V battery when the relay is not activated by the IR sensor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Controlled Line Following Robot with Dual DC Motors and IR Array
Image of ONE: A project utilizing Modul IR in a practical application
This circuit features an Arduino UNO microcontroller interfaced with a 5-channel IR array for sensor input, and two DC Mini Metal Gear Motors for actuation, controlled via an L298N DC motor driver. The motors are powered by a series connection of two 3.7V batteries, with a rocker switch to control power delivery. The Arduino is programmed to process the IR array signals and control the motor driver, which in turn drives the motors based on the sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Modul IR

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of New: A project utilizing Modul IR in a practical application
Battery-Powered IR Sensor Controlled Relay Module
This circuit uses an IR sensor to control a 1 Channel 5V Relay Module, which is powered by a 9V battery. The IR sensor detects an object and sends a signal to the relay module to switch its state, enabling or disabling the connected load.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of car braking system using ir sensor: A project utilizing Modul IR in a practical application
IR Sensor-Controlled Relay for Motor Activation
This circuit uses an IR sensor to control a relay, which in turn controls the power to a motor. When the IR sensor detects an object, it activates the relay, cutting power to the motor. The system is powered by a 7.4V source.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of smart TV: A project utilizing Modul IR in a practical application
IR Sensor-Controlled Relay with LED Indicator
This circuit uses an IR sensor to control a relay module, which in turn switches a 12V blue LED on and off. The IR sensor output is connected to the signal input of the relay, enabling the sensor to activate the relay. The relay's normally closed (NC) contact is connected to the LED, allowing the LED to be powered by a 9V battery when the relay is not activated by the IR sensor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ONE: A project utilizing Modul IR in a practical application
Arduino-Controlled Line Following Robot with Dual DC Motors and IR Array
This circuit features an Arduino UNO microcontroller interfaced with a 5-channel IR array for sensor input, and two DC Mini Metal Gear Motors for actuation, controlled via an L298N DC motor driver. The motors are powered by a series connection of two 3.7V batteries, with a rocker switch to control power delivery. The Arduino is programmed to process the IR array signals and control the motor driver, which in turn drives the motors based on the sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Remote control systems (e.g., TVs, air conditioners)
  • Wireless communication between devices
  • Obstacle detection in robotics
  • Proximity sensors
  • Data transmission in IoT devices

Technical Specifications

The Modul IR is a compact and efficient component with the following technical specifications:

Parameter Value
Operating Voltage 3.3V to 5V
Operating Current 20mA (typical)
Transmission Range Up to 10 meters (line of sight)
Carrier Frequency 38 kHz
Signal Type Digital (modulated IR signals)
Dimensions 30mm x 15mm x 10mm
Operating Temperature -20°C to 60°C

Pin Configuration and Descriptions

The Modul IR typically has three pins for easy integration into circuits:

Pin Name Description
1 VCC Power supply pin (3.3V to 5V)
2 GND Ground connection
3 OUT Digital output pin for receiving IR signals

Usage Instructions

How to Use the Modul IR in a Circuit

  1. Power the Module: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.
  2. Connect the Output: Attach the OUT pin to a digital input pin of your microcontroller (e.g., Arduino UNO).
  3. Position the Module: Ensure the IR transmitter and receiver have a clear line of sight for optimal performance.
  4. Program the Microcontroller: Use appropriate libraries or code to send or receive IR signals.

Important Considerations and Best Practices

  • Avoid Interference: Ensure the module is not exposed to direct sunlight or other strong light sources, as this can interfere with IR signal transmission.
  • Maintain Line of Sight: For best results, keep the transmitter and receiver aligned without obstructions.
  • Use a Resistor: If the module is used for continuous transmission, consider adding a current-limiting resistor to protect the IR LED.
  • Test the Range: Verify the module's range in your specific environment, as obstacles and ambient light can affect performance.

Example: Using Modul IR with Arduino UNO

Below is an example of how to use the Modul IR with an Arduino UNO to receive IR signals:

#include <IRremote.h> // Include the IRremote library

const int RECV_PIN = 2; // Define the pin connected to the OUT pin of the Modul IR
IRrecv irrecv(RECV_PIN); // Create an IR receiver object
decode_results results;  // Variable to store decoded IR signals

void setup() {
  Serial.begin(9600); // Initialize serial communication
  irrecv.enableIRIn(); // Start the IR receiver
  Serial.println("IR Receiver is ready");
}

void loop() {
  if (irrecv.decode(&results)) { // Check if an IR signal is received
    Serial.print("IR Code: ");
    Serial.println(results.value, HEX); // Print the received IR code in HEX format
    irrecv.resume(); // Prepare to receive the next signal
  }
}

Notes:

  • Install the IRremote library in the Arduino IDE before uploading the code.
  • Connect the OUT pin of the Modul IR to digital pin 2 on the Arduino UNO.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Signal Detected:

    • Cause: Incorrect wiring or loose connections.
    • Solution: Double-check the connections, ensuring the VCC, GND, and OUT pins are properly connected.
  2. Short Range or Weak Signal:

    • Cause: Obstructions or interference from ambient light.
    • Solution: Remove obstacles and avoid direct sunlight or strong artificial light.
  3. Random or Inconsistent Signals:

    • Cause: Noise or interference in the circuit.
    • Solution: Use a decoupling capacitor (e.g., 10µF) between VCC and GND to stabilize the power supply.
  4. IR Code Not Recognized:

    • Cause: Incorrect library or incompatible protocol.
    • Solution: Ensure the correct library (e.g., IRremote) is installed and the protocol matches the transmitting device.

FAQs

Q1: Can the Modul IR be used for bidirectional communication?
A1: No, the Modul IR is designed primarily for unidirectional communication. For bidirectional communication, additional components are required.

Q2: What is the maximum range of the Modul IR?
A2: The maximum range is up to 10 meters in a clear line of sight. However, environmental factors may reduce this range.

Q3: Can I use the Modul IR with a 3.3V microcontroller?
A3: Yes, the Modul IR is compatible with both 3.3V and 5V systems.

Q4: How do I test if the Modul IR is working?
A4: Use a smartphone camera to check if the IR LED emits light when powered. The light will appear as a faint purple glow on the camera screen.

By following this documentation, you can effectively integrate the Modul IR into your projects and troubleshoot any issues that arise.