G5/4 英寸水流传感器
水流传感器由塑料阀体、水转子和霍尔效应传感器组成。当水流过转子时,转子旋转。其速度随不同的流量而变化。霍尔效应传感器输出相应的脉冲信号。
规格参数
最小工作电压 | DC 4.5V |
最大工作电流 | 15mA(DC 5V) |
工作电压 | 5V~24V |
流量范围 | 1~120L/min |
负载能力 | ≤10mA(DC 5V) |
工作温度 | ≤80℃ |
液体温度 | ≤120℃ |
工作湿度 | 35%~90%RH |
水压 | ≤2.0MPa |
存储温度 | -25℃~+80℃ |
存储湿度 | 25%~95%RH |
机械尺寸
传感器组件
编号 | 名称 | 数量 | 材料 | 备注 |
---|---|---|---|---|
1 | 阀体 | 1 | PA66+33%玻璃纤维 | |
2 | 不锈钢珠 | 1 | 不锈钢 SUS304 | |
3 | 轴 | 1 | 不锈钢 SUS304 | |
4 | 叶轮 | 1 | POM | |
5 | 环形磁铁 | 1 | 铁氧体 | |
6 | 中间环 | 1 | PA66+33%玻璃纤维 | |
7 | O型密封圈 | 1 | 橡胶 | |
8 | 电子密封圈 | 1 | 橡胶 | |
9 | 盖子 | 1 | PA66+33%玻璃纤维 | |
10 | 螺丝 | 8 | 不锈钢 SUS304 | |
11 | 电缆 | 1 | 1007 24AWG |
使用示例
注意:此示例摘自论坛,由 Charles Gantt 完成。感谢他的贡献。让我们看看它是如何工作的。
使用水流传感器读取水流量
这是我一直在进行的项目的一部分,我想在这里分享它,因为已经有一些关于如何使用 Seeed Studio 商店中的水流传感器读取每小时升数流量的讨论。它使用一个简单的旋转轮来脉冲霍尔效应传感器。通过读取这些脉冲并实施一些数学计算,我们可以读取液体的流量,精度在 3% 以内。螺纹是简单的 G3/4,因此找到带刺端头不会很困难。
硬件安装
您需要 Seeeduino / Arduino、水流传感器、10K 电阻、面包板和一些跳线。
水流传感器的接线非常简单。有 3 根线:黑色、红色和黄色。 黑色连接到 Seeeduino 的接地引脚 红色连接到 Seeeduino 的 5v 引脚 黄色线需要连接到 10k 上拉电阻,然后连接到 Seeeduino 的引脚 2。
这是我制作的 fritzing 图,向您展示如何连接所有线路。
连接完成后,您需要将以下代码上传到您的 Seeeduino。上传完成并且有一些液体流过水流传感器后,您可以打开串行监视器,它将显示流量,每秒刷新一次。
编程
// reading liquid flow rate using Seeeduino and Water Flow Sensor from Seeedstudio.com
// Code adapted by Charles Gantt from PC Fan RPM code written by Crenn @thebestcasescenario.com
// http:/themakersworkbench.com http://thebestcasescenario.com https://www.seeedstudio.com
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
}
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
}
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 / 4.5); // (Pulse frequency x 60) / 4.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
}
您可以参考我们的论坛了解更多关于使用水流传感器读取水流量的详细信息。
接线图
连接使用的螺纹外径为1.4mm。
输出表
水平测试中的脉冲频率 (Hz) = 4.5Q,Q为流量,单位L/min。(结果在+/- 3%范围内)
输出脉冲高电平 | 信号电压 >4.5 V(输入DC 5 V) |
输出脉冲低电平 | 信号电压 <0.5V(输入DC 5V) |
精度 | 3%(流量从1L/min到10L/min) |
输出信号占空比 | 40%~60% |
常见问题
水流传感器是由什么材料制成的?
纤维尼龙,避免强酸和强碱。
水流传感器对饮用水安全吗?
是的,它已经用于饮水机上。
资源
技术支持与产品讨论
感谢您选择我们的产品!我们在这里为您提供不同的支持,以确保您使用我们产品的体验尽可能顺畅。我们提供多种沟通渠道,以满足不同的偏好和需求。