Go Down

Topic: Simple rotary encoder using a DC motor (Read 1 time) previous topic - next topic

Christian Liljedahl

I needed some sort of "rotation" encoder, to be able to use some old handles as an interface.
Previous we have been using potmeters, but they tend to get ruined when subjected to public .. pressure and play.

I came up with the idea to use a simple DC motor - With one terminal connected to the 3.3V output of the Arduino, and the other connected to an analog input. (Through a resistor to protect the voltage regulator)

There is a deeper explanation here:
http://christian.liljedahl.dk/guides/simple-rotary-encoder

Kind regards
(and thanks for the permission to cross-post) :-)

cr0sh

Interesting solution, though I wonder what, if any "noise" spikes may be on the output due to the commutator and the collapsing coil fields in the motor; they could probably be smoothed out with some caps...

:)
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Christian Liljedahl

Regarding noise, then I havn't seen anything in the runs I have done.
Even with quite high sampling rates.

Maybe the voltage regulator on the 3.3 V output helps smooth things out?
(I am guessing wild here :-)  )
/C

cr0sh

Actually, maybe the noise spikes, if they even exist, get smoothed out by the ADC because they are brief? You'd probably only know if they existed by putting a scope on it (I should try that on one of my scopes, just to see what it looks like)...

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Go Up