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

How to Use Xh-W3001: Examples, Pinouts, and Specs

Image of Xh-W3001
Cirkit Designer LogoDesign with Xh-W3001 in Cirkit Designer

Introduction

The Xh-W3001 is a digital temperature and humidity sensor module designed for accurate environmental monitoring. It features a compact design and is widely used in applications such as weather stations, HVAC systems, agricultural monitoring, and industrial automation. Its ease of use and reliable performance make it a popular choice for both hobbyists and professionals.

Explore Projects Built with Xh-W3001

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 Health Monitoring System with Nucleo WB55RG and OLED Display
Image of Pulsefex: A project utilizing Xh-W3001 in a practical application
This circuit is a multi-sensor data acquisition system that uses a Nucleo WB55RG microcontroller to interface with a digital temperature sensor (TMP102), a pulse oximeter and heart-rate sensor (MAX30102), and a 0.96" OLED display via I2C. Additionally, it includes a Sim800l module for GSM communication, powered by a 3.7V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
Image of godmode: A project utilizing Xh-W3001 in a practical application
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Controlled Vibration-Sensing Robot with Battery Monitoring
Image of Vibration Trash: A project utilizing Xh-W3001 in a practical application
This circuit features a Wemos D1 Mini microcontroller connected to a MX1508 DC Motor Driver for controlling a DC motor, a SW-420 Vibration Sensor for detecting vibrations, and a Type-c Power Bank Module with an 18650 battery holder for power supply. The microcontroller monitors the vibration sensor and controls the motor driver based on the sensor's output, while also measuring the battery voltage through an ADC pin with a connected resistor for voltage scaling. The embedded code enables WiFi connectivity, OTA updates, and integration with Home Assistant for remote monitoring and control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wemos D1 Mini Based Environmental Monitoring System with Solar Charging
Image of Generator Shed Voltage & Temperature Monitor: A project utilizing Xh-W3001 in a practical application
This circuit features a Wemos D1 Mini microcontroller interfaced with a pushbutton, a voltage sensor, an AHT21 temperature and humidity sensor, and an L298N motor driver controlling a linear actuator. The Wemos D1 Mini is powered by a 5V supply from an XL4015 DC-DC buck converter, which steps down the voltage from a 12V AGM battery charged by a solar panel through an MPPT charge controller. The microcontroller reads the voltage sensor data and controls the actuator based on programmed logic, while the pushbutton provides user input and the AHT21 sensor monitors environmental conditions.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Xh-W3001

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 Pulsefex: A project utilizing Xh-W3001 in a practical application
Battery-Powered Health Monitoring System with Nucleo WB55RG and OLED Display
This circuit is a multi-sensor data acquisition system that uses a Nucleo WB55RG microcontroller to interface with a digital temperature sensor (TMP102), a pulse oximeter and heart-rate sensor (MAX30102), and a 0.96" OLED display via I2C. Additionally, it includes a Sim800l module for GSM communication, powered by a 3.7V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of godmode: A project utilizing Xh-W3001 in a practical application
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Vibration Trash: A project utilizing Xh-W3001 in a practical application
Wi-Fi Controlled Vibration-Sensing Robot with Battery Monitoring
This circuit features a Wemos D1 Mini microcontroller connected to a MX1508 DC Motor Driver for controlling a DC motor, a SW-420 Vibration Sensor for detecting vibrations, and a Type-c Power Bank Module with an 18650 battery holder for power supply. The microcontroller monitors the vibration sensor and controls the motor driver based on the sensor's output, while also measuring the battery voltage through an ADC pin with a connected resistor for voltage scaling. The embedded code enables WiFi connectivity, OTA updates, and integration with Home Assistant for remote monitoring and control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Generator Shed Voltage & Temperature Monitor: A project utilizing Xh-W3001 in a practical application
Wemos D1 Mini Based Environmental Monitoring System with Solar Charging
This circuit features a Wemos D1 Mini microcontroller interfaced with a pushbutton, a voltage sensor, an AHT21 temperature and humidity sensor, and an L298N motor driver controlling a linear actuator. The Wemos D1 Mini is powered by a 5V supply from an XL4015 DC-DC buck converter, which steps down the voltage from a 12V AGM battery charged by a solar panel through an MPPT charge controller. The microcontroller reads the voltage sensor data and controls the actuator based on programmed logic, while the pushbutton provides user input and the AHT21 sensor monitors environmental conditions.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Weather monitoring stations
  • HVAC (Heating, Ventilation, and Air Conditioning) systems
  • Greenhouse and agricultural monitoring
  • Industrial temperature and humidity control
  • Home automation systems

Technical Specifications

The Xh-W3001 module is designed to provide precise temperature and humidity readings. Below are its key technical details:

General Specifications:

  • Temperature Range: -50°C to 110°C
  • Temperature Accuracy: ±0.1°C
  • Humidity Range: 0% to 99% RH
  • Humidity Accuracy: ±3% RH
  • Operating Voltage: 110V AC or 12V DC (depending on the model)
  • Output Type: Relay output (NO/NC)
  • Relay Capacity: 10A at 250V AC or 10A at 30V DC
  • Display: Digital LED display for real-time temperature readings
  • Sensor Type: External probe (waterproof for temperature sensing)

Pin Configuration and Descriptions:

The Xh-W3001 module typically has the following connections:

Pin Name Description
AC IN Input for 110V AC power (for AC-powered models)
DC IN Input for 12V DC power (for DC-powered models)
NO Normally Open relay terminal for controlling external devices
COM Common terminal for the relay
NC Normally Closed relay terminal for controlling external devices
Sensor Connection for the external temperature and humidity probe

Note: Ensure you are using the correct power input (AC or DC) based on your module version.

Usage Instructions

The Xh-W3001 is straightforward to use in a variety of applications. Follow the steps below to integrate it into your project:

Basic Setup:

  1. Power Connection:

    • For AC-powered models, connect the AC IN terminals to a 110V AC power source.
    • For DC-powered models, connect the DC IN terminals to a 12V DC power source.
  2. Sensor Connection:

    • Attach the external temperature and humidity probe to the designated sensor port.
  3. Relay Connection:

    • Connect the device you want to control (e.g., a heater, fan, or humidifier) to the relay terminals (NO, COM, NC) based on your desired configuration:
      • Use NO (Normally Open) if the device should turn on when the relay is activated.
      • Use NC (Normally Closed) if the device should turn off when the relay is activated.
  4. Set Temperature and Humidity Thresholds:

    • Use the buttons on the module to set the desired temperature and humidity thresholds.
    • The relay will activate or deactivate based on these thresholds.

Important Considerations:

  • Ensure the power supply matches the module's specifications (AC or DC).
  • Avoid exposing the module to water or extreme environmental conditions.
  • Use proper insulation and wiring to prevent short circuits or electrical hazards.
  • The external probe is waterproof for temperature sensing but should not be submerged for extended periods.

Example: Connecting to an Arduino UNO

The Xh-W3001 can be used with an Arduino UNO for advanced control and monitoring. Below is an example of how to read the relay state and control it programmatically:

Arduino Code Example:

// Define the relay pin connected to the Xh-W3001 module
const int relayPin = 7;

void setup() {
  // Initialize the serial communication for debugging
  Serial.begin(9600);

  // Set the relay pin as an input to monitor its state
  pinMode(relayPin, INPUT);
}

void loop() {
  // Read the state of the relay (HIGH = activated, LOW = deactivated)
  int relayState = digitalRead(relayPin);

  // Print the relay state to the Serial Monitor
  if (relayState == HIGH) {
    Serial.println("Relay is ON (Device is active)");
  } else {
    Serial.println("Relay is OFF (Device is inactive)");
  }

  // Add a small delay to avoid flooding the Serial Monitor
  delay(500);
}

Note: The relay pin should be connected to the Arduino's digital input pin. Ensure proper voltage level matching between the Arduino and the Xh-W3001.

Troubleshooting and FAQs

Common Issues:

  1. Module Not Powering On:

    • Check the power supply voltage and ensure it matches the module's specifications.
    • Verify that the power connections are secure and correctly polarized.
  2. Incorrect Temperature or Humidity Readings:

    • Ensure the external probe is properly connected and not damaged.
    • Avoid placing the probe near heat sources or in direct sunlight, as this may affect accuracy.
  3. Relay Not Activating:

    • Verify that the set thresholds are correctly configured.
    • Check the wiring of the relay terminals and ensure the connected device is functional.
  4. Display Not Working:

    • Inspect the module for physical damage or loose connections.
    • Ensure the power supply is stable and within the specified range.

FAQs:

Q1: Can I use the Xh-W3001 with a 24V DC power supply?
A1: No, the Xh-W3001 is designed for either 12V DC or 110V AC power, depending on the model. Using a 24V DC supply may damage the module.

Q2: Is the external probe replaceable?
A2: Yes, the external probe can be replaced if it becomes damaged. Ensure the replacement probe is compatible with the Xh-W3001.

Q3: Can the module control both heating and cooling devices simultaneously?
A3: No, the module can control only one device at a time through its relay. You can configure it for either heating or cooling, but not both simultaneously.

Q4: How do I reset the module to factory settings?
A4: Refer to the module's user manual for specific instructions on resetting to factory defaults. Typically, this involves holding down a button for a few seconds.

By following this documentation, you can effectively use the Xh-W3001 module for your temperature and humidity monitoring needs.