รหัสสินค้า | K05001 |
หมวดหมู่ | Water Flow Sensor (วัดอัตราการไหลของน้ำ) / ลูกลอย |
ราคา | 100.00 บาท |
ขนาด | 10 |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 20 พ.ค. 2562 |
อัพเดทล่าสุด | 26 ส.ค. 2568 |
ความพึงพอใจ | ยังไม่มีความคิดเห็น |
คงเหลือ | 8 ชิ้น |
จำนวน | ชิ้น |
Sensor ใช้วัดปริมาณการไหลของน้ำ สำหรับ Arduino โดยสามารถวัดปริมาณการไหลของน้ำ ที่ 1-30L/min 2.0Mpa หลักการทำงาน ใน Sensor จะมีใบพัดเมื่อมีน้ำไหลผ่านใบพัดจะหมุ่นพร้อมกับนับรอบของใบพัดส่งสัญญาณ Output ไปยัง Arduino เหมาะกับการนำไปประยุคต์ใช้งานวัดการไหลของน้ำ ความแรงของน้ำ มาตร มิเตอร์น้ำ เป็นต้น
ข้อมูลเพิ่มเติมของ Sensor Water Flow Sensor วัดอัตราการไหลของน้ำ 1-30L/min 2.0Mpa
1 ชุดประกอบด้วย
การต่อใช้งาน
จาก http://forum.arduino.cc/index.php/topic,8548.0.html
Code ตัวอย่าง ของ Water Flow Sensor วัดอัตราการไหลของน้ำ 1-30L/min 2.0Mpa
volatile int NbTopsFan; //measuring the rising edges of the signal
int Calc;
int hallsensor = 2; //The pin location of the sensor
void rpm () //This is the function that the interupt calls
{
NbTopsFan++; //This function measures the rising and falling edge of the
hall effect sensors signal
}
// The setup() method runs once, when the sketch starts
void setup() //
{
pinMode(hallsensor, INPUT); //initializes digital pin 2 as an input
Serial.begin(9600); //This is the setup function where the serial port is
initialised,
attachInterrupt(0, rpm, RISING); //and the interrupt is attached
}
// the loop() method runs over and over again,
// as long as the Arduino has power
void loop ()
{
NbTopsFan = 0; //Set NbTops to 0 ready for calculations
sei(); //Enables interrupts
delay (1000); //Wait 1 second
cli(); //Disable interrupts
Calc = (NbTopsFan * 60 / 7.5); //(Pulse frequency x 60) / 7.5Q, = flow rate
in L/hour
Serial.print (Calc, DEC); //Prints the number calculated above
Serial.print (" L/hour\r\n"); //Prints "L/hour" and returns a new line
}
หน้าที่เข้าชม | 4,510,768 ครั้ง |
ผู้ชมทั้งหมด | 2,466,540 ครั้ง |
ร้านค้าอัพเดท | 6 ก.ย. 2568 |