Page 1 of 1

Watch Winder (could use some expertise on code)

Posted: Sat Nov 18, 2017 3:30 pm
by wepollock
https://www.thingiverse.com/thing:2654679



I have some issues with the Rotary Encoder code.. If someone that is knowledgeable on that subject could take a look at the INO file on Thingiverse it would be appreciated.

Re: Watch Winder (could use some expertise on code)

Posted: Sun Nov 19, 2017 3:16 pm
by enggmaug
What do you mean "some issues" ?

I don't want to open your code if I don't know what I'm looking for...

Did you deal with rebounds ? some rotary encoders bounce alot. Last time I used one, I had to add a low pass filter (capapacitor and resistor) to kill them rebounds before entering the arduino.

Re: Watch Winder (could use some expertise on code)

Posted: Tue Nov 21, 2017 4:35 pm
by dc42
Rotary encoder bounce doesn't matter if the driver software is correctly written and only one contact bounces at a time. When I first connected a rotary encoder to an Arduino about 4 years ago, all the existing driver code I found was rubbish, so I wrote my own. If you want to try it, it's at https://github.com/dc42/arduino/tree/master/Libraries.