Watch Winder (could use some expertise on code)

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

Watch Winder (could use some expertise on code)

Postby wepollock » Sat Nov 18, 2017 3:30 pm

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)

Postby enggmaug » Sun Nov 19, 2017 3:16 pm

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: 422
Joined: Mon Mar 07, 2016 10:17 am

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

Postby dc42 » Tue Nov 21, 2017 4:35 pm

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.


Return to “What are YOU making?”

Who is online

Users browsing this forum: No registered users and 6 guests