Hi,
This is similar to my original version.
I changed it because after checking all the signal conditioning I had the same problem and ran out of ideas (count reading too high and variable). On initial tests the new version was OK but it is not consistent and much slower to update.
When using only Counter, Analogue Inputs and Digital IO it seems better than when using all plus Analogue Output as well.
I have seen items relating to synchronising pads is this an issue?
Thanks