View Single Post
  #1   Spotlight this post!  
Unread 03-01-2007, 15:13
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,306
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Accelerometer Suggestions

I was looking at Sparkfun about Accelerometers, as they seem to be one of the best carriers for usable ones (boo BGA soldering, we bought a gyro directly from Analog accidently 2 years ago, and thankfully we knew someone who could solder it for us).

Chris, if you use that soon please tell me how it works, as the ADXL203 seems to be the best option available if we don't want to build a power converter for voltage. The only worry about that is if a 1.7g range will be enough.

Attached are the .c, .h, and readme files for the code. It's designed to work with Kevin's ADC code and is based largely off of his gyro code (so if it looks familiar, that's why).

So far it's accurate to about 3 inches for 1-1.5 seconds, and like 6-8 inches for 2 or 3 seconds. It's not as accurate in reverse as it is going forward. Based on those errors, I definitely need a more accurate sensor for a large bot.
Attached Files
File Type: c accelerometer.c (12.2 KB, 207 views)
File Type: h accelerometer.h (5.4 KB, 191 views)
File Type: txt accelerometer_readme.txt (10.5 KB, 181 views)
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present