سنسور جریان آب :
سنسورجریان آب از بدنه تمام پلاستیکی ساخته شده است.از اجزای داخلی این سنسور میتوان به رتور آب و سنسور اثر هال اشاره کرد.در این سنسور با عبور جریان آب از رتور ،رتور شروع به چرخش میکند.با تغییر شدت جریان آب ، سرعت چرخش رتور نیز تغییر میکند .سنسور اثر هال نیز متناسب با تغییر سرعت رتور خروجی پالس ایجاد میکند.
خصوصیات سنسور:
• ماده سازنده:PVC
• ماکزیمم جریان قابل اندازه گیری: 15mA
• ولتاژ کاری: 5~18V
• فشار قابل تحمل :کمتر از 1.75Mpa
• دمای نگه داری محیط: -25~+80℃
• رطوبت مجاز نگه داری: 25%~95%RH
• جریان قابل اندازه گیری: 1 - 30 Ltr / menit ±3%
• قطرمقطع: 0.5 inch (1.25 cm)
• duty cycle سیگنال خروجی: 50%±10%
• فرمول محاسبه فرکانس: F = 7.5 * Q (L / Min)
از جمله مصارف این سنسور میتوان به آب گرمکن وسیستم کنترل آب اشاره نمود.
مثال:
نمونه کد آردوینو برای راه اندازی سنسور جریان آب
مرجع:کد: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 / 5.5); //(Pulse frequency x 60) / 5.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 }
Vcc2GND.com | Toko Komponen Elektronika: Jual Komponen Elektro, Jual IC, Modul Arduino. Harga Murah!: YF-S201 Water Flow Sensor
جهت سفارش این کالا به این بخش مراجعه فرمایید.


LinkBack URL
About LinkBacks



پاسخ با نقل قول