特價

YF-S201 水流量傳感器 4分G1/2 接口 霍爾流量計

NT$120 NT$100

25 件庫存

描述

YF-S201 水流量傳感器 4分G1/2 接口 霍爾流量計

YF-S201 水流量傳感器用於測量液體通過它的流量。有一個集成的磁性霍爾效應傳感器,每轉一圈輸出一個電脈衝。霍爾效應傳感器與水管密封,使傳感器保持安全和乾燥。傳感器配有三根電線:紅色(5-24VDC電源),黑色(接地)和黃色(霍爾效應脈衝輸出)。通過計算傳感器輸出的脈衝,您可以輕鬆計算水流量。每個脈衝約為2.25毫升。請注意,這不是精密傳感器,脈衝速率確實會有所不同,具體取決於流速,流體壓力和傳感器方向。如果要求精度高於10%,則需要仔細校準。但是,它非常適合基本的測量任務!

包含 Arduino草圖,可用於快速測試傳感器,它將以升/小時計算水的近似流量。脈衝信號是一個簡單的方波,所以使用下面的公式很容易記錄並轉換成升/分鐘。脈衝頻率(Hz)/ 7.5 =流速(L / min)。

YF-S201 水流量傳感器

特徵:

  • 型號:YF-S201
  • 傳感器類型:霍爾效應
  • 工作電壓:5至18V DC(最小測試工作電壓4.5V)
  • 最大電流消耗:15mA @ 5V
  • 輸出類型:5V TTL
  • 工作流量:1至30升/分鐘
  • 工作溫度範圍:-25至+ 80℃
  • 工作濕度範圍:35%-80%RH
  • 準確度:±10%
  • 最大水壓:2.0 MPa
  • 輸出佔空比:50%+ -10%
  • 輸出上升時間:0.04us
  • 輸出下降時間:0.18us
  • 流量脈衝特性:頻率(Hz)= 7.5 *流量(L / min)
  • 每升脈衝:450
  • 耐用性:最少300,000次循環
  • 電纜長度:15厘米
  • 1/2“標稱管道連接,外徑0.78”,螺紋1/2“
  • 尺寸:2.5“x 1.4”x 1.4“

連接細節:

  • 紅線:+ 5V
  • 黑線:GND
  • 黃線:PWM輸出。

Arduino 範例

/*
   YF-S201 Hall Effect Water Flow Meter / Sensor
   http://www.hobbytronics.co.uk/yf-s201-water-flow-meter
   
   Read Water Flow Meter and output reading in litres/hour

*/

volatile int  flow_frequency;  // Measures flow meter pulses
unsigned int  l_hour;          // Calculated litres/hour                      
unsigned char flowmeter = 2;  // Flow Meter Pin number
unsigned long currentTime;
unsigned long cloopTime;

void flow ()                  // Interruot function
{ 
   flow_frequency++;
} 

void setup()
{ 
   pinMode(flowmeter, INPUT);
   Serial.begin(9600); 
   attachInterrupt(0, flow, RISING); // Setup Interrupt 
                                     // see http://arduino.cc/en/Reference/attachInterrupt
   sei();                            // Enable interrupts  
   currentTime = millis();
   cloopTime = currentTime;
} 

void loop ()    
{
   currentTime = millis();
   // Every second, calculate and print litres/hour
   if(currentTime >= (cloopTime + 1000))
   {     
      cloopTime = currentTime;              // Updates cloopTime
      // Pulse frequency (Hz) = 7.5Q, Q is flow rate in L/min. (Results in +/- 3% range)
      l_hour = (flow_frequency * 60 / 7.5); // (Pulse frequency x 60 min) / 7.5Q = flow rate in L/hour 
      flow_frequency = 0;                   // Reset Counter
      Serial.print(l_hour, DEC);            // Print litres/hour
      Serial.println(" L/hour");
   }
}
×
拖拽到此处
图片将通过Fatkun完成下载

Arduino 詳盡教學案例 https://www.instructables.com/id/How-to-Use-Water-Flow-Sensor-Arduino-Tutorial/

YF-S201 Hall Effect Water Flow Meter / Sensor

This sensor sits in line with your water line and contains a pinwheel sensor to measure how much liquid has moved through it. There’s an integrated magnetic hall effect sensor that outputs an electrical pulse with every revolution. The hall effect sensor is sealed from the water pipe and allows the sensor to stay safe and dry.

The sensor comes with three wires: red (5-24VDC power), black (ground) and yellow (Hall effect pulse output). By counting the pulses from the output of the sensor, you can easily calculate water flow. Each pulse is approximately 2.25 milliliters. Note this isn’t a precision sensor, and the pulse rate does vary a bit depending on the flow rate, fluid pressure and sensor orientation. It will need careful calibration if better than 10% precision is required. However, its great for basic measurement tasks!

We have as example Arduino sketch that can be used to quickly test the sensor, it will calculate the approximate flow of water in liters/hour.

The pulse signal is a simple square wave so its quite easy to log and convert into liters per minute using the following formula.

Pulse frequency (Hz) / 7.5 = flow rate in L/min.

Features:

  • Model: YF-S201
  • Sensor Type: Hall effect
  • Working Voltage: 5 to 18V DC (min tested working voltage 4.5V)
  • Max current draw: 15mA @ 5V
  • Output Type: 5V TTL
  • Working Flow Rate: 1 to 30 Liters/Minute
  • Working Temperature range: -25 to +80℃
  • Working Humidity Range: 35%-80% RH
  • Accuracy: ±10%
  • Maximum water pressure: 2.0 MPa
  • Output duty cycle: 50% +-10%
  • Output rise time: 0.04us
  • Output fall time: 0.18us
  • Flow rate pulse characteristics: Frequency (Hz) = 7.5 * Flow rate (L/min)
  • Pulses per Liter: 450
  • Durability: minimum 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″

Connection details:

  • Red wire : +5V
  • Black wire : GND
  • Yellow wire : PWM output.

商品評價

目前沒有評價。

搶先評價 “YF-S201 水流量傳感器 4分G1/2 接口 霍爾流量計”

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *