Posted 29 July 2012 - 04:32 PM
After slapping myself up side the head for forgetting to tie the U3's gnd in I thought I would be good. Well not so.
I scoped FIO4 pin with my script cycling through the flow sensors. Using FIO4 as a counter and I extended the capture time for each signal. Input signals are as shown before with Hz readings of 16, 8, 15, 18 and 18. Counts captured are 90, 30, 47, 45 and 21. For some reason the last one is pretty close to the scope Hz readings - can't figure out why.
Interesting to note that when I use my Fluke meter and measure the Hz of the signals I get the same value as the U3's count value - can't explain that either.
Since I'm only really concerned if I loose flow (0 counts) - tested this and it works - 0 counts flashes a red LED - I might just have to live with it. Problem is using counters in future.
Still scratching my head on this one.