Go to Post Forget Pool Basketball or Pool Volleyball, it's time for some Pool Rack n' Roll! - Conor Ryan [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
  #31   Spotlight this post!  
Unread 18-01-2004, 13:02
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by WizardOfAz
Hmmm. I'm not going to dive into the details of this I guess, since I'm going to continue down the "pot path" for measuring the angle. But I suspect this calculation is more than a bit optimistic. (1) can you really handle the shaft encoder interrupt in about 10 instructions? (2) are all instructions one cycle with no wait states needed? (3) what about the state save/restore cost of the interrupt? I'll bet it's more like 1% than 0.1%, still not too much load if you don't have a lot of them.
It's 40 or 50 instructions total. There are no wait states involved.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #32   Spotlight this post!  
Unread 22-01-2004, 17:49
IrisLab's Avatar
IrisLab IrisLab is offline
Mentor
AKA: Dave Page
#1466 (Webb School)
Team Role: Mentor
 
Join Date: Dec 2003
Location: Knoxville, Tennessee
Posts: 33
IrisLab will become famous soon enough
Re: Using Digi-Key Shaft Encoders

I'm having trouble with the links to digikey at the first of this post. Does anyone know the part numbers that the links refer to?

Or alternatively, any recommends for digi-key optical encoders?

Thanks.
__________________
David Page
  #33   Spotlight this post!  
Unread 15-02-2004, 15:10
Joel J's Avatar
Joel J Joel J is offline
do you..
no team
 
Join Date: May 2001
Rookie Year: 2000
Location: San Jose, CA
Posts: 1,445
Joel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond repute
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by Kevin Watson
If you really, really want to use a potentiometer, why not use the Bourns 6639S-1-103 which is available at Digi-Key (search for 6639S-1-103-ND). I'd rather use an encoder.

-Kevin
I am in heavy deliberation at the moment. I am trying to decide whether or not I wish to use a potentiometer or encoder for something relating to the subject of this thread. I am pretty much at a loss for good reasons (I have never used potentiometers or encoders before), so I am wondering why you have a bias that steers more towards an encoder than to a potentiometer.
__________________
Joel Johnson

Division By Zero (229) Alumni, 2003-2007
RAGE (173) Alumni, 1999-2003
  #34   Spotlight this post!  
Unread 15-02-2004, 16:48
D.Viddy's Avatar
D.Viddy D.Viddy is offline
Registered User
AKA: Dylan Vester
FRC #3176 (Purple Precision)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Camby, IN
Posts: 44
D.Viddy is an unknown quantity at this point
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by Joel J.
I am in heavy deliberation at the moment. I am trying to decide whether or not I wish to use a potentiometer or encoder for something relating to the subject of this thread. I am pretty much at a loss for good reasons (I have never used potentiometers or encoders before), so I am wondering why you have a bias that steers more towards an encoder than to a potentiometer.
Because almost all potentiometers that will find will not revolve all the way around. Also pots wear out very easily when attached to a constantly rotating shaft. Last years controller was too slow for using an encoder. This years processor has no trouble keeping up with a 256 tick encoder. We have ours controlling our motors beautifully right now. Dead recoding is incredably precise with them. It's not a bias, it's just one is better than the other.
__________________
.................................................. .........
Dylan Vester - (Programmer)
Running a P4 1.8 Ghz
Team 998, We can't win...
.................................................. .........
  #35   Spotlight this post!  
Unread 15-02-2004, 17:08
KevinB's Avatar
KevinB KevinB is offline
Registered User
AKA: Alum
no team
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2001
Location: AL
Posts: 188
KevinB will become famous soon enoughKevinB will become famous soon enough
Send a message via ICQ to KevinB
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by Kevin Watson
It's 40 or 50 instructions total. There are no wait states involved.

-Kevin
I have written my own Interrupt handler for reading the optical encoders. Is there an easy way to see how many instructions the C Code translates to?
  #36   Spotlight this post!  
Unread 15-02-2004, 18:00
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Using Digi-Key Shaft Encoders

In MPLAB IDE, go to View->Disassembly
  #37   Spotlight this post!  
Unread 15-02-2004, 22:56
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by KevinB
I have written my own Interrupt handler for reading the optical encoders. Is there an easy way to see how many instructions the C Code translates to?
Yes, there certainly is. Have a look at the .lst file that the compiler generates. It's a text file that shows you what assembly and machine code the compiler generated and where it placed it in memory.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #38   Spotlight this post!  
Unread 16-02-2004, 00:47
Joel J's Avatar
Joel J Joel J is offline
do you..
no team
 
Join Date: May 2001
Rookie Year: 2000
Location: San Jose, CA
Posts: 1,445
Joel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond repute
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by D.Viddy
Because almost all potentiometers that will find will not revolve all the way around. Also pots wear out very easily when attached to a constantly rotating shaft. Last years controller was too slow for using an encoder. This years processor has no trouble keeping up with a 256 tick encoder. We have ours controlling our motors beautifully right now. Dead recoding is incredably precise with them. It's not a bias, it's just one is better than the other.
Ok, thanks.
__________________
Joel Johnson

Division By Zero (229) Alumni, 2003-2007
RAGE (173) Alumni, 1999-2003
  #39   Spotlight this post!  
Unread 16-02-2004, 03:34
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by Joel J.
I am in heavy deliberation at the moment. I am trying to decide whether or not I wish to use a potentiometer or encoder for something relating to the subject of this thread. I am pretty much at a loss for good reasons (I have never used potentiometers or encoders before), so I am wondering why you have a bias that steers more towards an encoder than to a potentiometer.
As Dylan and others have pointed out, potentiometers have problems when used for positioning/control. Encoders, on the other hand, are designed for this type of application. You can find some example encoder code here.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #40   Spotlight this post!  
Unread 02-03-2004, 15:21
Greg Powers Greg Powers is offline
Registered User
#0814 (MegaForce Squadron)
 
Join Date: Jan 2003
Location: Napa CA
Posts: 17
Greg Powers is on a distinguished road
Re: Using Digi-Key Shaft Encoders

mechanical or optical encoders? i know the mechanical encoders are alot cheaper and i was wondering how much that degraded quality

does anyone know the pro's con's between the two?

we plan on using them to compensate for steering problems and atonomous and aren't sure which we want.
__________________
Sincerely,
ME
  #41   Spotlight this post!  
Unread 02-03-2004, 19:28
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Using Digi-Key Shaft Encoders

Mechanical encoders don't last nearly as long as optical ones do - check the specs on them for that measurement.
  #42   Spotlight this post!  
Unread 07-03-2004, 00:41
Daniel Daniel is offline
Daniel Katanski
#0240
Team Role: Mentor
 
Join Date: Feb 2004
Location: Monroe, MI
Posts: 32
Daniel is on a distinguished road
Re: Using Digi-Key Shaft Encoders

Have you read the white paper titled "Quadrature Encoders"?

This should help you a lot. email me if you have any specific questions or comments.

Daniel
  #43   Spotlight this post!  
Unread 01-01-2005, 20:06
sudeepr71 sudeepr71 is offline
Registered User
FRC #0503 (Frog Force)
Team Role: Leadership
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Novi
Posts: 33
sudeepr71 is an unknown quantity at this point
Send a message via AIM to sudeepr71
Re: Using Digi-Key Shaft Encoders

After reading this forum, I still have a few questions.
What exactly is a encoder?
And how can I use it to measure the speed of the robot?
  #44   Spotlight this post!  
Unread 02-01-2005, 14:49
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by sudeepr71
What exactly is a encoder?
And how can I use it to measure the speed of the robot?
There are a few different kinds of encoders. What most people here are talking about are "rotary shaft encoders", which can tell you the angular position of a rotating shaft. Usually that's done by counting pulses as it turns. Some encoders have thousands of steps per rotation, giving a very precise measurement. At the other end of the precision scale, last year's TechnoKat robot used six black stripes on the wheel hubs with Banner sensors to measure wheel rotation.

To measure the speed, you just use the difference in position between two measurements at different times.
  #45   Spotlight this post!  
Unread 02-01-2005, 19:16
sudeepr71 sudeepr71 is offline
Registered User
FRC #0503 (Frog Force)
Team Role: Leadership
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Novi
Posts: 33
sudeepr71 is an unknown quantity at this point
Send a message via AIM to sudeepr71
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by Alan Anderson
At the other end of the precision scale, last year's TechnoKat robot used six black stripes on the wheel hubs with Banner sensors to measure wheel rotation.

To measure the speed, you just use the difference in position between two measurements at different times.
On your last year's robot you used it to see how far to go and then turn or something for the autonomous mode? We tried that and found that it wasn't as accurate as the line following.

So to find the speed, one would have two encoders at different times and subtract them?
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
If set screws suck . . . Madison Technical Discussion 17 22-12-2003 19:19
Who used wheel encoders CyberWolf_22 Technical Discussion 12 04-05-2003 15:37
Where to get shaft encoders D.Viddy Programming 12 17-01-2003 09:38
Motor coupling archiver 2001 19 23-06-2002 23:35
Need Help on Shaft Mounting... archiver 2001 3 23-06-2002 23:29


All times are GMT -5. The time now is 21:56.

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