ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า
YF-S201 Hall Effect Water Flow Meter Sensor วัดอัตราการไหลของน้ำ ขนาดท่อ 1/2”


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.








ภาพประกอบนี้จะช่วยให้เห็นวิธีการทำงานรายละเอียดของเซ็นเซอร์ตามการไหลของน้ำ Hell Effect sonsor circuit จะติดอยู่กับผนังของท่อพลาสติกปิด เมื่อน้ำไหลผ่านท่อก็จะทำให้ล้อกังหันหมุน ล้อกังหันจะมี Magnet ติดไว้และด้วยเหตุนี้ฟลักซ์แม่เหล็ก ก็จะถูกตรวจจับโดย Hell Effect sonsor circuit อัตราการเกิดพลังงานขึ้นอยู่กับความเร็วของการไหลของน้ำ โดยเอาท์พุทนี้สามารถคำนวณปริมาณน้ำได้





วงจรทดสอบ:



กำหนดอัตราการไหลของของเหลว Q = VxA 
Q อัตราการไหลรวมของน้ำผ่านท่อ
V คือ ความเร็วเฉลี่ยของการไหล 
A เป็นพื้นที่หน้าตัดของท่อ


  • Pulse frequency (Hz) = 7.5Q, Q is flow rate in Litres/minute
  • Flow Rate (Litres/hour) = (Pulse frequency x 60 min) / 7.5Q

In other words:

  • Sensor Frequency (Hz) = 7.5 * Q (Liters/min)
  • Litres = Q * time elapsed (seconds) / 60 (seconds/minute)
  • Litres = (Frequency (Pulses/second) / 7.5) * time elapsed (seconds) / 60
  • Litres = Pulses / (7.5 * 60)


code :

/*
YF‐ S201 Water Flow Sensor
Water Flow Sensor output processed to read in litres/hour
Adaptation Courtesy: www.hobbytronics.co.uk
*/
volatile int flow_frequency; // Measures flow sensor pulses
unsigned int l_hour; // Calculated litres/hour
unsigned char flowsensor = 2; // Sensor Input
unsigned long currentTime;
unsigned long cloopTime;
 void flow () // Interrupt function
 {
flow_frequency++;
 }
void setup()
{
pinMode(flowsensor, INPUT);
digitalWrite(flowsensor, HIGH); // Optional Internal Pull-Up
 Serial.begin(9600);
attachInterrupt(0, flow, RISING); // Setup Interrupt
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. l_hour = (flow_frequency * 60 / 7.5); // (Pulse frequency x 60 min) / 7.5Q = flowrate in L/hour flow_frequency = 0; // Reset Counter Serial.print(l_hour, DEC); // Print litres/hour Serial.println(" L/hour"); } }

เงื่อนไขอื่นๆ
Tags

วิธีการชำระเงิน

บมจ. ธนาคารกรุงไทย สาขาโรงไฟฟ้าบางปะกง ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
บมจ. ธนาคารกรุงไทย สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
พร้อมเพย์ สาขา- -
Scan this!
สนธยา ใจผ่อง
063-xxxxxx-8
Accept All Banks | รับเงินได้จากทุกธนาคาร
พูดคุย-สอบถาม