View Single Post
  #2   Spotlight this post!  
Unread 13-02-2009, 11:00
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: Finding distance using accelerometer..

Be very careful about this.

In the world that a high school physics class exists in, it is quite simple. Integrate acceleration once and you get velocity. Integrate velocity and you get position. Done and Done.

Unfortunately, the real world is a jerk and gravity keeps on keeping us down. If your accelerometer isn't perfectly aligned, gravity will affect your side to side acceleration. This will show up as a constant small acceleration. Your velocity will continue to climb and your calculated position will soon be in a different country.

Assuming you can compensate for gravity, you will probably need to use the gyro as well to detect orientation. If you turn 90 degrees, X becomes Y and vis-versa. The gyro will help you with this.

The accelerometer is very good at sensing acceleration, impacts and tilt.I think it will mostly be used for traction control and "I just hit something in autonomous, RUN AWAY" applications this year. It is sketchy for velocity and a pain in the butt for position.

That being said, go for it.
Reply With Quote