|
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.
__________________
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
|