Go to Post everyone here has a life outside of FIRST (some just don't want to admit it). - shyra1353 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 18-02-2013, 01:01
Kingston951 Kingston951 is offline
Registered User
FRC #1943
 
Join Date: Feb 2013
Location: israel
Posts: 5
Kingston951 is an unknown quantity at this point
accelerometer

Hello,

We would like to get the acceleration in a certain axis, but the acceleration doesn't seem to be correct. We tried to replace the accelerometer, but still it just doesn't seem to be correct.
The accelerometer is ADXL345_SPI.

So our question is: what does each axis represent? (as for: moving direction).

It might be a little stupid, but we're out of time and we need help, so thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2013, 01:18
AndrewGRowles's Avatar
AndrewGRowles AndrewGRowles is offline
4901 Mentor
FRC #1876 (BeachBotics)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Hilton Head Island, SC
Posts: 20
AndrewGRowles is an unknown quantity at this point
Re: accelerometer

I haven't used an accelerometer before, but here are some diagrams of what each axis represents.

I recommend posting your code to the forums so others can better understand your issue.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2013, 08:34
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: accelerometer

The ADXL345 board in the Kit of Parts has the X, Y, and Z axes labeled.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2013, 14:58
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: accelerometer

This is actually a question that I've had for a while. Does the accelerometer measure acceleration or angle? For ex. does it increase as your moving it, then go back to zero when it's a stand still, or does it keep your angle as you move it?
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2013, 15:06
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: accelerometer

Quote:
Originally Posted by Sparkyshires View Post
This is actually a question that I've had for a while. Does the accelerometer measure acceleration or angle? For ex. does it increase as your moving it, then go back to zero when it's a stand still, or does it keep your angle as you move it?
Accelerometers measure acceleration, including the acceleration due to gravity. Because it is sensitive to gravity, it can be used to measure angle with respect to the earth provided that there are no other forces at play.
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2013, 15:42
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: accelerometer

Quote:
Originally Posted by EricVanWyk View Post
Accelerometers measure acceleration, including the acceleration due to gravity. Because it is sensitive to gravity, it can be used to measure angle with respect to the earth provided that there are no other forces at play.
Ok thanks! Does the ADXL345_SPI class have a method to keep the angle?
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 03:34.

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