Introduction
This Gravity: liquid flow sensor is designed based on the electromagnetic principle. It adopts O-ring rubber seal and uses silicone sealant at the outlet end to strength water-resistance. With high anti-interference and anti-impact, the sensor offers reliable performance and long service life. Also, it is designed with G1/4 thread connectors for easy installation. The sensor can be used with microcontrollers like Arduino UNO to measure the flow of liquids with high concentration and low viscosity like water, diesel, engine oil, milk, paint, detergent, honey, etc. (no impurity in liquid)
Features
- Gravity connector, easy to wire
- Wide voltage of 3.5-24V
- Supports measuring liquid with high concentration and low-viscosity
- RHOS compliant
Specification
- Operating Voltage: DC3.5-24V
- Operating Current: ≤10mA(DC5V)
- Output: NPN Pulse signal
- Pipe Diameter: G1/4”
- Thread Outer Diameter: 13mm
- Thread Length: 10mm
- Water Pressure Resistance: ≤1.0MPA
- Insulation Resistance: >100MΩ
- Error: ±1%(0.3-5L/min)
- Output Pulse High Level: >DC4.7V(Input voltage DC5V)
- Output Pulse Low Level: <DC0.5V(Input voltage DC5V)
- Output Pulse Duty Ratio: 50%±10%
- Flow-Pulse Correlation: 1L=540 pulses
- Operating Temperature Range: -10°~70°C
- Operating Humidity Range: 35%~90%RH(No condensing)
- Storage Temperature: -25°~+80°C
- Storage Humidity: 25%~95%RH
- Dimension: 804730mm/3.151.851.18”
Board Overview
Num | Label | Description |
---|---|---|
Green Wire | OUT | Signal Output |
Red Wire | VCC | Positive Power Supply 3.5V-24V |
Black Wire | GND | Negative Power Supply |
Dimension
Tutorial
Requirements
Hardware
- DFRduino UNO R3 (or similar) x 1
- Water Flow Sensor x1
Software
Connection Diagram
Sample Code
volatile double waterFlow;
void setup() {
Serial.begin(9600); //baudrate
waterFlow = 0;
attachInterrupt(1, pulse, RISING); //DIGITAL Pin 3: Interrupt 0
}
void loop() {
Serial.print("waterFlow:");
Serial.print(waterFlow);
Serial.println(" L");
delay(500);
}
void pulse() //measure the quantity of square wave
{
waterFlow += 1.0 / 540.0; // 1L=540 pulses
}
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum.