Professional Documents
Culture Documents
com/tutorials/gyroscope
Digital Gyroscopes
Brian Margosian
Connor Donker
Nick Tountasakis
Agenda
What is a gyroscope?
Why are they useful?
Project usage
Error compensation
Types of gyroscopes / interfacing
Question / Answer
What is a Gyroscope?
Device used to measure rotational velocity
https://learn.sparkfun.com/tutorials/accelerometer-basics/all
Mechanical Gyro
Spinning wheel with fixed axle
Mounted in 2 or 3 gimbals to allow rotation
Resists external torque
http://en.wikipedia.org/wiki/File:Gyroscope_operation.gif
MEMS Gyro
http://sensorwiki.org/doku.php/sensors/gyroscope
http://electroiq.com/blog/2010/11/introduction-to-mems-gyroscopes/
http://sensorwiki.org/doku.php/sensors/gyroscope
5
Aviation
Stability control
Image on spinning disc
Motion detection
http://www.eecs.umich.edu
Sources of Error
Gyro Drift:
Defined as gyro at resting state producing non-zero values
Drift seen at all rotational velocities, on all axes
Caused by heating up of gyroscope during operation
Unsteady input power source voltages contributes
http://nxttime.wordpress.com/category/sensors/gyro-sensor/
How to Compensate
Multiple Options:
More expensive (+$5 - $10) premium on-chip temperature
compensation
Wait until sensor reaches maximum temperature, calculate offset
Drift not exactly constant, high accuracy requires moving
average calculation
Run gyroscope off of quality power supply
Can get by with batteries and voltage regulator
https://learn.sparkfun.com/tutorials/accelerometer-basics/all
Gyroscopes
Rotational motion
https://learn.sparkfun.com/tutorials/accelerometer-basics/all
Accelerometers
Linear motion
10
Accelerometers:
Range
Interface
Number of axes
Power
Bonus features
Interrupts
Temperature sensing
Internal LPF
https://www.sparkfun.com/products/9446
12
Device comparison
Device
Range
Interface
Price
Axes
Power
Bonus Features
LPY503AL
30/s
Analog
$30
2.7-3.6
(4x
V6.8mA
outputs
output) or
or
120/s
1-5uA
L3G4200D
ITG-3200
250/s,
SPI
500/s
and I2C
2.4-3.6
V6.1mA
or 2000
or
survivability
/s
5uA
2000/s
I2C
$50
$20
2.1-3.6
V6.5mA
or
5uA
temperature sensor
13
Analog Interfacing
X axis ADC
Analog Gyro
Y axis ADC
Microcontroller
Z axis ADC
Pros:
Cheaper
Easier to interpret data
Precision
Cons:
More parts
More pin usage
(dependant on ADCs)
Often higher power
14
Digital Interfacing
X axis ADC
Digital Gyro
Y axis ADC
Microcontroller
Z axis ADC
Pros:
Smaller package
Less power use
(fewer running components)
Fewer pins
Cons:
Often marginally more
expensive
Can be harder to interface
15
0x28
0x29
0x2A
0x2B
0x2C
X data
Y data
0x2D
Z data
16
0x28
0x29
0x2A
0x2B
0x2C
X data
Y data
0x2D
Z data
16
0x28
0x29
0x2A
0x2B
0x2C
X data
Y data
0x2D
Z data
16
0x28
0x29
0x2A
0x2B
0x2C
X data
Y data
0x2D
Z data
16
0x28
0x29
0x2A
0x2B
0x2C
X data
Y data
0x2D
Z data
16
0x28
0x29
0x2A
0x2B
0x2C
X data
Y data
0x2D
Z data
16
IMUs
Gyro, accelerometer,
magnetometer on board
Always digital
Degrees of freedom
Some come with onboard
processors
Can be pricey ($50-$125)
http://www.pololu.com/product/1268/
17
Summary
Gyroscope basics
What is a gyro?
Mechanical vs MEMS
Interfacing
Analog
Digital
18
https://learn.sparkfun.com/tutorials/gyroscope
Digital Gyroscopes
Brian Margosian
Connor Donker
Nick Tountasakis