View Single Post
  #3   Spotlight this post!  
Unread 28-02-2012, 19:24
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Getting Started with the Accelerometer

Accelerometer gives you accelerations. In order to obtain speed or distance data, you need to integrate the data against time to obtain speed (and double integration to obtain distance). Because of the fact that the accelerometer will pick up a lot of noise especially when the robot is moving, it means you will have major cumulative error in your integration. The error is especially bad for double integration. So beware if you decided to do this. We tried this a couple of years ago because we couldn't mount encoders on the wheels. We ended up using a lot of tricks to minimize the error. For example, disable the accelerometer until we need it, reset the accumulators right before we need to enable it, only use it for short runs, disable the accelerometer right after we reach target etc. Also, mount the accelerometer on shock absorbing material to minimize vibrations.
__________________
Reply With Quote