View Single Post
  #7   Spotlight this post!  
Unread 17-01-2009, 12:40
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,995
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Help with accelerometer.

OK, step zero would be to wire it up correctly. I guess you have this done already.

Next would be to use programming to simply read the value and display it. Pick one axis for now.

With the robot standing still, you'll get a voltage (I think 2.5 volts, but look it up). Accelerating the robot in one direction will make that voltage go up, in the other direction it will go down.

To find out what voltage it will give in a 1 gravity field, turn the robot (or the sensor!) on its side, you'll be able to read the change in value. If what I mean isn't clear to you, let me know.

OK, once you can read the voltage and its changes, convert that to an acceleration in, say, meters per second per second. (m/s2).

Now to convert that to a motion reading: Let's say you measure exactly one meter/sec2 acceleration, for exactly one second. After that one second, the robot is moving at a speed of 1 meter per second. I'll leave it to you to figure out how far it went, but it is less than 1 meter.

But, step 1 is reading inthe analog voltage(s) and converting it to an acceleration value.

Have fun.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote