deikoalita:
Thanks Mark
so you mind the preferred option would be to use digital inputs using a low -pass-filter and schmitt trigger.
I never used low- pass-filter ...can you please explain shortly how to connect it?
the schmitt trigger code I'll try to find it searching i nthe forum, but if you also can help me...Thanks.
A VERY SIMPLE low pass filter is nothing more than a resistor and capacitor:
resistor
input >----////----#-----------> output
|
___ capacitor
|
com >---------------#----------->
The R and C values of course are determined by the frequency you want the filter to work at.
The digital filter works much better and is simpler (needs no parts!) ![]()