Go to Post You know you are a true tech geek when you end up on top of the Sears tower, and the only pictures you post are the ones of the radio antennae. ;) - Tom Line [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-11-2013, 00:54
bs7280 bs7280 is offline
Registered User
FRC #3734
Team Role: Leadership
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Lake Forest
Posts: 80
bs7280 has a spectacular aura aboutbs7280 has a spectacular aura aboutbs7280 has a spectacular aura about
Sensors for mecanum wheels?

We recently just got a prototype mecanum wheel platform working with a three axis joystick, and everything is working perfectly as far as being able to strafe, move forward backward, and rotate at the same time or independently or what have you.

The next step would be to get the robot working with the appropriate sensors so that "forward" is always the same direction relative to the driver, as right now forward is always the same direction relative to the robot.

So my question is, what sensors (Accelerometer? Gyro? Both?) would we need to be able to control the robot so that forwards is always relative to the driver?
Reply With Quote
  #2   Spotlight this post!  
Unread 24-11-2013, 01:02
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: Sensors for mecanum wheels?

You would likely need both. Our team tried it 2 years ago (field-relative controls), but we were never getting readings accurate enough to work super well, but that is probably our own fault, not the sensors'.

I had an idea to use a compass sensor to detect rotation, and as soon as the robot was enabled in a match, it set the "zero" for the controls, but a magnetic sensor like that would need to be far from magnets (like motors).
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed


Reply With Quote
  #3   Spotlight this post!  
Unread 24-11-2013, 01:11
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
Re: Sensors for mecanum wheels?

Believe it or not, there is actually a "typical" way to do this. It's called field-centric control, and is in fact so popular that it is included in the with the developing software (C++, Java and LabView, I think...) as an alternative to the more common robot-centric control. The only sensor needed is a gyro. Magnetometers haven't proven particularly successful for teams to use in competitions due to their high sensitivity (high enough to detect the earth's magnetic field -> high enough to detect the electronics on other teams robots). I'm not entirely certain how you would incorporate the accelerometer if you were going to use one... What language are you using?
Reply With Quote
  #4   Spotlight this post!  
Unread 24-11-2013, 01:51
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: Sensors for mecanum wheels?

Quote:
Originally Posted by ekapalka View Post
high enough to detect the earth's magnetic field -> high enough to detect the electronics on other teams robots
What if your driver-station console also included a stack of like 5 huge neodymium magnets to override everything else in the room?

Quote:
Originally Posted by huge neodymium magnet warning:
***WARNING*** This is an EXTREMELY Powerful and VERY DANGEROUS Magnet!
The end user MUST USE SAFETY PRECAUTIONS when unpacking and using this magnet. Remove all metal objects within a 5 foot radius before unpacking. Magnets of this size and strength can pull metal objects to them when brought too close. Two magnets of this size can fly together with great force and can break bones.
Wear safety glasses.
Use heavy gloves.
*** DO NOT ALLOW CHILDREN TO PLAY WITH THIS MAGNET***.
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed



Last edited by BBray_T1296 : 24-11-2013 at 01:57. Reason: bigger magnet
Reply With Quote
  #5   Spotlight this post!  
Unread 24-11-2013, 14:47
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,938
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Sensors for mecanum wheels?

I guess you wouldn't be using a hard drive in your DS?
Reply With Quote
  #6   Spotlight this post!  
Unread 24-11-2013, 15:48
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: Sensors for mecanum wheels?

Quote:
Originally Posted by FrankJ View Post
I guess you wouldn't be using a hard drive in your DS?
Nah, SSD.

Though I think if you have to evacuate all metal in a 5' radius, no electronics are safe...
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed


Reply With Quote
  #7   Spotlight this post!  
Unread 24-11-2013, 15:58
bs7280 bs7280 is offline
Registered User
FRC #3734
Team Role: Leadership
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Lake Forest
Posts: 80
bs7280 has a spectacular aura aboutbs7280 has a spectacular aura aboutbs7280 has a spectacular aura about
Re: Sensors for mecanum wheels?

We are using Java on our robot. I ended up not using a generic method/class used for mecanum drive but instead made a class from scratch, which ended up working. And thank you to who said "Fieldcentric control" that was what I was thinking of! What gyro sensor should we buy to use with our robot?
Reply With Quote
  #8   Spotlight this post!  
Unread 24-11-2013, 16:01
KrazyCarl92's Avatar
KrazyCarl92 KrazyCarl92 is offline
Registered User
AKA: Carl Springli
FRC #5811 (The BONDS)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dayton, OH
Posts: 521
KrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond repute
Re: Sensors for mecanum wheels?

Quote:
Originally Posted by ekapalka View Post
Believe it or not, there is actually a "typical" way to do this. It's called field-centric control, and is in fact so popular that it is included in the with the developing software (C++, Java and LabView, I think...) as an alternative to the more common robot-centric control. The only sensor needed is a gyro. Magnetometers haven't proven particularly successful for teams to use in competitions due to their high sensitivity (high enough to detect the earth's magnetic field -> high enough to detect the electronics on other teams robots). I'm not entirely certain how you would incorporate the accelerometer if you were going to use one... What language are you using?
ekapalka is correct on which sensor is most commonly used successfully for field-centric control.

Most gryos actually sense for angular velocity while we are interested in the value for angular position. The code that retrieves the value for us performs the integration that turns the angular velocity reading into the position that we are concerned about. This matters because it is a source of drift in the gyro's angular position reading. It is important to reset the gyro's position value to 0 at the start of autonomous so that any drift that occurs while the robot is sitting on the field or between sitting on the cart and in its starting position on the field can be cancelled out. When we used field centric control in 2010, we also had a button for resetting the gyro in teleop so that we could zero the angular position reading if too much drift occurred throughout a match. Taking advantage of this anytime the robot was facing the proper direction in relation to the driver station helped keep the drift to a minimum and the driving experience as intuitive as possible.
__________________
[2017-present] FRC 0020 - The Rocketeers
[2016] FRC 5811 - BONDS Robotics
[2010-2015] FRC 0020 - The Rocketeers
Reply With Quote
  #9   Spotlight this post!  
Unread 24-11-2013, 18:44
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,059
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Sensors for mecanum wheels?

Quote:
Originally Posted by bs7280 View Post
What gyro sensor should we buy to use with our robot?
I coded a field-centric mecanum drive last year, and the kit gyro seemed to work fine. After ~10 minutes of driving there was no noticeable drift. I suppose that you could always purchase a higher-precision gyro, but my opinion is that this is unnecessary.

We did not incorporate the accelerometer, and the code still functioned well. So I would say to not worry about that. As stated above, make sure to zero the gyro as soon as the robot enables.
Reply With Quote
  #10   Spotlight this post!  
Unread 24-11-2013, 18:53
Brandon Zalinsky's Avatar
Brandon Zalinsky Brandon Zalinsky is offline
Roaming GeorgiaFIRST MC
AKA: The Mecanum Man
FRC #1058 (PVC Pirates)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Clemson, SC
Posts: 456
Brandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant future
Re: Sensors for mecanum wheels?

Gyro only. We started using field oriented drive back in 2010, here's a video of it in action. I would also encourage an encoder on each wheel if you haven't already done so, so you can stop as much drift as possible.
__________________
This is our Robot. There are many like it, but this one is ours.
Measure twice, cut once, curse, buy more, and cut again.

2014- Excellence in Engineering (UNH), District Chairman's Award (NU), #8 Quarterfinalist (NECMP), Winner (Mainely Spirit)
2013- Semifinalists (Battlecry@WPI) Winner (Mainely Spirit)
2012- Regional Chairman's (GSR), Finalists as the #11 Alliance Captain (Battlecry@WPI)
2011-Xerox Creativity Award (GSR), Semifinalists (GSR) Innovation in Control (Virginia)
2010-Champion (GSR), Undefeated (Chesapeake), Coopertition Award (Chesapeake), Quarterfinalists (Galileo) 8th AC (IRI)
2008-Undefeated (GSR), Xerox Creativity Award (GSR)
Reply With Quote
  #11   Spotlight this post!  
Unread 26-11-2013, 16:37
bs7280 bs7280 is offline
Registered User
FRC #3734
Team Role: Leadership
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Lake Forest
Posts: 80
bs7280 has a spectacular aura aboutbs7280 has a spectacular aura aboutbs7280 has a spectacular aura about
Re: Sensors for mecanum wheels?

What sensors and encoders did you use specifically?
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 05:57.

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