Go to Post Don't let the teams here be so much of an intimidation to you, but instead, an inspiration. They all had to start from the beginning, too. - Amanda Morrison [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 26-01-2006, 14:48
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Gyro not accurate - Problem

Im not aware of a solid state MEMs gyro that gives angular position.

The NS ADXRSxxx devices output angular rate (degrees / second). This is exactly what you want for motion control feedback if you have an input that is commanding desired degree/S turn rate (ie, a joystick)

you simply compare the joystick input to the sensor output to see if the bot is turning as fast as the driver is commanding it to turn. That is your error signal for a feedback PID loop.

The same sensor can be integrated to get relative compass heading. Its simple to do.

assuming you scale the yaw rate sensor down to 8 bits, you would have a 16 bit variable, initialized to 32,000. Then on every loop through your code read the sensor, add it to that HEADING variable, and subtract 128 (for the zero reading offset)

then as your bot turns one way, the HEADING variable will increase, and decrease when turning the other way.

you can also let the bot sit still for a few seconds at power-up, and read the 'not moving' output of the sensor. That will be your zero point (might be 126 or 130... instead of 128). This way you compensate for drift, and you have control over the 'calibration'.

If there are MEMs gyro chips that output heading, Id be interested in seeing the spec sheets. I know there are magnetic sensors that work that way, they tell you which way magnetic north is (in 3 dimensional space).
 


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
atan Problem - Need Help the_undefined Programming 0 18-02-2005 11:16
Physics Problem Venkatesh Math and Science 13 30-11-2004 20:30
No Signal From Gyro colt527 Programming 12 19-10-2004 07:30
Ok one problem cantwell03 Programming 3 13-02-2003 07:28
Have YOU used the gyro chip? FotoPlasma Technical Discussion 10 31-01-2002 13:26


All times are GMT -5. The time now is 18:52.

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