Pages: [1]   Go Down
Author Topic: Rotary encoder together with arduino for measuring angle  (Read 2242 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!
I have a question regarding absolute rotary encoders. I need a rotary encoder to measure the angle an axis is
tilted. The axis is not supposed to move around in circles. It will just be able to turn 180 degrees clockwise and
180 degrees counterclockwise.The rotary encoder mounted on the axis is supposed to give me the current angular position of the axis related to a fixed, origin position. The encoder should also be able to tell if the axis has been tilted clockwise or counterclockwise from the origin position. (I will use an Arduino platform to interpret the signals from the encoder) Which rotary encoder is best to use? Or should I use another form of component for angular measuring? As written before, it should be easy to connect and use with the arduino platform.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 508
Posts: 31429
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Absoloute rotary encoders are expensive, I would suggest what you need here are three simple tilt switches mounted at the appropriate orientation.
Otherwise go for an accelerometer.
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 29
Posts: 2244
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How much precision do you need?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46042
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you rotating about just one axis? If so, any rotary encoder should work. If you can spare both interrupt pins, then reading the encoder, including direction of rotation, is trivial. Knowing that the encoder has moved n steps one way or the other lets you keep track of how far from 0, plus or minus, it has moved.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for the answers. smiley
The precision should be approximately +/-5 degrees. And yes, the the rotation will only be in one axis.
How good precision can I get from a relativly cheap rotary encoder? or is it better to use an accelerometer as suggested?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 508
Posts: 31429
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You get about 16 clicks per revolution on most encoders some even less.
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 29
Posts: 2244
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.mouser.com/ProductDetail/Bourns/EAW0J-B24-AE0128L/?qs=sGAEpiMZZMvy8cVzszrmR716n9pC3kk%2fKdD7OIhGwoE%3d

Absolute encoder with 128 positions. Under $7.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 508
Posts: 31429
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That looks great.
Also available on this side of the pond at:-
http://uk.farnell.com/bourns/eaw0j-b24-ae0128l/encoder-rotary/dp/9358234

Mind you it has a grey code output so it will need converting.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the answers, they have been very helpful! smiley
The encoder which gives 128 readings in one revolution sounded like
the best choice, so i will probably go for that one. Thanks for
posting the links to were I can buy them. smiley
Logged

Offline Offline
Edison Member
*
Karma: 28
Posts: 2036
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could also use a potentiometer and measure the resistance.
Logged

Pages: [1]   Go Up
Jump to: