Go to Post Smaller FRC bots...... This is what the Mayans were referring to.... My world is ending.... - CrazyHorse [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 16-12-2015, 11:17
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 234
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Best encoder for swerve drive

Our team is trying out swerve drive for the first time this year (using AM Swerve and Steer) and we want to know what other people have used in terms of controlling the position of the wheels. We thought we could test basic functionality just by setting the power to the x value of the joystick but that didn't work at all, as the wheels were facing different directions after just one rotation.

Absolute encoders sound good, but do we need to mount them to the output shaft of the PG71? I would think so since they are 0-360, the motor will spin more than once with each rotation of the wheel.

How have other teams overcome this problem?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #2   Spotlight this post!  
Unread 16-12-2015, 11:26
Jay O'Donnell's Avatar
Jay O'Donnell Jay O'Donnell is offline
Division by Pirates
FRC #0229 (Division by Zero)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Potsdam, NY/Londonderry, NH
Posts: 1,341
Jay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond reputeJay O'Donnell has a reputation beyond repute
Re: Best encoder for swerve drive

I don't know how good these encoders are, but AM sells a PG-71 with an encoder attached to it that is the same price as one without it. This would be the easy fix but I'm not sure if it's the optimal solution.

Gearbox: http://www.andymark.com/product-p/am-2971.htm
__________________
Student on Team 1058 (2012-2015)
Mentor on Team 229 (2016-Present)
Writer for Blue Alliance Blog
  #3   Spotlight this post!  
Unread 16-12-2015, 11:33
Shahil_FRC's Avatar
Shahil_FRC Shahil_FRC is offline
Mentor
FRC #0176 (Aces High)
Team Role: Engineer
 
Join Date: Mar 2015
Rookie Year: 2004
Location: connecticut
Posts: 9
Shahil_FRC is on a distinguished road
Re: Best encoder for swerve drive

Be careful using encoders attached to the motor shaft, rather than at the output. There is backlash in the system(planetary gearbox + external reduction) that will not be seen at the motor shaft.
  #4   Spotlight this post!  
Unread 16-12-2015, 11:35
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 234
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Best encoder for swerve drive

So we have these encoders, but they're incremental. Meaning we have to calibrate them every time we turn the robot on. What we need is a good absolute encoder. I've heard the am-2899 is pretty good, but not sure if it's exactly what I want.
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #5   Spotlight this post!  
Unread 16-12-2015, 11:36
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,248
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Best encoder for swerve drive

Quote:
Originally Posted by Jay O'Donnell View Post
I don't know how good these encoders are, but AM sells a PG-71 with an encoder attached to it that is the same price as one without it. This would be the easy fix but I'm not sure if it's the optimal solution.

Gearbox: http://www.andymark.com/product-p/am-2971.htm
You need a way to determine a zero position and those encoders don't have an index.

We had a lot of luck with the US Digital MA3 this past year(http://www.andymark.com/product-p/am-2899.htm) though we didn't buy ours from AM and went straight to US Digital. We also used The AMT encoders for speed and are likely to use a similar setup this year if we go with swerve again.

You might also consider the new magnetic encoders from Cross the Road: http://www.ctr-electronics.com/senso...c-encoder.html but I'm not sure about the maximum speed it supports and if it would be a good fit or not for this application.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
  #6   Spotlight this post!  
Unread 16-12-2015, 11:51
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 234
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Best encoder for swerve drive

Quote:
Originally Posted by marshall View Post
You might also consider the new magnetic encoders from Cross the Road: http://www.ctr-electronics.com/senso...c-encoder.html but I'm not sure about the maximum speed it supports and if it would be a good fit or not for this application.
How do I connect a PWM output to the encoder breakout? Or the 3-pin MA3?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #7   Spotlight this post!  
Unread 16-12-2015, 11:54
Breakaway3937's Avatar
Breakaway3937 Breakaway3937 is offline
Director
AKA: Brian "Robo" Jones
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Aug 2011
Rookie Year: 2012
Location: Searcy, AR
Posts: 98
Breakaway3937 is just really niceBreakaway3937 is just really niceBreakaway3937 is just really niceBreakaway3937 is just really niceBreakaway3937 is just really nice
Re: Best encoder for swerve drive

We have used incremental in the past. We do have to zero them each time.

We use this one from USDigitial.
http://www.usdigital.com/products/en...tary/shaft/S4T

We mount them one stage up from our modules on a flexible shaft adapter. They are easy to change. We use to use 10 turn pots...that was a nightmare! They worked, but one short or loss of connection and they were toast.

I am very interested in the new embedded magnetic encoder in the vex planetary gearboxes. They have absolute, incremental, and index. That would be nice.
__________________
"There is no luck. It is only when preparation meets opportunity."
  #8   Spotlight this post!  
Unread 16-12-2015, 11:57
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 234
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Best encoder for swerve drive

Quote:
Originally Posted by Breakaway3937 View Post
We have used incremental in the past. We do have to zero them each time.
Does zeroing require ultimate precision or does it just have to be 'close enough'?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #9   Spotlight this post!  
Unread 16-12-2015, 12:36
Peyton Yeung's Avatar
Peyton Yeung Peyton Yeung is offline
45 Alumni
AKA: Peyton Yeung
FRC #0461 (Westside Boiler Invasion)
Team Role: Coach
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Kokomo, IN
Posts: 810
Peyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond reputePeyton Yeung has a reputation beyond repute
Re: Best encoder for swerve drive

Please see my response in this thread.
__________________
461 Westside Boiler Invasion
2016 Tippy Quarter finalist, Warren Finalist, IN State Semi Finalist,B^3 Double Finalist
2015 Indy Semi finalist, Purdue Quarter Finalist, IN State Quarter Finalist, CORI QF, R2OC Finalist, RAGE Winner
2014 Boilermaker Semi finalist, Crossroads Quarter Finalist, & CAGE Quarter Finalist
45 Technokats
2013 Boilermaker Quarter finalist
2012 CAGE Semi finalist & Queen City Champion
2011 CAGE Quarter finalist & Midwest Semi finalist
2010 CAGE Quarter finalist, Boilermaker Champion, & Washington DC Quarter Finalist
  #10   Spotlight this post!  
Unread 16-12-2015, 12:43
Breakaway3937's Avatar
Breakaway3937 Breakaway3937 is offline
Director
AKA: Brian "Robo" Jones
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Aug 2011
Rookie Year: 2012
Location: Searcy, AR
Posts: 98
Breakaway3937 is just really niceBreakaway3937 is just really niceBreakaway3937 is just really niceBreakaway3937 is just really niceBreakaway3937 is just really nice
Re: Best encoder for swerve drive

Quote:
Originally Posted by TimTheGreat View Post
Does zeroing require ultimate precision or does it just have to be 'close enough'?
Not really we just always said pulleys or sprockets one way, and we make marks on the sides of the module and the robot to help with remembering line up. One issue with our encoders is that if they ever reset they will rezero wherever they are. With the new system and the abundance of dedicated power ports, this has never been an issue. Just make sure they are connected somewhere with dedicated power i.e. the voltage regulator.
__________________
"There is no luck. It is only when preparation meets opportunity."
  #11   Spotlight this post!  
Unread 16-12-2015, 13:58
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Best encoder for swerve drive

Quote:
Originally Posted by marshall View Post
...
You might also consider the new magnetic encoders from Cross the Road: http://www.ctr-electronics.com/senso...c-encoder.html but I'm not sure about the maximum speed it supports and if it would be a good fit or not for this application.
CTRE Mag Encoder: Max is 15000 RPM for the relative mode, 6600 RPM for the absolute mode. If you need faster than 6600RPM and absolute mode, you can just set the relative sensor position to match the absolute and use relative from then on.

MA3's also have a max of 15000RPM.

Checkout the magnetic encoder user's guide for more info (particularly section 5.3)
http://www.ctr-electronics.com/senso...ical_resources
  #12   Spotlight this post!  
Unread 16-12-2015, 14:01
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,248
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Best encoder for swerve drive

Quote:
Originally Posted by ozrien View Post
CTRE Mag Encoder: Max is 15000 RPM for the relative mode, 6600 RPM for the absolute mode. If you need faster than 6600RPM and absolute mode, you can just set the relative sensor position to match the absolute and use relative from then on.

MA3's also have a max of 15000RPM.

Checkout the magnetic encoder user's guide for more info (particularly section 5.3)
http://www.ctr-electronics.com/senso...ical_resources
Well there you have it... Good to know about the speeds. I hadn't looked at the specs but I think that using a combination of the two modes should work well for most applications.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
  #13   Spotlight this post!  
Unread 17-12-2015, 20:31
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Best encoder for swerve drive

Hey Marshall, not to distract from the OP, but when it comes to swerve, I've been giving you guys props.....
Quote:
Originally Posted by ozrien View Post
Cool so the Talon SRX, and sensor are working as expected.
Zebracorn's (FRC900) followed this strategy last year and it seemed to work well. For anyone interested in looking at an LV implementation I would check out their github (2015 FRC code base).
  #14   Spotlight this post!  
Unread 17-12-2015, 22:21
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,248
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Best encoder for swerve drive

Quote:
Originally Posted by ozrien View Post
Hey Marshall, not to distract from the OP, but when it comes to swerve, I've been giving you guys props.....
LOL! We're only doing it right because we found 20 ways to fail first. Thanks for the props though!

Now, if only CTRE would make our encoder breakout boards! Actually, we're partnering with another team this year on making them and we're hopefully going to put out some source files before build season for others to have them made too! We've got some great revisions in the works hopefully.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
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


All times are GMT -5. The time now is 02:20.

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