I am looking at using a gyro to calculate degrees of rotation. The Analog Devices gyro gives a deg/sec output. I will need to integrate this to know degrees of rotation. Does the STAMP handle this?
Thanks in advance for the input
Phil Pilgrim (PhiPi)
11-29-2006, 02:34 AM
What's the part number of the gyro?
Analog Devices ADXRS401
It is a analog output. I would rather do a PVM gyro if you have any in mind.
Phil Pilgrim (PhiPi)
11-29-2006, 03:31 AM
That one uses a ball-grid-array package. Are you able to solder something like that? Also, you will need an A/D converter to get useful data to the Stamp.
That said, in order to integrate output from such a device, you need to sample it at a constant rate, and frequently enough to account for the range of angular accelerations encountered by your system. Still, there will always be accumulated errors which you will have to find a way to calibrate out. Even the Mars rovers, which use rate gyros and wheel odometry for dead-reckoning navigation, need to obtain a sun sight periodically to correct for accumulated errors.
Sampling anything at a fixed, constant, rapid rate can be a challenge with the Stamp -- especially if it's also engaged in other activities. It might be better to assign the sampling and integration tasks to a small micro with an A/D converter, which the Stamp can poll at its convenience. Parallax's BASIC Stamp 2pe Motherboard (http://www.parallax.com/detail.asp?product_id=28300) (the MoBoStamp-pe, p/n 28300), includes a couple AVR (ATTiny13) micros as coprocessors. These have 10-bit A/Ds built-in and can operate independently of the Stamp. However, you will have to determine if 10 bits of resolution is adequate for your app. Also, these micros run with an internal 9.6MHz RC clock, whose frequency is somewhat temperature dependent. To get a guaranteed constant sampling rate, you would have to provide the AVR with a constant-frequency clock from an external source.
11-29-2006, 05:01 AM
Sparkfun has premounted boards: http://www.sparkfun.com/commerce/product_info.php?products_id=394ĚNo reflow nessesary.
Paul Baker (mailto:email@example.com)
Propeller Applications Engineer
Parallax, Inc. (http://www.parallax.com)