Go to Post If it were not about winning, it would not be called a competition - but FRC is much more than winning a competition. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 13-05-2015, 14:34
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,633
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Best Sensor for Unlimited Rotation Swerve

Sidebar:
Quote:
Before I get started, I initially titled this post "Best Sensor for Unicorn Swerve" because I THOUGHT that the term "Unicorn Swerve" was a reference to what I thought of as the "unicorn horn" i.e. shaft that drives the wheels (via a bevel gear), that is typically used on Unlimited Rotation Swerve Modules. But a little googling made me think that folks are using "unicorn swerve" to refer to 4 wheel swerve with 4 wheel independent steering (perhaps a reference to the rarity of such a beast when the term was coined?).

I like my interpretation better but since the purpose of language is communication, I suppose I had better defer to the views of others on this subject.
Preamble:
Quote:
I know it will come as a shock to folks but I have fallen in love with Swerve all over again. I first used Swerve in 1998 (Ladder Logic) and I loved it then but after a number of years using it, I came to the conclusion that it was SUCH A RESOURCE HOG (no matter how you measured it: space, current, motors, weight, engineering effort, programming effort, karma,...), that I couldn't justify it any more. BUT... ...last year's experience using Wild Swerves from Team221.com together with the navX from Kauai Labs has me rethinking this. Our Coding Team really outdid themselves; Scorpion was one of the best behaved and easiest to drive robots I've been associated with. I am not sure I'm ever going back to non-swerve drives.

BUT... ...of course there are improvements. We want it to take up less space, weigh less, be more robust, use less power, easier to maintain, shoot freakin' lasers out its axles, ;-)

We've decided to look into using a swerve with a bevel gear drive system so that we can remote the drive motors (and perhaps add a shifter or multiple motors per wheel if the spirit moves us) and also because we think that in a game with Defense (a.k.a. the 2016 FRC game -- bet on it) we will certainly want to allow the steering axis to have unlimited rotation angle.

Which finally lets me get to my actual message.

In an unlimited rotation angle world, the natural thing to do is to put a quadrature encoder (like a US Robotics or a Grayhill or some such) in the swerve drive system somewhere and pretty much call it good.

But... ...I hate that idea. The main reason is that then you have to zero the count when the robot wakes up (or goes brain dead*). Yes, you can get around this with training and check lists and such but it is a long season, this decision is going to bite you in the tukhus before its over.

Here is what I would like.
  • Something that can deal with unlimited rotation (obviously)
  • Something that is 1:1 with the actual steering angle and does not require the controller to be zeroed (other than a constant programmed into the robot once and only changed if there is work on the robot -- if ever).
  • Something that has a resolution of under 1 degree -- preferably 1/10th a degree or better.
  • Something with as little noise as possible (To get reasonable responses, we use a lot of D Gain in our PID Loop. Noise is really tough for Deriviative Feedback loops to deal with.)
  • Something with at Digital Output if possible -- for two reasons. First, we had a heck of a time with noise on the 5V supply and on the GND from the RoboRIO, so it was hard to get a noise free signal out of a lot of our sensors (like pots for example). Second we ran out of analog inputs on the RoboRIO and had to add a coprocessor just to manage the extra analog signals. Not ideal. If we can put the steering position I2C or SPI, that may make our lives better -- though perhaps not because we are thinking of using the Talon SRX to do our PID loop, I don't think the Talon SRX likes getting its sensor input via anything other than Quadrature or Analog. So, I don't really know what I want in this department.

Anyway, I would like learn from folk with unlimited rotation swerve experience. What sensor scheme did you use and what are the pros (and cons) of those choices?

Do tell.

Dr. Joe J.


*don't get me started about FIRST's decision to allow the NI folks to allow the RoboRIO loose its mind at just under 7V -- this is something close to criminal. Really... this was a really dumb design direction given the customer base and the intended use of the RoboRIO.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 13-05-2015 at 14:53.
  #2   Spotlight this post!  
Unread 13-05-2015, 14:49
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

I haven't built a swerve but your requirements for the sensor scream absolute rotary encoder to me. So for instance: <http://www.cui.com/catalog/components/encoders/absolute>

Buy at Digikey for $48.65 each
http://www.digikey.com/product-detai...050-ND/2278846

Edit: Also if the encoder is 1:1 with respect to rotation you could attach a standard rotary encoder and use the index to give you a home position. Turn each wheel left until you see the index then figure out that angle relative to forward for each wheel and reset the current angel of the wheel to that known value.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620

Last edited by jman4747 : 13-05-2015 at 14:55.
  #3   Spotlight this post!  
Unread 13-05-2015, 14:51
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Best Sensor for Unlimited Rotation Swerve

On our swerve, we use absolute encoders. They use analog instead of digital output, though.
We've used them on our swerve for the past two years, and have been very reliable. They only require one offset constant, and then don't need to be calibrated again. Rotates infinitely and wraps around from 360-0.

I don't know what the model of the encoder is specifically, but maybe I can find that out.
__________________
Head Programmer / Driver
  #4   Spotlight this post!  
Unread 13-05-2015, 14:56
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,063
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

US Digital makes some analog absolute magnetic encoders that work great for unicorn drive (2783 used them for their implementation). Forgot the model though.
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.
  #5   Spotlight this post!  
Unread 13-05-2015, 14:57
R.C.'s Avatar
R.C. R.C. is online now
2017... Oooh Kill em, Swerve!
AKA: Owner, WestCoast Products
FRC #1323 (MadTown Robotics)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 2,177
R.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by ratdude747 View Post
US Digital makes some analog absolute magnetic encoders that work great for unicorn drive (2783 used them for their implementation). Forgot the model though.
I'm assuming this is the ma3?
__________________
R.C.
Owner, WestCoast Products || Twitter
MadTown Robotics Team 1323
  #6   Spotlight this post!  
Unread 13-05-2015, 14:59
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Best Sensor for Unlimited Rotation Swerve

We've had good and bad experience with the AS5145B contact-less magnetic sensor (also available here) used as absolute encoders. They work well if you can guarantee the distance from the sensor to the shaft does not change, and you can embed the magnet to the end of the shaft.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -

Last edited by wt200999 : 13-05-2015 at 15:13.
  #7   Spotlight this post!  
Unread 13-05-2015, 15:03
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,575
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

You should certainly include Hall-effect rotary sensors in your investigation. They offer continuous rotation and do not drift, except at the mechanical end.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #8   Spotlight this post!  
Unread 13-05-2015, 15:10
Bryce2471's Avatar
Bryce2471 Bryce2471 is offline
Alumnus
AKA: Bryce Croucher
FRC #2471 (Team Mean Machine)
Team Role: Mechanical
 
Join Date: Feb 2013
Rookie Year: 2007
Location: Camas, WA
Posts: 423
Bryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud of
Re: Best Sensor for Unlimited Rotation Swerve

Here is a link to the sensor that we have been using on our swerves. It meets all of you requests (and probably some you haven't encountered yet) except that it has an analog output, and you can get it for ~$10 if you shop around a little.
__________________
FLL Team Future imagineers
2010 Oregon State Championships: Winners
2011 International Invite: First place Robot design, Second Place Robot Performance
FRC Team Mean Machine
2012 Seattle: Winning alliance
2013 Portland: Winning alliance
2013 Spokane: Winning alliance
2014 Wilsonville: Winning alliance
2014 Worlds: Deans List Winner
  #9   Spotlight this post!  
Unread 13-05-2015, 15:14
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,260
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 Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by Bryce2471 View Post
Here is a link to the sensor that we have been using on our swerves. It meets all of you requests (and probably some you haven't encountered yet) except that it has an analog output, and you can get it for ~$10 if you shop around a little.
Have you interfaced these to the Talon SRX controllers at all?
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
  #10   Spotlight this post!  
Unread 13-05-2015, 15:18
Andrew Schreiber Andrew Schreiber is offline
Data Nerd
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,058
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by Joe Johnson View Post
Sidebar:


Preamble:



In an unlimited rotation angle world, the natural thing to do is to put a quadrature encoder (like a US Robotics or a Grayhill or some such) in the swerve drive system somewhere and pretty much call it good.

But... ...I hate that idea. The main reason is that then you have to zero the count when the robot wakes up (or goes brain dead*). Yes, you can get around this with training and check lists and such but it is a long season, this decision is going to bite you in the tukhus before its over.

Here is what I would like.
  • Something that can deal with unlimited rotation (obviously)
  • Something that is 1:1 with the actual steering angle and does not require the controller to be zeroed (other than a constant programmed into the robot once and only changed if there is work on the robot -- if ever).
  • Something that has a resolution of under 1 degree -- preferably 1/10th a degree or better.
  • Something with as little noise as possible (To get reasonable responses, we use a lot of D Gain in our PID Loop. Noise is really tough for Deriviative Feedback loops to deal with.)
  • Something with at Digital Output if possible -- for two reasons. First, we had a heck of a time with noise on the 5V supply and on the GND from the RoboRIO, so it was hard to get a noise free signal out of a lot of our sensors (like pots for example). Second we ran out of analog inputs on the RoboRIO and had to add a coprocessor just to manage the extra analog signals. Not ideal. If we can put the steering position I2C or SPI, that may make our lives better -- though perhaps not because we are thinking of using the Talon SRX to do our PID loop, I don't think the Talon SRX likes getting its sensor input via anything other than Quadrature or Analog. So, I don't really know what I want in this department.

Anyway, I would like learn from folk with unlimited rotation swerve experience. What sensor scheme did you use and what are the pros (and cons) of those choices?

Do tell.

Dr. Joe J.


*don't get me started about FIRST's decision to allow the NI folks to allow the RoboRIO loose its mind at just under 7V -- this is something close to criminal. Really... this was a really dumb design direction given the customer base and the intended use of the RoboRIO.
You could also use an indexing sensor such as a hall effect. The Encoder in WPILib supports indexing out of the box as does the Talon via CAN-Position Control.

My money is on the sensor Bryce listed because I'm cheap. And also lazy and don't like wiring extra sensors.
__________________




.
  #11   Spotlight this post!  
Unread 13-05-2015, 15:19
Paul Boehringer Paul Boehringer is offline
Registered User
FRC #1218 (Vulcan Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Philadelphia
Posts: 18
Paul Boehringer will become famous soon enoughPaul Boehringer will become famous soon enough
Re: Best Sensor for Unlimited Rotation Swerve

We used indexed encoders this year. In my opinion an encoder such as the AM103 (made by cui) where the shaft goes through the encoder are much easier to deal with because you can mount them right to the gearbox plate. However each team has their own machining advantages and disadvantages.

Overall I would say its an extremely high priority to either use indexed encoders or continuous potentiometers on a swerve steering system. Though there are totally ways around it, I feel like doing it this way makes it much easier.
  #12   Spotlight this post!  
Unread 13-05-2015, 15:20
MaGiC_PiKaChU's Avatar
MaGiC_PiKaChU MaGiC_PiKaChU is offline
Drive Coach
AKA: Antoine L.
FRC #3360 (Hyperion)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Sherbrooke
Posts: 608
MaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by marshall View Post
Have you interfaced these to the Talon SRX controllers at all?
my team interfaced our swerve with the SRX, using these absolute encoders... http://www.andymark.com/product-p/am-2899.htm

works like a charm
__________________
2012 - 3360 - Junior member
2013 - 3360 - Lead Programmer, Human player
2014 - 3360 - Lead Programmer, Human player
2015 - 3360 - Lead Programmer, Driver
2016 - 3360 - Mentor, Drive coach



  #13   Spotlight this post!  
Unread 13-05-2015, 15:24
zsnow's Avatar
zsnow zsnow is offline
Head of Satire
AKA: Zachary Snow
FRC #2122 (Team Tators)
Team Role: Programmer
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Boise, Idaho
Posts: 17
zsnow has a spectacular aura aboutzsnow has a spectacular aura about
Re: Best Sensor for Unlimited Rotation Swerve

+1 On the magnetic absolute analog encoders from US Digital. We calibrate them and store an offset to zero, keeping it stateless.
__________________
Programming Lead: 2013-2015
Mechanical Dabbler: 2013, 2015

2015: IRI Semi Finalists 2338, 2122, 107, Tesla IDA, Utah Finalists 2122, 3230, 3405, EEA, WFFA, Arizona West Winners 2122, 3309, 5059, ICA
2014: Utah Winners 2122, 2996, 3191, ICA, Las Vegas Semi Finalists 2122, 399, 1572, ICA, CCC Winners 1678, 2122, 9073, ICA
2013: CalGames Winners 2122, 1678, 4171, Judges Award
2007-12: Lot's of wins and awards I wish I had been a part of
  #14   Spotlight this post!  
Unread 13-05-2015, 15:54
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by Joe Johnson View Post
folks are using "unicorn swerve" to refer to 4 wheel swerve with 4 wheel independent steering (perhaps a reference to the rarity of such a beast when the term was coined?).
4-wheel independent-steering and independent-driven drivetrain, with unlimited steering rotation of the wheels and sensors, and no gaps in the sensor feedback

http://www.chiefdelphi.com/forums/sh...07&postcount=9

http://www.chiefdelphi.com/forums/sh...4&postcount=13



Last edited by Ether : 13-05-2015 at 15:56.
  #15   Spotlight this post!  
Unread 13-05-2015, 16:19
Knufire Knufire is offline
Rose-Hulman Institute of Technology
no team
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Terre Haute, IN
Posts: 738
Knufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

I have not used the US Digital MA3 in a swerve module, but I have used it in numerous other applications and it has always worked flawlessly.
__________________
Team 469: 2010 - 2013
Team 5188: 2014 - 2016
NAR (VEX U): 2014 - Present
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 06:32.

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