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 (137114 times)
  2. FAT32 Library (70239 times)
  3. Network Ethernet Library (56129 times)
  4. USB Device Library (46445 times)
  5. Network WiFi Library (42080 times)
  6. FT800 Library (41408 times)
  7. GSM click (29124 times)
  8. mikroSDK (26567 times)
  9. PID Library (26504 times)
  10. microSD click (25491 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 10 click

Rating:

5

Author: MIKROE

Last Updated: 2020-01-29

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Motion

Downloaded: 2355 times

Not followed.

License: MIT license  

6DOF IMU 10 Click is a Click board which features the KMX62-1031, a 6 Degrees-of-Freedom inertial sensor system that features 16-bit digital outputs accessed through I2C communication from Kionix.

No Abuse Reported

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

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

Do you want to report abuse regarding "6DOF IMU 10 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 10 click

6DOF IMU 10 click

Native view of the 6DOF IMU 10 click board.

View full image
6DOF IMU 10 click

6DOF IMU 10 click

Front and back view of the 6DOF IMU 10 click board.

View full image

Library Description

The library performs a magnetometer, accelerometer and temperature measurements and control of the 6DOF IMU 10 Click board. User also can select a desired range, scale and other config for the desired measurement. For more details check documentation.

Key functions:

  • void c6dofimu10_default_cfg ( void ) - Default module configuration function
  • void c6dofimu10_get_accel_axis ( c6dofimu10_axis_t *axis ) - Accelerometer axis data
  • void c6dofimu10_get_mag_axis ( c6dofimu10_axis_t *axis ) - Magnetometer axis data

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C driver and GP1 - GP2 pins used as interrupt pins. And initializes the LOG module.
  • Application Initialization - Runs a communication test that reads device id (registry Who_I_AM). It then starts the default module config that sets the module to its initial state of operation.
  • Application Task - Reads the accelerometer and magnetometer axis data. And reads temperature values. All data logs on the USBUART.
void application_task ( )
{
    c6dofimu10_axis_t accel_axis;
    c6dofimu10_axis_t mag_axis;
    float temperature;

    c6dofimu10_get_accel_axis ( &accel_axis );
    c6dofimu10_get_mag_axis ( &mag_axis );
    temperature = c6dofimu10_get_temperature ( C6DOFIMU10_TEMP_FORMAT_CELSIUS );

    mikrobus_logWrite( "-- Accelerometer axis --", _LOG_LINE );
    app_display_axis_data( &accel_axis );
    Delay_ms( 2000 );

    mikrobus_logWrite( "-- Magnetometer axis --", _LOG_LINE );
    app_display_axis_data( &mag_axis );
    Delay_ms( 2000 );

    mikrobus_logWrite( "-- Temperature data --", _LOG_LINE );
    app_display_temp_data( temperature );
    Delay_ms( 2000 );
}


Additional Functions :

  • app_display_axis_data ( ) - Display (accel and mag) axis data
  • app_display_temp_data ( ) - Display temperature data

Other mikroE Libraries used in the example:

  • I2C Library
  • UART 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

Port Demo

0

The application demonstrates Port SDK functionality.

[Learn More]

Relay 3 click

0

Relay click 3 is a dual relay Click board, featuring two single-pole double-throw relays which can be operated by output pins of the host microcontroller (MCU). It offers an elegant and easy solution for controlling a wide range of power applications.

[Learn More]

Tilt click

5

Tilt click carries RPI-1035, a 4-directional optical tilt sensor. This type of sensor provides positional feedback for left, right, up or down movements. Tilt click communicates with the target board microcontroller through mikroBUS PWM and INT lines, used here for vout1 and vout2 outputs from the sensor.

[Learn More]