TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136652 times)
  2. FAT32 Library (69872 times)
  3. Network Ethernet Library (55904 times)
  4. USB Device Library (46245 times)
  5. Network WiFi Library (41873 times)
  6. FT800 Library (41115 times)
  7. GSM click (28968 times)
  8. PID Library (26404 times)
  9. mikroSDK (26332 times)
  10. microSD click (25345 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

10DOF click

Rating:

4

Author: MIKROE

Last Updated: 2019-04-04

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Motion

Downloaded: 4808 times

Followed by: 11 users

License: MIT license  

10DOF click board carries two modules from Bosch: BNO055, a 9-axis absolute orientation sensor and BMP180, a digital pressure sensor. 10DOF click communicates with the target board MCU through the mikroBUS I2C interface (SCL, SDA), with additional functionality provided by INT and RST pins. Designed to use a 3.3V power supply only.

No Abuse Reported

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

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

Do you want to report abuse regarding "10DOF click".

  • mikroSDK Library 2.0.0.0
  • Comments (5)
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

10DOF click

10DOF click

Native view of the 10DOF click board.

View full image
10DOF Click Board

10DOF Click Board

Front and back view of the 10DOF click board.

View full image

Library Description

The library covers all the necessary functions to control 10DOF Click board. Library performs the communication with the device via I2C driver by writing to registers and by reading from registers of BMP180 and BNO055 chip sensor. The library has generic write and reads function for both chips, get measurements function, get the temperature and pressure data from the register, a function for reading calibration, for sets configuration and all the necessary functions to control and read X-axis, Y-axis & Z axis data of accel, gyro and magnetometer coordinates. Function who gets temperature, humidity and pressure also read factory calibration and converts temperature data to degree Celsius [ °C ] and pressure value to mbar.

Key functions:

  • void c10dof_getMeasurements( float *temperature, float *pressure ) - Get measurements - temperature and pressure data function.
  • void c10dof_readAccel( int16_t *accelX, int16_t *accelY, int16_t *accelZ ) - Function read Accel X-axis, Y-axis and Z-axis.
  • void c10dof_readMag( int16_t *magX, int16_t *magY, int16_t *magZ ) - Function read Magnetometar X-axis, Y-axis and Z-axis.

Examples description

The application is composed of three sections:

  • System Initialization - Initializes GPIO, I2C or SPI and LOG structures, set INT pin as input, RST pin as output and start to write log.
  • Application Initialization -  Initialization driver enables - I2C, the set default configuration of BMP180 and BNO055 chip, also display logs.
  • Application Task - (code snippet) This is an example which demonstrates the use of 10DOF Click board. Measured temperature, humidity pressure data from the BMP180 and BNO055 chip sensor and accel, gyro, and magnetometer coordinate values for X-axis, Y-axis and Z-axis. Display temperature data to degrees Celsius [ °C ], pressure data [ mbar ], the rate in dps, accel in mg and magnetometer in µT. Results are being sent to the Usart Terminal where you can track their changes. All data logs write on usb uart changes for every 3 sec.
void applicationTask() 
{
    c10dof_readAccel( &accelX, &accelY, &accelZ );
    delay_ms( 10 );
    c10dof_readGyro(  &gyroX,  &gyroY, &gyroZ );
    delay_ms( 10 );
    c10dof_readMag(  &magX,  &magY, &magZ );
    delay_ms( 10 );
    temperature = c10dof_getTemperature();
    delay_ms( 10 );
    c10dof_getMeasurements( &temperature, &pressure );
    delay_ms( 10 );
    
    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_TEXT );
    mikrobus_logWrite( "Temp. : ", _LOG_TEXT );
    FloatToStr( temperature, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( degCel, _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_TEXT );
    mikrobus_logWrite( " Press.: ", _LOG_TEXT );
    FloatToStr( pressure, logText );
    mikrobus_logWrite( logText, _LOG_TEXT );
    mikrobus_logWrite( " mbar", _LOG_LINE );
 
    delay_ms( 3000 );
}        

Other mikroE Libraries used in the example:

  • I2C
  • UART​
  • Conversion

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

Remote Temp click

0

Remote Temp Click is a temperature sensing Click board™, which features the EMC1833 from Microchip, a specifically designed IC, capable of measuring remote temperature. This option makes Remote Temp click well-suited for monitoring the temperature of a CPU, GPU or FPGA, where the BJT model junction can be a substrate PNP or NPN.

[Learn More]

Vacuum click

10

Vacuum click is an accurate pressure-sensor click board that is capable of measuring pressure values down to -115kPa. This click boardâ„¢ utilizes a very precise and low thermal drift, absolute pressure-sensor from NXP, labeled as MPXV6115V.

[Learn More]

PHT click

5

PHT Click is a compact add-on board that contains a PHT combo sensor. This board features the MS8607, a digital combination sensor providing 3 environmental measurements all-in-one: pressure, humidity, and temperature from TE Connectivity Measurement Specialties.

[Learn More]