TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137081 times)
  2. FAT32 Library (70223 times)
  3. Network Ethernet Library (56094 times)
  4. USB Device Library (46413 times)
  5. Network WiFi Library (42032 times)
  6. FT800 Library (41377 times)
  7. GSM click (29109 times)
  8. mikroSDK (26555 times)
  9. PID Library (26487 times)
  10. microSD click (25486 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

6DOF IMU 14 click

Rating:

5

Author: MIKROE

Last Updated: 2020-08-19

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Motion

Downloaded: 2668 times

Not followed.

License: MIT license  

6DOF IMU 14 Click is a compact add-on board that contains a 6-axis MEMS motion tracking device combining a 3-axis gyroscope and a 3-axis accelerometer. This board features the ICM-42688-P, high precision 6-axis MEMS motion tracking device, from TDK InvenSense.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "6DOF IMU 14 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "6DOF IMU 14 click" changes.

Do you want to report abuse regarding "6DOF IMU 14 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

6DOF IMU 14 Click

6DOF IMU 14 Click

Native view of the 6DOF IMU 14 Click board.

View full image
6DOF IMU 14 Click

6DOF IMU 14 Click

Front and back view of the 6DOF IMU 14 Click board.

View full image

Library Description

The library contains a basic functions for using 6DOF IMU 14 click.

Key functions:

  • void c6dofimu14_get_gyro_axis ( c6dofimu14_axis_t *axis ) - Gets GYRO XYZ axis value
  • void c6dofimu14_get_accel_axis ( c6dofimu14_axis_t *axis ) - Gets ACCEL XYZ axis value
  • float c6dofimu14_get_temperature ( void ) - Gets Temperature value

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C or SPI module and all necessary GPIO pins
  • Application Initialization - Initializes driver inti, configuration module for measurement and cheeks communication with the module.
  • Application Task - Reads Accel, Gyro and Temperature data and logs data to USB UART every 1.5 second.
  • Note - For more characteristics and information, you should see the datasheet of the sensor.
void application_task ( )
{
    float temperature;
    c6dofimu14_axis_t accel;
    c6dofimu14_axis_t gyro;

    mikrobus_logWrite( "  ", _LOG_LINE );
    
    // ACCEL DATA
    c6dofimu14_get_accel_axis( &accel );
    FloatToStr( accel.x, demo_text );
    mikrobus_logWrite( " >> Accel: X: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_TEXT );
    FloatToStr( accel.y, demo_text );
    mikrobus_logWrite( " Y: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_TEXT );
    FloatToStr( accel.z, demo_text );
    mikrobus_logWrite( " Z: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_LINE );
    
    // GYRO DATA
    c6dofimu14_get_gyro_axis( &gyro );
    FloatToStr( gyro.x, demo_text );
    mikrobus_logWrite( " >> Gyro: X: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_TEXT );
    FloatToStr( gyro.y, demo_text );
    mikrobus_logWrite( " Y: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_TEXT );
    FloatToStr( gyro.z, demo_text );
    mikrobus_logWrite( " Z: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_LINE );
    
    // TEMPERATURE
    temperature = c6dofimu14_get_temperature( );
    FloatToStr( temperature, demo_text );
    mikrobus_logWrite( " >> Temperature: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_LINE );
    
    mikrobus_logWrite( "--------------------------", _LOG_LINE );
    Delay_ms( 1500 );
}

Other mikroE Libraries used in the example:

  • I2C Library
  • SPI Library
  • Conversions library

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

H-Bridge 10 click

0

H-Bridge 10 Click is a compact add-on board containing H-bridge outputs that let you control a DC motor to go backward or forward. This board features the MP6523, a triple, half-bridge, DMOS, output driver with integrated power MOSFETs that can drive up to three different loads from Monolithic Power Systems (MPS). The MP6523 is rated for an operating voltage range from 7V to 28V. It is SPI-configurable and has various diagnostic functions. Complete protection features include short-circuit protection (SCP), under-voltage protection (UVP), and thermal shutdown, alongside an onboard power supply existence-check circuit. This Click board™ is suitable as a multiple brushed DC motor driver for driving various loads in automotive and industrial applications, and more.

[Learn More]

DC Motor 17 click

0

DC Motor 17 Click is a compact add-on board that contains a brushed DC motor driver. This board features the TC78H660FTG, a dual H Bridge driver for one or two brushed motors that incorporate a DMOS with low on-resistance in output transistors from Toshiba Semiconductor. This IC is a PWM controlled constant-current drive with supply voltages from 2.5V to 16V and 2A of output current. It features a sense-resistor less current control architecture and VCC regulator for the internal circuit. Also offers multi-error detect functions with error detection flag output function. This Click board™ is suitable for driving DC motors, controlling the direction of the rotation, as well as brake and regulate the motor current.

[Learn More]

BLE 3 click

0

BLE 3 click is a Bluetooth Low Energy radio module which carries u-blox's NINA-B1 radio. The click can communicate with a target MCU through UART, SPI or I2C.

[Learn More]