TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136953 times)
  2. FAT32 Library (70065 times)
  3. Network Ethernet Library (56015 times)
  4. USB Device Library (46336 times)
  5. Network WiFi Library (41956 times)
  6. FT800 Library (41265 times)
  7. GSM click (29051 times)
  8. mikroSDK (26480 times)
  9. PID Library (26447 times)
  10. microSD click (25411 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

13DOF click

Rating:

5

Author: MIKROE

Last Updated: 2019-10-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Motion

Downloaded: 2631 times

Not followed.

License: MIT license  

13DOF Click is an advanced 13-axis motion tracking Click board, which utilizes three different sensor ICs onboard: BME680, a digital gas, humidity, pressure and temperature sensor and BMM150, a geomagnetic sensor and a BMI088, small, versatile 6DoF sensor module.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "13DOF click" changes.

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

Do you want to report abuse regarding "13DOF 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

13 DOF click

13 DOF click

Native view of the 13 DOF click board.

View full image
13 DOF click

13 DOF click

Front and back view of the 13 DOF click board.

View full image

Library Description

The library covers all the necessary functions to control 13DOF click board. Library performs a standard I2C interface communication.

Key functions:

  • float c13dof_bme680_getAmbientData( uint8_t dataIn ) - Get BME680 ambient data function.
  • void c13dof_bmm150_readGeoMagData( int16_t *magX, int16_t *magY, int16_t *magZ, uint16_t *resHall ) - Get BMM150 Geomagnetic sensors data function.
  • void c13dof_bmi088_readAccel( int16_t *accelX, int16_t *accelY, int16_t *accelZ ) - Read Accel X-axis, Y-axis and Z-axis function.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C and start to write log.
  • Application Initialization - Initialization driver enables - I2C, initializes BME680 Low power gas, pressure, temperature & humidity sensor, BMI088 6-axis Motion Tracking Sensor and BMM150 Geomagnetic Sensor, also write log.
  • Application Task - (code snippet) This is a example which demonstrates the use of 13DOF Click board. Measured and display temperature in degrees Celsius [ °C ], humidity data [ % ], pressure [ mbar ] and gas resistance data from the BME680 sensor. Measured and display Accel and Gyro data coordinates values for X-axis, Y-axis and Z-axis from the BMI088 sensor. Measured and display Geomagnetic data coordinates values for X-axis, Y-axis and Z-axis from the BMM150 sensor. Results are being sent to the Usart Terminal where you can track their changes. All data logs write on usb uart changes for every 2 sec.
void applicationTask()
{
    temperature = c13dof_bme680_getTemperature();
    Delay_10ms();

    mikrobus_logWrite( "                 |       BME680       |", _LOG_LINE );
    mikrobus_logWrite( "----------------------------------------------------------", _LOG_LINE );
    mikrobus_logWrite( "             ", _LOG_TEXT );
    mikrobus_logWrite( " Temperature    : ", _LOG_TEXT );
    FloatToStr( temperature, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( degCel, _LOG_LINE );

    humidity = c13dof_bme680_getHumidity();
    Delay_10ms();
    mikrobus_logWrite( "             ", _LOG_TEXT );
    mikrobus_logWrite( " Humidity       : ", _LOG_TEXT );
    FloatToStr( humidity, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( " %", _LOG_LINE );

    pressure = c13dof_bme680_getPressure();
    Delay_10ms();
    mikrobus_logWrite( "             ", _LOG_TEXT );
    mikrobus_logWrite( " Pressure       : ", _LOG_TEXT );
    FloatToStr( pressure, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( " mbar", _LOG_LINE );

    gasRes = c13dof_bme680_getGasResistance();
    Delay_10ms();
    mikrobus_logWrite( "             ", _LOG_TEXT );
    mikrobus_logWrite( " Gas Resistance : ", _LOG_TEXT );
    LongWordToStr( gasRes, logText );
    ltrim( logText );
    mikrobus_logWrite( logText, _LOG_LINE );
    mikrobus_logWrite( "----------------------------------------------------------", _LOG_LINE );

    readyCheck = c13dof_bmm150_checkReady();

    while ( readyCheck != _C13DOF_BMM150_DATA_READY )
    {
        readyCheck = c13dof_bmm150_checkReady();
    }

    c13dof_bmi088_readAccel( &accelX, &accelY, &accelZ );
    Delay_10ms();
    c13dof_bmi088_readGyro( &gyroX, &gyroY, &gyroZ );
    Delay_10ms();
    c13dof_bmm150_readGeoMagData( &magX, &magY, &magZ, &RHall );
    Delay_10ms();


    mikrobus_logWrite( "                BMI088                |     BMM150", _LOG_LINE );
    mikrobus_logWrite( "----------------------------------------------------------", _LOG_LINE );
    mikrobus_logWrite( "|     Accel       |       Gyro        |       Mag        |",_LOG_LINE );
    mikrobus_logWrite( "----------------------------------------------------------", _LOG_LINE );

    mikrobus_logWrite( " Accel X :", _LOG_TEXT );
    IntToStr( accelX, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_TEXT );
    mikrobus_logWrite( " Gyro X :", _LOG_TEXT );
    IntToStr( gyroX, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_TEXT );
    mikrobus_logWrite( " Mag X :", _LOG_TEXT );
    IntToStr( magX, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_LINE );

    mikrobus_logWrite( " Accel Y :", _LOG_TEXT );
    IntToStr( accelY, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_TEXT );
    mikrobus_logWrite( " Gyro Y :", _LOG_TEXT );
    IntToStr( gyroY, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_TEXT );
    mikrobus_logWrite( " Mag Y :", _LOG_TEXT );
    IntToStr( magY, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_LINE );

    mikrobus_logWrite( " Accel Z :", _LOG_TEXT );
    IntToStr( accelZ, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_TEXT );
    mikrobus_logWrite( " Gyro Z :", _LOG_TEXT );
    IntToStr( gyroZ, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_TEXT );
    mikrobus_logWrite( " Mag Z :", _LOG_TEXT );
    IntToStr( magZ, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( "  |  ", _LOG_LINE );
    mikrobus_logWrite( "----------------------------------------------------------", _LOG_LINE );
    mikrobus_logWrite( "----------------------------------------------------------", _LOG_LINE );

    Delay_1sec();
    Delay_1sec();
}

Other mikroE Libraries used in the example:

  • I2C
  • UART
  • Conversions

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

LTE IoT 7 click

0

LTE IoT 7 Click is an add-on board representing a secure-cloud multi-band solution designed for IoT applications. This board features the SARA-R422M8S, a multi-band LTE-M/NB-IoT/EGPRS multi-mode solution with integrated high-performance standard precision M8 GNSS receiver for global position acquisition from u-blox. Equipped with familiar AT commands set over the UART interface, USB interface, and Network and Status indicators, it also provides over-the-air firmware updates, end-to-end trusted domain security, and u-Blox’s leading GNSS technology.

[Learn More]

Pwm Driver click

0

This application is controls the speed DC motors.

[Learn More]

Air Velocity click

0

Air Velocity Click is a compact add-on board that measures direct airspeed. This board features the FS3000-1005, a surface-mount type air velocity module utilizing a MEMS thermopile-based sensor from Renesas. This I2C-configurable air velocity module features a digital output with a 12-bit resolution with a wide operational range of 0-7.2meter/second (0-16.2mph). The sensor comprises a “solid” thermal isolation technology and silicon-carbide coating to protect it from abrasive wear and water condensation.

[Learn More]