Go to Post IYou might get it all changed over and discover your robot has trouble moving from a dead stop, can no longer turn without playing morse code on the breakers... - KenWittlief [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 16-02-2007, 14:33
kitscuzz's Avatar
kitscuzz kitscuzz is offline
Not alotta posts
AKA: Kit
FRC #1389 (Worst Case Scenario)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Home
Posts: 47
kitscuzz will become famous soon enough
Unhappy Accelerometer Woes

We've been trying to get the accelerometer up and running and we can get some fairly accurate data, but it seems like the kickback from stopping far exceeds the acceleration in getting the accelerometer moving in the first place.

For example, let's say we moved it at -2 ft/s (aka 2 ft/sec backwards), it would give an approximate reading that seems appropriate, but then when we let go, it suddenly launches up to .5 ft/sec forwards. The more it moves about, the farther away from 0 the velocity ends up.

So I did a bit of investigating and found that when tipped so that it was at a 90 degree tilt to the ground, one side gave a mV reading (with the 2500 taken out) of 327, and the other -317. I thought this might be an error of bias (maybe it was a little off the 2500?), so I used the gyro bias finding calc, and looked at the raw again. Even at it's best, it didn't seem to have the same values for forward and backward.

So we're wondering if there's some good method by which we could eliminate the error. Currently we added a deadzone that says if the accelerometer is at zero, and the velocity is less than .5 ft/sec, it should just zero the velocity, but of course this makes the sensor less accurate. And if our robot is moving at a constant velocity it will cause errors when it stops.

The best I could do was make the integration happen as often as possible, so I modified some accelerometer code and the interrupt for the ADC integrates at the same time.

Here is the code.

Any suggestions would be greatly appreciated.
  #2   Spotlight this post!  
Unread 17-02-2007, 22:46
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
Re: Accelerometer Woes

I have tried the accelerometer as well. Pretty much the same results that you are seeing. It makes a good sensor for attitude( pitch and roll ), but integrating the signal for velocity does not seem to work very well.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
  #3   Spotlight this post!  
Unread 18-02-2007, 02:32
kitscuzz's Avatar
kitscuzz kitscuzz is offline
Not alotta posts
AKA: Kit
FRC #1389 (Worst Case Scenario)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Home
Posts: 47
kitscuzz will become famous soon enough
Re: Accelerometer Woes

Sadness Oh well, it seems we'll need to use the YAW rate gyro in some clever way.

This makes autonomous so much harder because we just don't have (and can't afford) carpet! We don't know what speeds we need to set our wheels to (though I suppose we'll get a decent approximation on test day... technically today).
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
Animation Woes Team905Animator 3D Animation and Competition 1 15-02-2005 16:34
Camera Tracking Woes VideoMan053 Programming 4 29-01-2005 18:09
Transmission Woes Madison Motors 3 19-02-2002 10:06
Gear Woes Simon G Technical Discussion 14 24-01-2002 16:31
More pBasic Woes... Dan 550 Programming 4 11-11-2001 23:08


All times are GMT -5. The time now is 00:27.

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