RPi 20 - YF-S201 Hall Effect Water Flow Meter / Sensor
An RPi experiment using the YF-S201 flow meter. Good demo of measuring and controlling water flows - home watering use, irrigation water use tracking, livestock water tanks, etc.
Line 37: print('Time (min & clock) ', minutes, '\t', time.asctime(time.localtime(time.time())),'\n')
NOTE: The pi is not a real time computer (for example like the Arduino) and its ability to react to polling or interrupts is dependent on other code being executed. As a result, at higher input rates, the pi will begin to miss inputs and the results will be less and less accurate. You can put in factors based on assumptions (as in this example) to get reasonable approximations.
The sensor is inline and uses an impeller with an embedded magnet. The magnet triggers a Hall effect switch sending a pulse at each revolution.
There are 3 wires, red (power, 2-24 volts, but I've gotten it to work at 3 volts), black (ground) and yellow (Hall effect output).
From the spec sheet:
16 Hz = 2 L/min = 120 L/hr
32.5 Hz = 4 L/min = 240 L/hr
49.3 Hz = 6 L/min = 360 L/hr
65.5 Hz = 8 L/min = 480 L/hr
82 Hz = 10 L/min = 600 L/hr
etc. Max 30 L/min
Frequency (Hz) = 7.5 * Flow rate (L/min)
Pulses per Liter: 450
Model: YF-S201
Sensor Type: Hall effect
Working Voltage: 3.5 to 24V DC (min tested voltage 3.3V)
Max current draw: 15mA @ 5volts
Output Type: 5volt TTL
Working Flow Rate: 1 to 30 Liters/Minute
Accuracy: ±10%
Maximum water pressure: 2.0 MPa
Operating Temperature: ≤80℃
Liquid Temperature: ≤120℃
Output duty cycle: 50% ±10%
Output rise time: 0.04us
Output fall time: 0.18us
Min Durability: 300,000 cycles
Cable length: 15cm
1/2" nominal pipe connections, 0.78" outer diameter, 1/2" of thread
Size: 2.5" x 1.4" x 1.4"
Notes: I found that when the impeller stops with the Hall effect switch triggered, it keeps sending pules to the RPi. Seems to be a Pi triggering issue per the internet.
YOU NEED A VOLTAGE DIVIDER WHEN OPERATING ABOVE 3.3 VOLTS!!!
MATERIALS
- Raspberry Pi (and Pi power supply)
- Breadboard
- YF-S201 Water meter / sensor
- Jumpers
WARNING: Warning: mis-wiring or mis-programming your Pi or miswiring of accessories can ruin the Pi and accessories. Data is from the manufacturer. Information/drawings offered as is. Use at your own risk. If you don't know, learn first.
Видео RPi 20 - YF-S201 Hall Effect Water Flow Meter / Sensor канала tsbrownie
Line 37: print('Time (min & clock) ', minutes, '\t', time.asctime(time.localtime(time.time())),'\n')
NOTE: The pi is not a real time computer (for example like the Arduino) and its ability to react to polling or interrupts is dependent on other code being executed. As a result, at higher input rates, the pi will begin to miss inputs and the results will be less and less accurate. You can put in factors based on assumptions (as in this example) to get reasonable approximations.
The sensor is inline and uses an impeller with an embedded magnet. The magnet triggers a Hall effect switch sending a pulse at each revolution.
There are 3 wires, red (power, 2-24 volts, but I've gotten it to work at 3 volts), black (ground) and yellow (Hall effect output).
From the spec sheet:
16 Hz = 2 L/min = 120 L/hr
32.5 Hz = 4 L/min = 240 L/hr
49.3 Hz = 6 L/min = 360 L/hr
65.5 Hz = 8 L/min = 480 L/hr
82 Hz = 10 L/min = 600 L/hr
etc. Max 30 L/min
Frequency (Hz) = 7.5 * Flow rate (L/min)
Pulses per Liter: 450
Model: YF-S201
Sensor Type: Hall effect
Working Voltage: 3.5 to 24V DC (min tested voltage 3.3V)
Max current draw: 15mA @ 5volts
Output Type: 5volt TTL
Working Flow Rate: 1 to 30 Liters/Minute
Accuracy: ±10%
Maximum water pressure: 2.0 MPa
Operating Temperature: ≤80℃
Liquid Temperature: ≤120℃
Output duty cycle: 50% ±10%
Output rise time: 0.04us
Output fall time: 0.18us
Min Durability: 300,000 cycles
Cable length: 15cm
1/2" nominal pipe connections, 0.78" outer diameter, 1/2" of thread
Size: 2.5" x 1.4" x 1.4"
Notes: I found that when the impeller stops with the Hall effect switch triggered, it keeps sending pules to the RPi. Seems to be a Pi triggering issue per the internet.
YOU NEED A VOLTAGE DIVIDER WHEN OPERATING ABOVE 3.3 VOLTS!!!
MATERIALS
- Raspberry Pi (and Pi power supply)
- Breadboard
- YF-S201 Water meter / sensor
- Jumpers
WARNING: Warning: mis-wiring or mis-programming your Pi or miswiring of accessories can ruin the Pi and accessories. Data is from the manufacturer. Information/drawings offered as is. Use at your own risk. If you don't know, learn first.
Видео RPi 20 - YF-S201 Hall Effect Water Flow Meter / Sensor канала tsbrownie
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![water flow sensor/volume measurement/working principle](https://i.ytimg.com/vi/2OgMWbRlEoM/default.jpg)
![Using the ACS712 Hall Effect Current Sensor Module (part 2)](https://i.ytimg.com/vi/lisprJs5sNU/default.jpg)
![#369 Definitive Guide to Attaching Sensors to the Raspberry Pi (Tutorial)](https://i.ytimg.com/vi/gnE4v-PcYKQ/default.jpg)
![IoT Water Flow Meter using NodeMCU ESP8266 & Water Flow Sensor | Measure Water Flow Rate & Volume](https://i.ytimg.com/vi/SBWgySTPhNM/default.jpg)
![Hall Effect Sensors](https://i.ytimg.com/vi/jdgU49ne4gA/default.jpg)
![](https://i.ytimg.com/vi/Qdn6C2UTk9w/default.jpg)
![Multiplexing Arduino Inputs: 16 Analogue Sensors on 2 Analogue Pins!](https://i.ytimg.com/vi/lAy5x5ZZtNA/default.jpg)
![Warning: Power Cables Are NOT The Same! (4K)](https://i.ytimg.com/vi/H1Ujcop0y6M/default.jpg)
![Water Flow sensor and Raspberry pi - Testing & Setting](https://i.ytimg.com/vi/knE6Wkhxe4g/default.jpg)
![DIY Automatic Hydroponic Nutrient Doser #2](https://i.ytimg.com/vi/qz0-sktose0/default.jpg)
![How Do Hall Effect Sensors Work? - The Learning Circuit](https://i.ytimg.com/vi/dgyB2-1VDI0/default.jpg)
![Send Data to Firebase Using Raspberry Pi](https://i.ytimg.com/vi/_cdQ0BsMt-Y/default.jpg)
![[아두이노강의] 포로리야 공대가자 #31 홀센서](https://i.ytimg.com/vi/y0rLdFNG5hI/default.jpg)
![Raspberry Pi - How to Begin Coding Python on Raspberry Pi](https://i.ytimg.com/vi/xTIBG_KD8Bk/default.jpg)
![🤩 PYTHON ARDUINO SERIAL - pyserial - Enviar datos de ARDUINO a PYTHON 🐍 - Tutorial Python #13 👌.](https://i.ytimg.com/vi/RRpEXRyjYUs/default.jpg)
![Clip 5 - Nut welding](https://i.ytimg.com/vi/owxwlCzs5Kk/default.jpg)
![Water Flow Rate & Volume Measurement using Water Flow Sensor & Arduino "Fluid Flow Rate Sensor"](https://i.ytimg.com/vi/uOJ31aYV_TM/default.jpg)
![LIQUID Water flow sensor 1-30L /min Ide Kreatif Elektronik DIY](https://i.ytimg.com/vi/s7uN2dLplz8/default.jpg)
![DIY Water, Juice & Milk Filling Machine using Arduino & Flow sensor -100ml to 9999ml](https://i.ytimg.com/vi/OEDG2ZaAdgk/default.jpg)
![µC-7 YF-S201 (Caudalímetro) en Micropython](https://i.ytimg.com/vi/Pombs5uqo2A/default.jpg)