2
DT-Sense 3 Axis Gyroscope DT-Sense 3 Axis Gyroscope is an angular velocity sensor module (gyroscope) based on L3G4200D from STMicroelectronics (www.st.com). This module is able to read angular velocity on 3 axis with adjustable measurement range. This module also has the ability to select bandwidth or data output speed, FIFO buffer, and has interrupt system and pin. This module is suitable for applications such as game or virtual reality controller, part of GPS and robot navigation system, MMI (Man Machine Interface) control device or other applications requiring angular velocity data. Specification 1. Requires 3.3 VDC power supply. 2. Three-axis angular rate sensor. 3. Selectable full scales, ±250/±500/±2000 dps (degree per second). 4. Output data with 16 bits format. 5. Equipped with an 8 bits temperature sensor. 6. Programmable interrupt pin. 7. Two selectable interface for sensor reading and module configuration: I 2 C and SPI. Layout Pin Name Function 1 INT1 Output Programmable Interrupt 2 INT2 Output Data Ready / FIFO Interrupt 3 SDO Input/ Output SPI Serial Data Output / I 2 C Address Selector (0 : D0h/D1h ; 1 : D2h/D3h) 4 CS Input Chip Select & SPI Enable (0) or I 2 C Enable (1) 5 SDA/ SDI Input/ Output I 2 C Serial Data (SDA) / SPI Serial Data Input (SDI) 6 SCL/ SPC Input I 2 C Serial Clock (SCL) / SPI Serial Clock (SPC) 7 Ground - Ground reference point 8 V33 Input 3.3 VDC voltage input CS (J2) is used to to select the used interface. CS (J2) Jumper Interface SPI (jumper released) I 2 C (jumper attached) SDO (J1) is used to to select the used I 2 C address. SDO (J1) Jumper I 2 C address Write address = D2h Read address = D3h Write address = D0h Read address = D1h SDA (J3) and SCL (J4) are used to activate pull-up resistors for SDA and SCL pin on the I 2 C interface. SDA (J3) and SCL (J4) Jumpers Function Pull-up inactive (jumpers released) Pull-up active (jumpers attached) Important ! If more than one module are connected to I 2 C-bus, then only one set of SDA (J3) - SCL (J4) jumpers needs to be connected. CD/DVD Contents 1. Testing Program. 2. DT-Sense 3 Axis Gyroscope Manual. 3. Datasheet. 4. Innovative Electronics Offline Website. Testing Procedure A simple testing procedure can be performed by following the steps below: 1. Prepare the DT-AVR ATmega168 BMS module, load the program Contoh (included in CD/DVD). 2. Attach the voltage selector jumper so that DT-AVR ATmega168 BMS works at 3.3 volts. 3. Connect the DT-AVR ATmega168 BMS and DT-SENSE 3 AXIS GYROSCOPE module using the following table: DT-AVR ATmega168 BMS (PORT B) DT-Sense 3 Axis Gyroscope VIN (Pin 2) V33 (Pin 8) GND (Pin 1) Ground (Pin 7) PB0 (Pin 3) SCL (Pin 6) PB1 (Pin 4) SDA (Pin 5) 4. Attach all I 2 C pull up and CS jumpers on the DT- SENSE 3 AXIS GYROSCOPE module. 5. Attach the SDO jumper on 2-3 so that I 2 C address is D0h. 6. Connect the 9 volts power supply to the DT-AVR ATmega168 BMS module. Turn the power supply on. 7. Afterward, the gyroscope data gyroX, gyroY, and gyroZ will be sent via DT-AVR Atmega168 BMS J2 CS J2 CS J4 SCL J3 SDA J4 SCL J3 SDA J1 SDO 1 J1 SDO 1

DT-Sense 3 Axis Gyroscope Manual Eng

Embed Size (px)

DESCRIPTION

Mikon

Citation preview

Page 1: DT-Sense 3 Axis Gyroscope Manual Eng

DT-Sense 3 Axis Gyroscope

DT-Sense 3 Axis Gyroscope is an angular velocity sensor module (gyroscope) based on L3G4200D from STMicroelectronics (www.st.com). This module is able to read angular velocity on 3 axis with adjustable measurement range. This module also has the ability to select bandwidth or data output speed, FIFO buffer, and has interrupt system and pin. This module is suitable for applications such as game or virtual reality controller, part of GPS and robot navigation system, MMI (Man Machine Interface) control device or other applications requiring angular velocity data.

Specification1. Requires 3.3 VDC power supply.2. Three-axis angular rate sensor.3. Selectable full scales, ±250/±500/±2000 dps

(degree per second).4. Output data with 16 bits format.5. Equipped with an 8 bits temperature sensor.6. Programmable interrupt pin.7. Two selectable interface for sensor reading and

module configuration: I2C and SPI.

Layout

Pin Name Function1 INT1 Output Programmable Interrupt2 INT2 Output Data Ready / FIFO Interrupt

3 SDOInput/Output

SPI Serial Data Output / I2C Address Selector

(0 : D0h/D1h ; 1 : D2h/D3h)

4 CS InputChip Select & SPI Enable (0)

or I2C Enable (1)

5SDA/ SDI

Input/Output

I2C Serial Data (SDA) / SPI Serial Data Input (SDI)

6SCL/ SPC

InputI2C Serial Clock (SCL) / SPI

Serial Clock (SPC)7 Ground - Ground reference point8 V33 Input 3.3 VDC voltage input

CS (J2) is used to to select the used interface.

CS (J2) Jumper Interface

SPI (jumper released)

I2C (jumper attached)

SDO (J1) is used to to select the used I2C address.

SDO (J1) Jumper I2C addressWrite address = D2hRead address = D3hWrite address = D0hRead address = D1h

SDA (J3) and SCL (J4) are used to activate pull-up resistors for SDA and SCL pin on the I2C interface.

SDA (J3) and SCL (J4) Jumpers FunctionPull-up inactive

(jumpers released)Pull-up active

(jumpers attached)

Important !If more than one module are connected to I2C-bus, then only one set of SDA (J3) - SCL (J4) jumpers needs to be connected.

CD/DVD Contents1. Testing Program.2. DT-Sense 3 Axis Gyroscope Manual.3. Datasheet.4. Innovative Electronics Offline Website.

Testing ProcedureA simple testing procedure can be performed by following the steps below:1. Prepare the DT-AVR ATmega168 BMS module, load

the program Contoh (included in CD/DVD).2. Attach the voltage selector jumper so that DT-AVR

ATmega168 BMS works at 3.3 volts.3. Connect the DT-AVR ATmega168 BMS and DT-SENSE

3 AXIS GYROSCOPE module using the following table:

DT-AVR ATmega168 BMS(PORT B)

DT-Sense3 Axis Gyroscope

VIN (Pin 2) V33 (Pin 8)GND (Pin 1) Ground (Pin 7)PB0 (Pin 3) SCL (Pin 6)PB1 (Pin 4) SDA (Pin 5)

4. Attach all I2C pull up and CS jumpers on the DT-SENSE 3 AXIS GYROSCOPE module.

5. Attach the SDO jumper on 2-3 so that I2C address is D0h.

6. Connect the 9 volts power supply to the DT-AVR ATmega168 BMS module. Turn the power supply on.

7. Afterward, the gyroscope data gyroX, gyroY, and gyroZ will be sent via DT-AVR Atmega168 BMS

J2 CS

J2 CS

J4 SCL J3 SDA

J4 SCL J3 SDA

J1 SDO1

J1 SDO1

Page 2: DT-Sense 3 Axis Gyroscope Manual Eng

module's UART line with 38400 bps baudrate mode, 8 bits data,1 stop bit, and without parity.

8. Spin the DT-SENSE 3 AXIS GYROSCOPE module to test the changes on each of the gyroscope's axis.

9. If the DT-SENSE 3 AXIS GYROSCOPE module is spun with Z axis shaft (shaking motion), then the gyroZ value will change the most.

10. If the DT-SENSE 3 AXIS GYROSCOPE module is spun with X axis shaft (nodding motion), then the gyroX value will change the most.

11. If the DT-SENSE 3 AXIS GYROSCOPE module is spun with Y axis shaft (teeter totter motion), then the gyroY value will change the most.

♦ Thank you for your confidence in using our products, if there are difficulties, questions, or suggestions regarding this product please contact our technical support:

[email protected]

Cop

yrig

ht ©

201

2 In

nova

tive

Elec

tron

ics