Pages: [1]   Go Down
Author Topic: Simple rotary encoder using a DC motor  (Read 1572 times)
0 Members and 2 Guests are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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) :-)
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 5597
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

 smiley
Logged

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 5597
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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)...

Logged

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

Pages: [1]   Go Up
Jump to: