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

How to Use XH-M291: Examples, Pinouts, and Specs

Image of XH-M291
Cirkit Designer LogoDesign with XH-M291 in Cirkit Designer

Introduction

The XH-M291 is a versatile relay module designed to control high voltage devices using a low voltage signal. Manufactured by Generic, this module is identified by the part ID DC8-38V. It features an optocoupler for isolation, ensuring safe and reliable operation in various automation projects. Common applications include home automation, industrial control systems, and remote switching.

Explore Projects Built with XH-M291

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Solar-Powered GSM/GPRS+GPS Tracker with Seeeduino XIAO
Image of SOS System : A project utilizing XH-M291 in a practical application
This circuit features an Ai Thinker A9G development board for GSM/GPRS and GPS/BDS connectivity, interfaced with a Seeeduino XIAO microcontroller for control and data processing. A solar cell, coupled with a TP4056 charging module, charges a 3.3V battery, which powers the system through a 3.3V regulator ensuring stable operation. The circuit likely serves for remote data communication and location tracking, with the capability to be powered by renewable energy and interfaced with additional sensors or input devices via the Seeeduino XIAO.
Cirkit Designer LogoOpen Project in Cirkit Designer
Mega2560-Controlled Automation System with Non-Contact Liquid Level Sensing and Motor Control
Image of Project_AutomaticBartender: A project utilizing XH-M291 in a practical application
This circuit appears to be a complex control system centered around an Arduino Mega2560 R3 Pro microcontroller, which interfaces with multiple sensors (XKC-Y26-V non-contact liquid level sensors and an LM35 temperature sensor), servo motors, a touch display, and an IBT-2 H-Bridge motor driver for controlling a planetary gearbox motor. The system also includes a UART TTL to RS485 converter for communication, likely with the touch display, and a power management subsystem with a switching power supply, fuses, and circuit breakers for safety and voltage regulation (XL4016). The absence of embedded code suggests that the functionality of the microcontroller is not defined within the provided data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Satellite-Based Timing and Navigation System with SDR and Atomic Clock Synchronization
Image of GPS 시스템 측정 구성도_Confirm: A project utilizing XH-M291 in a practical application
This circuit appears to be a complex system involving power supply management, GPS and timing synchronization, and data communication. It includes a SI-TEX G1 Satellite Compass for GPS data, an XHTF1021 Atomic Rubidium Clock for precise timing, and Ettus USRP B200 units for software-defined radio communication. Power is supplied through various SMPS units and distributed via terminal blocks and DC jacks. Data communication is facilitated by Beelink MINI S12 N95 computers, RS232 splitters, and a 1000BASE-T Media Converter for network connectivity. RF Directional Couplers are used to interface antennas with the USRP units, and the entire system is likely contained within cases for protection and organization.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Based GPS and GSM Tracking System with Load Cell Integration
Image of load cell: A project utilizing XH-M291 in a practical application
This is a multi-functional circuit designed for location tracking, cellular communication, and weight measurement. It uses an Arduino Nano to interface with a GPS module, a GSM module, and a load cell with an HX711 amplifier, displaying data on an I2C LCD screen. Power is supplied by a Li-Ion battery through a buck converter, with a rocker switch for power control and a pushbutton for user input.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with XH-M291

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 SOS System : A project utilizing XH-M291 in a practical application
Solar-Powered GSM/GPRS+GPS Tracker with Seeeduino XIAO
This circuit features an Ai Thinker A9G development board for GSM/GPRS and GPS/BDS connectivity, interfaced with a Seeeduino XIAO microcontroller for control and data processing. A solar cell, coupled with a TP4056 charging module, charges a 3.3V battery, which powers the system through a 3.3V regulator ensuring stable operation. The circuit likely serves for remote data communication and location tracking, with the capability to be powered by renewable energy and interfaced with additional sensors or input devices via the Seeeduino XIAO.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Project_AutomaticBartender: A project utilizing XH-M291 in a practical application
Mega2560-Controlled Automation System with Non-Contact Liquid Level Sensing and Motor Control
This circuit appears to be a complex control system centered around an Arduino Mega2560 R3 Pro microcontroller, which interfaces with multiple sensors (XKC-Y26-V non-contact liquid level sensors and an LM35 temperature sensor), servo motors, a touch display, and an IBT-2 H-Bridge motor driver for controlling a planetary gearbox motor. The system also includes a UART TTL to RS485 converter for communication, likely with the touch display, and a power management subsystem with a switching power supply, fuses, and circuit breakers for safety and voltage regulation (XL4016). The absence of embedded code suggests that the functionality of the microcontroller is not defined within the provided data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of GPS 시스템 측정 구성도_Confirm: A project utilizing XH-M291 in a practical application
Satellite-Based Timing and Navigation System with SDR and Atomic Clock Synchronization
This circuit appears to be a complex system involving power supply management, GPS and timing synchronization, and data communication. It includes a SI-TEX G1 Satellite Compass for GPS data, an XHTF1021 Atomic Rubidium Clock for precise timing, and Ettus USRP B200 units for software-defined radio communication. Power is supplied through various SMPS units and distributed via terminal blocks and DC jacks. Data communication is facilitated by Beelink MINI S12 N95 computers, RS232 splitters, and a 1000BASE-T Media Converter for network connectivity. RF Directional Couplers are used to interface antennas with the USRP units, and the entire system is likely contained within cases for protection and organization.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of load cell: A project utilizing XH-M291 in a practical application
Arduino Nano-Based GPS and GSM Tracking System with Load Cell Integration
This is a multi-functional circuit designed for location tracking, cellular communication, and weight measurement. It uses an Arduino Nano to interface with a GPS module, a GSM module, and a load cell with an HX711 amplifier, displaying data on an I2C LCD screen. Power is supplied by a Li-Ion battery through a buck converter, with a rocker switch for power control and a pushbutton for user input.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Technical Details

Parameter Value
Operating Voltage 8V - 38V DC
Trigger Voltage 5V DC
Relay Type SPDT (Single Pole Double Throw)
Max Load Current 10A @ 250V AC / 10A @ 30V DC
Isolation Optocoupler
Dimensions 50mm x 26mm x 18mm

Pin Configuration and Descriptions

Pin Name Description
VCC Power supply input (8V - 38V DC)
GND Ground
IN Signal input (5V DC)
NO Normally Open contact of the relay
COM Common contact of the relay
NC Normally Closed contact of the relay

Usage Instructions

How to Use the XH-M291 in a Circuit

  1. Power Supply: Connect the VCC pin to a DC power supply ranging from 8V to 38V. Connect the GND pin to the ground of the power supply.
  2. Signal Input: Connect the IN pin to a 5V DC signal from a microcontroller or other control device.
  3. Relay Contacts: Connect the high voltage device to the relay contacts (NO, COM, NC) as per your requirement:
    • NO (Normally Open): The device will be off when the relay is not triggered and will turn on when the relay is triggered.
    • NC (Normally Closed): The device will be on when the relay is not triggered and will turn off when the relay is triggered.
    • COM (Common): Common contact for both NO and NC.

Important Considerations and Best Practices

  • Isolation: Ensure proper isolation between the low voltage control circuit and the high voltage load to prevent damage and ensure safety.
  • Current Rating: Do not exceed the maximum load current rating of 10A to avoid damaging the relay.
  • Heat Dissipation: Provide adequate ventilation or heat sinking if the relay is used to switch high currents frequently.

Example Circuit with Arduino UNO

/*
  Example code to control the XH-M291 relay module with an Arduino UNO.
  This code will turn the relay on for 1 second and off for 1 second repeatedly.
*/

const int relayPin = 7; // Pin connected to IN pin of XH-M291

void setup() {
  pinMode(relayPin, OUTPUT); // Set relay pin as an output
}

void loop() {
  digitalWrite(relayPin, HIGH); // Turn relay on
  delay(1000); // Wait for 1 second
  digitalWrite(relayPin, LOW); // Turn relay off
  delay(1000); // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Triggering:

    • Check Power Supply: Ensure the VCC and GND pins are connected to a proper power supply within the specified range (8V - 38V DC).
    • Signal Voltage: Verify that the IN pin is receiving a 5V DC signal from the control device.
  2. Relay Stuck in One State:

    • Check Connections: Ensure all connections are secure and correct.
    • Load Current: Ensure the load current does not exceed the maximum rating of 10A.
  3. Interference with Control Circuit:

    • Isolation: Ensure proper isolation between the high voltage load and the low voltage control circuit using the optocoupler.

FAQs

Q1: Can I use the XH-M291 with a 3.3V microcontroller?

  • A1: No, the XH-M291 requires a 5V DC signal to trigger the relay. You may need a level shifter to interface with a 3.3V microcontroller.

Q2: Can the XH-M291 control an AC load?

  • A2: Yes, the XH-M291 can control AC loads up to 250V and 10A.

Q3: What is the purpose of the optocoupler in the XH-M291?

  • A3: The optocoupler provides electrical isolation between the low voltage control circuit and the high voltage load, enhancing safety and preventing damage to the control circuit.

By following this documentation, users can effectively integrate the XH-M291 relay module into their projects, ensuring safe and reliable operation.