Stufin
Home Quick Cart Profile

1/2 Inch Water Flow Sensor SEN-HZ21WA

Buy Now

Component Name

1/2 Inch Water Flow Sensor SEN-HZ21WA

Description

The 1/2 Inch Water Flow Sensor SEN-HZ21WA is a digital flow sensor designed to measure the flow rate of water or other non-corrosive liquids in a pipeline. This sensor is specifically engineered to provide accurate and reliable flow measurement data in a wide range of applications, including industrial automation, water treatment, and HVAC systems.

Functionality

The SEN-HZ21WA water flow sensor operates on the principle of electromagnetic flow measurement. When a conductive liquid flows through the sensor, it induces an electromotive force (EMF) that is proportional to the flow rate. The sensor converts this EMF into a digital signal, which is then processed to provide an accurate measurement of the flow rate.

The sensor has a built-in microcontroller that calculates the flow rate based on the detected EMF and provides the data through a digital output. The microcontroller also performs temperature compensation to ensure accurate measurements over a wide range of temperatures.

Key Features

  • Flow Range: The SEN-HZ21WA can measure flow rates from 0.5 to 10 liters per minute (L/min), making it suitable for applications with varying flow requirements.
  • Accuracy: The sensor provides high accuracy measurements with an error margin of 2.5% of the full scale, ensuring reliable data for precise process control and monitoring.
  • Digital Output: The sensor features a digital output that provides a direct interface with microcontrollers, PLCs, or computers, making it easy to integrate into existing systems.
  • Adjustable Pulse Width: The sensor allows for adjustable pulse width output, enabling users to customize the output signal to match their specific application requirements.
  • Temperature Compensation: The built-in microcontroller performs temperature compensation, ensuring accurate measurements over a wide temperature range of 0C to 80C (32F to 176F).
  • Installation: The sensor has a 1/2 inch (DN15) pipe size and can be easily installed in a pipeline using standard fittings.
  • Power Supply: The sensor operates on a 5V to 24V DC power supply, making it compatible with a wide range of power sources.
  • Certifications: The SEN-HZ21WA meets the requirements of IP67 (dust and water resistant) and CE, ensuring safe and reliable operation in harsh environments.

Flow range

0.5 to 10 L/min

Accuracy

2.5% of full scale

Digital output

Pulse width modulation (PWM)

Pulse width adjustment

0.1 to 10 seconds

Temperature range

0C to 80C (32F to 176F)

Power supply

5V to 24V DC

Current consumption

<50 mA

Connection type

3-wire (VCC, GND, Signal)

Pipe size

1/2 inch (DN15)

Material

Brass body, PVC insulation

Certifications

IP67, CE

Operating humidity

20% to 80%

Applications

The 1/2 Inch Water Flow Sensor SEN-HZ21WA is suitable for a wide range of applications, including

Industrial automation

Water treatment systems

HVAC systems

Beverage dispensing machines

Chemical processing

Medical equipment

Agricultural irrigation systems

Conclusion

The 1/2 Inch Water Flow Sensor SEN-HZ21WA is a reliable and accurate flow sensor designed for precise flow measurement in a variety of applications. Its digital output, adjustable pulse width, and built-in temperature compensation make it an ideal choice for industrial automation, water treatment, and other demanding applications.

Pin Configuration

  • SEN-HZ21WA 1/2 Inch Water Flow Sensor Pinout Explanation
  • The SEN-HZ21WA 1/2 inch water flow sensor is a widely used component in IoT applications for measuring water flow rates. This sensor has 5 pins, which are explained below:
  • Pinout Structure:
  • The SEN-HZ21WA water flow sensor has a 5-pin interface, with the following pinout structure:
  • | Pin Number | Pin Name | Pin Function | Connection |
  • | --- | --- | --- | --- |
  • | 1 | VCC | Power Supply (Positive) | Connect to Microcontroller's VCC ( Typically 5V or 3.3V) |
  • | 2 | GND | Power Supply (Negative) | Connect to Microcontroller's GND (Ground) |
  • | 3 | SIG | Signal Output | Connect to Microcontroller's Digital Input (e.g., D13) |
  • | 4 | NC | Not Connected (Reserved) | Leave unconnected |
  • | 5 | NC | Not Connected (Reserved) | Leave unconnected |
  • Pin-by-Pin Explanation:
  • 1. VCC (Pin 1): This pin is the power supply positive terminal, which should be connected to the positive power supply of the microcontroller (e.g., Arduino Uno's 5V pin or Raspberry Pi's 3.3V pin).
  • 2. GND (Pin 2): This pin is the power supply negative terminal, which should be connected to the ground (GND) of the microcontroller.
  • 3. SIG (Pin 3): This pin is the signal output of the sensor, which generates pulses based on the water flow rate. Connect this pin to a digital input of the microcontroller (e.g., Arduino Uno's Digital Pin 13). The sensor outputs a pulse signal, where the frequency of the pulses is directly proportional to the water flow rate.
  • 4. NC (Pin 4): This pin is not connected (NC) and is reserved for future use. It should be left unconnected.
  • 5. NC (Pin 5): This pin is also not connected (NC) and is reserved for future use. It should be left unconnected.
  • Connection Example:
  • Here's an example of how to connect the SEN-HZ21WA water flow sensor to an Arduino Uno microcontroller:
  • VCC (Pin 1) -> Arduino Uno's 5V pin
  • GND (Pin 2) -> Arduino Uno's GND pin
  • SIG (Pin 3) -> Arduino Uno's Digital Pin 13
  • NC (Pin 4) -> Leave unconnected
  • NC (Pin 5) -> Leave unconnected
  • By following this pinout structure and connecting the sensor correctly, you can measure water flow rates using the SEN-HZ21WA sensor in your IoT application.

Code Examples

1/2 Inch Water Flow Sensor SEN-HZ21WA Documentation
Overview
The 1/2 Inch Water Flow Sensor SEN-HZ21WA is a digital flow sensor designed to measure the flow rate of liquids, particularly water, in various applications such as industrial automation, HVAC systems, and water supply management. This sensor provides accurate and reliable measurements with a high degree of precision.
Specifications
Measuring range: 0-10 L/min
 Accuracy: 2% of full scale
 Power supply: 5V-24V DC
 Output signal: Digital pulse output ( ttl level)
 Interface: 3-pin connector (VCC, GND, OUT)
 Operating temperature: -20C to 80C
Code Examples
### Example 1: Basic Water Flow Measurement using Arduino
In this example, we will connect the SEN-HZ21WA sensor to an Arduino board to measure the water flow rate. We will use the sensor's digital pulse output to count the number of pulses per second, which corresponds to the flow rate.
```cpp
const int flowSensorPin = 2; // Pin for flow sensor output
volatile int pulseCount = 0;
void setup() {
  Serial.begin(9600);
  pinMode(flowSensorPin, INPUT);
  attachInterrupt(digitalPinToInterrupt(flowSensorPin), pulseCounter, RISING);
}
void loop() {
  pulseCount = 0;
  delay(1000); // Wait for 1 second
  float flowRate = (pulseCount / 7.5); // Convert pulse count to L/min
  Serial.print("Flow rate: ");
  Serial.print(flowRate);
  Serial.println(" L/min");
}
void pulseCounter() {
  pulseCount++;
}
```
### Example 2: Water Flow Monitoring using Raspberry Pi (Python)
In this example, we will connect the SEN-HZ21WA sensor to a Raspberry Pi to monitor the water flow rate. We will use the RPi.GPIO library to read the sensor's digital pulse output and calculate the flow rate.
```python
import RPi.GPIO as GPIO
import time
FLOW_SENSOR_PIN = 17
GPIO.setmode(GPIO.BCM)
GPIO.setup(FLOW_SENSOR_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
pulse_count = 0
def count_pulse(channel):
    global pulse_count
    pulse_count += 1
GPIO.add_event_detect(FLOW_SENSOR_PIN, GPIO.RISING, callback=count_pulse)
while True:
    pulse_count = 0
    time.sleep(1)  # Wait for 1 second
    flow_rate = (pulse_count / 7.5)  # Convert pulse count to L/min
    print("Flow rate: {:.2f} L/min".format(flow_rate))
```
Troubleshooting and Optimizations
Ensure proper connections and wiring between the sensor and the microcontroller.
 Adjust the sensor's power supply voltage according to the datasheet recommendations.
 Implement debouncing or filtering techniques to eliminate noise and ensure accurate measurements.
 Calibrate the sensor by measuring the flow rate at different points to ensure accurate readings.
 Consider using flow rate calculation libraries or APIs for more accurate and robust measurements.
Disclaimer
The provided code examples are for illustration purposes only and may require modifications to suit specific application requirements. The user is responsible for ensuring the accuracy and reliability of the sensor measurements and implementing necessary safety precautions.