Go to Post I wouldn't mind having this day repeat itself a few times. It would give us more time to work on our robot. - Mr.D [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2012, 01:18
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
ADXL345 - too noisy

FIRST Team 1296 is trying to get good data from a ADXL345 connected via I2C. We wrote some 50Hz sample data to a file and the device is working but sure seems noisy and the zero G offsets drifts (more than I would expect). I looking for helpful advice from some CDers that have had success with these sensors.

1 - Did you hard mount them? Or attempt to use some sort of vibration mount?
2 - Did you put bypass caps and/or power caps on the connectors?
3 - How much data did you average to get the zero G offset?
4 - How often did you reset the velocity and/or distance accumulators?
5 - Did you low pass the data? If so, what were the filter parameters?
6 - How reliable were you able to get them?
7 - Anyone tried using the FIFO or offset registers?

TIA


__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2012, 00:18
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: ADXL345 - too noisy

Bueller? Beuller? Beuller?
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2012, 23:10
nileshp87 nileshp87 is offline
The Infamous nileshp87
no team
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Kent, CT
Posts: 15
nileshp87 is a jewel in the roughnileshp87 is a jewel in the roughnileshp87 is a jewel in the roughnileshp87 is a jewel in the rough
Re: ADXL345 - too noisy

I have been working on this problem for a few weeks, what seems to be approaching the best idea is first taking the average.

Then get the standard deviation.

Then the range of values that should be zero is:
mean +- 2*standard deviation

If we do this for every axis that seems to work best.


Someone else on the forums also suggested (if you are trying to get distance from acceleration) using simpson's rule.

Here's some wiki pages to get you started:
Z-Score
Standard Deviation
Simpson's Rule

by the way we call a calibration method on disabledInit() and it completes in about 30 seconds.
Edit: Hard mounted
Does anyone know of a better way?

Last edited by nileshp87 : 15-02-2012 at 23:15.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2012, 02:08
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: ADXL345 - too noisy

If I recall correctly, the zero-g drifts while it is coming up to temperature. However, I thought that had more of an impact on the gyro than the accelerometer. Does it stabilize eventually?

How does the measured noise compare with what the data sheet indicate?
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2012, 03:39
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: ADXL345 - too noisy

Quote:
Originally Posted by EricVanWyk View Post
If I recall correctly, the zero-g drifts while it is coming up to temperature. However, I thought that had more of an impact on the gyro than the accelerometer. Does it stabilize eventually?

How does the measured noise compare with what the data sheet indicate?

Great question - I'm not sure how long it takes to come up to temperature. We'll try to determine that - thanks for the input. Maybe we can read the temperate sensor on the gyro and compensate. The noise is much more than the data sheets indicates but we are pretty sure most of it is real. The sensor is fine, the robot is just a nasty mechanical environment.
__________________
Fast, cheap or working - pick any two!
Reply With Quote
Reply


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 02:32.

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