Electronics

IR Infrared Wireless Remote Control Module Kit (HX1838 VS1838 ) white

AED 8.20

Low stock
1

Description

The IR Infrared Wireless Remote Control Module Kit (HX1838 VS1838) is a remote control module that uses infrared technology to transmit signals wirelessly. It consists of a transmitter and a receiver module. The transmitter sends infrared signals when a button is pressed on the remote control, and the receiver module receives these signals and sends them to a microcontroller for further processing. The module is commonly used in DIY electronics projects, home automation systems, and remote control applications.

 

Package Includes:

  • 1 X IR Remote Control(not contain battery) .
  • 1 X HX1838 remote module.
  • 1 X 1838 Universal Receiving Head.
  • 1 X 3Pin 20cm Dupont cable.

 

Features:

  1. Wireless transmission: The module uses infrared technology to transmit signals wirelessly.
  2. Remote control: The module comes with a remote control that allows you to transmit signals to the receiver module.
  3. Transmitter and receiver: The module consists of a transmitter and a receiver module.
  4. Microcontroller compatible: The module is compatible with various microcontrollers, making it easy to integrate into DIY electronics projects.
  5. Easy to use: The module is easy to use and can be easily connected to other electronic components.
  6. Versatile: The module is commonly used in DIY electronics projects, home automation systems, and remote control applications.
  7. Low power consumption: The module has low power consumption, making it suitable for battery-powered devices.
  8. Compact design: The module has a small and compact design, making it easy to integrate into various electronic devices.
  9. Wide compatibility: The module is compatible with various infrared remote control codes, making it easy to work with different types of remote controls.
  10. Long transmission distance: The module has a long transmission distance of up to 8 meters, making it suitable for use in large rooms or open spaces.

 

Description:

the IR Infrared Wireless Remote Control Module Kit (HX1838 VS1838) typically operates at a frequency of 38 kHz and has a maximum operating distance of around 8 meters. It usually requires a voltage supply of 3-5V and consumes very little power, making it ideal for low-power applications. The module is commonly used in various electronics projects such as building a remote control car, controlling appliances in a smart home system, or designing a simple remote control.  It is important to note that the IR Infrared Wireless Remote Control Module Kit is not suitable for long-range or outdoor applications as its infrared signals can be easily obstructed by physical barriers. Additionally, the receiver module must be positioned in the line of sight with the transmitter for proper operation.

 

Principle of Work:

Infrared communication works by transmitting a modulated infrared light signal that carries digital information. The transmitter uses an infrared LED to emit the modulated light signal in a specific direction, and the receiver uses an infrared sensor to detect the signal. The modulated infrared signal contains two parts: a carrier wave and a data signal. The carrier wave is a high-frequency signal that is used to carry the data signal. The data signal is a low-frequency signal that represents the digital information that needs to be transmitted. When the receiver module receives the modulated infrared signal, it first filters out the carrier wave using a bandpass filter. It then demodulates the data signal using a demodulator circuit to extract the digital information. The demodulated data signal is then sent to a microcontroller for further processing.

In the case of the IR Infrared Wireless Remote Control Module Kit (HX1838 VS1838 compatible), the transmitter module sends out a modulated infrared signal when a button is pressed on the remote control. The receiver module detects the signal, demodulates it, and sends the information about the button that was pressed to a microcontroller. The microcontroller can then perform the desired action based on the information received.

 

Pinout of the Module:

Pinout of the HX1838 IR Infrared Receiver:

  • VCC: Power supply input (usually 5V)
  • GND: Ground
  • OUT: The output pin, sends a signal to the microcontroller when a button is pressed on the remote control

 

Applications: 

  1. Home automation: The module can be used to control lights, fans, air conditioners, and other home appliances wirelessly.
  2. Robotics: The module can be used to control the movements of robots wirelessly.
  3. Automotive industry: The module can be used in cars to control various functions such as opening and closing doors, adjusting the volume of music players, etc.
  4. Security systems: The module can be used to control security systems such as alarms, cameras, and access control systems.
  5. Industrial automation: The module can be used to control various industrial machines and equipment wirelessly.
  6. Gaming: The module can be used as a remote control for gaming consoles and other gaming devices.
  7. DIY electronics projects: The module can be used in various DIY electronics projects, such as building a remote-controlled car, a home automation system, or a robot.

 

Circuit:

 

HX1838     Module Arduino
VCC (5V)        5V
GND             GND
OUT             Digital Pin 7 

 

Library:

To install the IRremote library, you can follow these steps:

  1. Open the Arduino IDE
  2. Go to "Sketch" > "Include Library" > "Manage Libraries"
  3. In the "Library Manager" search bar, type "IRremote" and press enter
  4. Select the "IRremote" library and click "Install"
  5. Wait for the installation process to finish

If you encounter a problem with duplicated library, you can try these steps to fix it:

  1. Close the Arduino IDE
  2. Navigate to the Arduino libraries folder (usually located at "Documents/Arduino/libraries")
  3. Find the "IRremote" library folder and delete it
  4. Reopen the Arduino IDE
  5. Follow the installation steps again to install the library

 

Code:  

This code uses an IR receiver and the IRremote library to receive signals from an infrared remote control. When a signal is received, the code decodes the signal to determine which button was pressed on the remote. If the button corresponds to turning on an LED, the LED is turned on. If the button corresponds to turning off the LED, the LED is turned off. 

 

#include "IRremote.h"

int RECV_PIN = 7;
IRrecv irrecv(RECV_PIN);
decode_results results;

int ledPin = 13;

void setup() {
  pinMode(ledPin, OUTPUT);
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value

    // Check the received button code
    switch (results.value) {
      case 0xFF6897:
        digitalWrite(ledPin, HIGH);
        break;
      case 0xFF9867:
        digitalWrite(ledPin, LOW);
        break;
    }
  }
}


First, the IRremote library is included at the top of the code. The variable RECV_PIN is set to 7 to specify the pin connected to the IR receiver module. The IRrecv object is then created to receive infrared signals on this pin, and the decode_results object is created to store the results of decoding the infrared signal. The LED is connected to pin 13, and pinMode() is used to set the pin as an output. Serial communication is also set up at a baud rate of 9600, which will be used to print the hexadecimal code of the button pressed on the remote control. In the loop() function, the irrecv.decode() function is used to check if an infrared signal has been received. If a signal has been received, the hexadecimal value of the button pressed is printed to the serial monitor using Serial.println(), and irrecv.resume() is used to receive the next signal. The code then checks the received button code using a switch statement. If the button code matches 0xFF6897, which is the code for the power button on many remote controls, the LED is turned on by calling digitalWrite(ledPin, HIGH). If the button code matches 0xFF9867, which is the code for the power off button on many remote controls, the LED is turned off by calling digitalWrite(ledPin, LOW).

 

Technical Details:

  • Operating voltage: 2.7V to 5.5V DC
  • Carrier frequency: 38kHz
  • Maximum receiving distance: 18 meters
  • Reception angle: ±45°
  • Reception sensitivity: -18 to -107dBm
  • Interface: Digital TTL level, can be directly connected to microcontrollers such as Arduino
  • Dimensions: 6.4mm x 7.4mm x 5.1mm
  • Weight: 0.2g

 

Resources:

Tutorial

 

Comparisons:

The HX1838 and TSOP58438 Vishay are IR receiver modules that are commonly used in remote control applications. Here's a comparison of their specifications:

HX1838:

  • Operating voltage: 2.7V to 5.5V
  • Carrier frequency: 38kHz
  • Maximum reception distance: up to 18 meters
  • Reception angle: +/-45 degrees
  • Pinout: 3 pins (VCC, GND, OUT)
  • Low power consumption

TSOP58438 Vishay:

  • Operating voltage: 2.5V to 5.5V
  • Carrier frequency: 38kHz
  • Maximum reception distance: up to 45 meters
  • Reception angle: +/-45 degrees
  • Pinout: 3 pins (VCC, GND, OUT)
  • Low power consumption
  • Improved immunity against ambient light and electrical noise

The TSOP58438 Vishay has a longer maximum reception distance and improved immunity against ambient light and electrical noise, which can be important in some applications. However, the HX1838 is also a popular and reliable option with a lower operating voltage range and a lower cost. Ultimately, the choice between the two would depend on the specific needs of the application.