User Manual

Copyright © Parallax Inc. Gyroscope Module 3-Axis L3G4200D (#27911) v1.0 10/24/2011 Page 2 of 5
Quick-Start Guide
The following is a very basic procedure to get started initializing and reading values from the Gyroscope
Module. Example test code for the Propeller and Basic Stamp can be found on the 27911 product page at
www.parallax.com.
This module’s default communication setup is I²C. Use of SPI communication is configured by pulling the
CS line low. See the datasheet for 3-wire and 4-wire SPI configuration and use.
1. With main power off, make the proper connections between the module and a microcontroller as
shown below. The voltage connected to the VIN pin should be the same as the voltage powering
the microcontroller communicating with the device.
2. Power on the device and load the BASIC Stamp or Propeller sample code provided on the 27911
product page.
NOTE: The SDA pin is connected to a bi-directional level shifting IC, used to translate the lower
I/O voltage of the L3G4200D to the possibly higher voltage used by an externally connected
device. This particular level shifter has built-in pull-up resistors to each supply rail so it can be
driven by open drain outputs for I
2
C; but can also be driven low/high for SPI protocol. The CLK
and CS pins operate exclusively as inputs, so a simpler level shifting circuit with a resistor and
Schottky diode is used. For the SDO pin another simple level shifting circuit is used along with a
MOSFET and two resistors.
In summary, there is no need for any external hardware to operate.
Calibration
Each L3G4200D is factory tested and trimmed for zero-rate level and sensitivity. So, for most common
applications, no further calibration is required. For details on the calibration, please reference page 31 of
Gyro_app_Note1.pdf on the product page.