How does it work?
Gyro 6 Click as its foundation uses the IAM-20380, a high-performance 3-axis gyroscope from TDK InvenSense. The IAM-20380 is highly configurable with a full-scale programmable range of ±250dps, ±500dps, ±1000dps, and ±2000dps. It also features a 512-byte FIFO that can lower the traffic on the selected serial bus interface and reduce power consumption by allowing the system processor to burst read sensor data and then go into a low-power mode. With its 3-axis integration, this Click board™ guarantees customers’ optimal motion performance, allowing them to design it into a wide range of industrial applications.
Other industry-leading features of the IAM-20380 include on-chip 16-bit ADCs to sample each axis, an embedded temperature sensor, and programmable interrupts. The ADC sample rate is programmable from 8,000 samples per second down to 3.9, and user-selectable low-pass filters enable a wide range of cut-off frequencies. It also comes with a factory-calibrated initial sensitivity and provides high robustness by supporting 10,000g shock reliability.
Gyro 6 Click allows using both I2C and SPI interfaces with a maximum frequency of 400kHz for I2C and 8MHz for SPI communication. The selection can be made by positioning SMD jumpers labeled as COMM SEL to an appropriate position. Note that all the jumpers’ positions must be on the same side, or the Click board™ may become unresponsive. While the I2C interface is selected, the IAM-20380 allows choosing the least significant bit (LSB) of its I2C slave address using the SMD jumper labeled as ADDR SEL to an appropriate position marked as 0 and 1.
An additional option made available for the user is the Frame Synchronization Selection jumper labeled as FSYNC SEL. In this case, this feature is not used, so it’s connected to the ground by default. Otherwise, by placing the jumper at the position marked with PWM, an external sync signal from the PWM pin of the mikroBUS™ socket can be used as an optional frame synchronization signal to allow precise timing to be achieved.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before use with MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Gyroscope,Motion
Applications
Can be used for various applications such as angular velocity sensing, angle sensing and control mechanisms, automotive, industrial and navigational systems, telematics, and many more
On-board modules
IAM-20380 – high-performance 3-axis gyroscope from TDK InvenSense
Key Features
Low power consumption, full-scale programmable range up to ±2000dps, integrated 16-bit ADCs, user-programmable digital filters, embedded temperature sensor, programmable interrupts, high performance, reliability, and more
Interface
I2C,PWM,SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on Gyro 6 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1-JP3 | COMM SEL | Right | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
JP4 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
JP5 | FSYNC SEL | Left | Frame Synchronization Selection GND/PWM: Left position GND, Right position PWM |
Gyro 6 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Full-Scale Range | ±250 | – | ±2000 | dps |
Sensitivity | 16.4 | – | 131 | LSB/dps |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Gyro 6 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Gyro 6 Click driver.
Key functions:
gyro6_get_axis
– This function reads the gyroscope values for all three axis.gyro6_read_die_temperature
– This function reads the chip internal temperature.gyro6_set_low_power_mode
– This function enables low power mode and sets the sample rate and average sample data.
Examples description
This example demonstrates the use of Gyro 6 Click board™.
void application_task ( void ) { if ( gyro6_get_int_pin ( &gyro6 ) ) { float x_axis_value = 0; float y_axis_value = 0; float z_axis_value = 0; if ( GYRO6_OK == gyro6_get_axis ( &gyro6, &x_axis_value, &y_axis_value, &z_axis_value ) ) { log_printf( &logger, " X : %.2frn", x_axis_value ); log_printf( &logger, " Y : %.2frn", y_axis_value ); log_printf( &logger, " Z : %.2frnn", z_axis_value ); } } }
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Gyro6
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.