Go to Post There are "Problems", and then there are "Solutions". Understand the Problem, and keep your mind open to alternative solutions. Don't get married to a Solution. - rich2202 [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 24-02-2016, 13:34
pipsqueaker pipsqueaker is offline
Registered User
FRC #1124
 
Join Date: Apr 2013
Location: Avon
Posts: 59
pipsqueaker is a name known to allpipsqueaker is a name known to allpipsqueaker is a name known to allpipsqueaker is a name known to allpipsqueaker is a name known to allpipsqueaker is a name known to all
Better gyroscope?

Hey everybody!

We're using a gyroscope on our robot this year (I dont know the model number, but it's the "traditional" one you can see a picture of here). Unfortunately, this gyro tends to drift randomly sometimes (accumulating a few degrees over a few seconds), and at others it will remain almost perfectly stable.

Has anyone come across this problem before? We'd like to use the gyro to aim our robot, so such drift is a problem.

If anyone simply has suggestions for better gyroscopes that would also be welcome
  #2   Spotlight this post!  
Unread 24-02-2016, 13:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Better gyroscope?

The random drift you describe sounds like electrical noise. If the wiring from the sensor goes parallel to motor power wires, you might find the integrated value acting like that. Try shielded wire routed well away from high currents and see if it stops misbehaving.
  #3   Spotlight this post!  
Unread 24-02-2016, 13:40
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 374
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Better gyroscope?

We have a NavX-MXP for navigation. The drift is 1 or 2 degrees over match time.

Lower quality gyros do tend to drift a lot, so what you see is probably normal. Make sure your gyro is calibrated correctly though.
  #4   Spotlight this post!  
Unread 24-02-2016, 13:45
Hjelstrom's Avatar
Hjelstrom Hjelstrom is offline
Mentor
FRC #0987 (High Rollers)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Las Vegas
Posts: 148
Hjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond repute
Re: Better gyroscope?

Be extra careful not to move your robot while the gyro is calibrating. Typically that a few seconds is right after you turn the robot on.
  #5   Spotlight this post!  
Unread 24-02-2016, 13:45
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: Better gyroscope?

Not sure if the WPI library was modified recently, but in 2014, when we used a regular gyro, we had similar inconsistent drifting problems. With field-centric swerve, things sometimes got really ugly.
There's a discussion about that on this thread: http://www.chiefdelphi.com/forums/sh...62#post1399062

So I ended up writing my own Gyro code. If you're using LabVIEW, I posted my code here: http://www.chiefdelphi.com/forums/sh...55#post1416955

Those changes definitely improved things.

In 2015, we got the NavX MXP, which offered further improvement, and worked great for our swerve last year. (and since the NavX comes with its own libraries, you don't need the code modifications I mentioned)
__________________
Head Programmer / Driver
  #6   Spotlight this post!  
Unread 24-02-2016, 17:20
pipsqueaker pipsqueaker is offline
Registered User
FRC #1124
 
Join Date: Apr 2013
Location: Avon
Posts: 59
pipsqueaker is a name known to allpipsqueaker is a name known to allpipsqueaker is a name known to allpipsqueaker is a name known to allpipsqueaker is a name known to allpipsqueaker is a name known to all
Re: Better gyroscope?

Quote:
Originally Posted by Hjelstrom View Post
Be extra careful not to move your robot while the gyro is calibrating. Typically that a few seconds is right after you turn the robot on.
Hmm, so the gyro calibrates even before the code starts up? That's good to know.
  #7   Spotlight this post!  
Unread 24-02-2016, 18:31
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Better gyroscope?

Quote:
Originally Posted by pipsqueaker View Post
Hmm, so the gyro calibrates even before the code starts up? That's good to know.
If you didn't notice, instantiating a gyro will stall the code for a couple seconds while it calibrates.
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
  #8   Spotlight this post!  
Unread 24-02-2016, 23:19
juchong's Avatar
juchong juchong is offline
Electrical Engineer
AKA: Juan Chong
FRC #2655 (Flying Platypi)
Team Role: Engineer
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Greensboro, NC
Posts: 107
juchong is a jewel in the roughjuchong is a jewel in the roughjuchong is a jewel in the rough
Re: Better gyroscope?

If your team used your AndyMark First Choice points, you should have received an FRC Gyro & Accel board with your order free of charge. This sensor should provide much better performance!
__________________
Teams I've worked with:My Website: http://www.juanjchong.com/
What I do: Analog Devices iSensor Product Engineer
  #9   Spotlight this post!  
Unread 24-02-2016, 23:59
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Better gyroscope?

Also, if you haven't used your FirstChoice points amazingly the ADIS16448 is still available.
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #10   Spotlight this post!  
Unread 25-02-2016, 01:09
AlexanderTheOK AlexanderTheOK is offline
Guy
no team
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Los Angeles
Posts: 147
AlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really nice
Re: Better gyroscope?

I can personally vouch for the navx-mxp and WCP Spartan Board. While in my experience (which involves a sample size of exactly two of each board, and is thus in anecdotal territory) the navx has significantly less drift, neither drifts significantly anyways and thus the difference is meaningless.

Last edited by AlexanderTheOK : 25-02-2016 at 01:10. Reason: better grammar
  #11   Spotlight this post!  
Unread 25-02-2016, 02:00
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Better gyroscope?

Quote:
Originally Posted by AlexanderTheOK View Post
I can personally vouch for the navx-mxp and WCP Spartan Board. While in my experience (which involves a sample size of exactly two of each board, and is thus in anecdotal territory) the navx has significantly less drift, neither drifts significantly anyways and thus the difference is meaningless.
The WCP Spartan board has a adxrs453 on it. The adxrs453 is an amazing chip. The drift should be 15 degrees/hour. The spec that the spartan board really wins on is the "Ultrahigh vibration rejection: 0.01°/sec/g". On previous KOP gyros, I saw significant coupling between acceleration and angle. When I had the robot accelerate hard, it would measure that it had turned. On the adxrs453, I've had no issues with that. 254, 1678, 971, 973 and 1323 all ran a previous version of the board last year and will be running it again this year.

The navx has a magnetometer, so it can detect the earth's magnetic field and use that to adjust. That will result in less drift as you noticed, if drift is the metric you want to use for heading quality.

(Full disclosure: I lead the design of the Spartan Sensor board and worked with WCP and others to make it legal this year and make it available for sale. Thanks a ton to RC for helping make this board available to everyone.)
  #12   Spotlight this post!  
Unread 25-02-2016, 02:06
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Better gyroscope?

Quote:
Originally Posted by kevin.li.rit View Post
Also, if you haven't used your FirstChoice points amazingly the ADIS16448 is still available.
For 50 credits, it's a bargain. Probably one of, if not the best bargain part in the entire catalog. The ADIS16448 dev kit retails for over $800. That's a lot of IMU for your credits.
  #13   Spotlight this post!  
Unread 26-02-2016, 00:24
juchong's Avatar
juchong juchong is offline
Electrical Engineer
AKA: Juan Chong
FRC #2655 (Flying Platypi)
Team Role: Engineer
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Greensboro, NC
Posts: 107
juchong is a jewel in the roughjuchong is a jewel in the roughjuchong is a jewel in the rough
Re: Better gyroscope?

Quote:
Originally Posted by AustinSchuh View Post
The WCP Spartan board has a adxrs453 on it. The adxrs453 is an amazing chip. The drift should be 15 degrees/hour. The spec that the spartan board really wins on is the "Ultrahigh vibration rejection: 0.01°/sec/g". On previous KOP gyros, I saw significant coupling between acceleration and angle. When I had the robot accelerate hard, it would measure that it had turned. On the adxrs453, I've had no issues with that. 254, 1678, 971, 973 and 1323 all ran a previous version of the board last year and will be running it again this year.
You're right, the ADXRS450/453 is a nice gyro core on its own! If you're looking for high VRE (Vibration Rectification Error) take a look at the ADIS16448. It has much better VRE and lower drift vs the 450.

Quote:
Originally Posted by AustinSchuh View Post
For 50 credits, it's a bargain. Probably one of, if not the best bargain part in the entire catalog. The ADIS16448 dev kit retails for over $800. That's a lot of IMU for your credits.
__________________
Teams I've worked with:My Website: http://www.juanjchong.com/
What I do: Analog Devices iSensor Product Engineer
  #14   Spotlight this post!  
Unread 29-02-2016, 10:36
snekiam snekiam is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2010
Location: SE Michigan
Posts: 94
snekiam has a spectacular aura aboutsnekiam has a spectacular aura aboutsnekiam has a spectacular aura about
We had the same problem last year,and switched to the Navx this year. We have no problems with drift at all.
  #15   Spotlight this post!  
Unread 29-02-2016, 16:43
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,648
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
Re: Better gyroscope?

I went into last year a skeptic and I came out a believer: the NavMXP is going on every FIRST robot from now on until something better comes along (and I suppose that will be a long time, if ever because honestly, 1-2 degrees during a match is pretty much as good as you'll need for almost any algorithm I'm likely to use).

It just works. Very impressive performance.

Dr. Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
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 05:43.

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