Go to Post Spoiler: There will be no plasma cutters available in FIRST Choice - Jibsy [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 01-02-2010, 19:30
jackdawg's Avatar
jackdawg jackdawg is offline
Registered User
AKA: Wyatt Cerilli
FRC #1307
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Dover NH
Posts: 21
jackdawg is an unknown quantity at this point
the gyro

team 1307 has been working on the autonomous part of the code and wanted to know if anyone out there (and there must be someone) knows how the gyro works. we have never worked with a gyro before so bear with us if we need a bit of explaining. one of my team mates even went as far as to call the company that made the gyro and they deny all knowledge of the device.

thanks for any info

Programmer Team 1307
  #2   Spotlight this post!  
Unread 01-02-2010, 20:19
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: the gyro

How it works? Can't tell you that..
What it does for you?
It measures how fast you are rotating. Mount it flat on your robot, and open it with a Gyro class, and it will measure how far you have rotated (angle) since you last reset.
You can use this to calibrate a turn, basically saying turn until gyro is at x angle.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 01-02-2010, 23:21
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: the gyro

It is a rate gyro. It tells you how fast the gyro is turning, in degrees per second.

It does NOT tell you how far you have turned - you must calculate that. For example, if it says it is turning at 15 degrees per second, and you see that it has done that for exactly three seconds, then you can calculate that it has turned 45 degrees.

The "degrees per second" signal is in the form of an analog voltage. The voltage when it is standing still is 2.5 volts, and the voltage increases 10 mV per degree per second**. So 10 degrees per second clockwise gives you 2.5+0.1=2.6 volts. Counterclockwise 10 deg/sec would be 2.4 volts. Maximum reading is 250 degrees per second - turn any faster than that and the output does not increase.

**This is from memory, please review the official specifications for the milliVolts per degree per second. Thanks.

.
__________________

I am N2IRZ - What's your callsign?
  #4   Spotlight this post!  
Unread 02-02-2010, 00:13
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,533
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: the gyro

Quote:
Originally Posted by Don Rotolo View Post
It is a rate gyro. It tells you how fast the gyro is turning, in degrees per second.

It does NOT tell you how far you have turned - you must calculate that. For example, if it says it is turning at 15 degrees per second, and you see that it has done that for exactly three seconds, then you can calculate that it has turned 45 degrees.

The "degrees per second" signal is in the form of an analog voltage. The voltage when it is standing still is 2.5 volts, and the voltage increases 10 mV per degree per second**. So 10 degrees per second clockwise gives you 2.5+0.1=2.6 volts. Counterclockwise 10 deg/sec would be 2.4 volts. Maximum reading is 250 degrees per second - turn any faster than that and the output does not increase.

**This is from memory, please review the official specifications for the milliVolts per degree per second. Thanks.

.
That's not precisely true. The gyro outputs angular rate, however the WPI folks were nice enough to provide a current "heading" of your robot (obtained by integrating the angular rate value). Turn left and it decreases, turn right and it increases.
  #5   Spotlight this post!  
Unread 02-02-2010, 04:45
Phoenix Spud's Avatar
Phoenix Spud Phoenix Spud is offline
Everyone. Everywhere.
FRC #3132 (Thunder Down Under)
Team Role: College Student
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Sydney, Australia
Posts: 703
Phoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond repute
Re: the gyro

Did you check the Sensor Manual? I found it very helpful last year when I was learning about gyros. Also, there (should) be a bit in the WPIlib documentation on the gyro class.
__________________
Sarah Heimlich
Outreach Mentor | Business Mentor
FIRST® TEAM 3132
  #6   Spotlight this post!  
Unread 02-02-2010, 10:22
furiousgeorge's Avatar
furiousgeorge furiousgeorge is offline
Registered User
FRC #3055
 
Join Date: Jan 2009
Location: Austin
Posts: 74
furiousgeorge will become famous soon enoughfuriousgeorge will become famous soon enough
Re: the gyro

i was wondering about this same topic, is there a wiring diagram somewhere showing how to connect the gyro to the analog breakouts of the cRIO? we have never used a gyro before either and any information would be a big help.
  #7   Spotlight this post!  
Unread 02-02-2010, 12:53
emersont49 emersont49 is offline
Mentor
#1098
 
Join Date: Sep 2004
Location: Fenton, Missouri
Posts: 34
emersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of light
Re: the gyro

Quote:
Originally Posted by furiousgeorge View Post
i was wondering about this same topic, is there a wiring diagram somewhere showing how to connect the gyro to the analog breakouts of the cRIO? we have never used a gyro before either and any information would be a big help.
If you are using Labview, the gyro example code has a wiring diagram included. That code will give you current heading as well as yaw rate.
__________________
Tim Emerson
  #8   Spotlight this post!  
Unread 03-02-2010, 12:34
jackdawg's Avatar
jackdawg jackdawg is offline
Registered User
AKA: Wyatt Cerilli
FRC #1307
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Dover NH
Posts: 21
jackdawg is an unknown quantity at this point
Re: the gyro

thanks all! great info.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to attach the gyro sensor on the robot dazero Sensors 1 02-03-2009 13:16
The Gyro in Disabled Mode eaglesfan10 Programming 2 09-02-2008 12:16
Why does the gyro need the ADC? cprogrammer Programming 16 27-10-2006 01:29
Problems with the gyro Conan Programming 7 06-02-2006 01:45
Usage of the gyro jon virgi General Forum 37 09-06-2003 11:57


All times are GMT -5. The time now is 07:33.

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