[sdiy] Rotary encoder reading.. hardware solution (fast & accurate)

The SynthiMuse synthimuse at gmail.com
Wed Aug 11 22:46:20 CEST 2021


Thanks for that Jean-Pierre.
I'll be putting something together in the next couple of months that will
need encoders.
This discussion has saved me some anguish so thanks to everyone for their
input.

Gerry Murray


On Wed, 11 Aug 2021, 21:31 Jean-Pierre Desrochers, <jpdesroc at oricom.ca>
wrote:

> For anybody who could be interested..
>
> Just found this video yesterday and tried the circuit..
>
> https://www.youtube.com/watch?v=UlehqasO-fo&t=1471s
>
>
>
> Outputs A and B (CD4013) connected to PORTB of a PIC16F1783
>
> (RB0 and RB1) using interrupts on change (rising edges).
>
> Now I only have to check one incoming pulse on each RB0 & RB1
>
> to increment or decrement a counter.
> Much faster than computing  all the 4 possible states in each encoder step
> to finally get a result.
>
> My interrupt uses TIMER1 (1msec steps), RB0 & RB1 on change.
>
> No missing counts anymore even rotating fast, on both direction.
>
>
>
>
>
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
> Selling or trading? Use marketplace at synth-diy.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20210811/da0805dd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 53835 bytes
Desc: not available
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20210811/da0805dd/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 53835 bytes
Desc: not available
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20210811/da0805dd/attachment-0001.jpg>


More information about the Synth-diy mailing list