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 (136951 times)
  2. FAT32 Library (70063 times)
  3. Network Ethernet Library (56015 times)
  4. USB Device Library (46333 times)
  5. Network WiFi Library (41953 times)
  6. FT800 Library (41264 times)
  7. GSM click (29050 times)
  8. mikroSDK (26473 times)
  9. PID Library (26445 times)
  10. microSD click (25408 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: 4864 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

Buck 19 click

0

Buck 19 Click is a compact add-on board that steps down the voltage from its input (supply) to its output (load). This board features the STPD01, a programmable synchronous buck converter from STMicroelectronics, providing power supply in applications following USB power delivery specifications. The STPD01 provides the desired voltage levels required by USB power delivery systems (USB PD 3.0) via I2C serial interface up to 60W output power, more precisely voltages in the range of 3V to 20V with a step of 20mV minimum, and currents from 0.1A to 3A with a minimum in steps of 50mA. It also offers advanced protection features such as overvoltage, overcurrent, and overtemperature detections.

[Learn More]

SpeakUp API

0

API for SpeakUp, the speech recognition click board

[Learn More]

Buck 11 click

5

Buck 11 click is a high-efficiency step-down converter which provides 3.3V on its output, derived from the connected power supply voltage, in the range from 4.2V to 60V.

[Learn More]