Electrical:
- Working Voltage: 5 to 18VDC
- Max current draw: 15mA @ 5V
- Working Flow Rate: 1 to 30 Liters/Minute
- Working Temperature range: -25 to 80°C
- Working Humidity Range: 35%-80% RH
- 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
Here is my code:
// count how many pulses!
public static UInt16 pulses;
private static void input_OnInterrupt(uint data1, uint data2, DateTime time)
{
//pulse counter//pulse counter
pulses++;
}
private static void MonitorFlow()
{
InterruptPort flowInput = new InterruptPort(Pins.GPIO_PIN_D5, true, Port.ResistorMode.PullUp,
Port.InterruptMode.InterruptEdgeHigh);
flowInput.OnInterrupt += new NativeEventHandler(input_OnInterrupt);
while (true)
{
pulses = 0;
flowInput.EnableInterrupt();
Thread.Sleep(1000);
flowInput.DisableInterrupt();
flowrate = pulses;
flowrate /= 7.5;
flowrate /= 60;
if (flowrate > 0)
{
LCD.Print(Lcd.Position.ROW_4, Lcd.Position.COLUMN_1, Lcd.FillRow(":Flow Rate:" + flowrate.ToString("f2") + "LPM"));
Debug.Print("Pulses: " + pulses + ", Flow Rate: " + flowrate.ToString("f2") + "LPM");
}
}
}
So what do you think is happening? Too much resistence on my sensor extension? Measures .07 ohms on one cable and .03 ohms on a large wire cable.