Richards
- 12th October 2024, 15:52
Hi, I tried finding a simple compact piece of code for a up/down counter working with the quadrature optical rotary encoder (HES-36-2MD).
The chip I use is a PIC18F2455. Connections are made (INT0=RB0, INT1=RB1) and tested with a multimeter giving pulses in the range of 0.04V to 4.85V.
I found this thread (https://www.picbasic.co.uk/forum/showthread.php/1552-decoding-quadrature-encoders?p=7757#post7757) and also "The Book of DT's INTERRUPTS (https://dt.picbasic.co.uk/)".
Lot's of info but to complex for me.
I have the same question as the above mentioned thread asked (https://www.picbasic.co.uk/forum/showthread.php/1552-decoding-quadrature-encoders):
is there a sample code for interfacing quadrature encoders[a/b channels]
I need to determine position/direction...
i searched for posts in the pbp forum,but they were all for 1 channel, 2 channels wanted.
Thanks
The chip I use is a PIC18F2455. Connections are made (INT0=RB0, INT1=RB1) and tested with a multimeter giving pulses in the range of 0.04V to 4.85V.
I found this thread (https://www.picbasic.co.uk/forum/showthread.php/1552-decoding-quadrature-encoders?p=7757#post7757) and also "The Book of DT's INTERRUPTS (https://dt.picbasic.co.uk/)".
Lot's of info but to complex for me.
I have the same question as the above mentioned thread asked (https://www.picbasic.co.uk/forum/showthread.php/1552-decoding-quadrature-encoders):
is there a sample code for interfacing quadrature encoders[a/b channels]
I need to determine position/direction...
i searched for posts in the pbp forum,but they were all for 1 channel, 2 channels wanted.
Thanks