0 ratings0% found this document useful (0 votes) 198 views5 pagesSEN-HZ21WA Flowmeter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
SEN-HZ21WA Flowmeter (\ e-Gizmo
'MECHATRONIX CENTRAL
‘Technical Manual Rev 2r0
SEN-HZ21WA Flowmeter can be used to accurately measure liquid volume and rate of flow
flowing through it. It outputs digital pulses at a frequency in proportion to the rate of fow.
Accumulated number of pulses, on the other hand, gives an accurate measure of the liquid
volume. Compatible in all gizDuino boards and MCUs.
Goneral Specifications:
Input supply voltage: 4.5 - 18VDC
Operation Pressure: 1.75MPA Maximum
Flow Rate: * - 30 LPM
Output: 5V logic
Pages 1 of 5 pages (©2018 by e-Gizmo Mechatronix Central Water Fiow Meter‘e-Gizmo
Pin descriptions and Illustration
gee
é
zee
3
# §
z 8
Figure 1: SEN-HZ21WA Flowmeter
Pages 2 of 5 pages (©2018 by e-Gizmo Mechatronix Central Water Flow Meter‘e-Gizmo
Wiring Connections using gizDuino ATmega328P 3
ur?
ggrtezci-og n/a
'
‘ako, Oi
Figure 2. Sample Applications
Pages 3 of 5 pages (©2018 by e-Gizmo Mechatronix Central Water Fiow MeterSample Codes
Q
e-Gizmo SEN-HZ21WA Flowmeter
Sample Codes
Reads the Digital Output on pin 5 and prints the result to
the serial monitor.
by
e-Gizmo Mechatronix Central
November 26, 2014
http:/[Link]
7
int FLOW_PIN = 2;
double FLOW_RATE;
volatile int COUNT;
JI the setup routine runs once when you press reset
void setup() {
ILinitialize serial communication at 9600 bits per second:
[Link](9600);
pinMode(FLOW_PIN, INPUT);
attachinterrupt(0, FLOW, RISING);
}
I! the loop routine runs over and over again forever:
void loop() {
COUNT =0; _j/ Reset the counter
interrupts();_/Enables interrupts on the Arduino
delay (1000); Wait 1 second
noInterrupts();l/Disable the interrupts on the Arduino
Start the math
FLOW_RATE = (COUNT * 2.25); __ [Take counted pulses in the last second and multiply by 2.25mL.
FLOW_RATE = FLOW RATE *60; —_/Convert seconds to minutes, giving you mL / Minute
FLOW_RATE = FLOW_RATE/1000; {Convert mL to Liters, giving you Liters / Minute
[Link](FLOW_RATE); _/Print the variable flowRate to Serial
}
void FLOW()
COUNT#+; I/Every time this function is called, increment "count" by 1
}
Pages 4 of 5 pages (©2018 by e-Gizmo Mechatronix Central Water Flow MeterSerial Monitor (Sse-Gzmo
@ com - ox
send
0.00
3.38
21.46
24.84
17.01
11.61
omNMACR V) [s500baud
Pages 5 of 5 pages (©2018 by e-Gizmo Mechatronix Central Water Fiow Meter