Go to Post With one post, Mr. Miller joins the top 0.7% of Chief Delphi, reputation-wise. I think the community supports him. - Taylor [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
  #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.
 


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 04:51.

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