Go to Post The pen [may be] mightier than the sword, but the bandsaw can chop them both. - Marc P. [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 06-02-2006, 21:59
Drew Shapiro's Avatar
Drew Shapiro Drew Shapiro is offline
Pragmatic Programmer
FRC #0417 (Stangbots)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Mount Sinai
Posts: 2
Drew Shapiro is an unknown quantity at this point
Send a message via AIM to Drew Shapiro
Question Gyro/Accelerometer

I am developing some gyro and acceleromter code for my team and have one big question? Is there some standard ratio between the analog output from the gyro./accel. and there values in degrees/sec / meters/sec^2. I'm not even sure what unit the accel. outputs.

I understand that there are documents at www.analog.com to help out, but they are way to confusing for me to understand. Can someone put it in simpler terms?
  #2   Spotlight this post!  
Unread 06-02-2006, 22:03
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
Re: Gyro/Accelerometer

Look at http://www.kevin.org/frc
It has everything for the gyro working quickly in frc_gyro.zip
The accelerometer is a bit harder...But it's not the best way to track position anyway.
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)
  #3   Spotlight this post!  
Unread 06-02-2006, 22:17
Drew Shapiro's Avatar
Drew Shapiro Drew Shapiro is offline
Pragmatic Programmer
FRC #0417 (Stangbots)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Mount Sinai
Posts: 2
Drew Shapiro is an unknown quantity at this point
Send a message via AIM to Drew Shapiro
Re: Gyro/Accelerometer

I understand that Kevin Watson has developed code for the gyro, but I am deveoping something independently. I just want to know the ratio from Analog value to actual value. I don't want to go fishing through Mr.Watson's code if someone already knows where to look.
  #4   Spotlight this post!  
Unread 06-02-2006, 22:27
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
Re: Gyro/Accelerometer

It's all in the specsheets, which are at http://www.usfirst.org/robotics/2006/2006specsheets.htm
Keeping in mind that the analog signal is between 0V and 5V, and the specsheets mention (on the third or so page) the info in units of <unit of acceleration or angular velocity>/V you can determine what analog value corresponds to which.
Keep in mind that it might not use the whole range of 0-1024 (or whatever the range is depending on how many bits of precision you get.) You just need to analyze the specsheet
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)
  #5   Spotlight this post!  
Unread 06-02-2006, 22:36
Mike Shaul's Avatar
Mike Shaul Mike Shaul is offline
Registered User
FRC #0065 (Huskie Brigade)
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Farmington Hills, MI
Posts: 53
Mike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant futureMike Shaul has a brilliant future
Re: Gyro/Accelerometer

Quote:
Originally Posted by Drew Shapiro
I understand that Kevin Watson has developed code for the gyro, but I am deveoping something independently. I just want to know the ratio from Analog value to actual value. I don't want to go fishing through Mr.Watson's code if someone already knows where to look.
What you are looking for is the sensitivity of the sensor, you should be able to find it in the data sheet for whichever sensor you are working with. It should be listed as 26mV/(deg/sec) (just as an example) and you'll need to do a little math to convert that to counts based off of the micro's A/D resolution.
__________________
By far the best proof is experience. - Sir Francis Bacon
  #6   Spotlight this post!  
Unread 06-02-2006, 22:44
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Gyro/Accelerometer

Quote:
Originally Posted by Drew Shapiro
I understand that Kevin Watson has developed code for the gyro, but I am deveoping something independently. I just want to know the ratio from Analog value to actual value. I don't want to go fishing through Mr.Watson's code if someone already knows where to look.
Don't forget the calibration routine I sent you, when we gave you the sample gyro code to work off of, it should still be in your PMs, once you have the values for 90 180 270 and 360/0 degrees you can figure out the intermediaries pretty simply.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
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 23:37.

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