Go to Post One of my management professors taught me this: At all times you are holding a bucket in each hand, one full of water, and one full of gasoline. Management is knowing when to throw which bucket. - Barry Bonzack [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 11 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 09-02-2015, 11:35
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,517
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Fixing AndyMark's Swerve & Steer Module Problem

Wouldn't you have been able to count the revolutions in code and make it work that way? I would wager that is what Andy Mark expected you to do.

It's not all that different from needing a scaling factor for your drive encoders or for any other sensor. I understand it would be more convenient if one revolution of the module = one revolution of the encoder, but having one revolution of the module be more than 1 revolution of the encoder actually makes your measurement system more accurate.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2015, 11:54
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,070
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: Fixing AndyMark's Swerve & Steer Module Problem



http://www.chiefdelphi.com/forums/sh...09#post1439709



Last edited by Ether : 09-02-2015 at 12:03.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2015, 12:10
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,274
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: Fixing AndyMark's Swerve & Steer Module Problem

I've been wondering how a team would go about fixing this after I saw the part being introduced. Thank you for sharing this! Good work!
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2015, 15:32
Team 288's Avatar
Team 288 Team 288 is offline
Team 288 - Spare Parts
FTC #0288 (Spare Parts)
Team Role: Coach
 
Join Date: Oct 2008
Rookie Year: 2004
Location: St. Louis
Posts: 32
Team 288 is a jewel in the roughTeam 288 is a jewel in the roughTeam 288 is a jewel in the roughTeam 288 is a jewel in the rough
Re: Fixing AndyMark's Swerve & Steer Module Problem

Quote:
Originally Posted by Tom Line View Post
Wouldn't you have been able to count the revolutions in code and make it work that way? I would wager that is what Andy Mark expected you to do.

It's not all that different from needing a scaling factor for your drive encoders or for any other sensor. I understand it would be more convenient if one revolution of the module = one revolution of the encoder, but having one revolution of the module be more than 1 revolution of the encoder actually makes your measurement system more accurate.
Yes, there was an option to fix the problem with programming. This was not an ideal solution because this would mean 3.3 rotations of the sensor per wheel revolution. This means that you would not be able to "zero" the wheels automatically on power up. You would have to put the robot on the field with the wheels pinned and then turn on the power so that the robot knows the exact position of the wheels. If you ever had a power loss during a match you'd be in trouble because your wheel positions would likely be messed up.

AndyMark did not mean for it to be that way. I spoke with Danny Blau from AndyMark before ordering the absolute sensors and he explained in detail the way they were "meant" to work. They were intended to be ABSOLUTE, meaning you always know the wheel position.
__________________
Charlie Blair
Electronics Instructor at Gateway Institute of Technology High School
Head Coach for FTC teams at Gateway Institute of Technology High School since 2005
Planning Committee Member, St. Louis Regional FTC
Mentor to Team 931 Perpetual Chaos since 2004
FRC Volunteer
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2015, 11:08
Optimism's Avatar
Optimism Optimism is offline
Registered User
AKA: Calvin Ly
FRC #2468 (Team Appreciate)
Team Role: Programmer
 
Join Date: Jul 2014
Rookie Year: 2012
Location: Austin
Posts: 13
Optimism is an unknown quantity at this point
Re: Fixing AndyMark's Swerve & Steer Module Problem

Team 2468 here,

We also solved this problem of steering direction by adding an absolute encoder.
We 3D printed a gear to be 1:1 with the steering module and meshed it with the gear driven by the PG71.
Our encoder is an absolute shaft encoder. We calibrated once by storing the value of each encoder in a file on the roboRIO when the wheels were all turned correctly, and now we read that file in the code to know which direction the wheels should face as forward.

A photo of our 3D printed gear on the swerve module is attached.
Attached Thumbnails
Click image for larger version

Name:	swerve encoder gear.jpg
Views:	188
Size:	1.34 MB
ID:	18259  
Reply With Quote
  #6   Spotlight this post!  
Unread 10-02-2015, 13:53
Team 288's Avatar
Team 288 Team 288 is offline
Team 288 - Spare Parts
FTC #0288 (Spare Parts)
Team Role: Coach
 
Join Date: Oct 2008
Rookie Year: 2004
Location: St. Louis
Posts: 32
Team 288 is a jewel in the roughTeam 288 is a jewel in the roughTeam 288 is a jewel in the roughTeam 288 is a jewel in the rough
Re: Fixing AndyMark's Swerve & Steer Module Problem

2468: How did you attach your 3D printed gear to the shaft of the encoder?

We centered our encoders manually before giving the robot to the programming team. First we pinned the wheel in the "zero" or straight forward/reverse direction. Then we powered up the absolute encoder and hooked up a voltmeter to the output of the encoder. We turned the encoder until it was at very very close to 0 volts (most of them were at 10mV) then we installed the gear and locked it in place. The play in the gear translated to the wheels being in their "zero" position and the encoder going from just above zero to just below zero volts. This allowed us to give it to the programming team with no need to correct for the encoder.

Your method seems like a much easier hardware solution.

BTW: It's always great to see other teams using aircraft Clecos to build their robot. We use them on everything! We've even sent the bot onto the field held together with them temporarily.
__________________
Charlie Blair
Electronics Instructor at Gateway Institute of Technology High School
Head Coach for FTC teams at Gateway Institute of Technology High School since 2005
Planning Committee Member, St. Louis Regional FTC
Mentor to Team 931 Perpetual Chaos since 2004
FRC Volunteer
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2015, 00:32
Optimism's Avatar
Optimism Optimism is offline
Registered User
AKA: Calvin Ly
FRC #2468 (Team Appreciate)
Team Role: Programmer
 
Join Date: Jul 2014
Rookie Year: 2012
Location: Austin
Posts: 13
Optimism is an unknown quantity at this point
Re: Fixing AndyMark's Swerve & Steer Module Problem

We used a set screw to secure the 3D printed gear to the shaft of the encoder. The printed gear isn't flat to allow for a better mesh with the swerve module gear since the way that we attached the gear, a flat gear doesn't mesh very well (around 50% of the width of a flat gear vs >75% of the gear we are using).

The issue we had with setting up the encoder that way was the possibility of having to take off the sensor or doing maintenance on the chassis which could throw off the absolute encoder value. It would make remounting the sensors a big pain, especially during competition.

Last edited by Optimism : 11-02-2015 at 00:35.
Reply With Quote
Reply


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 21:01.

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