[sdiy] Need goog working rotary encoder in C code..
Jean-Pierre Desrochers
jpdesroc at oricom.ca
Fri Aug 6 19:15:15 CEST 2021
Thanks Julien.
This is C++ right ?
Sorry but I need standard C code..
De : Julien [mailto:jdelgoulet at free.fr]
Envoyé : 6 août 2021 12:54
À : Jean-Pierre Desrochers
Cc : SDIY
Objet : Re: [sdiy] Need goog working rotary encoder in C code..
Mutable instruments repo ? : https://github.com/pichenettes/avril/blob/master/devices/rotary_encoder.h
Envoyé de mon iPhone
Le 6 août 2021 à 17:52, Jean-Pierre Desrochers <jpdesroc at oricom.ca> a écrit :
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/04e7d96f/attachment.htm>
More information about the Synth-diy
mailing list