Go to Post If mecanum wheels are the answer, I have found that I have asked myself the wrong question. - jwfoss [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-01-2007, 23:26
Xufer's Avatar
Xufer Xufer is offline
8 Seasons and as stable as ever
AKA: Working, 2/4 degrees complete still schooling...
FRC #1740 (The Cyber Colonels)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Waterford, CT
Posts: 231
Xufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to behold
Send a message via AIM to Xufer Send a message via MSN to Xufer Send a message via Yahoo to Xufer
Help for Better Understanding of Shaft Encoders

Note: This is sort of a Controls / programing / electronics question I figured this is the best place to post it as the programing part of it is what has me stumped.

Currently I am looking around at different shaft encoders systems, first of i have never used one before and am curious as which shaft encoders any of you all have used and had good luck with. {any time i needed to keep track of revolutions i always used a hall effect sensor or an optical sensor because thats how we had to do it back in the days of basic [some you whipper snappers may not remember those days as they were many years ago back when i actually had to program things] } I am currently looking into the bane bots transmission that has an encoder (sold desperately) that attaches to it. I have the info on it quoted below. If any of you have used it or fooled around with it you might be able to answer my other question on it. It says it gives a 128 counts per revolution and that reverse direction would be given out of phase. ie. a +signal and a - signal, as far as the programing for one of these doohickeys is concerned is it just a digital signal that can be used like a count ? For example when the shaft turns 3 increments forward is it just going to get 3 + square wave pulses or is it giving some analog value. The other neat thing i noticed about this particular encoder was it had 2 outputs which leads me to believe i could use one to indicate degree of movement or program a limit of movements. Is there anyone out there who has a good example of this used in the past. I just need an refresher on where / what i should be doing to start.

so because the above thread was a mess what I am curious about is

1. What are some shaft encoders used in the past with success
2. Has anyone used the bane bots shaft encoder
3. What is the usual output digital or analog.
4. Can anyone direct me to a good white paper on the topic

Quote:
Originally Posted by From banebots.com/p/EN-G0561-KT
This encoder is designed and built specifically for our 56mm gearmotors. It mounts to the output shaft of the gearbox. All required mounting hardware and a cover is included.

It is a quadrature encoder, with two output signals. It can be used to monitor both speed and direction of rotation. Each signal is out of phase with the other, and depending on the direction of rotation, the signal will be either leading or lagging the other signal.

Specifications:
Power Requirements: +5VDC, +/-5%, < 20mA
Counts per revolution: 128
Signal duty Cycle: 40-60%
__________________


If saftey is first and i put FIRST ahead of everything, then i must be the safest guy in the world.

Team 521 Alumni -- Team 1740 Mentor-- Go Go 1740!
Sometimes I think I've been doing this too long and other times I think I haven't done this enough... but all the times I'm sure I'm crazy
Photonics, It's Your Future
  #2   Spotlight this post!  
Unread 06-01-2007, 23:43
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: Help for Better Understanding of Shaft Encoders

See Kevin Watson's code on quadrature encoders http://www.kevin.org/frc/. FAQ at http://kevin.org/frc/encoder/. Nice in-depth description at http://www.chiefdelphi.com/media/papers/1490. A ChiefDelphi thread on encoders at http://www.chiefdelphi.com/forums/sh...ad.php?t=48756. Wikipedia article http://en.wikipedia.org/wiki/Rotary_encoder.

Quite simple to use. All digital input. Connect Phase A signal wire to an interrupt pin, Phase B signal wire to a Digital Input pin. Configure the interrupt and catch it in user_routines_fast.c. Phase A pulses on each tick, Phase B pulses earlier or later than Phase A, depending on direction. When interrupt occurs, interrupt service routine checks the Digital Input for HI or LO and that gives you the direction.

You don't get any counts out - you have to count 'em yourself.

There are other types of encoders (absolute positioning?) that may provide encoded information about the precision position, without you having to count.

The trickiest thing about them is probably choosing one that is suitable and determining the method of attaching to your robot.

Last edited by mluckham : 06-01-2007 at 23:48.
  #3   Spotlight this post!  
Unread 08-01-2007, 23:14
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: Help for Better Understanding of Shaft Encoders

For testing purposes we hacked a mouse and used the two shaft encoders there. I say again. . . FOR TESTING!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with shaft encoders edthegeek Control System 9 23-11-2006 15:08
Hollow Shaft optical encoders magical hands Robotics Education and Curriculum 0 03-02-2005 22:56
Hallow-Shaft encoders magical hands Programming 1 17-01-2005 18:23
Using Shaft Encoders D.Viddy Programming 7 14-12-2004 18:27
Shaft Encoders wun Programming 3 12-10-2004 16:40


All times are GMT -5. The time now is 05:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi