Stufin
Home Quick Cart Profile

1.5 Inch Water Flow Sensor YF - DN40

Buy Now on Stufin

Component Name

1.5 Inch Water Flow Sensor YF-DN40

Overview

The 1.5 Inch Water Flow Sensor YF-DN40 is a high-precision, Hall effect-based sensor designed to measure the flow rate of liquids, particularly water, in various industrial and commercial applications. This sensor is ideal for monitoring water consumption, detecting leaks, and controlling water flow in systems such as HVAC, industrial processes, and water treatment plants.

Functionality

The YF-DN40 sensor measures the flow rate of water by detecting the rotation of a magnetic impeller, which is driven by the flowing liquid. The sensor's Hall effect detector converts the rotating motion into an electrical signal, proportional to the flow rate. This signal is then processed and outputted in a standardized format for easy integration with various automation systems.

Key Features

  • Measurement Range: The YF-DN40 sensor measures flow rates between 0.5-10 L/min (liters per minute) with an accuracy of 2.5% of the full scale.
  • Pipe Size Compatibility: The sensor is designed for 1.5-inch (DN40) pipes, ensuring easy installation and compatibility with standard piping systems.
  • Hall Effect Technology: The sensor employs a Hall effect detector, which provides high accuracy, reliability, and resistance to external interference.
  • Analog Output: The sensor outputs a 4-20 mA analog signal, compatible with most automation systems, including PLCs, SCADA, and DCS.
  • Power Supply: The sensor operates on a 12-24 VDC power supply, making it suitable for a wide range of industrial and commercial applications.
  • IP67 Enclosure: The sensor's IP67-rated enclosure provides protection against dust and water ingress, ensuring reliable operation in harsh environments.
  • Compact Design: The sensor's compact size (123 mm x 58 mm x 42 mm) allows for easy installation in confined spaces.
  • Mounting Options: The sensor can be mounted directly to the pipe using the provided flange or adapted to other pipe sizes using optional adapters.
  • Temperature Range: The sensor operates within a temperature range of -20C to 80C (-4F to 176F), making it suitable for various industrial environments.

Technical Specifications

| Parameter | Value |

| --- | --- |

| Measurement Range | 0.5-10 L/min |

| Accuracy | 2.5% of full scale |

| Pipe Size Compatibility | 1.5 inch (DN40) |

| Hall Effect Technology | Yes |

| Analog Output | 4-20 mA |

| Power Supply | 12-24 VDC |

| Enclosure Rating | IP67 |

| Dimensions | 123 mm x 58 mm x 42 mm |

| Mounting Options | Flange or adapter |

| Temperature Range | -20C to 80C (-4F to 176F) |

Applications

The 1.5 Inch Water Flow Sensor YF-DN40 is suitable for various applications, including

Water consumption monitoring

Leak detection and prevention

Industrial process control

HVAC systems

Water treatment plants

Beverage production

Chemical processing

Conclusion

The 1.5 Inch Water Flow Sensor YF-DN40 is a reliable, high-precision sensor designed for accurate flow measurement in industrial and commercial water management systems. Its compact design, analog output, and versatility make it an ideal choice for a wide range of applications.

Pin Configuration

  • Component Documentation: 1.5 Inch Water Flow Sensor YF-DN40
  • Pinout Description:
  • The 1.5 Inch Water Flow Sensor YF-DN40 has a total of 5 pins, which are used to connect the sensor to a microcontroller or other electronic devices. Below is a detailed description of each pin:
  • Pin 1: VCC (Power Supply)
  • Function: Power supply pin for the sensor
  • Voltage: Typically 5V DC, but can operate within a range of 4.5V to 24V DC
  • Current: Maximum current consumption is 15mA
  • Connection: Connect to a power source (e.g., 5V output from an Arduino board or a battery)
  • Pin 2: GND (Ground)
  • Function: Ground reference pin for the sensor
  • Connection: Connect to the ground terminal of the power source or the ground pin of the microcontroller
  • Pin 3: SIGNAL (Output Signal)
  • Function: Output signal pin, which provides a frequency signal proportional to the flow rate of water
  • Signal type: Digital signal, square wave
  • Frequency range: 0 to 120 Hz, depending on the flow rate
  • Connection: Connect to a digital input pin on the microcontroller (e.g., Arduino Uno's digital pin 2)
  • Pin 4: EMPTY (Empty Signal)
  • Function: Optional pin, which outputs a signal when the flow sensor detects no flow (i.e., the sensor is empty)
  • Signal type: Digital signal, low logic level when the sensor is empty
  • Connection: Connect to a digital input pin on the microcontroller (e.g., Arduino Uno's digital pin 3)
  • Pin 5: NC (Not Connected)
  • Function: Not connected internally, reserved for future use
  • Connection: Leave this pin unconnected
  • Connection Structure:
  • Here is a point-by-point connection structure for the 1.5 Inch Water Flow Sensor YF-DN40:
  • 1. VCC (Pin 1): Connect to a 5V power source (e.g., Arduino Uno's 5V output or a 5V battery).
  • 2. GND (Pin 2): Connect to the ground terminal of the power source or the ground pin of the microcontroller (e.g., Arduino Uno's GND pin).
  • 3. SIGNAL (Pin 3): Connect to a digital input pin on the microcontroller (e.g., Arduino Uno's digital pin 2).
  • 4. EMPTY (Pin 4): Connect to a digital input pin on the microcontroller (e.g., Arduino Uno's digital pin 3).
  • 5. NC (Pin 5): Leave this pin unconnected.
  • Important Notes:
  • Make sure to use a voltage regulator or a voltage divider to regulate the power supply voltage to 5V if your power source is higher than 5V.
  • Use a suitable connector or wire to connect the sensor to the microcontroller or other electronic devices.
  • Ensure the sensor is properly installed and aligned in the water flow pipe to achieve accurate readings.
  • Refer to the datasheet and manufacturer's instructions for more detailed information and specific usage guidelines.

Code Examples

1.5 Inch Water Flow Sensor YF-DN40 Documentation
Overview
The 1.5 Inch Water Flow Sensor YF-DN40 is a digital flow sensor designed to measure the flow rate of water or other liquids in pipes with a diameter of 1.5 inches. The sensor operates on the principle of magnetic induction, providing accurate and reliable flow measurements. This documentation provides a comprehensive guide to using the 1.5 Inch Water Flow Sensor YF-DN40, including code examples for various microcontrollers.
Technical Specifications
Pipe diameter: 1.5 inches (DN40)
 Flow measurement range: 0.5-10 L/min
 Accuracy: 5%
 Operating voltage: 5V DC
 Output signal: Digital pulse output (TTL level)
 Response time: <100 ms
Pinout
The 1.5 Inch Water Flow Sensor YF-DN40 has a 3-pin interface:
VCC (5V power supply)
 GND (Ground)
 SIG (Digital output signal)
Code Examples
### Example 1: Measuring Water Flow using Arduino
This example demonstrates how to use the 1.5 Inch Water Flow Sensor YF-DN40 with an Arduino board to measure water flow rate.
```c
const int flowSensorPin = 2;  // Pin 2 for digital output signal
volatile int pulseCount = 0;
void setup() {
  pinMode(flowSensorPin, INPUT);
  attachInterrupt(digitalPinToInterrupt(flowSensorPin), pulseCounter, RISING);
  Serial.begin(9600);
}
void loop() {
  pulseCount = 0;
  delay(1000);  // Take a 1-second reading
  float flowRate = pulseCount / 7.5;  // Convert pulses to liters per minute
  Serial.print("Flow rate: ");
  Serial.print(flowRate);
  Serial.println(" L/min");
}
void pulseCounter() {
  pulseCount++;
}
```
In this example, we use the `attachInterrupt` function to count the pulse output from the sensor, and then calculate the flow rate using the pulse count.
### Example 2: Flow Measurement using Raspberry Pi (Python)
This example shows how to use the 1.5 Inch Water Flow Sensor YF-DN40 with a Raspberry Pi to measure water flow rate using Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
FLOW_SENSOR_PIN = 17  # Pin 17 for digital output signal
GPIO.setup(FLOW_SENSOR_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
pulse_count = 0
def count_pulses(channel):
  global pulse_count
  pulse_count += 1
GPIO.add_event_detect(FLOW_SENSOR_PIN, GPIO.RISING, callback=count_pulses, bouncetime=20)
while True:
  pulse_count = 0
  time.sleep(1)  # Take a 1-second reading
  flow_rate = pulse_count / 7.5  # Convert pulses to liters per minute
  print("Flow rate: {:.2f} L/min".format(flow_rate))
```
In this example, we use the RPi.GPIO library to set up the GPIO pin for input and enable edge detection to count the pulse output from the sensor. We then calculate the flow rate using the pulse count.
Note: The pulse-to-flow-rate conversion factor (7.5) may vary depending on the specific application and sensor calibration. Please consult the sensor datasheet for accurate conversion factors.