Go to Post All the same lessons that can be learned or taught with custom drive trains can also be learned or taught with custom manipulators and scoring mechanisms, and the latter is far more likely to set your team apart in the competition. - Jared Russell [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 09-02-2009, 17:01
Alphabet OJ's Avatar
Alphabet OJ Alphabet OJ is offline
I do what they say me to.
AKA: Jacob G.
FRC #2169 (KING TeC)
Team Role: Student
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Prior Lake
Posts: 4
Alphabet OJ is an unknown quantity at this point
Encoder for Crab Steering

Hello!

We have built a crab-drive robot for this year (2009) and we need a sensor to find where the wheels are facing to use in the program.

We are pretty sure we are going to use a 270 degree potentiometer, but we want to look at an encoder because it will be easier to mount.


We would use the kit-of-parts encoder, so it is not absolute like a potentiometer would be. The program would need to remember that "we are 10 ticks to the right of center" and stuff like that, and we would need to start the robot with the wheels strait forward every competition. We also are worried that it would "forget" its position after autonomous. For example, if we steered 10 clicks past center to the right in autonomous and then we changed to teleoperated, could the code remember where the wheels were? Or is the memory cleared at the end of autonomous?

Any help would be great! If anyone has used encoders for crab steering before or something like that, we'd love to hear from you. Thanks!
__________________
Alphabet Orange Juice
ABC OJ
ABCOJ
JACOB
Jacob
  #2   Spotlight this post!  
Unread 09-02-2009, 17:05
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Re: Encoder for Crab Steering

On our crab drive we use the MA3 absolute analog encoder-> http://usdigital.com/products/encode...ary/shaft/ma3/

used it for two years and have had no failures!
they are solid and robust also they have a nice resolution!

also not to expensive
  #3   Spotlight this post!  
Unread 09-02-2009, 17:10
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Encoder for Crab Steering

If you don't want to reset the crab modules to 0* each match, you would need to add an index to the encoder (limit switch, reflective tape, etc) to know your absolute angle. Or you could check out one of these US Digital Absolute Kit Encoders. These mount the same way as the KOP encoder, but let you read absolute rotation (0-360*) on an analog input pin.

To remember variables across methods in your code, just declare the object globally in the class.
Code:
class YourRobot : public SimpleRobot{

    Encoder *crab;

    YourRobot(void){
        crab = new Encoder(1,2);
    }
}
  #4   Spotlight this post!  
Unread 09-02-2009, 17:13
M.Rehberg's Avatar
M.Rehberg M.Rehberg is offline
Registered User
AKA: Mike Rehberg
FRC #2619 (The Charge)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Michigan
Posts: 11
M.Rehberg is an unknown quantity at this point
Re: Encoder for Crab Steering

Our team went though the same set of questions (pot Vs encoder), and ended up with the standard encoder, and two limit switches. The limit switches are at the end of travel, one for each direction of turn. The software can calibrate itself by turning the wheels to either limit switch, and then going back 155 counts (for our bot it is 310 from stop to stop). So far it works great.
  #5   Spotlight this post!  
Unread 09-02-2009, 20:49
Nate Edwards Nate Edwards is offline
SWARM Head Mentor
FRC #0957 (SWARM)
Team Role: Mentor
 
Join Date: Dec 2002
Rookie Year: 2002
Location: Albany
Posts: 201
Nate Edwards will become famous soon enough
Re: Encoder for Crab Steering

We are using a cheap absoulte encoder, it worked on the bench, tonight it should work on the robot. Here is the link to it and some places to buy it, we bought ours from allied but they are sold out I beileve.

http://octopart.com/info/Bourns/EAW0J-B24-AE0128L
__________________
South West Albany Robot Mechanics


2002 Pacific NW Regional Rookie All Star Award Winners
2003 Pacific NW Regional Daimler Chrysler Team Spirit Award Winners
2004 Pacific NW Regional Johnson & Johnson Sportsmanship Award Winners
2004 Pacific NW Regional Winning Alliance (492 (#1 Seed), 1031, 957)
2003 & 2005 Pacific NW Regional Chairman's Award Winners
2009 Oregon Regional Woodie Flowers Award Winner
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
Crab Steering on Regolith Dan2081 General Forum 33 09-01-2009 16:35
Steering for mecanum? eyekantspel Control System 9 09-01-2008 21:58
need glp programing steering with a steering wheel Matchew Programming 2 10-02-2003 14:20
What is crab steering?? Adam Y. Technical Discussion 18 30-12-2002 08:12
4 wheel steering/ Crab Huey_Da_X-cat Technical Discussion 3 11-02-2002 22:49


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

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