1 Inch Water Flow Sensor YF-G1 DN25
1 Inch Water Flow Sensor YF-G1 DN25
The 1 Inch Water Flow Sensor YF-G1 DN25 is a flow meter sensor designed to measure the rate of water flow in pipes with a diameter of 1 inch (DN25). This sensor is ideal for applications that require accurate and reliable flow measurement, such as industrial processes, water treatment systems, and irrigation systems.
The 1 Inch Water Flow Sensor YF-G1 DN25 works by measuring the velocity of water flow through a pipe using a Hall effect sensor. The sensor detects the movement of a magnetic rotor, which is driven by the flowing water, and converts it into an electrical signal proportional to the flow rate. The sensor then outputs a pulse signal that corresponds to the flow rate, allowing for accurate measurement and monitoring of water flow.
120 mm (4.72 in)
80 mm (3.15 in)
40 mm (1.57 in)
1 inch (DN25)
250 grams (8.82 oz)
The 1 Inch Water Flow Sensor YF-G1 DN25 meets various international certifications, including CE, RoHS, and IP65, ensuring compliance with safety and environmental standards.
| The 1 Inch Water Flow Sensor YF-G1 DN25 is suitable for various applications, including |
Industrial processes and manufacturing
Water treatment systems
Irrigation systems
Chemical processing
HVAC systems
Medical equipment
Overall, the 1 Inch Water Flow Sensor YF-G1 DN25 is a reliable and accurate flow meter sensor that provides precise measurement of water flow in 1-inch pipes. Its durability, ease of installation, and compatibility with various power sources make it an ideal choice for a wide range of industrial and commercial applications.
1 Inch Water Flow Sensor YF-G1 DN25 DocumentationOverviewThe 1 Inch Water Flow Sensor YF-G1 DN25 is a digital flow sensor designed to measure the flow rate of water or other liquids in pipes. It uses a Hall effect sensor to detect the rotation of a magnetic rotor, which is proportional to the flow rate. The sensor outputs a digital pulse signal that can be easily interfaced with microcontrollers, Arduino, or Raspberry Pi boards.Technical SpecificationsFlow range: 1-30 L/min
Output signal: digital pulse signal (5V, 20mA)
Power supply: 5-24V DC
Pipe diameter: DN25 (1 inch)
Accuracy: 5% FS
Response time: <1 secondConnecting the SensorTo connect the sensor, you'll need to provide a power supply (5-24V DC) and connect the digital output signal to a microcontroller or development board.Code Examples### Example 1: Measuring Water Flow Rate with ArduinoIn this example, we'll use an Arduino Uno board to read the digital output signal from the YF-G1 DN25 sensor and calculate the flow rate in liters per minute.```c
const int flowPin = 2; // Digital input pin for flow sensor
volatile int flowCount = 0; // Variable to store flow countvoid setup() {
pinMode(flowPin, INPUT);
attachInterrupt(digitalPinToInterrupt(flowPin), flowCountISR, RISING);
Serial.begin(9600);
}void loop() {
float flowRate = calculateFlowRate(flowCount);
Serial.print("Flow rate: ");
Serial.print(flowRate, 2);
Serial.println(" L/min");
delay(1000);
}void flowCountISR() {
flowCount++;
}float calculateFlowRate(int count) {
// Convert count to flow rate (L/min)
// YF-G1 DN25 datasheet: 1 pulse = 2.25 mL
float flowRate = (count 2.25) / 1000;
return flowRate;
}
```### Example 2: Monitoring Water Flow with Raspberry Pi (Python)In this example, we'll use a Raspberry Pi board to read the digital output signal from the YF-G1 DN25 sensor and display the flow rate in liters per minute using a Python script.```python
import RPi.GPIO as GPIO
import timeGPIO.setmode(GPIO.BCM)
flow_pin = 17 # GPIO pin for flow sensor
GPIO.setup(flow_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)flow_count = 0def flow_isr(channel):
global flow_count
flow_count += 1GPIO.add_event_detect(flow_pin, GPIO.RISING, callback=flow_isr, bouncetime=20)while True:
flow_rate = calculate_flow_rate(flow_count)
print("Flow rate: {:.2f} L/min".format(flow_rate))
time.sleep(1)def calculate_flow_rate(count):
# Convert count to flow rate (L/min)
# YF-G1 DN25 datasheet: 1 pulse = 2.25 mL
flow_rate = (count 2.25) / 1000
return flow_rate
```These examples demonstrate how to connect and use the 1 Inch Water Flow Sensor YF-G1 DN25 with popular development boards. You can modify the code to suit your specific application and adjust the calculations based on the sensor's datasheet and your system's requirements.