[sdiy] Need goog working rotary encoder in C code..

Vinicius Brazil brazil.v at gmail.com
Fri Aug 6 19:12:00 CEST 2021


I also use no caps. 1k resistors.

Vinicius

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Livre
de vírus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>.
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, Aug 6, 2021 at 2:04 PM Mike Bryant <mbryant at futurehorizons.com>
wrote:

> I use 300 Ohms pullup to 3.3V and no caps.  There is still a short bounce
> period but after that the strong current flow keeps it clean and most
> scanning code works. For interrupt driven you’ll probably need to disable
> the interrupts for a short time.
>
>
>
> *From:* Synth-diy [mailto:synth-diy-bounces at synth-diy.org] *On Behalf Of *Jean-Pierre
> Desrochers
> *Sent:* 06 August 2021 16:47
> *To:* 'SDIY'
> *Subject:* [sdiy] Need goog working rotary encoder in C code..
>
>
>
> Hi everybody.
>
>
>
> I’m doing some tests on a rotary encoder and a PIC16F1783.
>
> A standard Bourns encoder like THIS
> <https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwjyoqDF3JzyAhUmhOAKHf3lAzoQFnoECAoQAw&url=https%3A%2F%2Fwww.bourns.com%2FPDFs%2Fpec11l.pdf&usg=AOvVaw2RyieyzPnujiOTS7LBcbpw>
> .
>
> Connected using 2 x 10k pullups with 0.01uf caps to ground
>
> to PORTB of the micro. Interrupt calls (falling edges) used on encoder
> pins A & B.
>
> I struggled so far to get clean increments/decrements out of it.
>
> Many missing counts occur..
>
> I tried many source codes on the web with no luck..
>
> Is there anybody who’d have worked on this in the past
> and have a working c code ?
>
> No ARDIUNO please.
>
> Thanks !
> _______________________________________________
> 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/20210806/a0331fef/attachment.htm>


More information about the Synth-diy mailing list