hafidhh / FlowSensor-Arduino

Water Flow Sensor / Flow Meter Arduino Library, Flow Rate, Volume, YF-S201, YF-B1, OF10ZAT, OF10ZZT, OF05ZAT, OF05ZZT
MIT License
39 stars 13 forks source link

Question : where to find FlowMeter Pulse/Liter #14

Open hallard opened 1 year ago

hallard commented 1 year ago

May be stupid but I would like to know how do you know (or calculate) number of pulse by liter in your sensors definition

// Sensor Type
// -----------------------
// YF
#define YFS201  450
#define YFB1    660
// OF
#define OF10ZAT 400
#define OF10ZZT 400
#define OF05ZAT 2174
#define OF05ZZT 2174
//------------------------

Did you calibrated somewhere or measured it?

Looking at datasheet I can't find anywhere where is the number of pulse by liter. YF-S201 datasheet does not mention anywhere.

Thanks

hafidhh commented 1 day ago

many people use 450 for ysf201 but you can get it from flow and freq table (error +- 10%)

at the 1st row you will get 16hz for 120 L/H to get pulse : 16 x 60 x 60 (freq = pulse/sec) pulse = 57600 pulse for 120 L pulse / liter = 57600 / 120 = 480

at the last row you can see 90.2hz for 720 L/H pulse = 90.2 x 60 x 60 pulse = 324720 pulse for 720 L pulse / liter = 324720 / 720 = 451

or you can get pulse/liter from https://components101.com/sensors/yf-s201-water-flow-measurement-sensor at features you will get pulse/liter = 450 when you click component datasheet in the link above you will see datasheet you mentioned

Thanks