magneto10 2.0.0.0
|
Magneto 10 Click is a compact add-on board that contains a 3D magnetometer. This board features the MLX90392, a +/-5mT range magnetometer for low-noise applications from Melexis Technologies. The MLX90392, specially designed for micropower applications, measures magnetic fields along the three axes (X, Y being in a plane parallel to the surface of the die, and Z being perpendicular to the surface).
We provide a library for the Magneto10 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 Magneto10 Click driver.
magneto10_cfg_setup
Config Object Initialization function. magneto10_init
Initialization function. magneto10_default_cfg
Click Default Configuration function. magneto10_get_magnetic_flux
This function reads the raw values of X, Y, and Z axis and converts them to magnetic flux data in microTesla. magneto10_get_temperature
This function reads the raw temperature value and converts it to Celsius. magneto10_set_operating_mode
This function sets the device operating mode. This example demonstrates the use of Magneto 10 click board.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Reads the magnetic flux as well as the internal temperature data every 100ms and displays the results on the USB UART.
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.