Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4962

Automation, sensing and robotics • Re: Flow Meter Not Reading

$
0
0
Presumably your flow sensors are connected to different pins? They must be.

Your code looks as if it makes no effort to handle more than one sensor.

I can only see one interrupt/event handler - you need one per input pin (or a common handler which can work out which pin has just been triggered).

Then you probably want separate accumulators for each sensor.

Statistics: Posted by stevend — Sun Jun 16, 2024 8:27 am



Viewing all articles
Browse latest Browse all 4962

Trending Articles