WATER FLOW SENSOR
WATER FLOW SENSOR
Water flow sensor is used to sense the volumetric
measure of the water. Water flow sensor consists of a plastic valve body, a
water rotor, and a hall-effect sensor. When water flows through the rotor,
rotor rolls. Its speed changes with different rate of flow. The hall-effect
sensor outputs the corresponding pulse signal. We can interface water flow
sensor with Arduino to measure the volume of water present.
Application:
- To determine the volume of water used in a House pipes.
- To determine the volume of petroleum transferred in oil and gas industries.
Sample Project With Arduino:
In this we going to measure the volume of water using the water flow sensor.
Materials required:
const byte interruptPin = 2;
uint32_t pulse;
uint32_t
Litre;
void setup() {
Serial.begin(9600);
pulse = 0;
Litre = 0;
pinMode(interruptPin, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(interruptPin), cal, FALLING);
}
void loop() {
}
void cal() {
pulse += 1;
Litre = (
pulse * 4.5 / 10 );
Serial.print(Litre, DEC);
Serial.println(" Milli Liter");
}
Comments
Post a Comment