smartdof4
2.1.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the Smart DOF 4 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Smart DOF 4 Click driver.
smartdof4_cfg_setup
Config Object Initialization function. smartdof4_init
Initialization function. smartdof4_default_cfg
Click Default Configuration function. smartdof4_read_pid
This function reads the product ID information. smartdof4_feature_set
This function sets a full feature report. smartdof4_read_data
This function reads the accelerometer (g), gyroscope (dps), and magnetometer (uT) 3-axis data from input report. This example demonstrates the use of Smart DOF 4 click board by reading the accelerometer, gyroscope, and magnetometer data measurements.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration enabling
accelerometer, gyroscope, and magnetometer sensors with an output data rate of 10Hz. After that, it reads the software version, part number, and build number information.
Reads the accelerometer (g), gyroscope (dps), and magnetometer (uT) measurements and displays results on the USB UART every 100ms approximately.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.