Go to Post Wait is that how they got there, well how does one spotlight? - AlexD744 [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 13-03-2005, 23:27
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
Ask about intergration

As we know, if we intergrate the angular rate we'll get the angular. That's why we can use MEMS gyro to measure angular. I'm now using ADXRS150 gyro. But I don't what intergration hardware (what chip or processor) can do this (intergral). Can any one tell me a bit detail about this plz!
  #2   Spotlight this post!  
Unread 13-03-2005, 23:56
Meandmyself's Avatar
Meandmyself Meandmyself is offline
Registered Magic Programming User
AKA: Gordon
#1123 (AIM robotics Crimson Lightning)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: springfield, VA
Posts: 26
Meandmyself will become famous soon enough
Re: Ask about intergration

Quote:
Originally Posted by nobtiba
As we know, if we intergrate the angular rate we'll get the angular. That's why we can use MEMS gyro to measure angular. I'm now using ADXRS150 gyro. But I don't what intergration hardware (what chip or processor) can do this (intergral). Can any one tell me a bit detail about this plz!
Kevin Watson has code to do just this on his website www.kevin.org/frc

you just need gyro.c and gyro.h from his navigation software. It will work with the 150.

hint:use kevin's code. I tried to use the 150 last year to get a heading, but it didn't work very well. Kevin's stuff is a lot easier.
__________________
They call me the Idea man.
Not because my ideas work,
But because I have ideas...


I'm not a programmer. I'm an electrical guy who can program. If only I understood C!

www.aim-robotics.org //team website
www.tjhsst.edu/~gburgett //cool stuff for school
  #3   Spotlight this post!  
Unread 14-03-2005, 13:06
Biff Biff is offline
Registered User
AKA: Tom Cooper
#1227 (Techno Gremlins)
Team Role: Mentor
 
Join Date: Jan 2004
Location: Grand Rapids MI
Posts: 214
Biff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the rough
Re: Ask about intergration

As I understand what's going on in Keven's code it's like this. The process takes over the A/D, and at regular (that's the key) intervals reads the gyro chip and adds or subtracts from an accumulator. From there you can get heading. This may be a large over simplification and is a I understand the process, Kevin really has the skinny on how it works. I suggest you read his read me, notes on the process.
  #4   Spotlight this post!  
Unread 15-03-2005, 23:09
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Ask about intergration

Quote:
Originally Posted by nobtiba
As we know, if we intergrate the angular rate we'll get the angular. That's why we can use MEMS gyro to measure angular. I'm now using ADXRS150 gyro. But I don't what intergration hardware (what chip or processor) can do this (intergral). Can any one tell me a bit detail about this plz!
See Section 16 of "An Introduction to C Programming for FIRST Robotics" that provides code snippets, a full discussion, and how to tune out some of the quantization error. The current version can be obtained at:
www.srvhsrobotics.org ->
Articles ->
Technical Documents ->
C Programming for the Robot Controller

Have fun. Done forget to read the gyro at startup to set the "old"
value, or you will have a bogus value for the integral on startup.
  #5   Spotlight this post!  
Unread 16-03-2005, 13:51
Meandmyself's Avatar
Meandmyself Meandmyself is offline
Registered Magic Programming User
AKA: Gordon
#1123 (AIM robotics Crimson Lightning)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: springfield, VA
Posts: 26
Meandmyself will become famous soon enough
Re: Ask about intergration

Quote:
Originally Posted by Biff
As I understand what's going on in Keven's code it's like this. The process takes over the A/D, and at regular (that's the key) intervals reads the gyro chip and adds or subtracts from an accumulator. From there you can get heading. This may be a large over simplification and is a I understand the process, Kevin really has the skinny on how it works. I suggest you read his read me, notes on the process.
it's not really an oversimplification, it's actually one of the best approximations you can get. He does a midpoint approximation of the actual integral by averaging the current and last values, then multiplying by the change in time and adding it to the accumulator. You learn to do this in any basic calculus class.
__________________
They call me the Idea man.
Not because my ideas work,
But because I have ideas...


I'm not a programmer. I'm an electrical guy who can program. If only I understood C!

www.aim-robotics.org //team website
www.tjhsst.edu/~gburgett //cool stuff for school
  #6   Spotlight this post!  
Unread 30-03-2005, 07:12
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
Re: Ask about intergration

I have now gyro.c and gyro.h (and all navigation.zip too!) but can you tell me what software and hardware I have to take to make it work?
All I have now: ADXRS150, uC: ATMEGA8535 with 10bit ADC, superior loader to load program into uC. I also have a software which I wrote in Turbo C and it can receive data from ADXRS150 gyro through ADC of uC. It can measure voltage by software very exactly but when I change to angular it not exactly:
real 10 degree but value in software only :9.89
real 20 degree but value in software only :14.5
real 30 degree but value in software only :20.3
May be it cause of intergration in my software. I didn't measure the interval between a sample and the next exactly.
So I want to try another method as Kevin use here.
And again, I want to know what software, hardware I need to have and what to do next?
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
"stratagy" angers me deeply... Zeinin General Forum 12 12-01-2002 22:33


All times are GMT -5. The time now is 11:54.

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