Arduino YF-S201 Flow Sensor calibration and usage

  Рет қаралды 63,220

Tonguç Endem (Mr ToR)

Tonguç Endem (Mr ToR)

Күн бұрын

Пікірлер
@RSmarza
@RSmarza 3 жыл бұрын
Hey! This is the best flow sensor video in the internet! Thanks a lot man. 🙏
@Mr_ToR
@Mr_ToR 3 жыл бұрын
Thanks a lot. I'm planning on making another one with more info.
@RSmarza
@RSmarza 3 жыл бұрын
@@Mr_ToR That would be great 👍
@imransharif9292
@imransharif9292 Жыл бұрын
Superb Video for newer and lerner
@utoopuser
@utoopuser 6 жыл бұрын
Just a thought: If a certain amount of liquid has been fed through the meter, the "propeller" in the meter will keep going for a while without liquid, due to inertia resulting in false pulses. An up-stream flow switch in series with signal wire will avoid this.
@Mr_ToR
@Mr_ToR 6 жыл бұрын
utoopuser, in "normal" use you would not have a case of "without liquid". Your pump for example would experience priming problems etc.. still yet the remaining wettness inside would avoid it to keep going. What you're suggesting is not applicable for taking instantaneous flow measurements. If you were measuring, lets say 20 liters, inertia would still not cause any problems at all too. Other things might imply but not inertia. How and why do you think you will have air in your water line?
@utoopuser
@utoopuser 6 жыл бұрын
I was thinking of your calibration methodology, not real time. I missed the part where you were replenishing your feeder bucket.
@utoopuser
@utoopuser 6 жыл бұрын
thanks for your prompt reply. I was just watching your calibration methodology, but I missed the part where you replenished the supply bucket, hence the air question.
@arasanmark818
@arasanmark818 5 жыл бұрын
good vid bro thanks for all the help
@ronaldmhlanga3660
@ronaldmhlanga3660 7 жыл бұрын
instead of quantity can i use it for getting measurements for fluctuations in flow rate?
@8m405
@8m405 Жыл бұрын
Can you share same for Nodemcu ESP8226 v3? I am having issues while calibrating
@amineha8276
@amineha8276 2 жыл бұрын
is there any chance you can kindly share the 3rd example for the two flow meters at the same time ?
@NilsAschlak
@NilsAschlak 7 жыл бұрын
Great video.
@aunreza
@aunreza 5 жыл бұрын
0:32 if this sensor works by just blowing air inside then it will detect water flow when there's no water in the line. I want to use this for water pump automation to work only when there is water coming in from the line. When the pump does run dry, im sure the air flow will fool the sensor and the pump will keep running. I need your thoughts on this.
@Mr_ToR
@Mr_ToR 5 жыл бұрын
Aun Raza You might not have that problem. I would want to see if your pump might be able to move the sensor. I was blowing very hard and the air flow needed to move the sensor I believe is much higher than the water flow it normally detects. In the worst case you might need to put something else in line next to the sensor in your case to detect when there is liquid in line because ultimately this is a flow meter not a liquid sensor.
@aunreza
@aunreza 5 жыл бұрын
@@Mr_ToR trying to detect liquid is exactly what i want to do but I don't know what i should use. I'm not sure if i can get a flow switch that small.
@filchaneco506
@filchaneco506 3 жыл бұрын
sir what type or name of tube you used to connect with flow sensor? thanks
@muhammadzar3002
@muhammadzar3002 5 жыл бұрын
Hi, im doing the similar project. My problem is the sensor doesn't show any reading at all the water flow slow/small. i've been looking on the internet, all the suggestions lead to change sensor model. If i need to change the model which spec should i look into? Is the impeller size in the sensor effect the reading? my current water flow sensor model is SEN-HZ321WA.
@Mr_ToR
@Mr_ToR 5 жыл бұрын
Hi, That's a very good point. You should first consider your project to determine your water flow sensor specification requirements. You need to consider things like water pressure, approximate flow and pipe diameter. If you will only have to deal with low flow, you should probably use a smaller diameter sensor and pipe anyways. However, the rest of the code, procedure would be the same. Your only problem seems to be an inappropriate sensor. You probably need something like the following: www.aliexpress.com/wholesale?SearchText=HZ83C+flow+sensor
@kubilaysener9147
@kubilaysener9147 4 жыл бұрын
tonguç hocam selamlar YF-S201 sensörlü bir uygulama yapıyorum yardımınıza ihtiyacım var sıvıyı pompa ile bastırıyorum pompa diyaframlı tip hava basıncı ile calısıyor . pompa akısı degiştiginde akıs sensörü dogru saymıyor.ne yapabilirim
@mangatram3436
@mangatram3436 4 жыл бұрын
how can I get the Volume of water flowed by sensor? but i want total only after the water got flowed through the sensor..kindly help me
@DA__AHMADGIBRANRAVINDATA
@DA__AHMADGIBRANRAVINDATA Жыл бұрын
hello sir, i have some questions, how u get the calibration factor in 6.9?, please answer this question, thanks
@samirramadhan17
@samirramadhan17 Жыл бұрын
Halo, do already know to get the calibration factor? Please let me know how to
@michaels8297
@michaels8297 4 жыл бұрын
thanks for the video! Whenever I write a 1 to an Arduino from a raspberry pi, it sends me data over serial. If I now add an interrupt in the code for this flow meter...will this effect my attempts to get data from arduino when I write to it to get data to the pi?
@stellarlivingstoned
@stellarlivingstoned 3 жыл бұрын
You know that flow sensor attaches to a device that digitally shows the flow in GPH/LPH, right?
@karunakaranrajakannu3346
@karunakaranrajakannu3346 2 жыл бұрын
Good afternoon Sir I have a only one roof tank in that how to connect three floors Because I given for rental and also I want to check monthly so how much people are using water I just want to check in database in little. And also Example electricity bill will come some amount and also water what im going to do I will total those bill and I will split to all the floors according to flow sensor so kindly help me How to do sir
@harshit4190
@harshit4190 4 жыл бұрын
Hi, actually I wanted to make a water billing system using rfid and water flow sensor.. what I need to do is as soon as I pour water through sensor the quantity flown is recorded and according to preset rates of the liquid user is asked for swiping the card so the required amount get deducted.. The main problem iam facing is handling interrupts of water flow sensor..How do I avoid continuous printing of water flown on serial monitor and coordinate my water flow loop with rfid loop
@Mr_ToR
@Mr_ToR 4 жыл бұрын
harshit rathod Your project actually is very similar to temperature loggig with a temperature sensor. since I understand from your comment that you need time information as well as the logged data, you need to consider the flow data or otherwise volume data being as always available similar to a temperature sensor. You just need to determine how often you need to log your data. if you try to determine for example each session of handwashing you might get faulty wash session data if someone turns on and off the water couple times for each hand wash so as a solution ultimately you simply need a log of water usage overtime. just determine how often you want cumulative volume to be recorded similar to electricity billing. add the rfid/used data as an additioanl field to your logs. i alwyas use a cheapo esp8266+wifi network for logging data to thingspeak.com. if you dont have wifi than sd card. usage is same. once you have data logged you need to make another program/web app/system etc to view your data. i hope this was helpful.
@MiguelPradaD91
@MiguelPradaD91 7 жыл бұрын
I have a similar issue with YF-S401 flow sensor, he is not showing smooth changes of voltages when I blow slow or fast
@Mr_ToR
@Mr_ToR 7 жыл бұрын
I bought 6 of them and all have different calibration values.
@patelvishal844
@patelvishal844 7 жыл бұрын
sir we have new designee flow sensor requirement than mail me vishal@broiltech.com
@egemens
@egemens 6 жыл бұрын
Does it might have an effect that you connected the sensors in series? There is a work done against the propellers inside, and volume of the sensor cavity might alter the pressure? What do you think? My mind drifted to maybe be to connect them in parallel and use gravity as a constant force. Eline saglik :)
@Mr_ToR
@Mr_ToR 5 жыл бұрын
The biggest issue in my setup actually was the fluctuation of the mains voltage. So the biggest improvement to this setup would actually be done by adding a mains voltage regulator which would eliminate changes in pump performance and flow due to voltage fluctuation. Both the flow calculation and measurement had the same amount of sensors which has a zero effect in total. Similarly the 'Hydraulic Head' and the gravity effect was the same in both scenarios which also resulted in zero effect in total. If you have more than one sensor and want to measure all of them together, you should never connect them in parallel since you would be dividing the amount of water flowing by an unknown ratio and you can never be sure about how much flow you'll have on each sensor. In an ideal and unrealistic case you should have the flow divided by the number of parallel connections but that would never be the case in a real world case and it would only complicate your setup for no good reason. Teşekkürler ;-)
@nahuelsanchez4081
@nahuelsanchez4081 3 жыл бұрын
Hi. I found your test from one sensor im github but i cant get the final code from two sensors. Can you please share with us that code? Thanks
@siqueira-ene
@siqueira-ene 3 жыл бұрын
did you find code for two sensors? i need too!!
@kennethOdoh1
@kennethOdoh1 11 ай бұрын
Same here
@alexandrevilarinho8980
@alexandrevilarinho8980 7 жыл бұрын
Hi, very nice video, is it possible to determine the accuracy of this solution? if it is put beside a water meter, will they show the same water consumption?
@Mr_ToR
@Mr_ToR 7 жыл бұрын
Thnx a lot. The specification for this sensor says: error:±5%. However, I think that error is the variance from sensor to sensor. I'm not sure if the values I obtained could be obtained by a professional calibration service. However, I think to get calibration values with higher sensitivity, a voltage regulator should be used for the water flow pump to avoid voltage fluctuations negatively affecting flow stability. Also, I don't know if the calibration values of these sensors drift in time or they stay same and their variance from one another is only due to fabrication. I will check again maybe in another 6 or 8 months and see if these calibration values change in time. They are $3~$4 and I think they are great for that price. I use them to monitor performance and determine maintenance time for my aquarium filters.
@Mr_ToR
@Mr_ToR 7 жыл бұрын
Also, in my video at 10:10 I was able to adjust and set the calibration value for the flow from 4.46lpm to 4.49lpm which equates to a stable adjustment with 1% sensitivity. I think that's awesome for a $4 flow sensor ;-)
@alexandrevilarinho8980
@alexandrevilarinho8980 7 жыл бұрын
Thanks for the reply... I hope I can use this sensor in my home to help me find any abnormal water usage... :-)
@Mr_ToR
@Mr_ToR 7 жыл бұрын
no problem. watch out for the water pressure since the sensor is rated 2Mpa = 20 Bar which should be ok for most cases anyways.
@wasifahmed1284
@wasifahmed1284 7 жыл бұрын
every time it gives different reading for example if i displaced 500ml(measured 500ml),it gives 0.42 L on second test it gives 0.63 L,on third test it gives 0.52 L for same amount of liquid of 500ml.. is there any way to resolve this issue??
@Mr_ToR
@Mr_ToR 7 жыл бұрын
Wasif Ahmed, some fluctuation is expected due to noise from sensor components material and design quality however, another reason could be due to mains voltage fluctuation depending on your location and quality of electrical service provided. Try using a voltage regulator on your pump while determining the calibration coefficient for your specific sensor. Also watch the source water level, if level changes that will affect the flow rate due to head loss.
@Mr_ToR
@Mr_ToR 6 жыл бұрын
if you want to use it for the total water amount, I think it's a much better approach to simply count the total pulses rather than dealing with averages and flow to total conversion etc.
@ginanjarbudiarsyah
@ginanjarbudiarsyah 3 жыл бұрын
good project
@m7_rd574
@m7_rd574 7 жыл бұрын
how to calculate the amount of water from the flowmeter reading? thanks
@Mr_ToR
@Mr_ToR 6 жыл бұрын
mohammed alsheikh, let's consider you're calculating flow every 1 second, then the amount of water passed is equal to the flow rate (L/sec) since second is 1. So just add that amount to a variable every second and you'll have total water amount.
@jamesmaranga3972
@jamesmaranga3972 6 жыл бұрын
Hello Endem, am having a problem programming two flow rate sensors. Please share your test3 code. Thank you
@fcfrofficial6171
@fcfrofficial6171 6 жыл бұрын
lol
@ivanjanka2910
@ivanjanka2910 6 жыл бұрын
how to change the pins? byte sensorInterrupt = 0; // 0 = digital pin 2? if i want it to be on pin 7 wut is sensorinterrupt?
@Mr_ToR
@Mr_ToR 6 жыл бұрын
ivan janka, www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/
@ivanjanka2910
@ivanjanka2910 6 жыл бұрын
Tonguç Endem thanks!
@youpattube1
@youpattube1 3 жыл бұрын
Interesting. Thanks.
@irvingmetelin7132
@irvingmetelin7132 6 жыл бұрын
Thanks you!!!
@ivanjanka2910
@ivanjanka2910 6 жыл бұрын
what is the unit of the output? ml/h? l/h? ml/s?
@Mr_ToR
@Mr_ToR 6 жыл бұрын
ivan janka, i think this was clearly explained in the video. The sensor outputs pulses relative to the flow. You can use whatever unit you want. In my example i used liters per minute but you can use gallons per hour if you like.
@benjiepagolong9337
@benjiepagolong9337 7 жыл бұрын
sir how to calculate the calculation factor.please we badly need it
@Mr_ToR
@Mr_ToR 7 жыл бұрын
benjie pagolong, which part of the video is unclear? If you have problem doing this, use the supplied value from manufacturer spec. sheet
@benjiepagolong9337
@benjiepagolong9337 7 жыл бұрын
im sorry.in the calibration part sir.
@fariedonshaheed2823
@fariedonshaheed2823 4 жыл бұрын
could i have the code for the two sensors?
@nahuelsanchez4081
@nahuelsanchez4081 3 жыл бұрын
Im searching the same
@Virtualchronos
@Virtualchronos 3 жыл бұрын
You shouldn't use millis function. the more time pass, the more the calculation duration becomes high and the calcul become bad
@allendavecatucag6931
@allendavecatucag6931 6 жыл бұрын
hi sir do have like this project in raspberry pi 3?
@Mr_ToR
@Mr_ToR 5 жыл бұрын
There shouldn't be any reason why you shouldn't be able to do the same in a raspberry pi. However I consider raspberry pi to be a lot more expansive and unnecessarily more complex than using a simple micro-controller. You have to deal with an operating system, possible file corruption due to power loss, boot issues, security etc. I would consider a raspberry pi a bit of an overkill for this application however it should still work. I also wouldn't really expect to get great performance with using an interpreted language/environment such as PHP which sits on top of an OS for interrupt driven time sensitive measurements which is done very easily with a micro-controller as in an Arduino since the code is executed and interrupts are measured very close to the GPIOs. There is nothing in between your code and the chip pins. Your code only has some performance overhead caused by the C compiler. The only way to make this measurement any better on an Arduino would be to write the code in machine language which would actually be very cool in my opinion since the code would be run very efficiently without any overhead but definitely another overkill too :-)
@khaminh597
@khaminh597 5 жыл бұрын
thanks you.!!! ^^
@pr200sd
@pr200sd 4 жыл бұрын
Как у Вас со стабильностью показаний, плавают? Я заметил что в зависимости от давления, значение имп/литр изменяется. Делал так kzbin.info/www/bejne/sJe2Z4CugNWWqpo
@abirzgalmi4895
@abirzgalmi4895 Жыл бұрын
Hi. I found your test from one sensor im github but i cant get the final code from two sensors. Can you please share with us that code? Thanks
Water Flow sensor and Raspberry pi - Testing & Setting
18:13
hydrosys4 raspberry
Рет қаралды 22 М.
Arduino Water Meter, Simple (4K)
12:50
tsbrownie
Рет қаралды 10 М.
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
How to measure Liquid Volume - Flow rate Sensor - Arduino
2:00
Maker Tutor
Рет қаралды 28 М.
Pressure Sensor - Arduino
17:52
Ovens Garage
Рет қаралды 205 М.
Water flow sensor raspberry pi node red LCD | Flow meter YF-S201 Node red
8:27
MYSON ACADEMY & TECHNOLOGY
Рет қаралды 9 М.
Arduino Flow Rate Sensor Working
1:21
Maker Pro
Рет қаралды 164 М.
The flowmeter of the liquid.
7:09
Китайские ГАДЖЕТЫ
Рет қаралды 51 М.
MEASURING WATER FLOW WITH ARDUINO #arduino #esp32 #waterpump
19:28
Mikael Abehsera
Рет қаралды 15 М.