The encoders output a positive voltage between ~1.85 and 5 and I have 4.7K resistors pulled to ground on each channel.
So it's never 0V? @1.85 you're probably sometimes in-between Low and High logic Level. You may need to 'filter' it a little bit to avoid oddity.
1.Use the internal voltage comparator, set the threshold and use their interrupt to increment the counter.
OR
2.try something like...
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1067&stc=1&d=115794620 6">
maybe one diode could be enough... maybe not
HTH
Last edited by mister_e; - 11th September 2006 at 04:54.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks