The 2" Water Flow Sensor GR-216, manufactured by GREDIA, is a high-precision sensor designed to measure the flow rate of water in a pipe. It is commonly used in applications such as irrigation systems, aquariums, water management systems, and industrial fluid monitoring. The sensor provides real-time data on water flow, enabling efficient monitoring and control of water usage.
This sensor is equipped with a Hall effect sensor that outputs a pulse signal proportional to the flow rate, making it easy to interface with microcontrollers like Arduino, Raspberry Pi, or other control systems.
Below are the key technical details of the GR-216 Water Flow Sensor:
Parameter | Specification |
---|---|
Manufacturer | GREDIA |
Part Number | GR-216 |
Pipe Diameter | 2 inches (50.8 mm) |
Flow Rate Range | 10 - 200 L/min |
Operating Voltage | 5V - 24V DC |
Output Signal | Pulse signal (Hall effect) |
Pulse Frequency | 4.8 pulses per liter (approx.) |
Maximum Working Pressure | ≤ 1.75 MPa |
Operating Temperature | -25°C to 80°C |
Material | Nylon (food-grade, durable) |
Accuracy | ±2% |
The GR-216 sensor has three wires for connection:
Wire Color | Function | Description |
---|---|---|
Red | VCC (Power) | Connect to a DC power supply (5V - 24V). |
Black | GND (Ground) | Connect to the ground of the power supply. |
Yellow | Signal (Pulse Out) | Outputs a pulse signal proportional to the flow. |
Below is an example code to interface the GR-216 with an Arduino UNO:
// GR-216 Water Flow Sensor Example Code
// This code reads the pulse signal from the sensor and calculates the flow rate.
const int sensorPin = 2; // Digital pin connected to the sensor's yellow wire
volatile int pulseCount = 0; // Variable to store pulse count
float flowRate; // Variable to store flow rate in L/min
unsigned long lastTime = 0; // Time of the last calculation
const unsigned long interval = 1000; // Interval for flow rate calculation (1 second)
// Interrupt service routine to count pulses
void pulseCounter() {
pulseCount++;
}
void setup() {
pinMode(sensorPin, INPUT_PULLUP); // Set sensor pin as input with pull-up resistor
attachInterrupt(digitalPinToInterrupt(sensorPin), pulseCounter, RISING);
Serial.begin(9600); // Initialize serial communication
}
void loop() {
unsigned long currentTime = millis();
// Calculate flow rate every second
if (currentTime - lastTime >= interval) {
detachInterrupt(digitalPinToInterrupt(sensorPin)); // Disable interrupt temporarily
// Calculate flow rate in L/min
flowRate = (pulseCount / 4.8); // 4.8 pulses per liter
pulseCount = 0; // Reset pulse count
Serial.print("Flow Rate: ");
Serial.print(flowRate);
Serial.println(" L/min");
lastTime = currentTime; // Update last calculation time
attachInterrupt(digitalPinToInterrupt(sensorPin), pulseCounter, RISING); // Re-enable interrupt
}
}
No Output Signal:
Inaccurate Readings:
Intermittent Signal:
Q: Can the GR-216 be used with liquids other than water?
A: The GR-216 is designed for water. Using it with other liquids may affect accuracy or damage the sensor.
Q: How do I calculate the total volume of water passed?
A: Multiply the total pulse count by the volume per pulse (1 pulse = 1/4.8 liters).
Q: Can I use the GR-216 with a 3.3V microcontroller?
A: Yes, but ensure the signal voltage is compatible. You may need a level shifter if the signal exceeds 3.3V.
Q: What is the lifespan of the GR-216 sensor?
A: The sensor is durable and designed for long-term use, but lifespan depends on water quality and operating conditions. Regular maintenance is recommended.
By following this documentation, you can effectively integrate the GR-216 Water Flow Sensor into your projects for accurate and reliable water flow measurement.