Web Site: www.parallax.com Office: (916) 624-8333 Forums: forums.parallax.com Fax: (916) 624-8003 Sales: sales parallax.com Sales: (888) 512-1024 Technical: support parallax.com Tech Support: (888) 997-8267 Gyroscope Module 3-Axis L3G4200D ( 27911) The Gyroscope Module is a low power 3-Axis angular rate sensor with temperature data. The gyroscope shows the rate of change in rotation on its X,Y and Z axes. Temperature output data and raw measured angular rate is accessed from the selectable digital interface (IC or SPI). The module is a small package design and has an easy to access SIP interface with a mounting hole for quick connectivity to your projects. The module is designed for use with a large variety of microcontrollers with different voltage requirements. Features 3-Axis angular rate sensor (yaw, pitch, and roll) 2 Supports I C and SPI communications Three selectable scales: 250/500/2000 degrees/sec (dps) High shock survivability Embedded temperature sensor -40 to +185 F (-40 to + 85 C) Embedded power-down and sleep mode 16 bit-rate value data output 8-bit temperature data output Key Specifications Power Requirements: 2.7 to 6.5 VDC 2 Communication Interface: I C (up to 400 kHz) or SPI (10 MHz 4 & 3 wire) Operating temperature: -40 to +185 F (-40 to +85 C) Dimensions: 0.85 X 0.80 in (2.16 X 2.03 cm) Application Ideas Gaming 3D motion control Virtual reality input devices Robotics UAV, IMU systems Downloads & Resources More resources, example code, the device schematic, and open-source hardware files are available from the 27911 product page at www.parallax.com. Copyright Parallax Inc. Gyroscope Module 3-Axis L3G4200D ( 27911) v1.1 4/19/2013 Page 1 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 modules default communication setup is IC. 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 2 driven by open drain outputs for I 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. Copyright Parallax Inc. Gyroscope Module 3-Axis L3G4200D ( 27911) v1.1 4/19/2013 Page 2 of 5