Grove - 3-Axis Digital Gyro
Contents |
Introduction
Grove - 3-Axis Digital Gyro module based on ITG 3200. It is the world’s first single-chip, digital-output, 3-axis MEMS motion processing gyro optimized for gaming, 3D mice, and motion-based remote control applications for Internet connected Digital TVs and Set Top Boxes. The ITG-3200 features three 16-bit analog-to-digital converters (ADCs) for digitizing the gyro outputs, a user-selectable internal low-pass filter bandwidth, and a Fast-Mode I2C (400kHz) interface.
Model:SEN11763P![]()
Features
- Grove compatible interface
- Digital-output X-, Y-, and Z-Axis
- Fast Mode I²C (400kHz) serial interface
- ±2000°/s full scale range and 14.375 LSBs per °/s sensitivity
- Three integrated 16-bit ADCs
- On-chip temperature sensor
- Integrated amplifiers and low-pass filters
- Hermetically sealed for temp and humidity resistance
- RoHS and Green compliant
Specifications
| Power Supply | 3V ~ 5V |
| Operation Current | 6.5mA |
| Standby current | 5μA |
| Sensitivity | 14 LSBs per °/sec |
| Full scale range | ±2000°/sec |
| Acceleration (Any Axis, unpowered) | 10,000g for 0.3ms |
| Dimension | 2cm x 2cm x 1cm |
| Interface | 4 Pin Grove |
Pin definition and Rating
The default I2C address of this sensor is 0x68. It can be changed to 0x69 if JP1 gets shorted. Please refer to the Datasheet of ITG-3200 for more information.
- Note: If you want to activate the Interrupt function of this module, you need to connect the INT soldering pad we broke out on the board with a pin of Arduino that's capable of Interrupt Service Routine.
Usage
This demo is going to show you how to read out temperature, raw data and converted data in the unit of rad/s from this digital gyro.
1. Plug the sensor onto the I2C connector of the Grove - Base Shield via a Grove cable.
(图片)
2. Download the library file: Digital Gyro Library; Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.0\libraries.
3. Open the code directly by the path:File -> Example ->ITG3200_Gyro->ITG3200_Gyro as show below.
/*****************************************************************************/
//Function: Get the temperature and the values of X/Y/Z from ITG3200,and
// calculate the angular velocity of the X/Y/Z.
//Hardware: 3-Axis Digital Gyro
//Arduino IDE: Arduino-1.0
//Author: FrankieChu
//Date: Jan 11,2013
//Version: v1.0
//by www.seeedstudio.com
//
/*******************************************************************************/
#include <Wire.h>
#include "ITG3200.h"
ITG3200 gyro;
void setup()
{
Serial.begin(9600);
gyro.init();
gyro.zeroCalibrate(200,10);//sample 200 times to calibrate and it will take 200*10ms
}
void loop()
{
Serial.print("Temperature = ");
Serial.print(gyro.getTemperature());
Serial.println(" C");
int x,y,z;
gyro.getXYZ(&x,&y,&z);
Serial.print("values of X , Y , Z: ");
Serial.print(x);
Serial.print(" , ");
Serial.print(y);
Serial.print(" , ");
Serial.println(z);
float ax,ay,az;
gyro.getAngularVelocity(&ax,&ay,&az);
Serial.print("Angular Velocity of X , Y , Z: ");
Serial.print(ax);
Serial.print(" , ");
Serial.print(ay);
Serial.print(" , ");
Serial.print(az);
Serial.println(" per second");
Serial.println("*************");
delay(1000);
}
4. Upload the code to your Arduino. Please click here if you do not know how to upload.
5. Open the serial monitor to check the result.
The result consists of three parts, temperature, raw data and converted data of angular vwlocity in the unit of rad/s.
Reference
The diagram below shows the orientations of 3 axes. You can use it to understand the pgysical meanings of the result.
Resources
Datasheet of ITG-3200.
Grove - 3-Axis Digital Gyro Eagle File
file: Digital Gyro Library
Support
If you have questions or other better design ideas, you can go to our forum or wish to discuss.
