Pullman, WA 99163
509.334.6306
www.digilentinc.com
PmodGYRO™ Reference Manual
Revised April 12, 2016
This manual applies to the PmodGYRO rev. A
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Overview
The PmodGYRO is a 3-axis gyroscope powered by the STMicroelectronics L3G4200D. By communicating with the
chip through SPI or I2C, users may configure the module to report angular momentum at a resolution of up to 2000
dps at an output rate up to 800Hz.
1 Functional Description
The PmodGYRO utilizes ST L3G4200D gyroscope to provide motion sensing data on each of the three Cartesian
axes. Users may configure both the resolution and filtering options for the measured data.
2 Interfacing with the Pmod
The PmodGYRO communicates with the host board via the SPI or I²C protocols. By driving the Chip Select (CS) line
to a logic low voltage state, SPI mode is enabled. The first byte sent over SPI informs the on-board chip if a read or
write command is going to be issued, if the register address should be incremented after a particular command has
been completed, and the 5 bit address of the register that is to be written to.
An example timing diagram for SPI read and writes from the L3G4200D datasheet is provided below:
3-axis MEMS digital gyroscope with high shock
survivability
Get angular momentum data with user selectable
resolution (250/500/2000dps)
Two customizable interrupt pins
User configurable signal filtering
Power-down and Sleep modes
Small PCB size for flexible designs 1.0 in × 0.8 in
(2.5 cm × 2.0 cm)
12-pin Pmod port with SPI interface and
additional I²C interface
Library and example code available in resource
center