Go to Post Backwards PWMs happen to the best of us. - Woolly [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-07-2014, 16:18
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Alligning swerve modules (and other problems)

I've never seen this discussed in a thread, so I assume it must be somewhat easy to figure out. One of the fairly common swerve issues I've read about is having the modules out of sync. I figured that some teams would use limit switches or hall effect sensors to re-calibrate the rotary position sensors of the modules during a match (similar to what most 3D printers do to identify their boundaries), but as of yet I haven't heard of a team resorting to doing that. I was wondering what teams have done to mitigate this issue as well as other crippling issues during matches.
  #2   Spotlight this post!  
Unread 04-07-2014, 16:35
Tyler2517's Avatar
Tyler2517 Tyler2517 is offline
ShortOnes
AKA: Tyler Gibb
FRC #2517 (Evergreen Robotics)
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2011
Location: Vancouver, WA
Posts: 203
Tyler2517 has a spectacular aura aboutTyler2517 has a spectacular aura aboutTyler2517 has a spectacular aura about
Re: Alligning swerve modules (and other problems)

Swerve realignment is interesting my team had some problems early on in the season because we were new to the drive train.
We used thermal press fits to connect the coaxial shaft(outside shaft) to the top of the pivot yoke. We had one that was welded and the other 3 were using the press fits. The ones using the press fit slipped a lot during our first district.
In our second district we only had a slip ever 3 or 4 matches. In our last district we had no slips but we did loss a module after being catapulted by another robot.

The slipping was a major problem for us and in the future we plan on using a limit switch to automatically calibrate in a match.

When only one module was lost and it would just spin in place powered or not or just sit still our other 3 would just over power any movement it would say we would see a noticeable drop in top speed and acceleration.

Once the mechanical slip stopped we did not have any problems.

Last edited by Tyler2517 : 04-07-2014 at 16:37.
  #3   Spotlight this post!  
Unread 04-07-2014, 18:10
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: Alligning swerve modules (and other problems)

This was never a problem for us throughout the season. Never noticed any slipping.
Here's my attempt at a mechanical explanation of how we did it: The wheel is attached a triangle holding box thing which is attached to a stick which is attached to a gear which is attached to another gear or something which is attached to a stick which is attached to an absolute encoder.
Sorry, I'm a programmer.

The most crippling swerve issue for us was gyro alignment, as we used a field centric system. Sometimes the gyro would just go nuts, creating a phenomenon we like to call the "drunken apple"'

After putting the gyros in a protective shock-absorbing case, we didn't have any problems with complete gyro craziness, although gyro drift was still present and annoying. We have to zero the gyro many times during a match.
This is probably the biggest problem we've had with swerve, and I'm not quite sure how to fix it.
__________________
Head Programmer / Driver

Last edited by cjl2625 : 04-07-2014 at 18:35.
  #4   Spotlight this post!  
Unread 05-07-2014, 02:16
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,222
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Alligning swerve modules (and other problems)

Hall effect sensors would be good if you are okay with wires. Otherwise, you can use a rubber tube stretched between the modules to straighten them out relative to each other before "zeroing" their encoders.The holes for the rubber tube need to be above the axle on the wheels.
I think 1640 had something on it.
  #5   Spotlight this post!  
Unread 05-07-2014, 09:27
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,363
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Alligning swerve modules (and other problems)

We use continuous rotation 360 degree absolute encoders on our coaxial modules. All modules are identical. We calibrate our modules on or off the robot. We use the convention of looking at the module from the front, the wheel sprocket is to the right. We get the wheel pointing straight forward by eye, twisting it back and forth making sure it is centered. (more lash than I like). We connect Ground and 5 volts to the sensor. Signal and ground to a volt ohm meter. We loosen up the set screw on the beam coupler and twist till we get the 0.25 - 4.75 volt crossover position. Tighten the set screw. One of our mentors made a break out board to make this easier. This also can be done by the crio and dash board. We did have problems in the past with plastic beam couplers from automation direct loosening and loosing calibration. This year we used the First choice voucher and use the Al beam couplers. No slipping. We have had arguments over calibrating to the cross over point or 2.5 volts. I don't think it matters. When things get out of calibration, the code is bad or something else is wrong, our team calls it the happy dance. The drunken apple? I think I know were that came from. I call it a grand mal seizure.
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 14: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