Watch Winder (could use some expertise on code)

Show off your latest creations, whether 3D printed or not
Post Reply
wepollock
Printmaster!
Posts: 180
Joined: Wed Apr 19, 2017 7:18 pm

Watch Winder (could use some expertise on code)

Post 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.
enggmaug
Printmaster!
Posts: 305
Joined: Wed Nov 13, 2013 3:54 am
Location: Antony, France

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

Post 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.
dc42
Printmaster!
Posts: 454
Joined: Mon Mar 07, 2016 10:17 am

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

Post 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.
Post Reply

Return to “What are YOU making?”