mrangle 2.0.0.0
|
MR Angle Click is a compact add-on board that contains a magnetoresistive sensor with an integrated amplifier. This board features the KMZ60, a high precision sensor for magnetic angle measurement with single-ended cosine and sine outputs from NXP Semiconductors. The MR sensor element comes with two Wheatstone bridges for cosine and sine signals, supports functions for control circuit and signal amplification, and enables angular measurements with high accuracy by an excellent linearity and temperature drift behavior. The KMZ60 is fully automotive qualified as well as applicable for industrial and consumer applications.
We provide a library for the MrAngle 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 MrAngle Click driver.
mrangle_cfg_setup
Config Object Initialization function. mrangle_init
Initialization function. mrangle_default_cfg
Click Default Configuration function. mrangle_get_angle
MR Angle get angle function. mrangle_get_temperature
MR Angle get temperature function. mrangle_powerdown_mode
MR Angle powerdown mode function. This library contains API for the MR Angle click driver. This demo application shows an example of angle measurement.
The demo application is composed of two sections :
Initialization of SPI module and log UART. After driver initialization, the app performs default settings.
This is an example that shows the use of an MR Angle click boardâ„¢. The application task consists of reading the angle measurements in degrees ( 0 - 180 ). Results are being sent to the Usart Terminal where you can track their changes.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.