Go to Post After all of this is said and done, think about how much more you all will know about the lovely state of Montana and other things not related to robotics. :) - Madison [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 23-02-2006, 21:56
bush's Avatar
bush bush is offline
Registered User
AKA: Aaron
FRC #0710 (Pine Crest School)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Fort Lauderdale, Florida
Posts: 42
bush has a spectacular aura aboutbush has a spectacular aura about
Send a message via AIM to bush
accelerometer specs

I read over the data sheet, and I don't completely understand everything. I just want to double check a few things...

1) The resolution for RC analog inputs is 10-bits, so my code would would read in values ranging from 0 to 1023.

2) Since we are supplying 5V, zero acceleration corresponds to 2.5V, which is represented by 512 in my code.

3) Acceleration is directly proportional to voltage, so an acceleration of +2g would read as 1023 in my code, and an acceleration of -2g would read as 0. +1g would read in 768, and -1g would read in 256, and so on...

If I were wrong about anything, my guess would be #3. I didn't completely understand what the mV/g meant in the data sheet

I might also be wrong about the code values. Similar to PWM, where we only use 0-254 with neutral at 127, this could be 0-1022 with neutral at 511.

Anybody who can clarify this will be helping me out a lot. Thanks
 


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
Accelerometer Timer Question psquared Programming 3 12-02-2005 01:34
Accelerometer Wiring/Input DAN THE MAN Control System 1 06-02-2005 20:02
Example accelerometer code released. Kevin Watson Programming 0 20-01-2005 03:45
2004 Motor specs - Part 1 Paul Copioli Motors 12 28-01-2004 17:40


All times are GMT -5. The time now is 03:14.

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